1 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * configure.ac <"${have_libpython}" != no>: New workaround of
5 * configure: Regenerate.
7 2010-06-08 Hui Zhu <teawater@gmail.com>
9 * record.c (record_wait): Move signal out of replay code.
11 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * dwarf2-frame.c (no_dwarf_call): New function.
15 (execute_stack_op): Set CTX->DWARF_CALL.
16 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
17 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
18 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
19 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
20 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
21 (needs_frame_dwarf_call): New function.
22 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
23 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
24 Update the comment. Move variables die, offset and error call to ...
25 (follow_die_ref): ... a new function.
26 (dwarf2_fetch_die_location_block): New function.
27 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
29 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
31 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
32 (dwarf_expr_tls_address): Use per_cu instead of objfile.
33 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
34 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
36 (struct needs_frame_baton): New field per_cu.
37 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
38 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
40 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
42 * cp-support.c (make_symbol_overload_list_namespace): Only search
43 static and global blocks.
44 (make_symbol_overload_list_block): New function.
45 (make_symbol_overload_list): Separate namespace search from block
47 (make_symbol_overload_list_qualified): Use
48 make_symbol_overload_list_block.
50 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
52 * value.h: Created oload_search_type enum.
53 (find_overload_match): Use oload_search_type enum.
54 * valops.c (find_overload_match): Support combined member and
56 * eval.c (evaluate_subexp_standard): Calls to
57 find_overload_match now use oload_search_type enum.
58 (oload_method_static): Verify index is a proper value.
59 * valarith.c (value_user_defined_cpp_op): Search for and handle
60 both member and non-member operators.
61 (value_user_defined_cpp_op): New function.
62 (value_user_defined_op): New function.
63 (value_x_unop): Use value_user_defined_op.
64 (value_x_binop): Ditto.
65 * cp-support.c (make_symbol_overload_list_using): Added block
67 Add check for namespace aliases and imported declarations.
69 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
71 * breakpoint.h (owner): Extend the comment.
73 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
75 Clear stale specific bp_location from former whole breakpoint.
76 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
78 (free_bp_location): ... here. Rename there the called function to
79 bpstat_remove_bp_location_callback.
80 (bpstat_remove_breakpoint_callback): Rename to ...
81 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
82 to struct bp_location. Change the called function to
83 bpstat_remove_bp_location. Create new declaration for the function.
84 (bpstat_remove_breakpoint): Rename to ...
85 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
86 code for the new parameter type.
88 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
90 * README: Make version-agnostic.
92 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
94 Fix duplicate types for single DIE.
95 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
97 (read_array_type): Remove type initialization. Recheck get_die_type
98 after initial die_type. Move set_die_type before set_descriptive_type.
99 (read_set_type): New variable domain_type. Recheck get_die_type after
100 initial die_type. Move attr initialization later.
101 (read_tag_pointer_type, read_tag_reference_type): New variable
102 target_type. Recheck get_die_type after initial die_type.
103 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
104 die_type and die_containing_type.
105 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
106 Recheck get_die_type after initial die_type.
107 (read_subrange_type): Recheck get_die_type after initial die_type.
108 Move set_die_type before set_descriptive_type.
109 (set_die_type): Extend the function comment. Call complaint if DIE has
110 some type already set.
112 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
114 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
115 for current naming of thread groups (iN, not N).
117 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
119 * ada-lang.c (ada_operator_length): Constify `struct expression'.
120 * parse.c (operator_length): Likewise.
121 (operator_length_standard): Likewise.
122 * parser-defs.h (operator_length): Likewise.
123 (operator_length_standard): Likewise.
124 (struct exp_descriptor <operator_length>): Likewise.
126 2010-06-04 Doug Evans <dje@google.com>
128 Add support for enabling/disabling individual pretty-printers.
129 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
130 * python/python-internal.h (gdbpy_enabled_cst): Declare.
131 * python/python.c (gdbpy_enabled_cst): Define.
132 (_initialize_python): Initialize gdbpy_enabled_cst.
135 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
137 * breakpoint.c (update_global_location_list): Fix comment typo.
139 2010-06-04 Hui Zhu <teawater@gmail.com>
141 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
143 2010-06-03 Doug Evans <dje@google.com>
145 * configure.ac: Don't fail if python is unusable when
146 configured with --with-python=auto.
147 * configure: Regenerate.
149 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
151 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
153 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
155 * valprint.h (get_array_bounds): Change low and high parameter types
157 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
159 (val_print_array_elements): Adapt to change above.
160 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
161 * p-valprint.c (pascal_val_print): Likewise.
163 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
165 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
166 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
169 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
171 Support DW_TAG_module as separate namespaces.
172 * dwarf2read.c (typename_concat): New parameter physname.
173 (read_module_type): New function and declaration.
174 (scan_partial_symbols): Scan also DW_TAG_module children.
175 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
176 to typename_concat backward compatible physname value 0.
177 (partial_die_full_name, read_namespace_type): Pass to typename_concat
178 backward compatible physname value 0.
179 (add_partial_module, read_module): Remove FIXME comment.
180 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
181 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
182 DIEs under DW_TAG_module.
183 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
184 DW_AT_MIPS_linkage_name first, extend it for language_fortran
185 && physname and return there instead of just setting NAME. Extend
186 the main block for language_fortran. Pass physname parameter to the
187 typename_concat call.
188 (read_import_statement, read_func_scope, get_scope_pc_bounds)
189 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
190 (new_symbol): Fill in cplus_specific.demangled_name if it is still
191 missing from SYMBOL_SET_NAMES in the language_fortran case.
192 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
194 (read_type_die) <DW_TAG_module>: New.
195 (MAX_SEP_LEN): Increase to 7.
196 (typename_concat): New parameter physname. New variable lead. Support
197 also language_fortran.
198 * f-exp.y (yylex): Consider : also as a symbol name character class.
199 * f-lang.c: Include cp-support.h.
200 (f_word_break_characters, f_make_symbol_completion_list): New functions.
201 (f_language_defn): Use cp_lookup_symbol_nonlocal,
202 f_word_break_characters and f_make_symbol_completion_list.
203 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
204 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
205 * symtab.c (symbol_init_language_specific): Support language_fortran.
206 (symbol_find_demangled_name): New comment on language_fortran.
207 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
208 for language_fortran.
209 (lookup_symbol_aux_local): Check imports also for language_fortran.
210 (default_make_symbol_completion_list): Rename to ...
211 (default_make_symbol_completion_list_break_on): ... this name. New
212 parameter break_on, use it.
213 (default_make_symbol_completion_list): New stub.
214 * symtab.h (default_make_symbol_completion_list_break_on): New
217 2010-06-02 Joel Brobecker <brobecker@adacore.com>
219 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
222 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
224 * dwarf2read.c (typename_concat): Add const to the variable sep.
226 2010-06-02 Tom Tromey <tromey@redhat.com>
228 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
229 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
230 type is const. Add 'def' argument. Add missing operators, remove
232 (decode_locdesc): Update.
233 (dwarf2_always_disassemble): New global.
234 (show_dwarf2_always_disassemble): New function.
235 (_initialize_dwarf2_read): Add always-disassemble.
236 (dwarf2_per_cu_offset_size): New function.
237 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
238 (piece_end_p): New function.
239 (locexpr_describe_location_piece): Replace 'size' argument with
240 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
241 some constants. Remove errors.
242 (disassemble_dwarf_expression): New function.
243 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
244 Add 'offset_size' argument.
245 (loclist_describe_location): Change output formatting.
246 * dwarf2expr.h (dwarf_stack_op_name): Declare.
248 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
250 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
253 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
255 * dwarf2read.c (read_subrange_type): Handle missing base type
256 according to Dwarf-2 specifications.
258 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
260 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
262 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
263 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
264 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
265 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
266 UNOP_CHMAX, UNOP_CHMIN.
267 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
268 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
269 UNOP_CHMIN>: Remove opcodes.
271 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
273 * dwarf2read.c (read_func_scope): Do not complain for
274 external function if bounds are not found.
276 2010-06-01 Pedro Alves <pedro@codesourcery.com>
278 * NEWS: Mention gdbserver fast tracepoints support.
280 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
282 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
284 (windows_set_console_info): New function.
285 (windows_create_inferior): Call windows_set_console_info
286 if NEW_CONSOLE is true.
287 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
288 (_initialize_loadable): Initialize GetConsoleFontSize and
289 GetCurrentConsoleFont.
291 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
293 * Makefile.in (RDYNAMIC): New.
294 (SFILES): Add proc-service.list.
295 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
296 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
297 * config/arm/linux.mh: Likewise.
298 * config/i386/linux.mh: Likewise.
299 * config/i386/linux64.mh: Likewise.
300 * config/ia64/linux.mh: Likewise.
301 * config/m32r/linux.mh: Likewise.
302 * config/m68k/linux.mh: Likewise.
303 * config/mips/linux.mh: Likewise.
304 * config/pa/linux.mh: Likewise.
305 * config/powerpc/linux.mh: Likewise.
306 * config/powerpc/ppc64-linux.mh: Likewise.
307 * config/s390/s390.mh: Likewise.
308 * config/sparc/linux.mh: Likewise.
309 * config/sparc/linux64.mh: Likewise.
310 * config/xtensa/linux.mh: Likewise.
311 * configure.ac: New RDYNAMIC on native host and GCC.
312 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
313 * configure: Regenerate.
314 * proc-service.list: New.
316 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
318 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
321 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
323 * linux-nat.c (linux_nat_wait_1): Do not call
324 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
325 TARGET_WAITKIND_SIGNALLED.
327 2010-05-27 Joel Brobecker <brobecker@adacore.com>
329 * ada-lang.c (ada_inferior_data): New struct.
330 (ada_inferior_data): New static global.
331 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
332 (ada_get_tsd_type): New functions.
333 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
334 to look the tsd type up.
335 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
336 event. Set ada_inferior_data.
338 2010-05-27 Pedro Alves <pedro@codesourcery.com>
340 * remote.c (unpack_varlen_hex): Remove forward declaration.
341 (remote_console_output): Make static, and add forward declaration.
342 * remote.h: Drop FIXME comment.
343 (unpack_varlen_hex): Declare.
344 (remote_console_output, remote_cisco_objfile_relocate)
345 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
347 * tracepoint.c: Include "remote.h".
348 (unpack_varlen_hex): Delete declaration.
350 2010-05-27 Tom Tromey <tromey@redhat.com>
352 * dwarf2loc.c (struct piece_closure) <refc>: New field.
353 (allocate_piece_closure): Initialize refc.
354 (copy_pieced_value_closure): Use refc.
355 (free_pieced_value_closure): Likewise.
357 2010-05-27 Tom Tromey <tromey@redhat.com>
359 * arm-tdep.c (push_stack_item): 'contents' now const.
360 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
361 value_contents_writeable. Introduce new temporary.
363 2010-05-27 Tom Tromey <tromey@redhat.com>
365 * findcmd.c (parse_find_args): Use value_contents, not
368 2010-05-27 Tom Tromey <tromey@redhat.com>
370 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
371 const. Use value_contents, not value_contents_writeable.
373 2010-05-27 Joel Brobecker <brobecker@adacore.com>
375 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
376 by call to value_contents.
378 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
380 * MAINTAINERS: Add myself for write after approval privileges.
382 2010-05-26 Doug Evans <dje@google.com>
384 Allow python to find its files if moved from original location.
385 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
386 (GDB_AC_WITH_DIR): Call it.
387 * configure.ac: Define WITH_PYTHON_PATH if we can find the
388 python installation directory.
389 * config.in: Regenerate.
390 * configure: Regenerate.
391 * defs.h (python_libdir): Declare.
392 * main.c (python_libdir): Define.
393 (captured_main): Initialize python_libdir.
394 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
395 call Py_SetProgramName to make sure python can find its libraries
398 * configure.ac: Try to use python's distutils to fetch compilation
400 * configure: Regenerate.
401 * python/python-config.py: New file.
403 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
405 * ser-tcp.c (net_open): Check error return from socket() call by its
406 equality to -1 not by it being negative.
407 (net_close): Likewise.
409 2010-05-26 Pedro Alves <pedro@codesourcery.com>
411 * NEWS: Mention the `qRelocInsn' feature.
412 * gdbarch.sh (relocate_instruction): New.
413 * amd64-tdep.c (rip_relative_offset): New.
415 (amd64_relocate_instruction): New.
416 (amd64_init_abi): Install it.
417 * i386-tdep.c (append_insns): New.
418 (i386_relocate_instruction): New.
419 (i386_gdbarch_init): Install it.
420 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
421 * gdbarch.h, gdbarch.c: Regenerate.
423 2010-05-26 Tom Tromey <tromey@redhat.com>
425 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
426 (struct dwarf2_loclist_baton) <data>: Likewise.
427 * dwarf2loc.c (find_location_expression): Constify return type.
428 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
429 (dwarf2_loc_desc_needs_frame): Likewise.
430 (loclist_read_variable): Constify.
431 (loclist_describe_location): Likewise.
432 (loclist_tracepoint_var_ref): Likewise.
434 2010-05-25 Tom Tromey <tromey@redhat.com>
436 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
437 (dwarf_expr_frame_base_1): Likewise.
438 (read_pieced_value): Update.
439 (needs_frame_frame_base): Constify.
440 (dwarf2_tracepoint_var_loc): Likewise.
441 (dwarf2_tracepoint_var_access): Likewise.
442 (locexpr_describe_location_piece): Likewise.
443 (locexpr_describe_location_1): Likewise.
444 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
447 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
448 (dwarf_expr_eval, read_uleb128, read_sleb128)
449 (dwarf2_read_address): Update.
450 * dwarf2expr.c (dwarf_expr_eval): Constify.
451 (read_uleb128): Likewise.
452 (read_sleb128): Likewise.
453 (dwarf2_read_address): Likewise.
454 (require_composition): Likewise.
455 (execute_stack_op): Likewise.
456 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
458 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
460 (no_get_frame_base): Constify.
461 (execute_stack_op): Likewise.
462 (execute_cfa_program): Likewise.
463 (read_encoded_value): Likewise.
465 2010-05-25 Doug Evans <dje@google.com>
467 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
469 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
470 * event-loop.c: ... here.
471 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
473 (tui_getc): Pass correct value for `error' parameter to
476 Add python gdb.GdbError and gdb.string_to_argv.
477 * NEWS: Document them.
478 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
479 the exception is gdb.GdbError. Print a second traceback if there's
480 an error computing the error message.
481 (gdbpy_string_to_argv): New function.
482 * python/py-utils.c (gdbpy_obj_to_string): New function.
483 (gdbpy_exception_to_string): New function.
484 * python/python-internal.h (gdbpy_string_to_argv): Declare.
485 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
486 (gdbpy_gdberror_exc): Declare.
487 * python/python.c (gdbpy_gdberror_exc): New global.
488 (_initialize_python): Initialize gdbpy_gdberror_exc and create
490 (GdbMethods): Add string_to_argv.
492 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
494 * windows-nat.c (display_selector): Call GetLastError to give better
497 2010-05-24 Pedro Alves <pedro@codesourcery.com>
499 * config.in: Regenerate.
501 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
504 * target.c (push_target): Return only void. Remove the return value
506 * target.h (push_target): Return only void.
508 2010-05-23 Pedro Alves <pedro@codesourcery.com>
510 Update gnulib from latest git.
511 (250b80067c1e1d8faa0c42fb572f721975b929c5)
513 * gnulib/memcmp.c: Removed.
514 * gnulib/memchr.valgrind: New.
515 * gnulib/stddef.in.h: New.
516 * gnulib/Makefile.am: Updated.
517 * gnulib/memchr.c: Updated.
518 * gnulib/memmem.c: Updated.
519 * gnulib/stdint.in.h: Updated.
520 * gnulib/str-two-way.h: Updated.
521 * gnulib/string.in.h: Updated.
522 * gnulib/wchar.in.h: Updated.
524 * gnulib/extra/link-warning.h: Removed.
525 * gnulib/extra/c++defs.h: New.
526 * gnulib/extra/warn-on-use.h: New.
527 * gnulib/extra/arg-nonnull.h: Updated.
529 * gnulib/m4/extensions.m4: Updated.
530 * gnulib/m4/gnulib-cache.m4: Updated.
531 * gnulib/m4/gnulib-common.m4: Updated.
532 * gnulib/m4/gnulib-comp.m4: Updated.
533 * gnulib/m4/gnulib-tool.m4: Updated.
534 * gnulib/m4/include_next.m4: Updated.
535 * gnulib/m4/longlong.m4: Updated.
536 * gnulib/m4/memchr.m4: Updated.
537 * gnulib/m4/memmem.m4: Updated.
538 * gnulib/m4/stdint.m4: Updated.
539 * gnulib/m4/string_h.m4: Updated.
540 * gnulib/m4/memcmp.m4: Removed.
541 * gnulib/m4/onceonly_2_57.m4: Removed.
542 * gnulib/m4/00gnulib.m4: New.
543 * gnulib/m4/mmap-anon.m4: New.
544 * gnulib/m4/multiarch.m4: New.
545 * gnulib/m4/onceonly.m4: New.
546 * gnulib/m4/stddef_h.m4: New.
547 * gnulib/m4/warn-on-use.m4: New.
548 * gnulib/m4/wchar.m4: Removed.
549 * gnulib/m4/wchar_h.m4: New.
550 * gnulib/m4/wchar_t.m4: New.
551 * gnulib/m4/wint_t.m4: New.
553 * aclocal.m4: Regenerate.
554 * config.in: Likewise.
555 * configure: Likewise.
556 * gnulib/Makefile.in: Likewise.
558 2010-05-21 Tom Tromey <tromey@redhat.com>
560 * dwarf2loc.c (extract_bits_primitive): New function.
561 (extract_bits): Likewise.
562 (insert_bits): Likewise.
563 (copy_bitwise): Likewise.
564 (read_pieced_value): Do all operations in bits.
565 (write_pieced_value): Likewise.
566 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
567 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
568 Always use xrealloc to resize piece array.
569 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
570 <DW_OP_piece>: Update.
571 <DW_OP_bit_piece>: New case.
573 2010-05-21 Tom Tromey <tromey@redhat.com>
575 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
576 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
577 * dwarf2expr.h (enum dwarf_value_location)
578 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
579 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
580 (add_piece): Handle empty piece.
581 (execute_stack_op) <DW_OP_piece>: Handle
582 DWARF_VALUE_OPTIMIZED_OUT.
584 2010-05-21 Tom Tromey <tromey@redhat.com>
586 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
587 evaluate_subexp, not evaluate_subexp_with_coercion.
589 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
591 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
594 2010-05-21 Tom Tromey <tromey@redhat.com>
596 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
598 (write_pieced_value): Likewise.
600 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
602 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
603 and DW_TAG_volatile_type.
604 (new_symbol): Likewise.
606 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
608 * p-valprint.c (pascal_val_print): Call get_array_bounds
609 to obtain the number of elements in an array.
611 2010-05-19 Doug Evans <dje@google.com>
613 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
615 * python.c (source_python_script): Add comment.
616 (source_python_script_for_objfile): Remove unnecessary call to
619 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
620 Sergio Durigan Junior <sergiodj@redhat.com>
623 * parse.c (exp_iterate): Use operator_length wrapper function.
625 2010-05-18 Michael Snyder <msnyder@vmware.com>
627 * ada-lang.c: White space.
628 * ada-typeprint.c: White space.
629 * ada-valprint.c: White space.
630 * addrmap.c: White space.
631 * auxv.c: White space.
632 * ax-gdb.c: White space.
634 2010-05-18 Hui Zhu <teawater@gmail.com>
636 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
638 (inferior_call_waitpid): Move make_cleanup out of check.
639 Check the return of waitpid.
640 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
642 2010-05-17 Michael Snyder <msnyder@vmware.com>
644 * tui/tui.c: White space.
645 * tui/tui-data.c: White space.
646 * tui/tui-disasm.c: White space.
647 * tui/tui-file.c: White space.
648 * tui/tui-interp.c: White space.
649 * tui/tui-main.c: White space.
650 * tui/tui-out.c: White space.
651 * tui/tui-regs.c: White space.
652 * tui/tui-source.c: White space.
653 * tui/tui-stack.c: White space.
654 * tui/tui-win.c: White space.
655 * tui/tui-winsource.c: White space.
657 * procfs.c: White space.
659 * python/py-auto-load.c: White space.
660 * python/py-block.c: White space.
661 * python/py-breakpoint.c: White space.
662 * python/py-cmd.c: White space.
663 * python/py-function.c: White space.
664 * python/py-lazy-string.c: White space.
665 * python/py-objfile.c: White space.
666 * python/py-param.c: White space.
667 * python/py-prettyprint.c: White space.
668 * python/py-progspace.c: White space.
669 * python/py-symtab.c: White space.
670 * python/python.c: White space.
671 * python/py-type.c: White space.
672 * python/py-utils.c: White space.
673 * python/py-value.c: White space.
675 * mi/mi-cmd-break.c: White space.
676 * mi/mi-cmd-env.c: White space.
677 * mi/mi-cmds.c: White space.
678 * mi/mi-cmd-stack.c: White space.
679 * mi/mi-cmd-var.c: White space.
680 * mi/mi-console.c: White space.
681 * mi/mi-getopt.c: White space.
682 * mi/mi-interp.c: White space.
683 * mi/mi-main.c: White space.
684 * mi/mi-out.c: White space.
685 * mi/mi-parse.c: White space.
687 * cli/cli-cmds.c: White space.
688 * cli/cli-decode.c: White space.
689 * cli/cli-dump.c: White space.
690 * cli/cli-interp.c: White space.
691 * cli/cli-logging.c: White space.
692 * cli/cli-script.c: White space.
693 * cli/cli-setshow.c: White space.
695 * valarith.c: White space.
696 * valops.c: White space.
697 * valprint.c: White space.
698 * value.c: White space.
699 * varobj.c: White space.
700 * xcoffread.c: White space.
701 * xml-support.c: White space.
702 * xml-tdesc.c: White space.
704 2010-05-17 Andreas Schwab <schwab@redhat.com>
707 * c-lang.c (c_printstr): Compute real length of NUL terminated
710 2010-05-17 Joel Brobecker <brobecker@adacore.com>
712 * parse.c (parse_exp_in_context): When block is not NULL, use
713 its associated language to parse the expression instead of
714 the current_language.
716 2010-05-17 Joel Brobecker <brobecker@adacore.com>
718 * jv-lang.c (java_lookup_class): Remove commented out code.
719 (type_from_class): Likewise.
720 (java_op_print_tab): Remove commented-out elements.
722 2010-05-17 Joel Brobecker <brobecker@adacore.com>
724 * ada-lang.c (to_fixed_range_type): The the raw index type as
725 argument instead of the raw type name. Remove orig_type parameter.
726 Update calls throughout.
727 (ada_fixup_array_indexes_type): New function.
728 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
729 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
730 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
731 Remove name parameter.
732 (print_array_type): Add call to ada_fixup_array_indexes_type.
733 Update calls to print_range_type.
734 (ada_print_type): Update calls to print_range_type.
736 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
738 * dwarf2read.c (read_set_type): Set type length if
739 DW_AT_byte_size attribute is present.
741 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
743 * p-valprint.c (pascal_val_print): Handle set type if range limits
744 are undefined but size is known.
746 2010-05-17 Pedro Alves <pedro@codesourcery.com>
748 * procfs.c: Reformat.
750 2010-05-16 Michael Snyder <msnyder@vmware.com>
752 * target.c: White space.
753 * target-descriptions.c: White space.
754 * target-memory.c: White space.
755 * thread.c: White space.
756 * top.c: White space.
757 * tracepoint.c: White space.
758 * trad-frame.c: White space.
759 * tramp-frame.c: White space.
760 * ui-file.c: White space.
761 * ui-out.c: White space.
762 * user-regs.c: White space.
763 * utils.c: White space.
765 * scm-exp.c: White space.
766 * scm-lang.c: White space.
767 * scm-valprint.c: White space.
768 * sentinel-frame.c: White space.
769 * ser-base.c: White space.
770 * ser-go32.c: White space.
771 * serial.c: White space.
772 * ser-mingw.c: White space.
773 * ser-pipe.c: White space.
774 * ser-tcp.c: White space.
775 * ser-unix.c: White space.
776 * solib.c: White space.
777 * solib-darwin.c: White space.
778 * solib-frv.c: White space.
779 * solib-irix.c: White space.
780 * solib-osf.c: White space.
781 * solib-pa64.c: White space.
782 * solib-som.c: White space.
783 * solib-spu.c: White space.
784 * solib-svr4.c: White space.
785 * solib-target.c: White space.
786 * source.c: White space.
787 * stabsread.c: White space.
788 * stack.c: White space.
789 * std-regs.c: White space.
790 * symfile.c: White space.
791 * symmisc.c: White space.
792 * symtab.c: White space.
794 2010-05-16 Michael Snyder <msnyder@vmware.com>
796 * source.c (_initialize_source): Add "rev" as an abbreviation
797 for the "reverse-search" command.
799 2010-05-16 Michael Snyder <msnyder@vmware.com>
801 * record.c: White space.
802 * regcache.c: White space.
803 * reggroups.c: White space.
804 * remote-fileio.c: White space.
805 * remote-m32r-sdi.c: White space.
806 * remote-mips.c: White space.
807 * remote-sim.c: White space.
808 * remote.c: White space.
809 (process_g_packet): Remove orphan braces.
811 2010-05-15 Michael Snyder <msnyder@vmware.com>
813 * parse.c: White space.
814 * p-lang.c: White space.
815 * posix-hdep.c: White space.
816 * printcmd.c: White space.
817 * progspace.c: White space.
818 * prologue-value.c: White space.
819 * psymtab.c: White space.
820 * p-typeprint.c: White space.
821 * p-valprint.c: White space.
823 * objc-lang.c: White space.
824 * objfiles.c: White space.
825 * observer.c: White space.
826 * osabi.c: White space.
827 * osdata.c: White space.
829 * m2-lang.c: White space.
830 * m2-valprint.c: White space.
831 * macrocmd.c: White space.
832 * macroexp.c: White space.
833 * macroscope.c: White space.
834 * macrotab.c: White space.
835 * main.c: White space.
836 * maint.c: White space.
837 * mdebugread.c: White space.
838 * memattr.c: White space.
839 * minsyms.c: White space.
840 * monitor.c: White space.
842 2010-05-14 Michael Snyder <msnyder@vmware.com>
844 * jv-lang.c: White space.
845 * jv-typeprint.c: White space.
846 * jv-valprint.c: White space.
847 * language.c: White space.
848 * libunwind-frame.c: White space.
849 * linespec.c: White space.
850 * linux-nat.c: White space.
851 * linux-record.c: White space.
852 * linux-thread-db.c: White space.
854 * infcall.c: White space.
855 * inf-child.c: White space.
856 * infcmd.c: White space.
857 * inferior.c: White space.
858 * inf-loop.c: White space.
859 * inflow.c: White space.
860 * inline-frame.c: White space.
861 * interps.c: White space.
863 * gcore.c: White space.
864 * gdb.c: White space.
865 * gdbtypes.c: White space.
866 * gnu-nat.c: White space.
867 * gnu-v2-abi.c: White space.
868 * gnu-v3-abi.c: White space.
870 * findcmd.c: White space.
871 * findvar.c: White space.
872 * fork-child.c: White space.
873 * frame-base.c: White space.
874 * frame.c: White space.
875 * frame-unwind.c: White space.
876 * f-valprint.c: White space.
878 * elfread.c: White space.
879 * environ.c: White space.
880 * eval.c: White space.
881 * event-loop.c: White space.
882 * event-top.c: White space.
883 * exceptions.c: White space.
884 * exec.c: White space.
885 * expprint.c: White space.
887 * dbxread.c: White space.
888 * dcache.c: White space.
889 * disasm.c: White space.
890 * doublest.c: White space.
891 * dsrec.c: White space.
892 * dummy-frame.c: White space.
893 * dwarf2expr.c: White space.
894 * dwarf2-frame.c: White space.
895 * dwarf2loc.c: White space.
896 * dwarf2read.c: White space.
898 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
902 * python/py-value.c (valpy_hash): New function.
903 (value_object_type): Register valpy_hash.
905 2010-05-14 Hui Zhu <teawater@gmail.com>
906 Michael Snyder <msnyder@vmware.com>
908 * linux-fork.c (gdbthread.h): New include.
909 (fork_info): Add parent_ptid.
910 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
912 (delete_checkpoint_command): Call inferior_call_waitpid.
913 (checkpoint_command): Set parent_ptid.
915 2010-05-13 Michael Snyder <msnyder@vmware.com>
917 * dictionary.c: Re-indent to GNU coding standard.
919 * charset.c: White space.
920 * c-lang.c: White space.
921 * cli-out.c: White space.
922 * coffread.c: White space.
923 * complaints.c: White space.
924 * completer.c: White space.
925 * corefile.c: White space.
926 * corelow.c: White space.
927 * cp-abi.c: White space.
928 * cp-namespace.c: White space.
929 * cp-support.c: White space.
930 * cp-valprint.c: White space.
931 * c-typeprint.c: White space.
932 * c-valprint.c: White space.
933 * blockframe.c: White space.
934 * breakpoint.c: White space.
935 * buildsym.c: White space.
936 * blockframe.c: White space.
937 * bcache.c: White space.
938 * gdbarch.sh: White space, add blank lines.
939 * arch-utils.c: Ditto.
940 * gdbarch.c: Regenerate.
941 * frame.c: White space, add blank lines.
942 * stack.c: White space, add blank lines.
943 (initialize_stack): Remove long-dead code.
945 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
948 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
949 (locexpr_read_variable, loclist_read_variable): Update the callers.
951 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
954 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
955 Remove check of NULL returned by tag_type_to_type.
956 (die_containing_type): Remove variable type. Remove type_die variable
957 initialization. Remove check of NULL returned by tag_type_to_type.
959 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
962 * gdbtypes.c (lookup_struct_elt_type): Also lookup
963 names of unnamed structures or unions.
965 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
967 * procfs.c (proc_watchpoint_address): New function.
968 (procfs_stopped_by_watchpoint): Remove useless check after
969 find_procinfo_or_die call.
970 (procfs_stopped_data_address): New function.
971 (procfs_use_watchpoints): Register new watchpoint related function.
973 2010-05-11 Tom Tromey <tromey@redhat.com>
975 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
977 2010-05-10 Michael Snyder <msnyder@vmware.com>
979 * utils.c: White space cleanup.
981 2010-05-10 Tom Tromey <tromey@redhat.com>
983 * eval.c (ptrmath_type_p): Add 'lang' argument.
984 (evaluate_subexp_standard): Update.
985 (evaluate_subexp_with_coercion): Update.
986 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
988 2010-05-10 Michael Snyder <msnyder@vmware.com>
990 * utils.c (do_fclose_cleanup) Restore local variable.
992 2010-05-09 Doug Evans <dje@google.com>
994 * record.c (init_record_core_ops): Rename record_core to record-core.
996 2010-05-08 Joel Brobecker <brobecker@adacore.com>
998 Implement task switching on pa-hpux.
999 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1000 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1002 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1004 * valops.c (find_overload_match): Add missing i18n markup.
1006 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1008 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1010 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1012 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1013 list for the obconcat call.
1014 * mdebugread.c (parse_symbol): Likewise.
1015 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1017 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1018 New variable ap. Remove variables len and val.
1019 * symfile.h (obconcat): Likewise for the prototype.
1021 2010-05-07 Michael Snyder <msnyder@vmware.com>
1023 * python/python.c (execute_gdb_command): Remove unused variables.
1024 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1025 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1026 Remove unused variable.
1027 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1028 (cmdpy_completer): Remove unused variable.
1029 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1030 * python/py-function.c (fnpy_call): Remove unused variable.
1031 * python/py-objfile.c (objfile_to_objfile_object):
1032 Remove unused variable.
1033 * python/py-param.c (parmpy_init): Remove unused variable.
1034 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1035 Remove unused variable.
1036 (gdbpy_default_visualizer): Remove unused variable.
1037 * python/py-progspace.c (pspace_to_pspace_object):
1038 Remove unused variable.
1039 * python/py-symtab.c (symtab_and_line_to_sal_object):
1040 Remove unused variable.
1041 * python/py-type.c (typy_template_argument):
1042 Remove unused variable.
1043 * python/py-value.c (valpy_string): Remove unused variable.
1044 (convert_value_from_python): Remove unused variables.
1046 2010-05-07 Michael Snyder <msnyder@vmware.com>
1048 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1049 and use it to compute variable 't1'.
1051 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1053 * ada-lang.c (assign_aggregate): Remove unused variable.
1055 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1058 * valops.c (find_overload_match): Handle fsym == NULL case.
1059 Add int no_adl argument.
1060 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1062 Add int no_adl argument.
1063 (find_oload_champ_namespace): Add int no_adl argument.
1064 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1066 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1067 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1068 Evaluate arguments and use them to perform ADL lookup.
1069 Pass no_adl argument to find_overload_match.
1070 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1071 * cp-support.h: Added prototype for
1072 make_symbol_overload_list_namespace.
1073 * cp-support.c (make_symbol_overload_list_namespace): New function.
1074 (make_symbol_overload_list_adl_namespace): New function.
1075 (make_symbol_overload_list_adl): New function.
1076 (make_symbol_overload_list_using): Moved code to add function to
1077 overload set to make_symbol_overload_list_namespace.
1078 * c-exp.y: create UNKNOWN_CPP_NAME token.
1079 Add parse rule for ADL functions.
1080 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1082 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1084 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1087 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1089 Implement task switching on solaris targets.
1090 * sol-thread.c (thread_db_find_thread_from_tid)
1091 (sol_get_ada_task_ptid): New functions.
1092 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1094 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1096 * remote.c (remote_query_supported_append): Use reconcat.
1097 (remote_query_supported): Install a cleanup. Use reconcat.
1099 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1101 * gdbarch.sh (qsupported): Delete.
1102 * gdbarch.h, gdbarch.c: Regenerate.
1103 * remote.c (remote_query_supported): Remove use of
1106 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1108 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1111 2010-05-06 Michael Snyder <msnyder@vmware.com>
1113 * xml-support.c (xinclude_start_include): Delete unused variable.
1114 (xml_process_xincludes): Delete unused variable.
1115 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1116 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1117 (tdesc_find_arch_register): Delete unused variable.
1118 (tdesc_use_registers): Delete unused variable.
1119 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1120 * inferior.c (print_inferior): Delete unused variable.
1121 * record.c (record_open_1): Delete unused variable.
1122 (record_restore): Delete unused variable.
1123 (cmd_record_save): Delete unused variable.
1124 * gcore.c (derive_heap_segment): Delete unused variable.
1125 (objfile_find_memory_regions): Use unused variable.
1126 * jit.c (jit_inferior_init): Delete unused variable.
1127 * progspace.c (clone_program_space): Delete unused variable.
1128 (pspace_empty_p): Delete unused variable.
1130 * frame-unwind.c (frame_unwind_find_by_frame):
1131 Delete unused variable.
1132 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1133 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1134 (method_name_from_physname): Delete unused variable.
1135 (cp_func_name): Delete unused variable.
1136 (cp_validate_operator): Delete unused variable.
1137 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1138 Delete unused variable.
1139 * trad-frame.c (trad_frame_get_prev_register):
1140 Delete unused variable.
1141 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1143 * serial.c (serial_for_fd): Delete unused variable.
1144 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1145 * top.c (execute_command): Delete unused variable.
1146 (init_main): Delete unused variable.
1147 * utils.c (do_fclose_cleanup): Delete unused variable.
1148 (do_all_inferior_continuations): Delete unused variable.
1149 (initialize_utils): Delete unused variable.
1150 (internal_problem_mode): Delete unused global.
1151 * frame.c (get_prev_frame): Delete unused global.
1152 (get_frame_locals_address): Delete unused global.
1153 (get_frame_args_address): Delete unused global.
1155 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1156 (pascal_type_print_varspec_prefix): Delete unused variable.
1157 * f-typeprint.c (f_type_print_base): Delete unused variable.
1158 (f_type_print_varspec_suffix): Delete unused variable.
1159 * m2-typeprint.c (m2_print_type): Delete unused variable.
1160 (m2_long_set): Delete unused variable.
1161 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1162 * d-valprint.c (dynamic_array_type): Delete unused variable.
1163 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1164 Delete unused variable.
1165 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1166 * m2-valprint.c (m2_val_print): Delete unused variable.
1168 * ui-out.c (ui_out_field_int): Delete unused variable.
1169 (ui_out_field_fmt_int): Delete unused variable.
1170 * varobj.c (varobj_list_children): Delete unused variable.
1171 (varobj_set_value): Delete unused variable.
1172 (install_new_value_visualizer): Delete unused variable.
1173 (varobj_set_visualizer): Delete unused variable.
1174 (varobj_update): Delete unused variable.
1175 (varobj_editable_p): Delete unused variable.
1176 (c_value_of_root): Delete unused variable.
1177 (cplus_describe_child): Delete unused variable.
1179 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1180 (decode_constrained_packed_array_type): Delete unused variable.
1181 (add_defn_to_vec): Delete unused variable.
1182 (symbol_completion_match): Delete unused variable.
1183 (value_tag_from_contents_and_address): Delete unused variable.
1184 (ada_evaluate_subexp): Delete unused variable.
1185 * c-lang.c (classify_type): Delete unused variable.
1186 * f-lang.c (f_printstr): Delete unused variable.
1187 * objc-lang.c (objc_printstr): Delete unused variable.
1188 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1189 * jv-lang.c (type_from_class): ifdef unused variable.
1190 (java_class_name_from_physname): Delete unused variable.
1191 * m2-lang.c (m2_printstr): Delete unused variable.
1193 * objfiles.c (objfile_relocate): Delete unused variable.
1194 * maint.c (_initialize_maint_cmds): Delete unused variable.
1195 * demangle.c (_initialize_demangler): Delete unused variable.
1196 * corefile.c (reopen_exec_file): Delete unused variable.
1197 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1198 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1200 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1201 * memattr.c (mem_delete): Delete unused variable.
1202 (invalidate_target_mem_regions): Delete unused variable.
1203 * mem-break.c (default_memory_insert_breakpoint):
1204 Delete unused variable.
1205 * target.c (target_get_osdata): Delete unused variable.
1206 * parse.c (length_of_subexp): Delete unused variable.
1207 (prefixify_subexp): Delete unused variable.
1208 (exp_iterate): Delete unused variable.
1209 * reverse.c (delete_bookmark_command): Delete unused variable.
1211 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1212 * macroexp.c (gather_arguments): Delete unused variable.
1213 (substitute_args): Delete unused variable.
1214 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1215 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1216 (_initialize_gdbarch): Delete unused variable.
1217 * gdbarch.c, gdbarch.h: Regenerate.
1218 * arch-utils.c (initialize_current_architecture):
1219 Delete unused variable.
1220 (_initialize_gdbarch_utils): Delete unused variable.
1221 * gdbtypes.c (make_cv_type): Delete unused variable.
1222 (make_type_with_address_space): Delete unused variable.
1224 * linespec.c (decode_compound): Delete unused variable.
1225 * dictionary.c (iterator_next_hashed): Delete unused variable.
1226 * infcall.c (call_function_by_hand): Delete unused variable.
1227 * infcmd.c (step_1): Delete unused variable.
1228 (registers_info): Delete unused variable.
1229 (attach_command): Delete unused variable.
1230 * infrun.c (follow_exec): Delete unused variable.
1231 (handle_step_into_function_backwards): Delete unused variable.
1232 (_initialize_infrun): Delete unused variable.
1233 * stack.c (parse_frame_specification_1): Delete unused variable.
1234 (frame_info): Delete unused variable.
1235 (backtrace_command_1): Delete unused variable.
1236 (catch_info): Delete unused variable.
1238 * eval.c (evaluate_subexp_standard): Delete unused variable.
1239 * valops.c (value_cast_pointers): Delete unused variable.
1240 (value_dynamic_cast): Delete unused variable.
1241 (value_array): Delete unused variable.
1242 (find_overload_match): Delete unused variable.
1243 * valarith.c (value_subscript): Delete unused variable.
1244 (value_binop): Delete unused variable.
1245 * valprint.c (_initialize_valprint): Delete unused variable.
1246 * printcmd.c (print_command_1): Delete unused variable.
1247 (address_info): Delete unused variable.
1248 (printf_command): Delete unused variable.
1250 * auxv.c (target_auxv_search): Delete unused variable.
1251 * blockframe.c (get_frame_block): Delete unused variable.
1252 * regcache.c (regcache_cpy): Delete unused variable.
1253 (regcache_cpy_no_passthrough): Delete unused variable.
1254 * charset.c (wchar_iterate): Delete unused variable.
1255 (find_charset_names): Delete unused variable.
1256 (_initialize_charset): Delete unused variable.
1257 * disasm.c (do_mixed_source_and_assembly):
1258 Delete unused variable.
1259 * source.c (set_default_source_symtab_and_line):
1260 Delete unused variable.
1261 (set_substitute_path_command): Delete unused variable.
1262 * value.c (preserve_values): Delete unused variable.
1263 (value_from_double): Delete unused variable.
1265 2010-05-05 Michael Snyder <msnyder@vmware.com>
1267 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1268 (find_last_source_symtab_from_partial): Delete unused variable.
1269 * symfile.c (place_section): Delete unused variable.
1270 (default_symfile_offsets): Delete unused variable.
1271 (get_debug_link_info): Delete unused variable.
1272 (find_separate_debug_file_by_debuglink): Delete unused variable.
1273 (add_symbol_file_command): Delete unused variable.
1274 (symfile_find_segment_sections): Delete unused variable.
1275 * symmisc.c (free_symtab): Delete unused variable.
1276 (dump_symtab_1): Delete unused variable.
1277 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1278 (find_pc_sect_symtab): Delete unused variable.
1279 (skip_prologue_using_lineinfo): Delete unused variable.
1280 (sources_info): Delete unused variable.
1281 (completion_list_add_name): Delete unused variable.
1282 (expand_line_sal): Delete unused variable.
1284 * breakpoint.c (validate_commands_for_breakpoint):
1285 Delete unused variables.
1286 (insert_catchpoint): Delete unused variable.
1287 (update_watchpoint): Delete unused variable.
1288 (insert_bp_location): Delete unused variable.
1289 (insert_breakpoint_locations): Delete unused variable.
1290 (remove_breakpoint_1): Delete unused variable.
1291 (software_breakpoint_inserted_here_p): Delete unused variable.
1292 (watchpoints_triggered): Delete unused variable.
1293 (bpstat_check_watchpoint): Delete unused variable.
1294 (bpstat_stop_status): Delete unused variable.
1295 (print_one_breakpoint_location): Delete unused variable.
1296 (allocate_bp_location): Delete unused variable.
1297 (create_breakpoint): Delete unused variable.
1298 (watch_command_1): Delete unused variable.
1299 (catch_exception_command_1): Delete unused variable.
1300 (catch_ada_exception_command): Delete unused variable.
1301 (delete_breakpoint): Delete unused variable.
1302 (breakpoint_re_set_one): Delete unused variable.
1303 (do_enable_breakpoint): Delete unused variable.
1305 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1307 * amd64-tdep.c: Include disasm.h.
1308 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1309 (amd64_insn_length): Moved to disasm.c and renamed.
1310 (fixup_riprel): Adjust.
1311 * disasm.c (do_ui_file_delete): New.
1312 (gdb_insn_length): New.
1313 (gdb_buffered_insn_length_fprintf)
1314 (gdb_buffered_insn_length_init_dis)
1315 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1317 * disasm.h (gdb_insn_length): Declare.
1318 (gdb_buffered_insn_length): Declare.
1320 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1322 * remote.c (clear_threads_parsing_context): New.
1323 (remote_threads_info): Delete unused null_cleanup. Install a
1324 cleanup to clear the threads_parsing_context in case parsing
1327 2010-05-05 Michael Snyder <msnyder@vmware.com>
1329 * c-exp.y (parse_string_or_char): Delete unused variable.
1330 (c_lex): Delete unused variable.
1331 * cp-name-parser.y (cpname_lex): Delete unused variable.
1332 * ada-exp.y (find_primitive_type): Delete unused variable.
1333 (write_var_or_type): Delete unused variable.
1334 * jv-exp.y (java_parse): Delete unused variable.
1335 (push_expression_name): Delete unused variable.
1336 * p-exp.y (pascal_lex): Delete unused variable.
1338 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1340 * remote.c (remote_threads_info): Really revert previous previous
1343 2010-05-05 Michael Snyder <msnyder@vmware.com>
1345 * elfread.c (elf_symtab_read): Delete unused variable.
1346 (find_separate_debug_file_by_buildid): Delete unused variables.
1347 (elf_symfile_read): Delete unused variable.
1349 * coffread.c (coff_symfile_read): Delete unused variables.
1351 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1352 (read_pe_exported_syms): Delete unused variable.
1354 * stabsread.c (define_symbol): Delete unused variable.
1356 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1357 (process_psymtab_comp_unit): Delete unused variable.
1358 (dwarf2_build_psymtabs_hard): Delete unused variable.
1359 (load_partial_comp_unit): Delete unused variable.
1360 (create_all_comp_units): Delete unused variable.
1361 (scan_partial_symbols): Delete unused variable.
1362 (add_partial_symbol): Delete unused variable.
1363 (add_partial_namespace): Delete unused variable.
1364 (add_partial_enumeration): Delete unused variable.
1365 (load_full_comp_unit): Delete unused variable.
1366 (process_full_comp_unit): Delete unused variable.
1367 (read_file_scope): Delete unused variable.
1368 (read_type_unit_scope): Delete unused variable.
1369 (process_structure_scope): Delete unused variable.
1370 (process_enumeration_scope): Delete unused variable.
1371 (read_tag_ptr_to_member_type): Delete unused variable.
1372 (read_typedef): Delete unused variable.
1373 (read_partial_die): Delete unused variable.
1374 (decode_locdesc): Delete unused variable.
1375 (zeroed_partial_die): Delete unused global variable.
1377 * tui/tui-interp.c (_initialize_tui_interp):
1378 Delete unused variable.
1379 * tui/tui-regs.c tui_display_registers_from):
1380 Delete unused variable.
1381 (tui_check_register_values): Delete unused variable.
1382 (tui_register_format): Delete unused variable.
1383 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1384 * tui/tui-windata.c (tui_display_data_from_line):
1385 Delete unused variables.
1386 (tui_vertical_data_scroll): Delete unused variables.
1388 2010-05-05 Michael Snyder <msnyder@vmware.com>
1390 * remote.c (remote_threads_info): Revert questionable part of
1391 the previous change.
1393 2010-05-05 Michael Snyder <msnyder@vmware.com>
1395 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1396 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1397 (mi_cmd_var_list_children): Delete unused variable.
1398 (varobj_update_one): Delete unused variable.
1399 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1400 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1401 Delete unused variable.
1402 (mi_cmd_stack_list_variables): Delete unused variable.
1403 (list_args_or_locals): Delete unused variable.
1404 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1405 Delete unused variables.
1406 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1407 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1408 Delete unused variable.
1409 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1410 (mi_cmd_interpreter_exec): Delete unused variable.
1411 (mi_on_normal_stop): Delete unused variable.
1412 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1413 (print_one_inferior): Delete unused variables.
1414 (mi_execute_command): Delete unused variable.
1415 (mi_cmd_execute): Delete unused variable.
1416 (timestamp): Delete unused variable.
1418 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1419 (restore_binary_file): Delete unused variable.
1420 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1421 * cli/cli-script.c (define_command): Delete unused variables.
1422 (recurse_read_control_structure): Delete unused variable.
1423 (script_from_file): Delete unused variable.
1424 * cli/cli-cmds.c (complete_command): Delete unused variable.
1425 (disassemble_command): Delete unused variable.
1427 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1428 * tracepoint.c (delete_trace_variable_command):
1429 Delete unused variables.
1430 (encode_actions_1): Delete unused variables.
1431 (start_tracing): Delete unused variable.
1432 (trace_status_mi): Delete unused variable.
1433 (tfind_1): Delete unused variable.
1434 (trace_find_pc_command): Delete unused variable.
1435 (trace_find_line_command): Delete unused variables.
1436 (trace_find_range_command): Delete unused variables.
1437 (trace_find_outside_command): Delete unused variables.
1438 (parse_tracepoint_definition): Delete unused variables.
1439 (tfile_fetch_registers): Delete unused variable.
1441 * dcache.c (dcache_init): Delete unused variable.
1442 (dcache_info): Delete unused variable.
1444 * remote.c (remote_threads_info): Delete unused variable.
1445 (process_stop_reply) :Delete unused variable.
1446 (remote_get_trace_status): Delete unused variables.
1448 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1449 (thread_from_lwp): Delete unused variable.
1450 (enable_thread_event_reporting): Delete unused variable.
1451 (check_for_thread_db): Delete unused variables.
1452 (thread_db_find_new_threads_2): Delete unused variable.
1454 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1455 (checkpoint_command): Delete unused variable.
1456 (linux_fork_context): Delete unused variables.
1458 * linux-nat.c (linux_parent_pid): Delete unused global variable.
1459 (linux_tracefork_child): Delete unused variable.
1460 (linux_child_follow_fork): Delete unused variable.
1461 (linux_nat_detach): Delete unused variable.
1462 (linux_handle_extended_wait): Delete unused variable.
1463 (linux_nat_has_pending_sigint): Delete unused variable.
1464 (linux_nat_find_memory_regions): Delete unused variable.
1465 (linux_nat_make_corefile_notes): Delete unused variables.
1466 (linux_nat_info_proc_cmd): Delete unused variable.
1467 (linux_proc_pending_signals): Delete unused variable.
1468 (linux_nat_stop_lwp): Delete unused variables.
1469 (_initialize_linux_nat): Delete unused variable.
1471 * ser-pipe.c (pipe_ops): Delete unused global variable.
1473 * linux-record.c (record_linux_system_call):
1474 Delete unused variables.
1476 * corelow.c (core_xfer_partial): Delete unused variables.
1478 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1479 (svr4_solib_create_inferior_hook): Add ifdef around
1480 conditionally-used variable declarations.
1482 * solib.c (solib_find): Delete unused variable.
1483 (free_so_symbols): Delete unused variable.
1484 (info_sharedlibrary_command): Delete unused variable.
1485 (reload_shared_libraries_1): Delete unused variable.
1486 (_initialize_solib): Delete unused variable.
1488 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1489 (i386_collect_xstateregset): Delete unused variable.
1490 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1492 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1493 Delete unused variable 'type'.
1495 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1497 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
1498 ada-lang.c: Remove comment mentioning these macros.
1499 * m2-exp.y: Delete commented out code.
1501 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1503 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1505 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1507 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1509 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1510 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1512 (cleanup_kernel_helper_return): Likewise.
1513 * arm-tdep.c (copy_unmodified): Likewise.
1514 (copy_preload): Likewise.
1515 (copy_copro_load_store): Likewise.
1516 (cleanup_branch): Likewise.
1517 (copy_b_bl_blx): Likewise.
1518 (copy_bx_blx_reg): Likewise.
1519 (copy_alu_imm): Likewise.
1520 (copy_alu_reg): Likewise.
1521 (copy_alu_shifted_reg): Likewise.
1522 (cleanup_load): Likewise.
1523 (cleanup_store): Likewise.
1524 (cleanup_block_load_pc): Likewise.
1525 (cleanup_svc): Likewise.
1526 (copy_undef): Likewise.
1527 (copy_unpred): Likewise.
1528 * remote.c (register_remote_support_xml): Likewise.
1530 2010-05-05 Hui Zhu <teawater@gmail.com>
1532 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1534 2010-05-04 Mark Kettenis <kettenis@gnu.org>
1536 * remote.c (register_remote_support_xml)
1537 (remote_query_supported_append, remote_query_supported): Add cast
1538 to NULL used as sentinel.
1539 * tracepoint.c (tvariables_info_1): Likewise.
1540 * utils.c (add_internal_problem_command): Likewise.
1542 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1544 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1545 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1546 registers gracefully.
1548 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1550 * exec.c (print_section_info): Display entry point without arch
1553 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1556 * printcmd.c (x_command): Only dereference once implicitly for
1559 2010-05-03 Doug Evans <dje@google.com>
1561 * event-loop.c (gdb_timer): Delete unused global.
1562 (create_timer): Update.
1564 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1566 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1567 CURRENT->DECLARATION case.
1568 * cp-support.h (struct using_direct): Provide extended comment.
1570 2010-05-03 Mark Kettenis <kettenis@gnu.org>
1572 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1573 HPPABSD_SIZEOF_GREGS.
1574 (HPPAOBSD_SIZEOF_FPREGS): New define.
1575 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1576 (hppaobsd_supply_fpregset): New function.
1577 (hppaobsd_gregset): Renamed from hppabsd_gregset.
1578 (hppaobsd_fpregset): New variable.
1579 (hppaobsd_regset_from_core_section): Handle floating-point registers.
1580 (_initialize_hppabsd_tdep): Remove spurious blank line.
1582 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1585 * p-valprint.c (pascal_value_print): Always dereference a value with
1586 type code TYPE_CODE_REF.
1588 2010-05-03 Pedro Alves <pedro@codesourcery.com>
1590 * remote.c (remote_notice_signals): New.
1591 (remote_start_remote): In non-stop mode, update the remote end on
1592 which signals it can silently pass.
1593 (init_remote_ops): Install remote_notice_signals.
1595 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1597 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
1598 * command.h (error_no_arg): ... here. Remove NORETURN, change
1599 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1600 * defs.h (NORETURN, ATTR_NORETURN): Remove.
1601 (perror_with_name, verror, error, error_stream, vfatal, fatal)
1602 (internal_verror, internal_error, nomem): Remove NORETURN, change
1603 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1604 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1605 (throw_vfatal, throw_error): Remove NORETURN.
1606 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1607 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1608 (throw_error, deprecated_throw_reason): Remove NORETURN, change
1609 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1610 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1611 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1613 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1614 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1616 * target.c (tcomplain): Likewise.
1617 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1619 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1620 (internal_error, perror_with_name, nomem): Remove NORETURN.
1621 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1624 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1626 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1627 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1628 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1629 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1630 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1631 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1632 * complaints.h (complaint, internal_complaint): Likewise.
1633 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1634 (ATTR_FORMAT): Remove.
1635 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1636 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1637 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1638 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1639 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1640 (internal_error, internal_vwarning, internal_warning, warning)
1641 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1642 * disasm.c (fprintf_disasm): Likewise.
1643 * exceptions.c (throw_it): Likewise.
1644 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1645 (throw_error): Likewise.
1646 * language.h (type_error, range_error): Likewise.
1647 * linespec.c (cplusplus_error): Likewise.
1648 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1649 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1650 * monitor.c (monitor_debug): Likewise.
1651 * parser-defs.h (parser_fprintf): Likewise.
1652 * serial.h (serial_printf): Likewise.
1653 * tui/tui-hooks.c (tui_query_hook): Likewise.
1654 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1655 (uo_message): Likewise.
1656 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1657 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1659 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1661 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1663 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1664 (cli_table_header, cli_begin, cli_end, cli_field_int)
1665 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1666 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1667 Delete forward declarations.
1668 (cli_ui_out_impl): Move below the callbacks.
1669 (_initialize_cli_out): Delete.
1671 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1673 * README: Use consistent `GDB' and `GDBserver' spellings.
1675 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1679 2010-05-01 Pedro Alves <pedro@codesourcery.com>
1681 * infrun.c (prepare_for_detach): In non-stop, context switch to
1682 the thread that got the event before handling the event.
1684 2010-04-30 Tom Tromey <tromey@redhat.com>
1686 * symtab.c (symbol_set_names): Fix typo.
1688 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1690 * python/py-param.c (parm_constants): Avoid ARI warning
1691 by adding ARI comment.
1692 (parmpy_init): Likewise.
1694 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1696 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1697 and created type for re-use.
1699 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1701 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1703 2010-04-29 Doug Evans <dje@google.com>
1705 * ser-base.h (reschedule): Delete prototype.
1706 * ser-base.c (reschedule): Make static.
1708 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1710 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1711 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1712 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
1714 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
1717 2010-04-29 Pedro Alves <pedro@codesourcery.com>
1721 * regcache.c (registers_changed): Rename to ...
1722 (registers_changed_ptid): ... this, and only delete register cache
1723 entries matching the ptid filter argument.
1724 (registers_changed): Reimplement on top of registers_changed_ptid.
1725 * regcache.h (registers_changed_ptid): Declare.
1726 * target.c (target_resume): Flush register caches.
1728 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
1729 Tom Tromey <tromey@redhat.com>
1730 Thiago Jung Bauermann <bauerman@br.ibm.com>
1732 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1733 (SUBDIR_PYTHON_SRCS): Likewise.
1734 (py-parameter.o): New rule.
1735 * python/py-parameter.c: New file.
1736 * python/python-internal.h (gdbpy_initialize_parameter)
1737 (gdbpy_parameter, gdbpy_parameter_value)
1738 (gdbpy_parse_command_name): Declare.
1739 * python/py-cmd.c (parse_command_name): Rename to
1740 gdbpy_parse_command_name.
1741 (gdbpy_parse_command_name): Accept a starting list parameter and
1743 (cmdpy_init): Use gdbpy_parse_command_name.
1744 * python/python.c (parameter_to_python): Rename to
1745 gdbpy_parameter_to_python. Accept enum var_types and value.
1746 (gdbpy_parameter): Use gdbpy_parameter_value.
1747 (_initialize_python): Call gdbpy_initialize_parameters.
1749 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1751 * MAINTAINERS: Add myself for write after approval privileges.
1753 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
1756 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1757 (COMMON_OBS): Add d-lang.o d-valprint.o.
1758 (HFILES_NO_SRCDIR): Add d-lang.h.
1759 * NEWS: Mention D language support.
1760 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1761 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1762 * d-lang.c: New file.
1763 * d-lang.h: New file.
1764 * d-valprint.c: New file.
1765 * defs.h (enum language): Add language_d.
1766 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1767 * language.c (binop_result_type, integral_type, character_type)
1768 (string_type, boolean_type, structured_type): Add language_d.
1769 * symfile.c (init_filename_language_table): Add language_d.
1770 * symtab.c: Include d-lang.h.
1771 (symbol_init_language_specific, symbol_find_demangled_name)
1772 (symbol_natural_name, lookup_symbol_in_language)
1773 (symbol_demangled_name, symbol_matches_domain): Add language_d.
1775 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1777 * solib-svr4.c (solib_svr4_r_map): Expand function description.
1779 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1781 * symfile.c (init_filename_language_table): Register .dg files
1784 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1786 * gdbtypes.h (struct main_type): Expand comment about target_type
1789 2010-04-27 Pedro Alves <pedro@codesourcery.com>
1790 Tristan Gingold <gingold@adacore.com>
1792 * symfile.c (reread_symbols): Also search for file in libraries.
1795 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1797 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1798 in terms of configuration.
1800 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 * objfiles.c: Include solist.h.
1803 (free_all_objfiles): New variable so. Check stale solist objfiles.
1804 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1805 and no_shared_libraries.
1807 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1810 * python/py-auto-load.c (source_section_scripts): Remove trailing
1811 new-line in i18n string.
1813 2010-04-26 Doug Evans <dje@google.com>
1815 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1817 2010-04-26 Tom Tromey <tromey@redhat.com>
1819 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1822 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1824 Removal of config/i386/nm-i386sol2.h native configuration file.
1825 * config/i386/nm-i386sol2.h: Remove file.
1826 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1827 * config/i386/sol2-64.mh: Idem.
1828 * config/djgpp/fnchange.lst: Remove reference to that file.
1829 * Makefile.in (HFILES_NO_SRCDIR): Idem.
1831 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1833 PR breakpoints/11531.
1834 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1835 macro definition and related comment.
1836 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1837 (resume): Remove code and comment related to this macro.
1839 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1841 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1844 2010-04-24 Pedro Alves <pedro@codesourcery.com>
1846 * defs.h: Adjust comment.
1847 * filesystem.h, filesystem.c: New files.
1848 * Makefile.in (SFILES): Add filesystem.c.
1849 (COMMON_OBS): Add filesystem.o.
1850 * solib.c (solib_find): Handle DOS-based filesystems. Handle
1851 different target and host path flavours.
1852 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1853 has_dos_based_file_system on the gdbarch.
1854 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1855 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1856 * i386-tdep.c (i386_go32_init_abi): Ditto.
1857 * gdbarch.sh (has_dos_based_file_system): New.
1858 * gdbarch.h, gdbarch.c: Regenerate.
1859 * NEWS: Mention improved support for remote targets with DOS-based
1860 filesystems. Mention new `set/show target-file-system-kind'
1863 2010-04-23 Stan Shebs <stan@codesourcery.com>
1865 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1867 (struct agent_reqs): Remove.
1868 (ax_reg_mask): Declare.
1869 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1870 (free_agent_expr): Free reg_mask.
1871 (ax_print): Add scope and register mask info.
1872 (ax_reqs): Remove agent_reqs argument, use agent expression
1873 fields, and move part of register mask computation to...
1874 (ax_reg_mask): New function.
1875 * ax-gdb.c (gen_trace_static_fields): Call it.
1876 (gen_traced_pop): Ditto.
1877 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1878 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1879 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1880 (gen_eval_for_expr): Ditto, and require an rvalue.
1881 (agent_command): Call ax_reqs.
1882 (agent_eval_command): Ditto.
1883 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1884 (validate_action_line): Ditto.
1885 (collect_symbol): Ditto.
1886 (encode_actions_1): Ditto.
1888 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
1889 Paul Pluzhnikov <ppluzhnikov@google.com>
1890 Jan Kratochvil <jan.kratochvil@redhat.com>
1892 Fix deadlock on looped list of loaded shared objects.
1893 * solib-svr4.c (LM_PREV): New function.
1894 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1895 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
1896 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
1897 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1899 2010-04-23 Doug Evans <dje@google.com>
1901 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1903 * configure: Regenerate.
1904 * main.c: #include "python/python.h".
1905 (captured_main): Defer loading auto-loaded scripts until after
1906 local_gdbinit has been sourced.
1907 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1908 (load_auto_scripts_for_objfile): New function.
1909 (auto_load_new_objfile): Call it.
1910 * python/python.h (gdbpy_global_auto_load): Declare.
1911 (load_auto_scripts_for_objfile): Declare.
1913 Add support for auto-loading scripts from .debug_gdb_scripts section.
1914 * NEWS: Add entry for .debug_gdb_scripts.
1915 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1916 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1917 (py-auto-load.o): New rule.
1918 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1919 * cli/cli-cmds.h (find_and_open_script): Update prototype.
1920 * python/py-auto-load.c: New file.
1921 * python/python-internal.h: #include <stdio.h>.
1922 (set_python_list, show_python_list): Declare.
1923 (gdbpy_initialize_auto_load): Declare.
1924 (source_python_script_for_objfile): Declare.
1925 * python/python.c: Remove #include of observer.h.
1926 (gdbpy_auto_load): Moved to py-auto-load.c.
1927 (GDBPY_AUTO_FILENAME): Ditto.
1928 (gdbpy_new_objfile): Delete.
1929 (source_python_script_for_objfile): New function.
1930 (set_python_list, show_python_list): Make externally visible.
1931 (_initialize_python): Move "auto-load" command to py-auto-load.c
1932 and observer_attach_new_objfile to py-auto-load.c.
1934 2010-04-23 Jerome Guitton <guitton@adacore.com>
1936 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1937 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1938 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1940 (alpha_heuristic_analyze_probing_loop): New function.
1941 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1942 and handle cases when a stack probe loop is generated.
1943 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1944 (alpha_mdebug_max_frame_size_exceeded): New function.
1945 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1946 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1947 Return 0 when the maximum debuggable frame size has been exceeded.
1949 2010-04-23 Joel Brobecker <brobecker@adacore.com>
1952 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1954 2010-04-20 Chris Moller <cmoller@redhat.com>
1958 * symtab.c (rbreak_command): Added code to include a filename
1959 specification in the rbreak argument.
1960 * NEWS: Added a brief description of filename-qualified rbreak.
1962 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1964 Fix crashes on dangling display expressions.
1965 * ada-lang.c (ada_operator_check): New function.
1966 (ada_exp_descriptor): Fill-in the field operator_check.
1967 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
1968 * jv-lang.c (exp_descriptor_java): Likewise.
1969 * m2-lang.c (exp_descriptor_modula2): Likewise.
1970 * scm-lang.c (exp_descriptor_scm): Likewise.
1971 * parse.c (exp_descriptor_standard): Likewise.
1972 (operator_check_standard): New function.
1973 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
1974 * parser-defs.h (struct exp_descriptor): New field operator_check.
1975 (operator_check_standard, exp_uses_objfile): New declarations.
1976 * printcmd.c: Remove the inclusion of solib.h.
1977 (display_uses_solib_p): Remove the function.
1978 (clear_dangling_display_expressions): Call lookup_objfile_from_block
1979 and exp_uses_objfile instead of display_uses_solib_p.
1980 * solist.h (struct so_list) <objfile>: New comment.
1981 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
1982 * symtab.h (lookup_objfile_from_block): New declaration.
1983 (struct general_symbol_info) <obj_section>: Extend the comment.
1985 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1986 Thiago Jung Bauermann <bauerman@br.ibm.com>
1988 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
1989 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
1990 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
1991 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
1992 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
1993 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
1994 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
1995 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
1996 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
1997 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
1998 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
1999 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2000 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2001 Define, in case <ptrace.h> doesn't provide it.
2002 (booke_debug_info): New variable.
2003 (max_slots_number): Ditto.
2004 (hw_break_tuple): New struct.
2005 (thread_points): Ditto.
2006 (ppc_threads): New variable.
2007 (PPC_DEBUG_CURRENT_VERSION): New define.
2008 (have_ptrace_new_debug_booke): New function.
2009 (ppc_linux_check_watch_resources): Renamed to ...
2010 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2011 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2012 (booke_cmp_hw_point): New function.
2013 (booke_find_thread_points_by_tid): Ditto.
2014 (booke_insert_point): Ditto.
2015 (booke_remove_point): Ditto.
2016 (ppc_linux_insert_hw_breakpoint): Ditto.
2017 (ppc_linux_remove_hw_breakpoint): Ditto.
2018 (get_trigger_type): Ditto.
2019 (ppc_linux_insert_watchpoint): Handle BookE processors.
2020 (ppc_linux_remove_watchpoint): Ditto.
2021 (ppc_linux_new_thread): Ditto.
2022 (ppc_linux_thread_exit): New function..
2023 (ppc_linux_stopped_data_address): Handle BookE processors.
2024 (ppc_linux_watchpoint_addr_within_range): Ditto.
2025 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2026 to_remove_hw_breakpoint fields of the target operations struct.
2027 Add observe for the thread_exit event.
2029 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2031 * i386-linux-nat.c (regmap): Removed.
2032 (fetch_register): Replace regmap with
2033 i386_linux_gregset_reg_offset.
2034 (store_register): Likewise.
2035 (supply_gregset): Likewise.
2036 (fill_gregset): Likewise.
2038 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2041 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2043 2010-04-22 Chris Moller <cmoller@redhat.com>
2045 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2046 method of popping recursion-detection stack with a method based on
2047 obstack_object_size(). (Similar to the PR9167 patch below, but for
2048 the static array obstack rather than the static member obstack.)
2050 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2052 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2053 (_initialize_amd64_linux_nat): Replace
2054 amd64_linux_gregset64_reg_offset with
2055 amd64_linux_gregset_reg_offset.
2057 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2060 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2062 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2065 * stabsread.c (set_length_in_type_chain): New function.
2066 (read_struct_type): Call set_length_in_type_chain function.
2067 (read_enum_type): Idem.
2069 2010-04-21 Stan Shebs <stan@codesourcery.com>
2070 Nathan Sidwell <nathan@codesourcery.com>
2072 * tracepoint.c (trace_save): Open in binary mode.
2074 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2076 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2078 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2079 builtin_char32 fields.
2080 * printcmd.c (decode_format): Set char size to '\0'
2081 for strings unless explicit size is given.
2082 (print_formatted): Correct calculation of NEXT_ADDRESS
2083 for 16 or 32 bit strings.
2084 (do_examine): Do not force byte size for strings.
2085 Use builtin_char16 and builtin_char32 types to display
2086 16 or 32 bit-wide strings.
2087 (x_command): Set LAST_SIZE to 'b' for string type.
2089 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2092 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2095 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2096 there is no .reg-xstate section.
2097 (i386_linux_core_read_description): Check XCR0 first.
2099 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2101 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2104 2010-04-21 Chris Moller <cmoller@redhat.com>
2107 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2108 method of popping recursion-detection stack with a method based on
2109 obstack_object_size().
2111 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2114 * p-valprint.c (pascal_val_print): Fix default printing of integer
2117 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2119 Fix compilation warning on gcc-4.1.2.
2120 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2121 local variable`pc' to zero.
2123 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2125 Implement thread support with core files on alpha-tru64.
2126 * dec-thread.c (dec_thread_find_new_threads): New function,
2127 extracted from resync_thread_list.
2128 (resync_thread_list): Add OPS parameter. Replace extracted-out
2129 code by call to dec_thread_find_new_threads.
2130 (dec_thread_wait): Update call to resync_thread_list.
2131 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2133 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2135 * ada-lang.c (value_pointer): New function.
2136 (make_array_descriptor): Call value_pointer to convert addresses to
2139 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2141 * rs6000-aix-tdep.c: #include exceptions.h.
2142 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2143 while reading the memory at ADDR, then ADDR cannot be a function
2146 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2148 * ada-typeprint.c (ada_print_typedef): New function.
2149 * ada-lang.h (ada_print_typedef): Add declaration.
2150 * ada-lang.c (ada_language_defn): set la_print_typdef field
2151 to ada_print_typedef.
2153 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2155 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2157 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2159 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2160 (iterate_over_mappings): Adjust function profile. Add declaration.
2161 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2164 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2166 * procfs.c (solib_mappings_callback): Move function up to avoid
2169 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2171 * procfs.c (find_signalled_thread, find_stop_signal): Move
2172 these functions down to define them only when used.
2174 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2176 * valprint.c (common_val_print): Fix the value before extracting
2178 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2179 * ada-lang.h (ada_to_fixed_value): New function declaration.
2180 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2181 to avoid code duplication and fix a bug in the handling of
2182 fixed types contents.
2184 2010-04-20 Tom Tromey <tromey@redhat.com>
2186 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2187 (read_partial_die): Likewise.
2188 (dwarf_attr_name): Likewise.
2190 2010-04-20 Chris Moller <cmoller@redhat.com>
2194 * cp-valprint.c (global): Adding new static array recursion
2196 (cp_print_value_fields, cp_print_static_field): Added new static
2197 array recursion detection code.
2199 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2201 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2202 general-purpose register set should be 68 instead of 144.
2203 (i386_linux_sse_regset_sections): Likewise.
2204 (i386_linux_avx_regset_sections): Likewise.
2206 2010-04-20 Stan Shebs <stan@codesourcery.com>
2207 Nathan Sidwell <nathan@codesourcery.com>
2209 * dwarf2loc.c (struct axs_var_loc): New struct.
2210 (dwarf2_tracepoint_var_loc): New function.
2211 (dwarf2_tracepoint_var_access): New function.
2212 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2214 (locexpr_describe_location_piece): New function.
2215 (locexpr_describe_location_1): New function.
2216 (locexpr_describe_location): Call it, update signature.
2217 (loclist_describe_location): Rewrite to loop over locations,
2219 * symtab.h (struct symbol_computed_ops): Add address to
2220 describe_location arguments, return void.
2221 * printcmd.c (address_info): Get context PC, pass to computed
2222 location description.
2223 * tracepoint.c (scope_info): Ditto.
2224 * ax-gdb.c (trace_kludge): Export.
2226 2010-04-20 Tom Tromey <tromey@redhat.com>
2228 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2229 (struct dwarf2_cie) <segment_size>: New field.
2230 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2231 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2233 (read_attribute_value): Handle DW_FORM_flag_present,
2234 DW_FORM_sec_offset, DW_FORM_exprloc.
2235 (dump_die_shallow): Likewise.
2236 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2237 (dwarf2_const_value): Handle DW_FORM_exprloc.
2238 (attr_form_is_block): Likewise.
2239 (struct line_header) <maximum_ops_per_instruction>: New field.
2240 (dwarf_decode_line_header): Set new field.
2241 (dwarf_decode_lines): Handle new field.
2243 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2245 * f-exp.y: Add new production to recognize the `logical*8' type.
2246 (LOGICAL_S8_KEYWORD): New token.
2247 * f-lang.c (enum f_primitive_types)
2248 <f_primitive_type_logical_s8>: New field.
2249 (f_language_arch_info): Handling `logical*8' type.
2250 (build_fortran_types): Building `logical*8' type.
2251 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2253 2010-04-19 Doug Evans <dje@google.com>
2255 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2256 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2257 (pipe_close): Ditto.
2259 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2261 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2263 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2265 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2266 type to void function.
2268 2010-04-19 Stan Shebs <stan@codesourcery.com>
2269 Vladimir Prus <vladimir@codesourcery.com>
2271 * tracepoint.c (tfind_1): Add missing newline, report exit from
2273 * target.c (update_current_target): Make default
2274 to_trace_find return -1.
2276 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2278 * objc-lang.c (find_methods): Move symname check up.
2280 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2282 * ada-lang.c (print_recreate_exception)
2283 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2284 not "catch unhandled".
2286 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2288 PR breakpoints/8554.
2290 Implement `save-breakpoints'.
2292 * breakpoint.c (save_cmdlist): New.
2293 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2295 (print_recreate_catch_fork): New.
2296 (catch_fork_breakpoint_ops): Install it.
2297 (print_recreate_catch_vfork): New.
2298 (catch_vfork_breakpoint_ops): Install it.
2299 (print_recreate_catch_syscall): New.
2300 (catch_syscall_breakpoint_ops): Install it.
2301 (print_recreate_catch_exec): New.
2302 (catch_exec_breakpoint_ops): Install it.
2303 (print_recreate_exception_catchpoint): New.
2304 (gnu_v3_exception_catchpoint_ops): Install it.
2305 (save_breakpoints): New, based on tracepoint_save_command, but
2306 handle all breakpoint types.
2307 (save_breakpoints_command): New.
2308 (tracepoint_save_command): Rename to...
2309 (save_tracepoints_command): ... this, and reimplement using
2311 (save_command): New.
2312 (_initialize_breakpoints): Install the "save" command prefix.
2313 Install the "save breakpoints" command. Make "save-tracepoints" a
2314 deprecated alias for "save tracepoints".
2315 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2316 * ada-lang.c (print_recreate_exception): New.
2317 (print_recreate_catch_exception): New.
2318 (catch_exception_breakpoint_ops): Install it.
2319 (print_recreate_catch_exception_unhandled): New.
2320 (catch_exception_unhandled_breakpoint_ops): Install it.
2321 (print_recreate_catch_assert): New.
2322 (catch_assert_breakpoint_ops): Install it.
2324 * NEWS: Mention the new `save breakpoints' command. Mention the
2325 new `save tracepoints' alias and that `save-tracepoints' is now
2328 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2332 * tui/tui-out.c: Include cli-out.h.
2333 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2334 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2335 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2336 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2338 (struct ui_out_data): Rename to...
2339 (struct tui_ui_out_data): ... this. Remove `stream' and
2340 `suppress_output' fields, and inherit cli_ui_out_data.
2341 (tui_out_data): New typedef.
2342 (tui_ui_out_impl): Don't initialize fields staticaly.
2343 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2344 (tui_begin, tui_end): Delete.
2345 (tui_field_int): Adjust to delegate most work to the base type.
2346 (tui_field_skip): Delete.
2347 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2348 delegate most work to the base type.
2349 (tui_spaces): Delete.
2350 (tui_text): Adjust to delegate most work to the base type.
2351 (tui_message): Delete.
2352 (tui_wrap_hint): Delete.
2353 (tui_flush): Delete.
2354 (out_field_fmt): Delete.
2355 (field_separator): Delete.
2356 (tui_out_new): Adjust to initialize the base type.
2357 (_initialize_tui_out): Initialize tui_ui_out_impl.
2358 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2360 (cli_out_data): Adjust.
2361 (cli_ui_out_impl): Make extern.
2362 (cli_table_header, cli_field_int, cli_field_skip): Use
2363 uo_field_string instead of cli_field_string.
2364 (cli_redirect): Adjust to use cli_out_data.
2365 (cli_out_data_ctor): New.
2366 (cli_out_new): Use it.
2367 * cli-out.h (struct ui_file): Remove forward declaration.
2368 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2369 (cli_ui_out_impl): Declare.
2370 (cli_out_data_ctor): Declare.
2371 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2372 (uo_field_string): No longer static.
2373 (ui_out_data): Change return type to void pointer.
2374 (ui_out_new): Change `data' parameter type to void pointer.
2375 * ui-out.h (struct ui_out_data): Don't forward declare.
2376 (ui_out_data): Change return type to void pointer.
2377 (ui_out_new): Change `data' parameter type to void pointer.
2378 (uo_field_string): Declare.
2380 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2382 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2383 instead of always false.
2385 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2388 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2391 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2393 * breakpoint.c (watchpoints_triggered): Use
2394 is_hardware_watchpoint.
2395 (watchpoints_triggered): Ditto.
2396 (bpstat_check_location): Use is_watchpoint and
2397 is_hardware_watchpoint.
2398 (bpstat_check_watchpoint): Use is_watchpoint and
2399 is_hardware_watchpoint.
2400 (bpstat_stop_status): Fix comment.
2401 (user_settable_breakpoint): Use is_watchpoint.
2402 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2403 (disable_watchpoints_before_interactive_call_start): Use
2405 (enable_watchpoints_after_interactive_call_stop): Use
2407 (clear_command): Use is_watchpoint.
2408 (do_enable_breakpoint): Use is_watchpoint.
2410 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2412 * solib-frv.c (enable_break1_done): Delete.
2413 (enable_break2): Do not check enable_break1_done. Move the
2414 enable_break2_done setting and call to
2415 remove_solib_event_breakpoints() to the end. Return without
2416 warning when the contents of _dl_debug_addr are 0.
2417 (enable_break): Do not set enable_break1_done.
2418 (frv_clear_solib): Likewise.
2420 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2422 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2423 instead of an error if no PLT entry is found. Return a
2424 potentially useful result.
2425 (m32c_m16c_pointer_to_address): Add code to search for function
2426 address when no .plt entry is found.
2428 2010-04-16 Stan Shebs <stan@codesourcery.com>
2430 * tracepoint.c (trace_variable_command): Run a cleanup.
2432 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2434 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2436 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2438 Support for Windows OS Thread Information Block.
2439 * NEWS: Document new feature.
2440 * remote.c (PACKET_qGetTIBAddr): New enum element.
2441 (remote_get_tib_address): New function.
2442 (init_remote_ops): Set to_get_tib_address field
2443 to remote_get_tib_address.
2444 (_initialize_remote): Add add_packet_config_cmd
2445 for PACKET_qGetTIBAddr.
2446 * target.c (update_current_target): Set default value for
2447 new to_get_tib_address field.
2448 * target.h (target_ops): New field to_get_tib_address.
2449 (target_get_tib_address): New macro.
2450 * windows-nat.c (thread_info): Add thread_local_base field.
2451 (windows_add_thread): Add tlb argument of type 'void *'.
2452 (fake_create_process): Adapt windows_add_thread call.
2453 (get_windows_debug_event): Idem.
2454 (windows_get_tib_address): New function.
2455 (init_windows_ops): Set to_get_tib_address field
2456 to remote_get_tib_address.
2457 (_initialize_windows_nat): Replace info_w32_cmdlist
2458 initialization by a call to init_w32_command_list.
2459 (info_w32_command, info_w32_cmdlist): Removed from here...
2460 to windows-tdep.c file.
2461 * windows-tdep.h (info_w32_cmdlist): Declare.
2462 (init_w32_command_list): New external function
2464 * windows-tdep.c: Add several headers.
2465 (info_w32_cmdlist): to here, made global.
2466 (thread_information_32): New struct.
2467 (thread_information_64): New struct.
2468 (TIB_NAME): New char array.
2469 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2470 (maint_display_all_tib): New static variable.
2471 (windows_get_tlb_type): New function.
2472 (tlb_value_read, tlb_value_write): New functions.
2473 (tlb_value_funcs): New static struct.
2474 (tlb_make_value): New function.
2475 (display_one_tib): New function.
2476 (display_tib): New function.
2477 (show_maint_show_all_tib):New function.
2478 (info_w32_command): Moved from windows-nat.c.
2479 (init_w32_command_list): New function.
2480 (_initialize_windows_tdep): New function.
2481 New "maint set/show show-all-tib" command
2482 New "$_tlb" internal variable.
2484 2010-04-16 Joel Brobecker <brobecker@adacore.com>
2486 * tui/tui-regs.c (tui_display_register): Add comment about
2488 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2490 2010-04-15 Stan Shebs <stan@codesourcery.com>
2492 * frame.c: Include tracepoint.h.
2493 (get_current_frame): Allow a trace frame to be an alternate source
2494 of stack frame data.
2495 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2498 2010-04-15 Pedro Alves <pedro@codesourcery.com>
2500 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2502 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2504 2010-04-15 Doug Evans <dje@google.com>
2506 * NEWS: Add entry for python program space support.
2507 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2508 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2509 (py-progspace.o): New rule.
2510 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2512 (find_pretty_printer_from_progspace): New function.
2513 (find_pretty_printer_from_gdb): New function.
2514 (find_pretty_printer): Rewrite.
2515 * python/py-progspace.c: New file.
2516 * python/python-internal.h (program_space): Add forward decl.
2517 (pspace_to_pspace_object, pspy_get_printers): Declare.
2518 (gdbpy_initialize_pspace): Declare.
2519 * python/python.c: #include "progspace.h".
2520 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2521 (_initialize_python): Call gdbpy_initialize_pspace.
2522 (GdbMethods): Add current_progspace, progspaces.
2524 Add -s option to source command.
2525 * NEWS: Document new option.
2526 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2527 Delete from_tty and cleanupp args. Split filep arg into file and
2528 full_pathp. New arg search_path.
2529 (source_script_from_stream): New function.
2530 (source_script_with_search): New function.
2531 (source_script): Rewrite.
2532 (source_command): Parse "-s" option.
2533 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2534 * python/python.c (source_python_script): Make file arg a const char *.
2535 Don't call fclose, leave for caller.
2536 * python/python.h (source_python_script): Update.
2538 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2539 Pedro Alves <pedro@codesourcery.com>
2541 Avoid rereading shared libraries that haven't changed.
2543 * solib.c (free_so_symbols): New function, from ...
2544 (free_so): ... here. Call it.
2545 (solib_read_symbols): Don't warn here if symbols have already been
2547 (solib_add): Warn here instead, if a pattern was specified.
2548 (reload_shared_libraries_1): New.
2549 (reload_shared_libraries): Rewrite to not fetch the library list.
2551 2010-04-14 Doug Evans <dje@google.com>
2553 * source.c (openp): Strip DOS drive letter if present before
2554 concatenating string to search path.
2556 2010-04-14 Pedro Alves <pedro@codesourcery.com>
2558 * objfiles.h (gdb_bfd_close_or_warn): Declare.
2559 * objfiles.c (gdb_bfd_close_or_warn): New.
2560 * corelow.c: Include objfiles.h
2561 (core_close): Use gdb_bfd_close_or_warn.
2562 * elfread.c (build_id_verify): Ditto.
2563 * exec.c (exec_close, exec_close_1): Ditto.
2565 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2566 Pedro Alves <pedro@codesourcery.com>
2568 Group errors for many missing shared libraries.
2570 * solist.h (struct so_list): Remove from_tty.
2571 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2572 (solib_map_sections): Take so_list argument. Return 0 if we
2573 failed to open a BFD. Add target sections here.
2574 (symbol_add_stub): Delete.
2575 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
2576 not from_tty copied from the so_list. Don't warn a second time
2577 for a missing library.
2578 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
2579 add to the section table here. Print out a single warning for all
2581 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2584 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2586 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2587 error/warning messages. Capitalize and use complete sentences.
2588 (blpy_block_syms_iternext): Likewise.
2589 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2590 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2591 (frame_info_to_frame_object, frapy_read_var)
2592 (gdbpy_frame_stop_reason_string): Likewise.
2593 * python/py-lazy-string.c (stpy_convert_to_value)
2594 (gdbpy_create_lazy_string_object): Likewise.
2595 * python/py-objfile.c (objfpy_set_printers): Likewise.
2596 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2597 * python/python.c (parameter_to_python): Likewise.
2598 * python/py-type.c (typy_range, typy_target): Likewise.
2599 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2600 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2603 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2607 * python/py-prettyprint.c (pretty_print_one_value): Test for
2609 (print_string_repr): Test for Py_None. Set flags accordingly.
2610 Return value depending on return type.
2611 (print_children): Take a value indicating whether data was printed
2612 before this function was called. Alter output accordingly.
2613 (apply_val_pretty_printer): Capture return value from
2614 print_string_repr and pass to print_children.
2616 2010-04-13 Mark Kettenis <kettenis@gnu.org>
2619 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2620 register note sections.
2621 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2623 (i386_linux_init_abi): Install list of supported register note
2624 sections that matches the target description.
2626 2010-04-13 Pedro Alves <pedro@codesourcery.com>
2628 * remote.c (remote_get_noisy_reply): Don't error out on empty
2630 (remote_start_remote): Update and merge tracepoints and trace
2631 state variables as long as the target supports tracepoints.
2632 (remote_trace_init): Fix prototype.
2633 (remote_download_trace_state_variable): Validate reply.
2634 (remote_trace_set_readonly_regions): Fix prototype.
2635 (remote_trace_start): Fix prototype. Check for empty reply.
2636 (remote_get_trace_status): Small cleanup.
2637 (remote_trace_stop): Fix prototype. Check for empty reply.
2638 (remote_trace_find): Check for empty reply.
2639 (remote_save_trace_data): Validate reply.
2640 (remote_set_disconnected_tracing): Check for empty reply, and
2642 (remote_set_circular_trace_buffer): Ditto.
2644 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
2646 Suppress unused value warning during compilation.
2647 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2649 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2651 2010-04-12 Stan Shebs <stan@codesourcery.com>
2653 * tracepoint.c (tfile_xfer_partial): Check read result.
2655 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2657 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2658 * remote-sim.c (gdbsim_files_info): Likewise.
2660 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2662 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2663 * arm-linux-nat.c (arm_linux_vfp_register_count): New
2665 (fetch_vfp_registers): New function to fetch VFP registers.
2666 (store_vfp_registers): New function to store VFP registers.
2667 (arm_linux_fetch_inferior_registers): Add support for VFP
2669 (arm_linux_store_inferior_registers): Likewise.
2670 (arm_linux_read_description): Likewise.
2671 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2674 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
2676 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2678 (amd64_collect_xstateregset): Likewise.
2680 2010-04-09 Stan Shebs <stan@codesourcery.com>
2682 * tracepoint.c (trace_status_mi): Report frames created.
2684 * tracepoint.c (trace_dump_command): Include default-collect
2687 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2689 * symtab.c (find_function_start_sal): Never return SAL pointing
2690 before function start address, even if line info is missing.
2692 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2694 * NEWS: Mention tracepoints support.
2696 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2698 * tracepoint.c (trace_status_mi): Report disconnected tracing and
2699 circular trace buffer statuses.
2701 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2703 * config/djgpp/fnchange.lst: Fix typo in translations for
2704 symbol-without-target_section.exp and symbol-without-target_section.c.
2706 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2708 * breakpoint.c (condition_command): Pass condition expression to
2709 set_breakpoint_condition stripped from breakpoint number.
2711 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
2712 Thiago Jung Bauermann <bauerman@br.ibm.com>
2713 Tom Tromey <tromey@redhat.com>
2715 * breakpoint.c (condition_command): Simplify. Move condition
2717 (set_breakpoint_condition): ... here. New function.
2718 * breakpoint.h (set_breakpoint_condition): Declare.
2719 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2720 (SUBDIR_PYTHON_SRCS): Likewise.
2721 (py-breakpoint.o): New rule.
2722 * python/py-breakpoint.c: New file.
2723 * python/python-internal.h (gdbpy_breakpoints)
2724 (gdbpy_initialize_breakpoints): Declare.
2725 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2727 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2729 * regformats/regdat.sh: Include server.h. Don't include
2732 2010-04-08 Stan Shebs <stan@codesourcery.com>
2733 Pedro Alves <pedro@codesourcery.com>
2735 * tracepoint.h (struct trace_status): New fields disconnected_tracing
2736 and circular_buffer.
2737 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2738 * tracepoint.c (trace_status_command): Display target's status for
2739 disconnected tracing and circular buffer.
2740 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2741 query for non-disconnected-tracing case, remove the stop_tracing
2743 (tfile_open): Clear disconnected and circular buffer status.
2744 (trace_save): Save disconnected and circular buffer status.
2745 (parse_trace_status): Parse disconnected and circular buffer status,
2746 also recognize disconnected as a stop reason.
2747 * remote.c (remote_set_disconnected_tracing): Only set
2748 QTDisconnected if the remote end supports disconnected tracing.
2749 Warn otherwise, if trying to enable disconnected tracing.
2750 * infcmd.c (detach_command): Update disconnect_tracing call.
2751 * cli/cli-cmds.c (quit_command): Ditto.
2753 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2755 * i387-tdep.c (i387_collect_xsave): Replace abort with
2758 2010-04-08 Stan Shebs <stan@codesourcery.com>
2760 * breakpoint.c (default_collect_info): New function.
2761 (breakpoints_info): Call it.
2762 (maintenance_info_breakpoints): Ditto.
2763 (tracepoints_info): Ditto.
2765 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2767 * i387-tdep.c (i387_collect_xsave): Re-indent.
2769 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2771 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2772 if HAVE_PTRACE_GETFPXREGS is defined.
2773 (i386_linux_read_description): Set have_ptrace_getfpxregs and
2774 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2776 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2777 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2778 if .reg-xfp section doesn't exist.
2779 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2781 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2783 * i386-tdep.c: Include "features/i386/i386-mmx.c".
2784 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2785 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
2786 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2787 (i386_gdbarch_init): Update comments.
2788 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2790 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2792 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2794 * features/Makefile (i386/i386-mmx-expedite): New.
2795 (i386/i386-mmx-linux-expedite): Likewise.
2796 ($(outdir)/i386/i386-mmx.dat): Likewise.
2797 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2799 * features/i386/i386-mmx-linux.c: New.
2800 * features/i386/i386-mmx-linux.xml: Likewise.
2801 * features/i386/i386-mmx.c: Likewise.
2802 * features/i386/i386-mmx.xml: Likewise.
2803 * regformats/i386/i386-mmx-linux.dat: Likewise.
2804 * regformats/i386/i386-mmx.dat: Likewise.
2806 * features/Makefile (WHICH): Add i386/i386-mmx and
2807 i386/i386-mmx-linux.
2809 2010-04-08 Doug Evans <dje@google.com>
2811 * source.c (openp): Skip $cdir in PATH.
2813 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
2816 * python/py-lazy-string.c (stpy_convert_to_value): Check for
2818 (gdbpy_create_lazy_string_object): Allow strings with a NULL
2819 address and a zero length.
2821 2010-04-08 Hui Zhu <teawater@gmail.com>
2823 * i386-tdep.c (i386_process_record): Add support for insn
2826 2010-04-07 Doug Evans <dje@google.com>
2828 * python/python.c (source_python_script): Use ensure_python_env
2829 to prepare environment for script.
2831 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2833 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2834 <sys/uio.h> and "i386-xstate.h".
2835 (PTRACE_GETREGSET): New.
2836 (PTRACE_SETREGSET): Likewise.
2837 (have_ptrace_getregset): Likewise.
2838 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2840 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2842 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2843 (amd64_linux_store_inferior_registers): Likewise.
2844 (amd64_linux_read_description): Check and enable AVX target
2847 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2848 and "features/i386/amd64-avx-linux.c".
2849 (amd64_linux_regset_sections): New.
2850 (amd64_linux_core_read_description): Check and enable AVX
2852 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
2853 set_gdbarch_core_regset_sections.
2854 (_initialize_amd64_linux_tdep): Call
2855 initialize_tdesc_amd64_avx_linux.
2857 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2858 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2859 (tdesc_amd64_avx_linux): New.
2860 (amd64_linux_update_xstateregset): Likewise.
2862 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2863 (amd64_ymm_names): New.
2864 (amd64_ymmh_names): Likewise.
2865 (amd64_register_name): Likewise.
2866 (amd64_supply_xstateregset): Likewise.
2867 (amd64_collect_xstateregset): Likewise.
2868 (amd64_supply_xsave): Likewise.
2869 (amd64_collect_xsave): Likewise.
2870 (AMD64_NUM_REGS): Removed.
2871 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2872 %xmmN if AVX is available.
2873 (amd64_pseudo_register_name): Support pseudo YMM registers.
2874 (amd64_regset_from_core_section): Support .reg-xstate section.
2875 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2876 and ymm0h_regnum. Call set_gdbarch_register_name.
2877 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2879 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2880 AMD64_YMM15H_REGNUM.
2881 (AMD64_NUM_REGS): New.
2882 (amd64_supply_xsave): Likewise.
2883 (amd64_collect_xsave): Likewise.
2884 (amd64_register_name): Removed.
2885 (amd64_register_type): Likewise.
2887 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2889 * i387-tdep.c: Include "i386-xstate.h".
2890 (XSAVE_XSTATE_BV_ADDR): New.
2891 (xsave_avxh_offset): Likewise.
2892 (XSAVE_AVXH_ADDR): Likewise.
2893 (i387_supply_xsave): Likewise.
2894 (i387_collect_xsave): Likewise.
2896 * i387-tdep.h (I387_NUM_YMM_REGS): New.
2897 (I387_YMM0H_REGNUM): Likewise.
2898 (I387_YMMENDH_REGNUM): Likewise.
2899 (i387_supply_xsave): Likewise.
2900 (i387_collect_xsave): Likewise.
2902 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2904 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2905 <sys/uio.h> and "i386-xstate.h".
2906 (PTRACE_GETREGSET): New.
2907 (PTRACE_SETREGSET): Likewise.
2908 (fetch_xstateregs): Likewise.
2909 (store_xstateregs): Likewise.
2910 (GETXSTATEREGS_SUPPLIES): Likewise.
2911 (regmap): Include 8 upper YMM registers.
2912 (i386_linux_fetch_inferior_registers): Support XSAVE extended
2914 (i386_linux_store_inferior_registers): Likewise.
2915 (i386_linux_read_description): Check and enable AVX target
2918 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2919 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2920 (i386_linux_regset_sections): Add ".reg-xstate".
2921 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2922 (i386_linux_core_read_xcr0): New.
2923 (i386_linux_core_read_description): Check and enable AVX target
2925 (i386_linux_init_abi): Set xsave_xcr0_offset.
2926 (_initialize_i386_linux_tdep): Call
2927 initialize_tdesc_i386_avx_linux.
2929 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2930 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2931 (i386_linux_core_read_xcr0): New.
2932 (tdesc_i386_avx_linux): Likewise.
2933 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2935 * i386-tdep.c: Include "i386-xstate.h" and
2936 "features/i386/i386-avx.c".
2937 (i386_ymm_names): New.
2938 (i386_ymmh_names): Likewise.
2939 (i386_ymmh_regnum_p): Likewise.
2940 (i386_ymm_regnum_p): Likewise.
2941 (i386_xmm_regnum_p): Likewise.
2942 (i386_register_name): Likewise.
2943 (i386_ymm_type): Likewise.
2944 (i386_supply_xstateregset): Likewise.
2945 (i386_collect_xstateregset): Likewise.
2946 (i386_sse_regnum_p): Removed.
2947 (i386_pseudo_register_name): Support pseudo YMM registers.
2948 (i386_pseudo_register_type): Likewise.
2949 (i386_pseudo_register_read): Likewise.
2950 (i386_pseudo_register_write): Likewise.
2951 (i386_dbx_reg_to_regnum): Return %ymmN register number for
2952 %xmmN if AVX is available.
2953 (i386_regset_from_core_section): Support .reg-xstate section.
2954 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2955 (i386_process_record): Replace i386_sse_regnum_p with
2957 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2958 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
2959 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
2960 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
2961 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
2962 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
2964 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
2966 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
2967 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
2969 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
2970 (I386_AVX_NUM_REGS): New.
2971 (i386_xmm_regnum_p): Likewise.
2972 (i386_ymm_regnum_p): Likewise.
2973 (i386_ymmh_regnum_p): Likewise.
2975 * common/i386-xstate.h: New.
2977 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2979 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
2981 * features/Makefile (WHICH): Add i386/i386-avx,
2982 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
2983 (i386/i386-avx-expedite): New.
2984 (i386/i386-avx-linux-expedite): Likewise.
2985 (i386/x86-64-avx-expedite):Likewise.
2986 (i386/x86-64-avx-linux-expedite): Likewise.
2987 ($(outdir)/i386/i386-avx.dat): New dependency.
2988 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
2989 ($(outdir)/i386/x86-avx-64.dat): Likewise.
2990 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
2992 * features/i386/32bit-avx.xml: New.
2993 * features/i386/64bit-avx.xml: Likewise.
2994 * features/i386/i386-avx-linux.c: Likewise.
2995 * features/i386/i386-avx-linux.xml: Likewise.
2996 * features/i386/i386-avx.c: Likewise.
2997 * features/i386/i386-avx.xml: Likewise.
2998 * features/i386/x86-64-avx-linux.c: Likewise.
2999 * features/i386/x86-64-avx-linux.xml: Likewise.
3000 * features/i386/x86-64-avx.c: Likewise.
3001 * features/i386/x86-64-avx.xml: Likewise.
3002 * regformats/i386/i386-avx-linux.dat: Likewise.
3003 * regformats/i386/i386-avx.dat: Likewise.
3004 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3005 * regformats/i386/x86-64-avx.dat: Likewise.
3007 2010-04-07 Doug Evans <dje@google.com>
3009 * top.c (source_file_name): Make const char *.
3010 * top.h (source_file_name): Update.
3011 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3013 (script_from_file): Change `file' arg to const char *.
3014 * cli/cli-script.h (script_from_file): Update.
3016 2010-04-06 Doug Evans <dje@google.com>
3018 * cli/cli-cmds.c (source_command): Run cleanups.
3020 2010-04-06 Stan Shebs <stan@codesourcery.com>
3022 * defs.h (char_ptr): Move typedef here from...
3023 * ada-lang.c (char_ptr): Remove.
3024 * charset.c (char_ptr): Remove.
3025 * tracepoint.h (struct uploaded_string): Remove.
3026 (struct uploaded_tp): Use vectors for string arrays.
3027 * tracepoint.c (trace_save): Use vectors of actions.
3028 (parse_tracepoint_definition): Ditto.
3029 (get_uploaded_tp): Clear vectors.
3030 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3031 (next_cmd): Change to an int.
3032 (read_next_cmd): Use vector of command strings.
3034 2010-04-06 Doug Evans <dje@google.com>
3036 * top.h (source_script, cd_command): Delete.
3037 * main.c: #include "cli/cli-cmds.h"
3039 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3041 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3042 type in bytes, not bits.
3044 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3046 * stabsread.c (define_symbol): Add support for char
3047 and string constants.
3049 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3051 Remove remaining "%ll" uses.
3052 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3054 * rs6000-nat.c (rs6000_ptrace64): Idem.
3055 * solib-pa64.c (pa64_current_sos): Idem.
3056 * solib-spu.c (spu_current_sos): Idem.
3057 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3059 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3061 * sh64-tdep.c (sh64_show_media_regs): Idem.
3063 2010-04-05 Stan Shebs <stan@codesourcery.com>
3065 * tracepoint.c: Include gdbcore.h.
3066 (tfile_xfer_partial): Return partial results, also try reading
3068 (tfile_has_all_memory): New function.
3069 (init_tfile_ops): Use it.
3071 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3074 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3075 the changes in data-directory.
3076 (init_sysinfo): Reload the syscall XML file if the data-directory
3079 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3082 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3084 2010-04-04 Stan Shebs <stan@codesourcery.com>
3085 Nathan Sidwell <nathan@codesourcery.com>
3087 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3088 breakpoints printed.
3089 (is_hardware_watchpoint): Make argument const.
3090 (is_watchpoint): Ditto.
3091 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3093 (breakpoints_info): Pass NULL to breakpoint_1.
3094 (maintenance_info_breakpoints): Ditto.
3095 (watchpoints_info): New function.
3096 (tracepoints_info): Use breakpoint_1 filter.
3097 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3098 (_initialize_breakpoint): Make "info watchpoints" its own command.
3099 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3100 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3102 2010-04-04 Stan Shebs <stan@codesourcery.com>
3104 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3106 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3108 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3109 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3111 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3113 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3114 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3116 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3118 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3121 2010-04-02 Hui Zhu <teawater@gmail.com>
3123 * i386-tdep.c (OT_DQUAD): New enum.
3124 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3125 SSE3, SSSE3 and SSE4.
3127 2010-04-02 Hui Zhu <teawater@gmail.com>
3129 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3132 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3134 * tracepoint.c (trace_dump_actions): New, factored out from
3135 trace_dump_command, and adjusted to recurse into while-stepping's
3137 (trace_dump_command): Use it.
3139 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3141 * breakpoint.h (struct counted_command_line): Moved definition to
3142 breakpoint.c, and forward declare.
3143 (breakpoint_commands): Declare.
3144 * breakpoint.c (struct counted_command_line): Moved here.
3145 (breakpoint_commands): New.
3146 * tracepoint.c (encode_actions): Use breakpoint_commands.
3147 * remote.c (remote_download_tracepoint): Ditto.
3149 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3151 * remote.c (remote_parse_stop_reply): Use hex_string instead
3152 of phex_nz for error.
3154 2010-04-01 Stan Shebs <stan@codesourcery.com>
3155 Nathan Sidwell <nathan@codesourcery.com>
3157 * tracepoint.h (enum actionline_type): Remove.
3158 (validate_actionline): Change return to void.
3159 * tracepoint.c (report_agent_reqs_errors): New function.
3160 (validate_actionline): Call it, change return to void, report errors
3162 (collect_symbol): Call report_agent_reqs_errors.
3163 (encode_actions_1): Ditto.
3164 (encode_actions): Don't expect a result from validate_actionline.
3166 2010-04-01 Stan Shebs <stan@codesourcery.com>
3168 * tracepoint.c (trace_start_command): Confirm if trace is running.
3169 (trace_stop_command): Error if trace not running.
3171 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3173 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3174 (AMD64_NUM_LOWER_BYTE_REGS): New.
3175 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3176 (amd64_pseudo_register_write): Likewise.
3177 (amd64_init_abi): Set num_byte_regs to 20.
3179 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3181 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3182 (prev_breakpoint_count): New.
3183 (set_breakpoint_count): Adjust.
3184 (rbreak_start_breakpoint_count): New.
3185 (start_rbreak_breakpoints): Adjust.
3186 (end_rbreak_breakpoints): Adjust.
3187 (struct commands_info) <arg>: New field.
3188 (do_map_commands_command): Tweak output to include breakpoint spec
3190 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3191 ARG was empty on entry. Set INFO's arg.
3192 (create_breakpoint): Adjust.
3194 * NEWS: Clarify `commands' changes.
3196 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3198 * tracepoint.c: Include stack.h.
3199 (struct add_local_symbols_data): New.
3200 (do_collect_symbol): New.
3201 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3202 iterate_over_block_local_vars.
3203 * stack.c (print_block_frame_locals): Rewrite as ...
3204 (iterate_over_block_locals): ... this. Take a callback function
3205 pointer and generic data pointer, and call that instead of
3206 print_variable_and_value.
3207 (struct print_variable_and_value_data): New.
3208 (do_print_variable_and_value): New.
3209 (iterate_over_block_local_vars): New, abstracted out from
3210 print_frame_local_vars.
3211 (print_frame_local_vars): Rewrite using
3212 iterate_over_block_local_vars.
3213 (iterate_over_block_arg_vars): New, abstracted out from
3214 print_frame_arg_vars.
3215 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3216 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3217 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3219 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3221 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3222 instructions. Use the PC+4 if the base of the TBB or TBH is the
3225 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3227 Fix crash on reading wrong function declaration DWARF.
3228 * dwarf2read.c (read_subroutine_type): New variable void_type.
3229 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3230 more close to their use.
3232 2010-03-31 Stan Shebs <stan@codesourcery.com>
3234 * breakpoint.c (tracepoint_save_command): Include variables,
3235 conditionals, tracepoint types, and default-collect.
3236 * tracepoint.c (save_trace_state_variables): New function.
3237 * tracepoint.h (save_trace_state_variables): Declare it.
3239 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3241 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3243 2010-03-30 Keith Seitz <keiths@redhat.com>
3245 * c-typeprint.c (c_type_print_args): Don't print "void"
3246 for java, regardless of whether it is TYPE_PROTOTYPED.
3247 Use the passed-in language instead of current_language.
3248 (c_type_print_varspec_suffix): Use current_language instead
3249 of assuming language_c.
3250 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3251 any return type specifier from the physname.
3253 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3255 * tui/tui-interp.c (tui_is_toplevel): New.
3257 (tui_allowed_p): New.
3258 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3260 * tui/tui.h (tui_allowed_p): Declare.
3262 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3264 * serial.h: Include winsock2.h before windows.h.
3266 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3268 * NEWS: Mention xmlRegisters= in qSupported packet.
3270 * i386-tdep.c: Include "remote.h".
3271 (_initialize_i386_tdep): Call register_remote_support_xml.
3273 * remote.c (remote_support_xml): New.
3274 (register_remote_support_xml): Likewise.
3275 (remote_query_supported_append): Likewise.
3276 (remote_query_supported): Support remote_support_xml.
3278 * remote.h (register_remote_support_xml): New.
3280 2010-03-29 Stan Shebs <stan@codesourcery.com>
3282 * tracepoint.c (trace_find_line_command): Remove dead code.
3284 * tracepoint.h (struct uploaded_string): New struct.
3285 (struct uploaded_tp): New fields for source strings.
3286 * breakpoint.c (this_utp, next_cmd): New globals.
3287 (read_uploaded_action): New function.
3288 (create_tracepoint_from_upload): Fill in more parts
3290 * tracepoint.c (encode_source_string): New function.
3291 (trace_save): Write out source strings, fix error checks.
3292 (parse_tracepoint_definition): Add source string parsing.
3293 * remote.c (PACKET_TracepointSource): New packet type.
3294 (remote_download_command_source): New function.
3295 (remote_download_tracepoint): Download source pieces also.
3296 (_initialize_remote): Add packet config command.
3298 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3301 * tracepoint.c (start_tracing): Check tracepoints before sending
3302 commands to target, don't start if all tracepoints disabled.
3304 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3306 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3308 2010-03-26 Stan Shebs <stan@codesourcery.com>
3310 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3312 2010-03-26 Tom Tromey <tromey@redhat.com>
3314 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3316 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3318 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3319 (skip_prologue_sal): Remove local definition.
3320 (resolve_sal_pc): Remove now unnecessary code.
3321 * linespec.c (minsym_found): Call skip_prologue_sal.
3322 * symtab.c (find_function_start_pc): Remove.
3323 (find_function_start_sal): Extract prologue skipping into ...
3324 (skip_prologue_sal): ... this new function. Handle code both
3325 with and without debug info. Respect SAL's explicit_pc and
3326 explicit_line flags. Inline old find_function_start_pc.
3327 * symtab.h (find_function_start_pc): Remove.
3328 (skip_prologue_sal): Add prototype.
3330 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3332 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3333 for DW_TAG_imported_module children.
3335 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3337 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3338 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3339 * completer.c (add_struct_fields): Fix inverted logic.
3341 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3343 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3345 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3347 * tracepoint.c (current_trace_status): Don't make sure error_desc
3349 (parse_trace_status): Release a previous error_desc string, and
3350 set it to NULL by default. If stop reason is tracepoint_error,
3351 make sure error_desc is not left NULL.
3353 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3355 * tracepoint.c (trace_save): Remove X from tracepoint error
3358 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3360 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3361 the terror description. Don't expect an X prefix.
3363 2010-03-25 Stan Shebs <stan@codesourcery.com>
3365 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3366 (struct trace_status): New field error_desc.
3367 * tracepoint.c (stop_reason_names): Add terror.
3368 (current_trace_status): Ensure non-NULL error description.
3369 (trace_status_command): Add error report.
3370 (trace_status_mi): Ditto.
3371 (trace_save): Add special case for error description.
3372 (parse_trace_status): Add case for errors.
3374 2010-03-25 Keith Seitz <keiths@redhat.com>
3376 * dwarf2read.c (read_subroutine_type): If the compilation unit
3377 language is Java, mark any formal parameter named "this" as
3378 artificial (GCC/43521).
3379 (dwarf2_name): Add special handling for Java constructors.
3381 2010-03-25 Tom Tromey <tromey@redhat.com>
3383 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3384 * infrun.c (handle_inferior_event): Change initialization of
3386 (handle_inferior_event): Change assignment to stop_stack_dummy.
3387 (normal_stop): Update use of stop_stack_dummy.
3388 (struct inferior_status) <stop_stack_dummy>: Change type.
3389 * inferior.h (stop_stack_dummy): Update.
3390 * infcmd.c (stop_stack_dummy): Change type.
3391 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3393 (call_function_by_hand): Call set_std_terminate_breakpoint.
3394 Rewrite std::terminate handling.
3395 * breakpoint.h (enum bptype) <bp_std_terminate,
3396 bp_std_terminate_master>: New.
3397 (enum stop_stack_kind): New.
3398 (struct bpstat_what) <call_dummy>: Change type.
3399 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3401 * breakpoint.c (create_std_terminate_master_breakpoint): New
3403 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3404 Call create_std_terminate_master_breakpoint.
3405 (print_it_typical): Handle new breakpoint kinds.
3406 (bpstat_stop_status): Handle bp_std_terminate_master.
3407 (bpstat_what): Correctly set call_dummy field. Handle
3408 bp_std_terminate_master and bp_std_terminate.
3409 (print_one_breakpoint_location): Update.
3410 (allocate_bp_location): Update.
3411 (set_std_terminate_breakpoint): New function.
3412 (delete_std_terminate_breakpoint): Likewise.
3413 (create_thread_event_breakpoint): Update.
3414 (delete_command): Update.
3415 (breakpoint_re_set_one): Update.
3416 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3418 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * symfile.c (build_section_addr_info_from_bfd): New.
3421 (build_section_addr_info_from_objfile): Base it on
3422 build_section_addr_info_from_bfd.
3423 (addrs_section_compar, addrs_section_sort): New.
3424 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3425 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3426 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3428 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3430 * elfread.c (find_separate_debug_file_by_buildid):
3431 Remove unused local variable.
3433 2010-03-24 Tom Tromey <tromey@redhat.com>
3435 PR breakpoints/9352:
3436 * NEWS: Mention changes to `commands' and `rbreak'.
3437 * symtab.c (do_end_rbreak_breakpoints): New function.
3438 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3439 end_rbreak_breakpoints.
3440 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3441 (set_breakpoint_count): Likewise. Clear last_was_multi.
3442 (multi_start, multi_end, last_was_multi): New globals.
3443 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3445 (struct commands_info): New
3446 (do_map_commands_command): New function.
3447 (commands_command_1): New function.
3448 (commands_command): Use it.
3449 (commands_from_control_command): Likewise.
3450 (do_delete_breakpoint): New function.
3451 (delete_command): Use it.
3452 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3453 (do_map_disable_breakpoint): New function.
3454 (disable_command): Use it.
3455 (do_map_enable_breakpoint): New function.
3456 (enable_command): Use it.
3457 (enable_once_breakpoint): Add argument.
3458 (enable_once_command): Update.
3459 (enable_delete_breakpoint): Add argument.
3460 (enable_delete_command): Update.
3461 (break_command_really): Set last_was_multi when needed.
3462 (check_tracepoint_command): Fix formatting.
3463 (validate_commands_for_breakpoint): New function.
3464 (breakpoint_set_commands): Use it.
3465 (tracepoint_save_command): Update.
3466 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3469 2010-03-24 Tom Tromey <tromey@redhat.com>
3471 * breakpoint.h (struct counted_command_line): New struct.
3472 (struct breakpoint) <commands>: Change type.
3473 (struct bpstats) <commands>: Change type.
3474 <commands_left>: New field.
3475 * breakpoint.c (alloc_counted_command_line): New function.
3476 (incref_counted_command_line): Likewise.
3477 (decref_counted_command_line): Likewise.
3478 (do_cleanup_counted_command_line): Likewise.
3479 (make_cleanup_decref_counted_command_line): Likewise.
3480 (breakpoint_set_commands): Use decref_counted_command_line and
3481 alloc_counted_command_line.
3482 (commands_command): Don't error if breakpoint commands are
3484 (commands_from_control_command): Likewise.
3485 (bpstat_free): Update.
3486 (bpstat_copy): Likewise.
3487 (bpstat_clear_actions): Likewise.
3488 (bpstat_do_actions_1): Likewise.
3489 (bpstat_stop_status): Likewise.
3490 (print_one_breakpoint_location): Likewise.
3491 (delete_breakpoint): Likewise.
3492 (bpstat_alloc): Initialize new field.
3493 (tracepoint_save_command): Update.
3494 * tracepoint.c (encode_actions): Update.
3495 (trace_dump_command): Update.
3497 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3499 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3500 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3501 (read_structure_type): For RealView, set TYPE_STUB on structures with
3502 no byte size and no children.
3503 (read_subroutine_type): Mark functions as prototyped by default.
3504 * symtab.c (producer_is_realview): New function.
3505 * symtab.h (expand_line_sal): Fix declaration formatting.
3506 (producer_is_realview): Declare.
3508 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3510 * arm-tdep.c (skip_prologue_function): New function.
3511 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3512 (thumb_analyze_prologue): Document return value. Recognize more
3513 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3515 (arm_skip_prologue): Remove call dummy check. Check the prologue
3516 for non-GNU compilers.
3517 (arm_instruction_changes_pc): New function.
3518 (arm_analyze_prologue): New function, broken out from
3519 arm_scan_prologue. Recognize more ARM instructions and skippable
3520 calls. Update comments. Handle NULL cache. Return the address
3521 of the first unrecognized instruction. Do not skip past other
3522 instructions which change control flow. Add debug output.
3523 (arm_scan_prologue): Use arm_analyze_prologue.
3524 (ARM_PC_32): Delete.
3525 (shifted_reg_val): Simplify ARM_PC_32 check.
3527 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3529 * tracepoint.c (tvariables_info_1): Actually compute
3530 the number of rows in the result.
3532 2010-03-24 Pedro Alves <pedro@codesourcery.com>
3534 * remote.c (crc32): Constify `buf' parameter.
3535 (remote_verify_memory): New, abstracted out from...
3536 (compare_sections_command): ... this. Remove hardcoded target
3538 (init_remote_ops): Install remote_verify_memory.
3539 * target.c (target_verify_memory): New.
3540 * target.h (struct target_ops) <to_verify_memory>: New field.
3541 (target_verify_memory): Declare.
3543 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3545 Implement -trace-save.
3547 * mi-cmds.h (mi_cmds_trace_save): Declare.
3548 * mi-cmds.c (mi_cmds): Register -trace-save.
3549 * mi/mi-main.c (mi_cmd_trace_save): New.
3550 * remote.c (remote_save_trace_data): Take const parameter.
3551 * target.h (struct target_ops::to_save_trace_data): Take
3553 * target.c (update_current_target): Adjust to the above.
3554 * tracepoint.c (trave_save): New, extracted from
3555 (trace_save_command): ...this.
3556 (tfile_trace_find): Remove message that is unnecessary now
3557 that 'tfind' reports found frame.
3558 * tracepoint.h (trace_save): Declare.
3560 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3562 Implement -trace-find.
3564 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3565 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3566 * mi/mi-main.c (mi_cmd_trace_find): New.
3567 * target.h (struct target_ops): Document to_trace_find.
3568 * tracepoint.h (tfind_1): Declare.
3569 * tracepoint.c (finish_tfind_command): Rename to...
3571 * remote.c (remote_trace_find): Return -1 if target say
3572 there's no frame. Improve error diagnostics.
3574 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3576 -trace-define-variable and -trace-list-variables.
3578 * tracepoint.c (create_trace_state_variable): Make
3579 private copy of name, as opposed to assuming the
3580 pointer lives forever.
3581 (tvariables_info_1): New.
3582 (tvariables_info): Use the above.
3583 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3585 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3586 and -trace-list-variables.
3587 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3588 (mi_cmd_trace_list_variables): New.
3589 * mi/mi-main.c (mi_cmd_trace_define_variable)
3590 (mi_cmd_trace_list_variables): New.
3592 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3594 Implement -break-passcount.
3596 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3597 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3598 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3600 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3602 -trace-start/-trace-end/-trace-status.
3604 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3606 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3607 (mi_cmd_trace_stop): Declare.
3608 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3609 (mi_cmd_trace_stop): New.
3610 * tracepoint.c (start_tracing): New, extracted from...
3611 (trace_start_command): ...this.
3612 (trace_status_mi): New.
3613 * tracepoint.h (struct trace_status): Document
3614 stopping_tracepoint.
3615 (start_tracing, stop_tracing, trace_status_mi): Declare.
3617 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3619 Implement creating tracepoints with -break-insert.
3621 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3622 to mean that tracepoint should be created.
3624 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3626 * breakpoint.c (check_no_tracepoint_commands): Use
3627 current spelling of 'teval'.
3629 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3631 Unify actions and commands
3633 * defs.h (read_command_lines, read_command_lines_1): New
3634 parameters validator and closure.
3635 * tracepoint.h (struct action_line): Remove.
3636 * breakpoint.h (struct breakpoint): Remove the 'actions'
3638 * defs.h (enum command_control_type): New value
3639 while_stepping_control.
3640 (struct command_line): Add comments.
3641 * breakpoint.c (breakoint_is_tracepoint): New.
3642 (breakpoint_set_commands): For tracepoints,
3643 verify the commands are permissible.
3644 (check_tracepoint_commands): New.
3645 (commands_command): Require that each new line is validated using
3646 check_tracepoint_command, if we set commands for a tracepoint.
3647 (create_tracepoint_from_upload): Likewise.
3648 (print_one_breakpoint_location): Remove the code to print
3649 actions specifically.
3650 (tracepoint_save_command): Relay to print_command_lines.
3651 * cli/cli-script.c (process_next_line): New parameters validator
3652 and closure. Handle 'while-stepping'. Call validator if not null.
3653 (read_command_lines, read_command_lines1): Likewise.
3654 (recurse_read_control_structure): New parameters validator and
3655 closure. Handle while_stepping_control.
3656 (print_command_lines): Handle while-stepping.
3657 (get_command_line, define_command, document_command): Adjust.
3658 * remote.c (remote_download_tracepoint): Adjust.
3659 * tracepoint.c (make_cleanup_free_actions, read_actions)
3660 (free_actions, do_free_actions_cleanup): Remove.
3661 (trace_actions_command): Use read_command_lines.
3662 (validate_actionline): Use error in one place.
3663 (encode_actions_1): New, extracted from...
3664 (encode_actions): ...this. Also use cleanups for exception
3666 (trace_dump_command): Adjust.
3667 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3670 2010-03-23 Mike Frysinger <vapier@gentoo.org>
3672 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3674 2010-03-22 Stan Shebs <stan@codesourcery.com>
3676 * value.c (value_static_field): Be lazy about the field's value.
3678 2010-03-22 Reid Kleckner <reid@kleckner.net>
3681 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3683 (disable_breakpoints_in_shlibs): Likewise.
3685 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3687 * dwarf2read.c (partial_die_parent_scope): Work around buggy
3688 GCC 4.1 debug info generation (GCC PR c++/28460).
3689 (determine_prefix): Likewise.
3691 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
3693 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3695 * tui/tui-layout.c (extract_display_start_addr): Likewise.
3697 2010-03-19 Stan Shebs <stan@codesourcery.com>
3699 * ax-gdb.c (gen_fetch): Handle bool.
3700 (gen_usual_unary): Ditto.
3702 (gen_equal): New function.
3703 (gen_less): New function.
3704 (gen_expr_binop_rest): Call them, also return integer type from
3708 2010-03-19 Tom Tromey <tromey@redhat.com>
3710 * jv-lang.c (jv_dynamics_objfile_data_key)
3711 (jv_type_objfile_data_key): New globals.
3712 (class_symtab): Move earlier.
3713 (jv_per_objfile_free): New function.
3714 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
3716 Remove ancient #if 1.
3717 (add_class_symbol): Remove redundant declaration.
3718 (java_lookup_class): Use alloc_type, not alloc_type_arch.
3719 (java_link_class_type): Mark as static. Update.
3720 (jv_clear_object_type): New function.
3721 (set_java_object_type): Likewise.
3722 (get_java_object_type): Use set_java_object_type.
3723 (is_object_type): Likewise.
3724 (_initialize_java_language): Register new objfile keys.
3725 (get_java_class_symtab): Add 'gdbarch' parameter.
3726 (add_class_symtab_symbol): Update.
3727 (type_from_class): Update.
3729 2010-03-19 Stan Shebs <stan@codesourcery.com>
3731 * ax-general.c (ax_const_l): Fix a sizing bug.
3733 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3737 2010-03-18 Stan Shebs <stan@codesourcery.com>
3738 Pedro Alves <pedro@codesourcery.com>
3740 * target.h (struct target_ops): New method
3741 to_set_circular_trace_buffer.
3742 (target_set_circular_trace_buffer): New macro.
3743 * target.c (update_current_target): Add
3744 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3746 * remote.c (remote_set_circular_trace_buffer): New function.
3747 (init_remote_ops): Add it to vector.
3748 * tracepoint.h (struct trace_status): New field traceframes_created,
3749 change buffer_size and buffer_free to int.
3750 * tracepoint.c (circular_trace_buffer): New global.
3751 (start_tracing): Send values of disconnected tracing and circular
3752 trace buffer settings.
3753 (set_circular_trace_buffer): New function.
3754 (parse_trace_state): Handle total space and frames created.
3755 (trace_status_command): Display total space and total frames
3757 (trace_save): Write out new status values.
3758 (parse_trace_status): Set traceframe_count, traceframes_created,
3759 buffer_free and buffer_size to -1 by default.
3760 (_initialize_tracepoint): New setshow for circular-trace-buffer.
3761 * NEWS: Mention the circular trace buffer option.
3763 2010-03-18 Tom Tromey <tromey@redhat.com>
3765 * infcmd.c (finish_command_continuation): Wrap print_return_value
3768 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3770 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3771 DIE has a name before creating the associated partial symbol.
3772 (read_func_scope): Emit a complaint if the subprogram does not
3773 have a name or when we can't extract the subprogram PC bounds.
3775 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3777 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3778 instead of selected frame architecture.
3780 2010-03-18 Pedro Alves <pedro@codesourcery.com>
3782 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
3783 a valid selected thread, and that it is not running.
3784 (advance_command): Ditto.
3785 (finish_command): Ditto.
3787 2010-03-17 Stan Shebs <stan@codesourcery.com>
3789 * ax-gdb.c (require_rvalue): Disallow non-scalars.
3791 * infcall.c: Include tracepoint.h.
3792 (call_function_by_hand): Disallow calls in tfind mode.
3793 * infcmd.c: Include tracepoint.h.
3794 (ensure_not_tfind_mode): New function.
3795 (continue_1): Call it.
3797 (jump_command): Ditto.
3798 (signal_command): Ditto.
3799 (advance_command): Ditto.
3800 (until_command): Ditto.
3801 (finish_command): Ditto.
3802 * tracepoint.h (disconnect_or_stop_tracing): Declare.
3804 * ax-gdb.h (struct axs_value): New field optimized_out.
3805 (gen_trace_for_var): Add gdbarch argument.
3806 * ax-gdb.c (gen_trace_static_fields): New function.
3807 (gen_traced_pop): Call it, add gdbarch argument.
3808 (gen_trace_for_expr): Update call to it.
3809 (gen_trace_for_var): Ditto, and report optimized-out variables.
3810 (gen_struct_ref_recursive): Check for optimized-out value.
3811 (gen_struct_elt_for_reference): Ditto.
3812 (gen_static_field): Pass gdbarch instead of expression, assume
3813 optimization if field not found.
3814 (gen_var_ref): Set the optimized_out flag.
3815 (gen_expr): Error on optimized-out variable.
3816 * tracepoint.c (collect_symbol): Handle struct-valued vars as
3817 expressions, skip optimized-out variables with computed locations.
3818 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3819 erroring out if location expression missing.
3820 (loclist_tracepoint_var_ref): Don't error out here.
3822 2010-03-17 Tom Tromey <tromey@redhat.com>
3824 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3825 DWARF data is available.
3827 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3829 * symfile.c (generic_load): Reset breakpoints after loading.
3831 2010-03-17 Tom Tromey <tromey@redhat.com>
3833 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3835 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3838 create_breakpoint call, adjust the parameters.
3840 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3841 Chandru <chandru@in.ibm.com>
3843 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3844 * valarith.c (value_subscripted_rvalue): Suppress error if
3845 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3847 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
3849 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3851 2010-03-16 Joel Brobecker <brobecker@adacore.com>
3853 * ada-tasks.c (task_command_1): Check that the task ptid is valid
3854 before doing the associated thread switch.
3856 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3858 * MAINTAINERS: Update my email address.
3860 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
3862 Simplify MI breakpoint setting.
3864 * breakpoint.c (break_command_really): Make nonstatic and
3866 (create_breakpoint): ...this. Rename prior function by this name
3868 (create_breakpoint_sal): ...this.
3869 (create_breakpoints): Rename to...
3870 (create_breakpoints_sal): ...this.
3871 (set_breakpoint): Remove.
3872 * breakpoint.h: Adjust to above changes.
3873 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3875 2010-03-15 Stan Shebs <stan@codesourcery.com>
3877 * ax-gdb.c: Include cp-support.h.
3878 (find_field): Remove.
3879 (gen_primitive_field): New function.
3880 (gen_struct_ref_recursive): New function.
3881 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3883 (gen_static_field): New function.
3884 (gen_struct_elt_for_reference): New.
3885 (gen_namespace_elt): New.
3886 (gen_maybe_namespace_elt): New.
3887 (gen_aggregate_elt_ref): New.
3888 (gen_expr): Add OP_SCOPE, display opcode name in error message.
3890 2010-03-15 Tom Tromey <tromey@redhat.com>
3892 * dwarf2read.c (die_needs_namespace): Also return 0 for
3895 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
3898 * cp-support.h: Added char *declaration element to using_direct
3900 (cp_add_using): Added char *declaration argument.
3901 (cp_add_using_directive): Ditto.
3902 (cp_lookup_symbol_imports): made extern.
3903 * cp-namespace.c: Updated with the above changes.
3904 * dwarf2read.c (read_import_statement): Ditto.
3905 (read_namespace): Ditto.
3906 (read_import_statement): Support import declarations.
3907 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3909 Added support for 'declaration_only' search.
3910 (cp_lookup_symbol_namespace): Attempt to search for the name as
3911 is before consideration of imports.
3912 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3913 search at every block level search.
3914 Now takes language argument.
3915 (lookup_symbol_aux): Updated.
3917 2010-03-15 Tom Tromey <tromey@redhat.com>
3919 * c-exp.y (name_not_typename): Add 'operator' clause.
3921 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
3923 * configure.ac: Exit if ${gdb_target_obs}" is not set.
3924 * configure: Regenerate.
3926 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3928 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3929 and ".sdynbss". Update the comment.
3931 2010-03-15 Jie Zhang <jie@codesourcery.com>
3933 * MAINTAINERS: Update my email address.
3935 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3937 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3939 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3941 * charset.c [USE_WIN32API]: Include <windows.h>.
3942 (_initialize_charset): Correct type of w32_host_default_charset.
3944 2010-03-14 Pedro Alves <pedro@codesourcery.com>
3946 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3948 2010-03-12 Tom Tromey <tromey@redhat.com>
3951 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3952 in a lexical block does not need a namespace.
3953 (new_symbol) <DW_TAG_variable>: Put extern variables on
3954 list_in_scope in all cases.
3956 2010-03-12 Stan Shebs <stan@codesourcery.com>
3958 * ax-gdb.c (gen_expr): Add shift expressions.
3959 (gen_expr_binop_rest): Ditto.
3961 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
3963 * buildsym.c (finish_block): Reset using_directives pointer
3964 after block initialization.
3966 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
3968 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
3969 * i386-tdep.c (i386_word_names): Likewise.
3971 2010-03-12 Pedro Alves <pedro@codesourcery.com>
3973 * target.c (memory_xfer_partial): Don't use the stack cache if
3974 inspecting trace frames.
3975 * tracepoint.c (finish_tfind_command): Invalidate the target
3978 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
3981 for the PIC displacement, print also the displacement value.
3982 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
3984 2010-03-10 Kevin Buettner <kevinb@redhat.com>
3986 * remote-mips.c (close_ports, mips_initialize_cleanups)
3987 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
3988 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
3989 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
3990 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
3991 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
3992 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
3993 comments describing each of these functions.
3994 (mips_enter_debug, mips_exit_debug, common_open)
3995 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
3996 blank line after the comment describing the function.
3998 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4000 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4001 parameter displacementp. Update comment.
4002 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4003 element exists. Return if svr4_exec_displacement was not successful.
4006 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4007 Daniel Jacobowitz <dan@codesourcery.com>
4009 * solib-svr4.c (read_program_header): Support type == -1 to read
4010 all program headers.
4011 (read_program_headers_from_bfd): New function.
4012 (svr4_static_exec_displacement): Remove and move the comment ...
4013 (svr4_exec_displacement): ... here. Remove variable found. New
4014 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4015 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4016 targets using read_program_headers_from_bfd. Remove the call of
4017 svr4_static_exec_displacement.
4019 2010-03-10 Tom Tromey <tromey@redhat.com>
4021 * dwarf2read.c (struct pubnames_header): Remove.
4022 (_PUBNAMES_HEADER): Remove.
4023 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4024 (struct aranges_header): Remove.
4025 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4026 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4027 (PUBNAMES_SECTION): Remove.
4028 (ARANGES_SECTION): Remove.
4029 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4030 (dwarf2_build_psymtabs): Remove dead code.
4031 (dwarf2_build_psymtabs_easy): Remove.
4033 2010-03-10 Tom Tromey <tromey@redhat.com>
4035 * elfread.c (elf_symfile_read): Don't call
4036 dwarf2_build_frame_info.
4037 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4038 (struct dwarf2_per_objfile) <objfile>: New field.
4039 (dwarf2_has_info): Now idempotent. Set objfile field.
4040 (dwarf2_read_section): Check and set readin field. Call
4042 (dwarf2_build_psymtabs): Don't read all sections.
4043 (read_type_comp_unit_head): Read types section.
4044 (create_debug_types_hash_table): Likewise.
4045 (init_cu_die_reader): Add asserts.
4046 (process_type_comp_unit): Add assert.
4047 (dwarf2_build_psymtabs_hard): Read info section.
4048 (load_partial_comp_unit): Add assert.
4049 (create_all_comp_units): Read info section.
4050 (load_full_comp_unit): Likewise.
4051 (dwarf2_ranges_read): Read ranges section.
4052 (dwarf2_record_block_ranges): Add assert.
4053 (dwarf2_read_abbrevs): Read abbrev section.
4054 (read_indirect_string): Read str section.
4055 (dwarf_decode_line_header): Read line section.
4056 (read_signatured_type_at_offset): Read types section.
4057 (dwarf_decode_macros): Read macinfo section.
4058 (dwarf2_symbol_mark_computed): Read loc section.
4059 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4060 dwarf2_build_frame_info.
4061 (dwarf2_build_frame_info): Unconditionally set
4062 dwarf2_frame_objfile_data on the objfile.
4063 * configure.ac: Check for posix_madvise.
4064 * config.in, configure: Rebuild.
4066 2010-03-10 Tom Tromey <tromey@redhat.com>
4068 * xcoffread.c (xcoff_start_psymtab): Update.
4069 (xcoff_end_psymtab): Update.
4070 * psymtab.c (allocate_psymtab): Remove dead code.
4071 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4073 * mdebugread.c (parse_partial_symbols): Update.
4074 (new_psymtab): Likewise.
4075 * dwarf2read.c (process_psymtab_comp_unit): Update.
4076 (psymtab_to_symtab_1): Update.
4077 * dbxread.c (start_psymtab): Update.
4078 (end_psymtab): Likewise.
4080 2010-03-10 Tom Tromey <tromey@redhat.com>
4082 * xcoffread.c: Include psymtab.h.
4083 (xcoff_sym_fns): Update.
4084 * symtab.h (struct partial_symbol): Remove.
4085 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4086 (struct partial_symtab): Remove.
4087 (PSYMTAB_TO_SYMTAB): Remove.
4088 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4089 (find_pc_sect_psymtab): Remove.
4090 (find_pc_sect_symtab_via_partial): Declare.
4091 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4092 (find_main_psymtab): Remove.
4093 (find_main_filename): Declare.
4094 (fixup_psymbol_section): Remove.
4095 (fixup_section): Declare.
4096 * symtab.c: Include psymtab.h.
4097 (lookup_symtab): Use lookup_symtab method.
4098 (lookup_partial_symtab): Remove.
4099 (find_pc_sect_psymtab_closer): Remove.
4100 (find_pc_sect_psymtab): Remove.
4101 (find_pc_sect_symtab_via_partial): New function.
4102 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4103 (fixup_section): No longer static.
4104 (fixup_psymbol_section): Remove.
4105 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4106 (lookup_global_symbol_from_objfile): Likewise.
4107 (lookup_symbol_aux_psymtabs): Remove.
4108 (lookup_symbol_aux_quick): New function.
4109 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4110 (lookup_partial_symbol): Remove.
4111 (basic_lookup_transparent_type_quick): New function.
4112 (basic_lookup_transparent_type): Use it.
4113 (find_main_psymtab): Remove.
4114 (find_main_filename): New function.
4115 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4116 (find_line_symtab): Use expand_symtabs_with_filename method.
4117 (output_partial_symbol_filename): New function.
4118 (sources_info): Use map_partial_symbol_filenames.
4119 (struct search_symbols_data): New type.
4120 (search_symbols_file_matches): New function.
4121 (search_symbols_name_matches): Likewise.
4122 (search_symbols): Use expand_symtabs_matching method.
4123 (struct add_name_data): Rename from add_macro_name_data.
4124 (add_macro_name): Update.
4125 (add_partial_symbol_name): New function.
4126 (default_make_symbol_completion_list): Use
4127 map_partial_symbol_names.
4128 (struct add_partial_symbol_name): New type.
4129 (maybe_add_partial_symtab_filename): New function.
4130 (make_source_files_completion_list): Use
4131 map_partial_symbol_filenames.
4132 (expand_line_sal): Use expand_symtabs_with_filename method.
4133 * symmisc.c: Include psymtab.h.
4134 (print_objfile_statistics): Use print_stats method.
4135 (dump_objfile): Use dump method.
4136 (dump_psymtab, maintenance_print_psymbols)
4137 (maintenance_info_psymtabs, maintenance_check_symtabs)
4138 (extend_psymbol_list): Remove.
4139 * symfile.h (struct quick_symbol_functions): New struct.
4140 (struct sym_fns) <qf>: New field.
4141 (sort_pst_symbols): Remove.
4142 (increment_reading_symtab): Declare.
4143 * symfile.c: Include psymtab.h.
4144 (compare_psymbols, sort_pst_symbols): Remove.
4145 (psymtab_to_symtab): Remove.
4146 (increment_reading_symtab): New function.
4147 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4149 (set_initial_language): Use find_main_filename.
4150 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4151 (free_named_symtabs): Remove unused code.
4152 (start_psymtab_common, add_psymbol_to_bcache)
4153 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4155 * stack.c: Include psymtab.h, symfile.h.
4156 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4157 * source.h (psymtab_to_fullname): Don't declare.
4158 * source.c: Include psymtab.h.
4159 (select_source_symtab): Use find_last_source_symtab method.
4160 (forget_cached_source_info): Use forget_cached_source_info
4162 (find_and_open_source): No longer static.
4163 (psymtab_to_fullname): Remove.
4164 * somread.c: Include psymtab.h.
4165 (som_sym_fns): Update.
4166 * psympriv.h: New file.
4167 * psymtab.h: New file.
4168 * psymtab.c: New file.
4169 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4170 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4171 * objfiles.c: Include psymtab.h.
4172 (objfile_relocate1): Use relocate method.
4173 (objfile_has_partial_symbols): Use has_symbols method.
4174 * mipsread.c: Include psymtab.h.
4175 (ecoff_sym_fns): Update.
4176 * mi/mi-cmd-file.c: Include psymtab.h.
4177 (print_partial_file_name): New function.
4178 (mi_cmd_file_list_exec_source_files): Use
4179 map_partial_symbol_filenames.
4180 * mdebugread.c: Include psympriv.h.
4181 * machoread.c: Include psympriv.h.
4182 (macho_sym_fns): Update.
4183 * m2-exp.y (yylex): Use lookup_symtab.
4184 * elfread.c: Include psympriv.h.
4185 (elf_sym_fns): Update.
4186 * dwarf2read.c: Include psympriv.h.
4187 * dbxread.c: Include psympriv.h.
4188 (aout_sym_fns): Update.
4189 * cp-support.c: Include psymtab.h.
4190 (read_in_psymtabs): Remove.
4191 (make_symbol_overload_list_qualified): Use
4192 expand_symtabs_for_function method.
4193 * coffread.c: Include psympriv.h.
4194 (coff_sym_fns): Update.
4195 * blockframe.c: Include psymtab.h.
4196 (find_pc_partial_function): Use find_pc_sect_symtab method.
4197 * ada-lang.h (ada_update_initial_language): Update.
4198 * ada-lang.c: Include psymtab.h.
4199 (ada_update_initial_language): Remove 'main_pst' argument.
4200 (ada_lookup_partial_symbol): Remove.
4201 (struct ada_psym_data): New type.
4202 (ada_add_psyms): New function.
4203 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4204 (struct add_partial_datum): New type.
4205 (ada_add_partial_symbol_completions): New function.
4206 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4207 (ada_exception_support_info_sniffer): Update.
4208 * Makefile.in (SFILES): Add psymtab.c.
4209 (COMMON_OBS): Add psymtab.o.
4210 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4212 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4214 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4216 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4219 * cp-namespace.c (cp_add_using): Deleted.
4220 (cp_add_using_directive): Use obstack allocations.
4221 Merged the function cp_add_using into this one.
4222 Added 'struct obstack *' argument.
4223 (cp_scan_for_anonymous_namespaces): Updated.
4224 * cp-support.h: Updated.
4225 * dwarf2read.c (read_import_statement): Updated.
4226 (read_namespace): Updated.
4228 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4230 * windows-nat.c (cygwin_conv_path): Remove old macro.
4232 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4234 * breakpoint.c (condition_command): Handle watchpoint conditions.
4235 (is_hardware_watchpoint): Add comment.
4236 (is_watchpoint): New.
4237 (update_watchpoint): Don't reparse the watchpoint's condition
4240 (watchpoint_check): Use it.
4241 (bpstat_check_watchpoint): Handle it.
4242 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4243 conditions in a frame where it makes sense.
4244 (watch_command_1): Store the innermost block of the condition
4246 (delete_breakpoint): Delete the watchpoint condition expression.
4247 * breakpoint.h (struct bp_location) <cond>: Update comment.
4248 (struct breakpoint): New field `cond_exp_valid_block'.
4250 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4252 Adjust handling of Ada DIEs after dwarf2_physname patch.
4253 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4255 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4256 Pierre Muller <muller@ics.u-strasbg.fr>
4258 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4259 from/to posix/win32.
4260 (windows_make_so): Use non-Cygwin 1.7 specific function.
4261 (windows_create_inferior): Make sure that cygallargs points to
4262 original args in non Cygwin 1.7. case.
4264 2010-03-09 Michael Snyder <msnyder@vmware.com>
4266 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4267 after target_read_memory to get host byte order.
4268 (i386_process_record): Ditto.
4270 2010-03-09 Keith Seitz <keiths@redhat.com>
4272 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4273 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4274 print out const or volatile qualifiers, too.
4275 (c_type_print_args): Add parameters show_artificial and language.
4276 Skip artificial parameters when requested.
4277 Use the appropriate language printer.
4278 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4279 parameters and pass language_c.
4280 * dwarf2read.c (die_list): New file global.
4281 (struct partial_die_info): Update comments for name field.
4282 (pdi_needs_namespace): Renamed to ...
4283 (die_needs_namespace): ... this. Rewrite.
4284 (dwarf2_linkage_name): Remove.
4285 (add_partial_symbol): Do not predicate the call to
4286 partial_die_full_name based on pdi_needs_namespace.
4287 Remove call to cp_check_possible_namespace_symbols and associated
4289 (guess_structure_name): Do not inspect child subprogram DIEs.
4290 (dwarf2_fullname): Update comments.
4291 Use die_needs_namespace to assist in computing the name.
4292 (read_func_scope): Use dwarf2_name to get the DIE's name.
4293 Use dwarf2_physname to get the "linkage name" of the DIE.
4294 (dwarf2_add_member_field): Use dwarf2_physname instead of
4295 dwarf2_linkage_name.
4296 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4297 (determine_class): Remove.
4298 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4300 (new_symbol): Unconditionally call dwarf2_name.
4301 Compute the "linkage name" using dwarf2_physname.
4302 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4303 When determining to scan for anonymous C++ namespaces, ignore
4305 (dwarf2_physname): New function.
4306 (dwarf2_full_name): Move content to new function and call
4308 (dwarf2_compute_name): "New" function.
4309 (_initialize_dwarf2_read): Initialize die_list.
4310 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4312 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4313 without a demangled name.
4314 Print out type information for non-virtual methods.
4315 * linespec.c (decode_line_1): Force ANY string using "::" (or
4316 "." for java) to use decode_compound, and clean up any stray quoting.
4317 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4318 (decode_compound): Stop consuming at an open parenthesis.
4319 Keep template parameters.
4320 Keep any overload information.
4321 Keep keywords like "const".
4322 Remove paren_pointer.
4323 Move is_quoted check from set_flags to here.
4324 Remove #if 0 code from 2000. Ten years is long enough.
4325 (find_method): Before comparing symbol names, canonicalize the string
4327 If a specific overload is requested, find it. Otherwise throw an error.
4328 (find_method_overload_end): New function.
4329 (set_flags): Remove.
4330 (decode_compound): Assume that parentheses are matched.
4332 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4334 * linespec.c (decode_line_1): Keep important keywords like
4335 "const" and "volatile".
4336 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4337 * typeprint.h (c_type_print_args): Add declaration.
4338 * ui-file.c (do_ui_file_obsavestring): New function.
4339 (ui_file_obsavestring): New function.
4340 * ui-file.h (ui_file_obsavestring): Add declaration.
4341 * valops.c (find_overload_match): Resolve the object to
4343 If the object is a data member, search the object for the member
4344 and return with staticp set.
4345 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4346 Do not attempt to extract a function name from non-function types.
4347 If the extracted function name and the original name are the same,
4348 we don't have a C++ method.
4350 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4351 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4353 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4354 and arguments from symbol lookups.
4355 * ax-gdb.c (gen_expr): Likewise.
4356 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4357 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4358 lookup_possible_namespace_symbol): Likewise.
4359 * cp-support.c (read_in_psymtabs): Likewise.
4360 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4361 * language.h (la_lookup_symbol_nonlocal): Likewise.
4362 * scm-valprint.c (scm_inferior_print): Likewise.
4363 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4364 * solib-svr.c (elf_lookup_lib): Likewise.
4365 * solib.c (show_auto_solib_add): Likewise.
4366 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4367 * symmisc.c (maintenance_check_symtabs): Likewise.
4368 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4369 lookup_symbol_aux_local, lookup_symbol_aux_block,
4370 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4371 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4372 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4373 basic_lookup_transparent_type, find_main_psymtab,
4374 lookup_block_symbol): Likewise.
4375 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4376 lookup_symbol_global, lookup_symbol_aux_block,
4377 lookup_symbol_partial_symbol, lookup_block_symbol,
4378 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4380 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4382 * python/python-internal.h: Include symtab.h.
4384 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4385 Pierre Muller <muller@ics.u-strasbg.fr>
4387 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4388 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4391 2010-03-08 Tom Tromey <tromey@redhat.com>
4393 * breakpoint.c (breakpoint_1): Add "QUIT".
4395 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4396 Pedro Alves <pedro@codesourcery.com>
4398 * solib.c (solib_find): Replace extension if
4399 solib_symbols_extension is set in the target gdbarch.
4400 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4401 solib_symbols_extension to "sym".
4402 * gdbarch.sh (solib_symbols_extension): New variable.
4403 (pstring): New function.
4404 * gdbarch.h, gdbarch.c: Regenerate.
4406 2010-03-08 Tom Tromey <tromey@redhat.com>
4410 * utils.c: Include main.h.
4411 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4412 (defaulted_query): Use default answer if `batch_flag'.
4413 * main.h (batch_flag): Declare.
4414 * main.c (batch_flag): New global.
4415 (captured_main): Remove 'batch'. Update.
4417 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4419 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4422 * remote-mips.c (rockhopper_ops): New target_ops struct.
4423 (MON_ROCKHOPPER): New mips_monitor_type.
4424 (read_hex_value): New function.
4425 (mips_request): Send 8-byte values with a 'T' packet. Read the
4426 packet argument as a string and use read_hex_value to parse it.
4427 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4428 (rockhopper_open): New function.
4429 (mips_wait): Read the PC, FP and SP fields as strings. Use
4430 read_hex_value to parse them and mips_set_register to commit them.
4431 (mips_set_register): New function.
4432 (mips_fetch_registers): Do not cast register value to "unsigned"
4433 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4434 (mips_store_registers): Use a 'T' packet to set registers when
4435 using MON_ROCKHOPPER.
4436 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4437 and expect the total to be printed before the entry address.
4438 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4440 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4442 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4443 Change return value to int. Store value fetched in location
4444 addressed by `val'. Use function's return value as success
4445 or failure indicator. Adjust all callers.
4447 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4449 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4451 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4452 Hui Zhu <teawater@gmail.com>
4454 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4455 tmp_to_stopped_data_address.
4456 (record_open): Reset tmp_to_stopped_by_watchpoint and
4457 tmp_to_stopped_data_address.
4458 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4459 to_stopped_data_address.
4461 2010-03-08 Hui Zhu <teawater@gmail.com>
4463 * i386-tdep.c (i386_process_record): Initialize regnum.
4465 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4467 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4468 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4470 2010-03-08 Joel Brobecker <brobecker@adacore.com>
4472 Memory error when reading wrong core file.
4473 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4474 errors while reading the inferior memory, and return zero if
4475 an exception was raised.
4477 2010-03-07 Michael Snyder <msnyder@vmware.com>
4479 * record.c (record_restore): Rename tmpu8 to rectype.
4481 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4482 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4484 (i386_record_push): Rename local tmpulongest to addr.
4486 (i386_process_record): Rename local tmpulongest to addr.
4488 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4491 Rename local variable tmpu8 to opcode8 and regnum.
4493 2010-03-07 Joel Brobecker <brobecker@adacore.com>
4495 * remote.c (remote_get_ada_task_ptid): New function.
4496 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
4498 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4500 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4501 block. Define helper macros to reduce ifdefs in code.
4502 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4503 size. Call unadorned GetModuleFileNameEx rather than
4504 GetModuleFileNameEx*.
4505 (windows_make_so): Use __PMAX to denote maximum buffer size and
4506 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4508 (get_image_name): Use __PMAX to denote maximum buffer size.
4509 (handle_load_dll): Likewise.
4510 (windows_pid_to_exec_file): Likewise.
4511 (windows_create_inferior): Add many accommodations for older Cygwin and
4513 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4514 __USEWIDE conditional.
4515 (bad_GetModuleFileNameExA): Likewise.
4516 (_initialize_loadable): Just use real function names without the dyn_
4517 part since they are defined earlier.
4519 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
4520 Tom Tromey <tromey@redhat.com>
4522 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4523 (parse_escape): Likewise.
4524 * python/py-utils.c (unicode_to_target_string): Update.
4525 (unicode_to_target_python_string): Update.
4526 (target_string_to_unicode): Update.
4527 * printcmd.c (printf_command): Update.
4528 * p-exp.y (yylex): Update.
4529 * objc-exp.y (yylex): Update.
4530 * mi/mi-parse.c: Include charset.h.
4531 (mi_parse_escape): New function.
4532 (mi_parse_argv): Use it.
4533 * jv-exp.y (yylex): Update.
4534 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4536 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4537 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4538 * gdbarch.c: Rebuild.
4539 * gdbarch.h: Rebuild.
4540 * defs.h (parse_escape): Update.
4541 * cli/cli-setshow.c: Include arch-utils.h.
4542 (do_setshow_command): Update.
4543 * cli/cli-cmds.c (echo_command): Update.
4544 * charset.h (target_charset, target_wide_charset): Update.
4545 * charset.c: Include arch-utils.h.
4546 (target_charset_name): Default to "auto".
4547 (target_wide_charset_name): Likewise.
4548 (show_target_charset_name): Handle "auto".
4549 (show_target_wide_charset_name): Likewise.
4550 (be_le_arch): New global.
4551 (set_be_le_names): Add 'gdbarch' argument.
4552 (validate): Likewise. Don't call set_be_le_names.
4553 (set_charset_sfunc, set_host_charset_sfunc)
4554 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4556 (target_charset): Add 'gdbarch' argument.
4557 (target_wide_charset): Likewise. Remove 'byte_order' argument.
4558 (auto_target_charset_name): New global.
4559 (default_auto_charset, default_auto_wide_charset): New functions.
4560 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
4561 for target charsets. Copy result of nl_langinfo. Use GetACP if
4563 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4564 remove 'byte_order' argument. Update.
4565 (classify_type): Likewise.
4566 (c_emit_char): Update.
4567 (c_printchar): Update.
4568 (c_printstr): Update.
4569 (c_get_string): Update.
4570 (evaluate_subexp_c): Update.
4571 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4573 * python/python.c (gdbpy_target_charset): New function.
4574 (gdbpy_target_wide_charset): Likewise.
4575 (GdbMethods): Update.
4578 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4580 * symfile.c (build_section_addr_info_from_objfile): Do not mask
4581 off high address bits.
4583 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4585 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4586 address as UnsignedLongLong, not LongLong.
4588 2010-03-05 Kevin Buettner <kevinb@redhat.com>
4589 Pedro Alves <pedro@codesourcery.com>
4591 * remote-mips.c (gdbthread.h): Include.
4592 (remote_mips_ptid): Declare.
4593 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4594 (common_open): Set inferior_ptid, add it as an inferior, and
4595 as a thread too. Delete FIXME comment regarding start_remote().
4596 (mips_close): Invoke generic_mourn_inferior().
4597 (mips_kill): Make sure that target_mourn_inferior is invoked.
4598 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4599 it's now invoked from mips_close().
4600 (mips_load): Don't null out inferior_ptid. Don't call
4601 clear_symtab_users().
4602 (mips_thread_alive, mips_pid_to_str): New functions.
4603 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
4604 to_thread_alive and to_pid_to_str operations.
4606 2010-03-04 Tom Tromey <tromey@redhat.com>
4608 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4609 in DWARF 3 and later.
4610 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4612 2010-03-04 Keith Seitz <keiths@redhat.com>
4614 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4615 If the filename portion of the linespec was quoted, recheck the
4616 remainder for additional quoting.
4617 (locate_first_half): Skip over completer chars, too.
4619 2010-03-04 Tom Tromey <tromey@redhat.com>
4621 * printcmd.c (printf_command): Pass dummy argument to
4624 2010-03-04 Doug Evans <dje@google.com>
4626 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4629 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4631 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4633 * breakpoint.c (update_watchpoint): Create a sentinel location if
4634 the software watchpoint isn't watching any memory.
4635 (breakpoint_address_bits): Skip dummy software watchpoint locations.
4637 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4639 * utils.c (fputs_maybe_filtered): Check if there's already a top
4640 level interpreter before dereferencing it. If there isn't one,
4641 don't paginate either.
4643 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4645 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4646 the state right when single stepping.
4647 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4648 Get the next PC along with the instruction state.
4649 (thumb_get_next_pc): Remove.
4650 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4652 2010-03-04 Hui Zhu <teawater@gmail.com>
4654 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4656 2010-03-03 Pedro Alves <pedro@codesourcery.com>
4658 * utils.c (fputs_maybe_filtered): Always disable pagination if the
4659 top level interpreter is MI.
4661 2010-03-03 Stan Shebs <stan@codesourcery.com>
4663 * remote.c (remote_download_tracepoint): Iterate over locations.
4664 * tracepoint.c (validate_actionline): Ditto.
4665 (encode_actions): Add location argument.
4666 (trace_dump_command): Check all locations to see if stepping
4669 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
4670 Eli Zaretskii <eliz@gnu.org>
4672 * NEWS: Add X86 general purpose registers section.
4674 2010-03-03 Tom Tromey <tromey@redhat.com>
4677 * varobj.c (install_new_value): Handle case where new print_value
4680 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
4683 * printcmd.c (printf_command): Print end of format string using
4686 2010-03-02 Tom Tromey <tromey@redhat.com>
4688 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4689 * defs.h (read_command_lines_1): Add missing 'void'.
4690 * cli/cli-script.c (recurse_read_control_structure): Add missing
4692 (read_next_line): Likewise.
4693 (read_command_lines_1): Likewise.
4695 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4697 * spu-tdep.c (spu_analyze_prologue): Track instruction to
4698 store backchain as part of prologue.
4700 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4702 * progspace.c (update_address_spaces): Update inferior address spaces
4705 2010-03-02 Doug Evans <dje@google.com>
4707 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4708 lowpc,highpc args to addrmap_set_empty.
4710 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
4712 * amd64-tdep.c (amd64_byte_names): New.
4713 (amd64_word_names): Likewise.
4714 (amd64_dword_names): Likewise.
4715 (amd64_pseudo_register_name): Likewise.
4716 (amd64_pseudo_register_read): Likewise.
4717 (amd64_pseudo_register_write): Likewise.
4718 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4719 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
4720 set_gdbarch_pseudo_register_write and
4721 set_tdesc_pseudo_register_name. Don't call
4722 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
4724 * i386-tdep.c (i386_num_mmx_regs): Removed.
4725 (i386_num_pseudo_regs): Likewise.
4726 (i386_byte_names): New.
4727 (i386_word_names): Likewise.
4728 (i386_byte_regnum_p): Likewise.
4729 (i386_word_regnum_p): Likewise.
4730 (i386_mmx_regnum_p): Updated.
4731 (i386_pseudo_register_name): Make it global. Handle byte and
4732 word pseudo-registers.
4733 (i386_pseudo_register_read): Likewise.
4734 (i386_pseudo_register_write): Likewise.
4735 (i386_pseudo_register_type): Handle byte, word and dword
4737 (i386_register_reggroup_p): Don't include pseudo
4738 registers, except for MXX, in any register groups. Don't
4739 include pseudo byte, word, dword registers in general_reggroup.
4740 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4741 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
4742 pseudo-registers after word pseudo-registers. Call
4743 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4745 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4746 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4748 (i386_byte_regnum_p): New.
4749 (i386_word_regnum_p): Likewise.
4750 (i386_dword_regnum_p): Likewise.
4751 (i386_pseudo_register_name): Likewise.
4752 (i386_pseudo_register_read): Likewise.
4753 (i386_pseudo_register_write): Likewise.
4755 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4757 * target-descriptions.c (tdesc_type): Remove
4758 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4759 (tdesc_predefined_types): Likewise.
4760 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
4761 if flag name is empty.
4762 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4764 * features/i386/32bit-core.xml: Define i386_eflags.
4765 * features/i386/64bit-core.xml: Likewise.
4767 * features/i386/32bit-sse.xml: Define i386_mxcsr.
4768 * features/i386/64bit-sse.xml: Likewise.
4770 * features/i386/amd64-linux.c: Regenerated.
4771 * features/i386/amd64.c: Likewise.
4772 * features/i386/i386-linux.c: Likewise.
4773 * features/i386/i386.c: Likewise.
4775 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
4777 * gdbtypes.c (append_composite_type_field_raw): New.
4778 (append_composite_type_field_aligned): Use the new function.
4779 * gdbtypes.h (append_composite_type_field_raw): Declare.
4780 * target-descriptions.c (struct tdesc_type_field): Add start and end.
4781 (struct tdesc_type_flag): New type.
4782 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4783 kind. Add size to u.u. Add u.f for flags.
4784 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4785 (tdesc_free_type): Likewise.
4786 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4787 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4788 (tdesc_add_bitfield, tdesc_add_flag): New.
4789 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4790 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4791 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4792 current_type. Add current_type_size and current_type_is_flags.
4793 (tdesc_start_union): Clear the new fields.
4794 (tdesc_start_struct, tdesc_start_flags): New.
4795 (tdesc_start_field): Handle struct fields, including bitfields.
4796 (field_attributes): Make type optional. Add start and end.
4797 (union_children): Rename to struct_union_children.
4798 (union_attributes): Rename to struct_union_attributes. Add optional
4800 (flags_attributes): New.
4801 (feature_children): Add struct and flags.
4802 * features/gdb-target.dtd: Add flags and struct to features.
4803 Make field type optional. Add field start and end.
4805 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4807 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4808 (amd64_linux_read_description): Likewise.
4809 (_initialize_amd64_linux_nat): Set to_read_description to
4810 amd64_linux_read_description.
4812 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4813 (amd64_linux_register_name): Removed.
4814 (amd64_linux_register_type): Likewise.
4815 (amd64_linux_core_read_description): New.
4816 (amd64_linux_init_abi): Set target description to
4817 tdesc_amd64_linux if needed. Support orig_rax in target
4818 description. Don't call set_gdbarch_register_name nor
4819 set_gdbarch_register_type. Call
4820 set_gdbarch_core_read_description.
4821 (_initialize_amd64_linux_tdep): Call
4822 initialize_tdesc_amd64_linux.
4824 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4826 * amd64-tdep.c: Include "features/i386/amd64.c".
4827 (amd64_register_names): Removed.
4828 (amd64_register_name): Likewise.
4829 (amd64_register_type): Likewise.
4830 (amd64_init_abi): Set num_core_regs and register_names. Set
4831 target description to tdesc_amd64 if needed. Don't call
4832 set_gdbarch_register_name nor set_gdbarch_register_type.
4833 (_initialize_amd64_tdep): New.
4835 * i386-linux-nat.c (i386_linux_read_description): New.
4836 (_initialize_i386_linux_nat): Set to_read_description to
4837 i386_linux_read_description.
4839 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4840 (i386_linux_register_name): Removed.
4841 (i386_linux_core_read_description): New.
4842 (i386_linux_read_description): Likewise.
4843 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4844 Set target description to tdesc_i386_linux if needed. Support
4845 orig_eax. Set register_reggroup_p. Call
4846 set_gdbarch_core_read_description.
4847 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4849 * i386-linux-tdep.h (tdesc_i386_linux): New.
4851 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4854 * i386-tdep.c: Include "features/i386/i386.c".
4855 (i386_register_names): Make it const.
4856 (i386_mmx_names): Likewise.
4857 (i386_num_register_names): Removed.
4858 (i386_register_name): Likewise.
4859 (i386_eflags_type): Likewise.
4860 (i386_mxcsr_type): Likewise.
4861 (i386_sse_type): Likewise.
4862 (i386_register_type): Likewise.
4863 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4864 (i386_pseudo_register_name): New.
4865 (i386_pseudo_register_type): Likewise.
4866 (i386_mmx_type): Make it static.
4867 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
4868 I387_NUM_REGS. Set num_core_regs and register_names. Don't
4869 call set_gdbarch_register_name nor set_gdbarch_register_type.
4870 Set register_reggroup_p. Set target description to tdesc_i386
4871 if needed. Call set_tdesc_pseudo_register_type,
4872 set_tdesc_pseudo_register_name and tdesc_use_registers.
4873 (_initialize_i386_tdep): Call initialize_tdesc_i386.
4874 initialize_tdesc_x86_64.
4876 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4877 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
4878 register_names, tdesc and register_reggroup_p.
4879 (I386_NUM_FREGS): Removed.
4880 (i386_eflags_type): Likewise.
4881 (i386_mxcsr_type): Likewise.
4882 (i386_mmx_type): Likewise.
4883 (i386_sse_type): Likewise.
4884 (i386_register_name): Likewise.
4885 (i386_regnum): Add I386_MXCSR_REGNUM.
4886 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4888 * i387-tdep.h (I387_NUM_REGS): New.
4890 * regformats/i386/i386-linux.dat: Generated.
4891 * regformats/i386/i386.dat: Likewise.
4892 * regformats/i386/amd64-linux.dat: Likewise.
4893 * regformats/i386/amd64.dat: Likewise.
4895 * regformats/reg-i386-linux.dat: Removed.
4896 * regformats/reg-i386.dat: Likewise.
4897 * regformats/reg-x86-64-linux.dat: Likewise.
4898 * regformats/reg-x86-64.dat: Likewise.
4900 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
4902 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4903 cygwin_conv_path API rather than the deprecated
4904 cygwin_conv_to_full_posix_path.
4906 (GetModuleFileNameExA): Undefine for Cygwin.
4907 (GetModuleFileNameExW): Define for Cygwin.
4908 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4909 Call GetModuleFileNameExW and convert path to POSIX using
4911 (windows_make_so): Always define p. Drop unused variable m.
4912 Don't use Win32 functions to check file existance, rather use
4913 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
4914 Use canonicalize_file_name to get full path.
4915 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4916 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
4917 use correct target buffer size in call to WideCharToMultiByte.
4918 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4919 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4920 (windows_create_inferior): Convert all paths and arguments to wchar_t
4921 and use CreateProcessW on Cygwin.
4922 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4923 (bad_GetModuleFileNameExA): Undefine for Cygwin.
4924 (bad_GetModuleFileNameExW): Define for Cygwin.
4925 (_initialize_loadable): Load GetModuleFileNameExW into
4926 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
4928 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
4931 * python/py-frame.c (frapy_read_var): Add block argument and logic
4932 to cope with user provided blocks.
4934 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4936 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4939 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
4941 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4942 (COMMON_OBS): ... to here since it's used unconditionally.
4943 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4946 2010-02-26 David Daney <ddaney@caviumnetworks.com>
4948 * mips-linux-tdep.c: Update struct sigframe comments.
4949 (SIGFRAME_CODE_OFFSET): Delete macro.
4950 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4952 (mips_linux_n32n64_sigframe_init): Same.
4954 2010-02-26 Kevin Buettner <kevinb@redhat.com>
4956 * remote-mips.c (mips_load): Don't use pseudo-register when
4957 invalidating regcache.
4959 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4961 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4963 2010-02-26 Pedro Alves <pedro@codesourcery.com>
4965 * NEWS: Add "New targets" section, and mention ARM Symbian
4968 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
4970 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
4971 add ADDR_SIZE member.
4972 (allocate_piece_closure): Update.
4973 (copy_pieced_value_closure): Likewise.
4974 (dwarf2_evaluate_loc_desc): Likewise.
4975 (read_pieced_value): Use DWARF address size instead of
4976 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
4978 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
4979 Tom Tromey <tromey@redhat.com>
4981 * python/py-type.c (typy_lookup_typename): Add in block argument.
4982 If provided restrict lookup to specified blocks.
4983 (gdbpy_lookup_type): Likewise.
4984 (typy_lookup_type): Likewise.
4986 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
4991 * arm-symbian-tdep.c: New.
4992 * configure.tgt (arm*-*-symbianelf*): New target.
4993 (*-*-symbianelf*): New OS.
4994 * osabi.c (gdb_osabi_names): Add Symbian.
4995 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
4996 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
4997 (ALLDEPFILES): Add arm-symbian-tdep.c.
4999 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5001 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5003 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5005 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5007 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5008 Tom Tromey <tromey@redhat.com>
5009 Thiago Jung Bauermann <bauerman@br.ibm.com>
5011 * python/python.c (_initialize_python): Call
5012 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5013 gdbpy_initialize_blocks.
5014 * python/python-internal.h: Declare struct symbol, block and
5015 symtab_and_line. Declare block_object_type and
5017 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5018 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5019 (symbol_to_symbol_object, block_to_block_object)
5020 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5021 (gdbpy_initialize_blocks ): Declare.
5022 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5023 (frapy_select): Add methods.
5024 (frapy_read_var): Add symbol branch.
5025 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5027 (SUBDIR_PYTHON_SRCS): Likewise.
5028 (py-symbol.o): New rule.
5029 (py-symtab.o): Likewise.
5030 (py-block.o): Likewise.
5031 * python/py-symbol.c: New file.
5032 * python/py-symtab.c: Likewise.
5033 * python/py-block.c: Likewise.
5035 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5039 * inferior.h (prepare_for_detach): Declare.
5040 (struct inferior) <detaching>: New field.
5041 * infrun.c (prepare_for_detach): New.
5042 (handle_inferior_event) <random signal>: Don't stop if detaching.
5043 * target.c (target_detach): Call prepare_for_detach.
5045 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5047 Per-process displaced stepping queue.
5049 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5050 (displaced_step_gdbarch, displaced_step_closure,
5051 (displaced_step_original, displaced_step_copy): Move globals to
5053 (struct displaced_step_inferior_state): ... new structure.
5054 (displaced_step_inferior_states): New global.
5055 (get_displaced_stepping_state, add_displaced_stepping_state)
5056 (remove_displaced_stepping_state, infrun_inferior_exit): New
5058 (displaced_step_clear): Add displaced_step_inferior_state
5059 parameter, and adjust to handle it.
5060 (displaced_step_clear_cleanup): Parameter is now a
5061 displaced_step_inferior_state. Adjust.
5062 (displaced_step_prepare): Adjust.
5063 (displaced_step_fixup, displaced_step_fixup)
5064 (infrun_thread_ptid_changed, resume): Adjust.
5065 (init_wait_for_inferior): Don't call displaced_step_clear.
5066 (infrun_thread_stop_requested): Rewrite.
5067 (_initialize_infrun): Install infrun_inferior_exit as
5068 inferior_exit observer.
5070 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5072 * inferior.h (ptid_match): Declare.
5073 * infrun.c (ptid_match): New.
5074 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5075 (handle_notification): Add debug output.
5076 * linux-nat.c (ptid_match): Delete.
5078 2010-02-24 David S. Miller <davem@davemloft.net>
5080 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5081 * syscalls/sparc-linux.xml: New.
5082 * syscalls/sparc64-linux.xml: New.
5083 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5084 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5085 (sparc32_linux_get_syscall_number): New function.
5086 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5087 syscall number fetcher.
5088 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5089 (sparc64_linux_get_syscall_number): New function.
5090 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5091 syscall number fetcher.
5093 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5097 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5098 * inferior.c (add_inferior_silent): Notify inferior_added
5100 (delete_inferior_1): Notify inferior_removed observer.
5101 (exit_inferior_1): Pass inferior, not pid, to observer.
5102 (inferior_appeared): Likewise.
5103 (add_inferior_with_spaces): New.
5104 (add_inferior_command): Use the above.
5105 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5108 * inflow.c (inflow_inferior_exit): Likewise.
5109 * jit.c (jit_inferior_exit_hook): Likewise.
5111 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5113 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5114 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5115 (report_initial_inferior): New.
5116 (mi_inferior_removed): Register the above. Make sure
5117 inferior_added observer is called on the first inferior.
5118 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5119 inferior number, not pid.
5120 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5122 * mi/mi-main.c (current_context): New.
5123 (proceed_thread_callback): Use typed closure.
5124 Proceed everything if pid is 0. Most implementation split into
5125 (proceed_thread): ... this.
5126 (run_one_inferior): New.
5127 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5128 Adjust for multiexec behaviour.
5129 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5130 (mi_cmd_execute): Handle the 'thread-group' option here.
5131 Do some extra checks.
5132 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5134 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5136 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5138 Make -exec-run a proper MI commands.
5140 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5141 * mi/mi-cmds.c (mi_cmds): Adjust.
5142 * mi/mi-main.c (mi_cmd_exec_run): New.
5144 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5145 Stan Shebs <stan@codesourcery.com>
5147 * tracepoint.h (set_traceframe_number)
5148 (cleanup_restore_current_traceframe): Declare.
5149 * tracepoint.c (set_traceframe_number): New.
5150 (struct current_traceframe_cleanup): New.
5151 (do_restore_current_traceframe_cleanup)
5152 (restore_current_traceframe_cleanup_dtor)
5153 (make_cleanup_restore_current_traceframe): New.
5154 * infrun.c: Include tracepoint.h.
5155 (fetch_inferior_event): Switch out and in of tfind mode.
5157 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5159 * breakpoint.c (breakpoint_init_inferior): Also delete
5160 bp_shlib_event breakpoints.
5161 * solib-frv.c (enable_break): Remove call to
5162 remove_solib_event_breakpoints.
5163 * solib-svr4.c (enable_break): Ditto.
5164 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5165 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5166 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5167 * solib-spu.c (spu_enable_break): Ditto.
5169 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5171 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5173 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5175 * varobj.c (varobj_update): Avoid non-constants in initializers.
5177 2010-02-23 Tom Tromey <tromey@redhat.com>
5179 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5180 handle big-endian values.
5181 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5183 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5188 * breakpoint.c (insert_bp_location): If inserting the read
5189 watchpoint failed, fallback to an access watchpoint.
5190 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5191 if the value changed, if not watching the same memory for writes.
5192 (watchpoint_locations_match): Add comment.
5193 (update_global_location_list): Copy the location's watchpoint type.
5194 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5195 handle read watchpoints here.
5196 (i386_insert_watchpoint): Read watchpoints aren't supported.
5197 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5199 * target.h (target_insert_watchpoint): Update description.
5201 2010-02-19 Tom Tromey <tromey@redhat.com>
5203 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5204 * m2-typeprint.c (m2_print_type): Update.
5205 * gdbtypes.c (recursive_dump_type): Update.
5206 (copy_type_recursive): Update.
5207 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5208 (c_type_print_base): Update.
5209 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5211 (struct cplus_struct_type) <ntemplate_args>: Remove.
5212 <struct template_arg>: Remove.
5213 <is_dynamic>: Move earlier.
5214 (TYPE_TEMPLATE_ARGS): Remove.
5215 (TYPE_NTEMPLATE_ARGS): Remove.
5216 (TYPE_TEMPLATE_ARG): Remove.
5218 2010-02-19 Tom Tromey <tromey@redhat.com>
5220 PR c++/8693, PR c++/9496:
5221 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5222 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5223 write_dollar_variable. Don't try to classify NAME tokens.
5224 (token_and_value): New type.
5225 (token_fifo, popping, name_obstack): New globals.
5226 (classify_name): New function.
5227 (classify_inner_name): Likewise.
5229 (VARIABLE): Now has type sval.
5230 (exp : VARIABLE): Call write_dollar_variable.
5231 (qualified_name): Use TYPENAME, not typebase. Add production for
5232 multiple "::" instances.
5233 (variable): Use name_not_typename.
5234 (qualified_type): Remove.
5237 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5239 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5240 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5241 found by bfd_get_section_by_name.
5242 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5244 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5246 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5247 7.0 section" into "Changes in 7.1".
5249 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5251 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5252 * version.in: Bump version to 7.1.50.20100219-cvs.
5254 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5256 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5257 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5259 2010-02-17 Tom Tromey <tromey@redhat.com>
5261 * NEWS: Add Python API Improvements section.
5263 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5265 * NEWS: Correct typo.
5267 2010-02-17 Tom Tromey <tromey@redhat.com>
5269 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5271 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5273 * symfile.c (build_section_addr_info_from_objfile): Include sections
5274 only if they are SEC_ALLOC or SEC_LOAD.
5276 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5279 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5280 of ULONGEST for address size.
5282 2010-02-17 Tom Tromey <tromey@redhat.com>
5284 * NEWS: Add C++ improvements section.
5286 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5288 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5289 PyThreadState_Swap): Avoid "statement with no effect" warning.
5291 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5293 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5294 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5296 2010-02-17 Tristan Gingold <gingold@adacore.com>
5297 Petr Hluzin <petr.hluzin@gmail.com>
5299 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5300 gdb_assert. Fix info->size for SIG prologue.
5302 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5304 * infcmd.c (show_inferior_tty_command): Check for NULL.
5305 Correct output message.
5307 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5309 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5310 FUNCTION contains parentheses. Improve removal of a trailing
5313 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5315 * gcore.c (do_bfd_delete_cleanup): New function.
5316 (gcore_command): Use it. Discard the cleanup after success.
5317 (gcore_copy_callback): Delete dead code.
5319 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5321 * symfile.c (addr_info_make_relative): Always use
5322 find_lowest_section.
5324 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5326 * NEWS: Added entry for namespace fixes.
5328 2010-02-15 Tom Tromey <tromey@redhat.com>
5330 * dwarf2read.c (guess_structure_name): Allocate name on the
5333 2010-02-15 Tom Tromey <tromey@redhat.com>
5335 * c-typeprint.c (c_type_print_base): Reverse order of test.
5337 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5339 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5340 initialize it from ELF BFD. Extend the prelink condition by it.
5342 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5344 * defs.h (parse_pid_to_attach): New.
5345 * utils.c (parse_pid_to_attach): New.
5346 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5347 * gnu-nat.c (gnu_attach): Likewise.
5348 * nto-procfs.c (procfs_attach): Likewise.
5349 * procfs.c (procfs_attach): Likewise.
5350 * windows-nat.c (windows_attach): Likewise.
5351 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5352 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5353 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5356 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5358 * MAINTAINERS: Add myself for write after approval privileges.
5360 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5362 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5365 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5367 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5368 only if INFO_VERBOSE.
5370 2010-02-12 Tomas Holmberg <th@virtutech.com>
5372 * mi/mi-main.c: Added the --reverse flag to the following MI
5373 commands: exec-continue, exec-finish, exec-next, exec-step,
5374 exec-next-instruction, exec-step-instruction. This is to
5375 support reverse execution over the MI interface to gdb.
5377 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5379 * tracepoint.c (_initialize_tracepoint): Specify that the address
5380 range of `tfind outsize' is exclusive, and that the address range
5381 of `tfind range' is inclusive, in the commands' help strings.
5383 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5385 Spurious "dll not found" error messages on x64-windows.
5386 * windows-nat.c: Add include of complaints.h.
5387 (handle_unload_dll): Change dll-not-found error into a complaint.
5389 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5391 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5392 bp_tracepoint and bp_fast_tracepoint, not
5393 bp_loc_software_breakpoint.
5394 (update_global_location_list): Tracepoints are never duplicates of
5397 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5399 * breakpoint.c (break_command_really): Change return type to int.
5400 Return false if no breakpoint was created, true otherwise.
5401 (trace_command): Don't set the tracepoint count if no tracepoint
5403 (ftrace_command): Ditto.
5404 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5405 created in the breakpoints table.
5407 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5408 Ulrich Weigand <uweigand@de.ibm.com>
5410 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5412 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5414 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5415 the offset value isn't of integral type.
5417 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5419 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5422 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5424 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5425 non-subscriptable types.
5426 * valarith.c (binop_types_user_defined_p): New, abstracted out
5428 (binop_user_defined_p): ... this.
5429 * value.h (binop_types_user_defined_p): Declare.
5431 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5433 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5434 Merge uploaded TSVs before merging uploaded tracepoints.
5436 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5438 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5440 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5442 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5443 whitespace character after a dot in comment.
5444 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5446 (list_args_or_locals): For the 'all' (that is
5447 -stack-list-variables) case, always output list of tuples.
5448 Output 'arg' field if variable is argument.
5450 2010-02-10 Tom Tromey <tromey@redhat.com>
5452 * parser-defs.h (parser_debug): Declare.
5453 * parse.c (_initialize_parse): Install "debug parser" set/show
5455 (parser_debug): New global.
5456 (show_parserdebug): New function.
5457 * c-exp.y (c_parse): Set yydebug.
5459 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5461 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5462 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5463 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5465 (tdesc_find_type): New.
5466 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5467 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5469 * target-descriptions.h (tdesc_find_type): New.
5471 2010-02-10 Michael Snyder <msnyder@vmware.com>
5473 * gdb-gdb.py: Comment fix.
5475 2010-02-09 Tristan Gingold <gingold@adacore.com>
5477 * machoread.c (macho_symfile_relocate): New function.
5478 (macho_sym_fns): Use macho_symfile_relocate instead of
5479 default_symfile_relocate.
5480 (macho_oso_data): New type.
5481 (current_oso): New variable.
5482 (macho_add_oso_symfile): Do not compute section_addr_info, but
5483 instead set vma of sections.
5484 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5485 Set and clear current_oso.
5487 2010-02-09 Joel Brobecker <brobecker@adacore.com>
5489 Wrong type description for tagged type parameter.
5490 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5491 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5492 reference to a tagged type.
5494 2010-02-09 Tristan Gingold <gingold@adacore.com>
5496 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5497 brothers of the parent.
5499 2010-02-08 Tom Tromey <tromey@redhat.com>
5503 * valops.c (search_struct_field): Make 'name' const.
5504 (search_struct_method): Likewise.
5505 (find_method_list): Make 'method' const.
5506 (value_struct_elt): Make 'name' and 'err' const.
5507 (value_find_oload_method_list): Make 'method' const.
5508 (find_overload_match): Make 'name' const.
5509 * eval.c (evaluate_subexp_standard): New locals function,
5511 <OP_FUNCALL>: Handle OP_SCOPE specially.
5513 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5515 * infrun.c (handle_inferior_event): Do not look up regcache
5516 for exited processes.
5518 2010-02-08 Chris Moller <moller@mollerware.com>
5521 * valarith.c (value_ptrdiff): Added a test for a zero type length,
5522 warn if found, and assume length = 1.
5524 2010-02-08 Chris Moller <cmoller@redhat.com>
5527 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5528 cp_print_static_field) Fix use of obstacks.
5530 2010-02-08 Pedro Alves <pedro@codesourcery.com>
5532 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5533 resumed LWPs as resumed.
5534 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5535 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5536 of throwing an internal error. If an LWP of a process we're not
5537 waiting for reports a signal, don't force collecting a SIGSTOP,
5538 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5539 go through all LWPs cancelling breakpoints in non-stop mode.
5540 (resume_stopped_resumed_lwps): New.
5541 (linux_nat_wait): Use it.
5543 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5545 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5546 i386/amd64 and i386/amd64-linux.
5547 (i386/i386-expedite): New.
5548 (i386/i386-linux-expedite): Likewise.
5549 (i386/amd64-expedite):Likewise.
5550 (i386/amd64-linux-expedite): Likewise.
5551 ($(outdir)/i386/i386-linux.dat): Likewise.
5552 ($(outdir)/i386/amd64.dat): Likewise.
5553 ($(outdir)/i386/amd64-linux.dat): Likewise.
5555 * features/i386/32bit-core.xml: New.
5556 * features/i386/32bit-linux.xml: Likewise.
5557 * features/i386/32bit-sse.xml: Likewise.
5558 * features/i386/64bit-core.xml: Likewise.
5559 * features/i386/64bit-linux.xml: Likewise.
5560 * features/i386/64bit-sse.xml: Likewise.
5561 * features/i386/i386-linux.xml: Likewise.
5562 * features/i386/i386.xml: Likewise.
5563 * features/i386/amd64-linux.xml: Likewise.
5564 * features/i386/amd64.xml: Likewise.
5565 * features/i386/i386-linux.c: Likewise.
5566 * features/i386/i386.c: Likewise.
5567 * features/i386/amd64-linux.c: Likewise.
5568 * features/i386/amd64.c: Likewise.
5570 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
5573 * cp-support.h: Added char* alias element to using_direct data
5575 (cp_add_using): Added char* alias argument.
5576 (cp_add_using_directive): Ditto.
5577 * cp-namespace.c: Updated with the above changes.
5578 (cp_lookup_symbol_imports): Check for aliases.
5579 * dwarf2read.c (read_import_statement): Figure out local alias
5580 for the import and pass it on to cp_add_using.
5581 (read_namespace): Pass alias argument to cp_add_using.
5583 2010-02-05 Hui Zhu <teawater@gmail.com>
5585 * defs.h (gdb_bfd_errmsg): New extern.
5586 * exec.c (exec_file_attach): Change bfd_errmsg to
5588 * utils.c (AMBIGUOUS_MESS1): New macro.
5589 (AMBIGUOUS_MESS2): New macro.
5590 (gdb_bfd_errmsg): New function.
5592 2010-02-04 Doug Evans <dje@google.com>
5594 * solib-svr4.c (enable_break): Add comment.
5596 2010-02-04 Anthony Green <green@moxielogic.com>
5598 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5601 2010-02-04 Tom Tromey <tromey@redhat.com>
5603 * valops.c (search_struct_field): Account for
5604 value_embedded_offset. Fix check for virtual base past the end of
5605 the object. Use value_copy when making a slice of the value.
5607 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5610 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5611 only if gdb_stdout is a tty.
5613 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5615 * target-descriptions.c: Include "osabi.h".
5616 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5619 2010-02-04 Tristan Gingold <gingold@adacore.com>
5621 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5622 (macho_symtab_read): Adjust calls to macho_add_oso.
5623 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5624 (macho_symfile_read): Adjust call to macho_oso_symfile.
5625 (macho_new_init): Move this function after declarations.
5626 (macho_symfile_init): Ditto.
5627 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5628 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5630 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
5632 Include MI command in remotelog.
5634 * mi/mi-main.c (mi_execute_command): Call target_log_command.
5636 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5638 * remote.c (remote_state): Remove gdbarch.
5639 (init_remote_state): Don't set gdbarch.
5640 (remote_query_supported): Pass target_gdbarch instead of
5641 rs->gdbarch to gdbarch_qsupported.
5643 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5645 * gdbarch.sh: Add qsupported.
5647 * gdbarch.c: Regenerated.
5648 * gdbarch.h: Likewise.
5650 * remote.c (remote_state): Add gdbarch.
5651 (init_remote_state): Set gdbarch.
5652 (remote_query_supported): Support gdbarch_qsupported.
5654 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
5656 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5657 __FreeBSD_kernel_version.
5659 2010-02-03 Tristan Gingold <gingold@adacore.com>
5661 * symfile.h (struct sym_fns): Add sym_relocate field.
5662 (default_symfile_relocate): New prototype.
5663 (symfile_relocate_debug_section): First argument is now an objfile.
5664 * symfile.c (default_symfile_relocate): Rename from
5665 symfile_relocate_debug_section, first argument is now an objfile.
5666 (symfile_relocate_debug_section): New function.
5667 * coffread.c (coff_sym_fns): Set sym_relocate field.
5668 * somread.c (som_sym_fns): Ditto.
5669 * mipsread.c (ecoff_sym_fns): Ditto.
5670 * machoread.c (macho_sym_fns): Ditto.
5671 * elfread.c (elf_sym_fns): Ditto.
5672 * dwarf2read.c (dwarf2_read_section): Ditto.
5673 * xcoffread.c (xcoff_sym_fns): Ditto.
5674 * dbxread.c (aout_sym_fns): Ditto.
5675 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5676 (elfstab_build_psymtabs): Ditto.
5678 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5680 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5682 2010-02-02 Tom Tromey <tromey@redhat.com>
5684 * valops.c (value_cast_structs): Try downcasting using the RTTI
5687 2010-02-02 Tom Tromey <tromey@redhat.com>
5689 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5690 (gnuv2_baseclass_offset): Now static.
5691 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5692 * gnu-v2-abi.h: Remove.
5694 2010-02-02 Tom Tromey <tromey@redhat.com>
5696 * m2-typeprint.c (m2_record_fields): Don't use
5698 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5699 (struct main_type) <flag_declared_class>: New field.
5700 (struct cplus_struct_type) <declared_type>: Remove.
5701 <ntemplate_args>: Move earlier.
5702 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5703 (DECLARED_TYPE_TEMPLATE): Remove.
5704 (TYPE_DECLARED_TYPE): Remove.
5705 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5706 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5707 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5710 2010-02-02 Tom Tromey <tromey@redhat.com>
5712 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5713 * valops.c (search_struct_field): Compute nbases after calling
5715 (check_field): Call CHECK_TYPEDEF.
5716 * cp-valprint.c (cp_print_value): Pass correct address to
5717 baseclass_offset. Fix check for virtual base past the end of the
5718 object. Don't offset address passed to cp_print_value_fields or
5719 apply_val_pretty_printer.
5720 (cp_print_value_fields): Fix call to val_print.
5721 (cp_print_value_fields_rtti): New function.
5722 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5723 * p-valprint.c (pascal_object_print_value_fields): Fix call to
5725 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5727 * language.h (struct language_defn) <la_val_print>: Document.
5728 * c-lang.h (cp_print_value_fields_rtti): Declare.
5730 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5733 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5734 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5735 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5737 2010-02-01 Michael Matz <matz@suse.de>
5738 Daniel Jacobowitz <dan@codesourcery.com>
5740 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
5741 functions use a frame pointer.
5743 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5745 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
5746 by a conditional setting DYN_ADDR. Use DYN_ADDR.
5747 * config/djgpp/fnchange.lst: Add translations for
5748 symbol-without-target_section.exp and symbol-without-target_section.c.
5750 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5752 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5753 (remote_breakpoint_for_pc): Correct invalid_p check.
5754 * gdbarch.c: Regenerated.
5756 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5758 * arm-tdep.c (arm_find_mapping_symbol): New function, from
5760 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5761 (extend_buffer_earlier): New function.
5762 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5763 (arm_adjust_breakpoint_address): New function.
5764 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5766 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5768 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5769 (arm_linux_thumb2_le_breakpoint): New constants.
5770 (arm_linux_init_abi): Set thumb2_breakpoint and
5771 thumb2_breakpoint_size.
5772 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5773 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
5774 Implement support for single stepping through IT blocks if
5775 a 32-bit Thumb breakpoint instruction is available.
5776 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5777 is available, use it when needed.
5778 (arm_remote_breakpoint_from_pc): New function.
5779 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5780 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5781 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
5783 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5785 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5786 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5787 * gdbarch.c, gdbarch.h: Regenerated.
5788 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5789 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5790 gdbarch_remote_breakpoint_from_pc.
5792 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5794 * infrun.c (prepare_to_proceed): Handle other signals which might
5796 (handle_inferior_event): Move the check for unusual breakpoint
5799 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
5801 amd64 - function returning record with field straddling 2 registers.
5802 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5803 a record of length <= 16 in which a field straddles the two
5806 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5808 Implement return values on amd64-windows.
5809 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5810 (amd64_windows_return_value): New function.
5811 (amd64_windows_init_abi): Call set_gdbarch_return_value with
5812 amd64_windows_return_value.
5814 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5816 amd64-windows: 32 bytes allocated on stack by caller for integer
5817 parameter registers.
5818 * i386-tdep.h (struct gdbarch_tdep): Add new field
5819 integer_param_regs_saved_in_caller_frame.
5820 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5821 tdep->integer_param_regs_saved_in_caller_frame to 1.
5822 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5823 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5825 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5827 amd64-windows: memory args passed by pointer during function calls.
5828 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5829 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5830 where tdep->memory_args_by_pointer is non-zero.
5831 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5832 tdep->memory_args_by_pointer to 1.
5834 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5836 amd64-windows: Integer parameters in function calls.
5837 * i386-tdep.h (enum amd64_reg_class): New, moved here from
5839 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5840 call_dummy_integer_regs, and classify.
5841 * amd64-tdep.h (amd64_classify): Add declaration.
5842 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5843 (amd64_reg_class): Delete, moved to i386-tdep.h.
5844 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
5845 Replace call to amd64_classify by call to tdep->classify.
5846 (amd64_push_arguments): Get the list of registers to use for
5847 passing integer parameters from the gdbarch tdep structure,
5848 rather than using a hardcoded one. Replace calls to amd64_classify
5849 by calls to tdep->classify.
5850 (amd64_push_dummy_call): Get the register number used for
5851 the "hidden" argument from tdep->call_dummy_integer_regs.
5852 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5853 and tdep->call_dummy_integer_regs. Set tdep->classify.
5854 * amd64-windows-tdep.c: Add include of gdbtypes.h.
5855 (amd64_windows_dummy_call_integer_regs): New static global.
5856 (amd64_windows_classify): New function.
5857 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5858 tdep->call_dummy_integer_regs and tdep->classify.
5860 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5862 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
5863 for the new regcache. All callers updated.
5864 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5865 (get_thread_arch_regcache): Do not set aspace here.
5866 * regcache.h (regcache_xmalloc): Update declaration.
5868 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5869 regcache_xmalloc updated.
5871 2010-01-28 Joel Brobecker <brobecker@adacore.com>
5873 Another -Wunused-function error in procfs.c (sparc-solaris)
5874 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
5875 Only define if SYS_syssgi is defined.
5876 (remove_dbx_link_breakpoint): Delete declaration. Move up.
5877 (dbx_link_addr, insert_dbx_link_bpt_in_file)
5878 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
5881 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
5883 * windows-nat.c (windows_initialization_done): New variable.
5884 (get_windows_debug_event): Issue error when process dies before
5885 completely initializing.
5886 (do_initial_windows_stuff): Set flag to indicate when we are done with
5887 the initial steps of attaching to the child.
5889 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5891 * symtab.h (struct symbol <symtab>): New comment on NULL values.
5893 2010-01-27 Doug Evans <dje@google.com>
5895 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5897 * breakpoint.c (bpstat_stop_status): Delete useless code.
5899 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5901 * printcmd.c (display_uses_solib_p): Remove variable section. Access
5902 objfile via SYMBOL_SYMTAB.
5904 2010-01-26 Tom Tromey <tromey@redhat.com>
5907 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5908 coerce_array on result.
5910 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5912 * cp-namespace.c (cp_lookup_symbol_namespace): Added
5913 search_parent argument.
5914 (cp_add_using): Initialize 'searched' field.
5915 (reset_directive_searched): New function.
5916 * cp-support.h: Add 'searched' field to using_direct struct.
5917 (cp_lookup_symbol_imports): Ditto.
5918 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5919 Perform recursive search.
5920 Implement non parent search.
5921 * valops.c (value_maybe_namespace_elt): Updated.
5923 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5926 * dwarf2read.c (read_lexical_block_scope): Create blocks for
5927 scopes which contain using directives even if they contain no
5929 * symtab.c (lookup_symbol_aux): Pass lowest level block to
5930 la_lookup_symbol_nonlocal.
5931 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5932 cp_lookup_symbol_namespace.
5933 (cp_lookup_symbol_namespace): Perform an import lookup at every
5935 (cp_lookup_symbol_imports): New function.
5936 (cp_lookup_symbol_in_namespace): New function.
5938 2010-01-25 Tom Tromey <tromey@redhat.com>
5941 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5944 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5946 * configure.ac: Only use host_os part when disabling TUI on osf.
5947 Use test to check variables, prefix strings with x.
5948 * configure: Regenerate.
5950 * solib-osf.c (osf_current_sos): Initialize tail.
5952 2010-01-25 gingold <gingold@adacore.com>
5954 * windows-nat.c (windows_continue): Use %x to print thread id.
5955 (get_windows_debug_event): Ditto.
5957 2010-01-22 Tom Tromey <tromey@redhat.com>
5960 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5961 type and arguments. Use smash_to_methodptr_type.
5962 (read_structure_type): Call quirk_gcc_member_function_pointer
5964 * gdbtypes.h (smash_to_methodptr_type): Declare.
5965 * gdbtypes.c (smash_to_methodptr_type): New function.
5966 (lookup_methodptr_type): Use it.
5968 2010-01-21 Tom Tromey <tromey@redhat.com>
5971 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
5972 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
5973 * glibc-tdep.c (find_minsym_and_objfile): Remove.
5974 (glibc_skip_solib_resolver): Use
5975 lookup_minimal_symbol_and_objfile.
5977 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
5979 * inflow.c (check_syscall): Guard by #if clause for GO32 and
5982 2010-01-20 Tom Tromey <tromey@redhat.com>
5985 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
5986 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
5987 * dwarf2expr.c (new_dwarf_expr_context): Allocate
5988 dwarf_stack_values, not CORE_ADDRs.
5989 (execute_stack_op): Change DW_OP_div and comparison operators to
5990 use signed operands.
5992 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
5994 Per-inferior args and tty and environment.
5996 * infcmd.c (inferior_args): Rename to ...
5997 (inferior_args_scratch): ... this.
5998 (inferior_io_terminal): Rename to ...
5999 (inferior_io_terminal_scratch): ... this.
6000 (inferior_argc, inferior_argv): Remove.
6001 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6002 inside current_inferior().
6003 (set_inferior_tty_command, show_inferior_tty_command): New.
6004 (get_inferior_args, set_inferior_args): Store inside
6006 (notice_args_set): Likewise and rename to...
6007 (set_args_command): ... this.
6008 (set_inferior_args_vector): Likewise.
6009 (notice_args_read): Rename to...
6010 (show_args_command): ...new.
6011 (tty_command): Remove.
6012 (run_command_1): Don't free old args, as they are freed by
6013 set_inferior_arg now.
6014 (run_no_args_command): Likewise.
6015 (inferior_environ): Remove.
6016 (run_command_1): Use environment of the current inferior.
6017 (environment_info, set_environment_command)
6018 (unset_environment_command, path_info, path_command): Likewise.
6019 (_initialize_infcmd): Adjust for function and variable renames.
6020 Do not init inferior_environ.
6021 * inferior.h (set_inferior_arg): Adjust prototype.
6022 (struct inferior): New fields args, argc, argv, terminal, environment.
6023 (inferior_environ): Remove declaration.
6024 * inferior.c (free_inferior): Free new fields.
6025 (add_inferior_silent): Initialize 'environment' field.
6026 * main.c (captured_main): Set arguments only after the initial
6027 inferior has been created. Set set_inferior_io_terminal,
6029 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6031 (_initialize_mi_cmd_env): Adjust for disappearance of global
6033 * solib.c (solib_find): Use environment of the current inferior.
6035 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6039 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6041 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6043 Get rid of ada-lang.c:function_name_from_pc.
6044 * ada-lang.c: Add "stack.h" #include.
6045 (function_name_from_pc): Delete.
6046 (is_known_support_routine): Replace call to function_name_from_pc
6047 by call to find_frame_funname.
6048 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6050 2010-01-19 Tom Tromey <tromey@redhat.com>
6053 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6056 2010-01-19 Tom Tromey <tromey@redhat.com>
6058 * top.c (stop_sig, float_handler, do_nothing): Remove.
6060 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6062 * breakpoint.c (watchpoint_check): Check the call
6063 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6065 * config/djgpp/fnchange.lst: Add translations for
6066 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6067 watchpoint-cond-gone-stripped.c.
6069 2010-01-19 Tom Tromey <tromey@redhat.com>
6072 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6073 into parent scope, and enumerator into grandparent scope.
6075 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6077 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6079 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6081 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6082 i[34567]86-*-solaris2.1[0-9]*.
6083 * configure.tgt: Likewise.
6085 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6087 * NEWS: Document the source command enhancement allowing it
6088 to load Python scripts. Document the "set/show script-extension"
6091 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6093 Add -Wunused-function to compile flags.
6094 * configure.ac: Add -Wunused-function to build_warnings.
6095 * configure: Regenerate.
6097 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6099 "delete" ada-lex.c:input function, not used.
6100 * ada-lex.l: #define YY_NO_INPUT.
6102 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6104 Delete free_named_symtabs and associated cleanup.
6105 * symfile.h (free_named_symtabs): Delete declaration.
6106 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6107 (cashier_psymtab): Comment function out.
6109 (free_named_symtabs): Delete.
6110 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6111 * dbxread.c (end_psymtab): Likewise.
6112 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6113 * exec.c (exec_close_1): Ditto.
6114 * xcoffread.c (xcoff_end_psymtab): Likewise.
6116 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6118 * stack.c (print_block_frame_labels): Comment function out.
6120 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6122 Delete unused or undefined functions.
6123 * breakpoint.c (ep_parse_optional_filename): Delete.
6124 * dcache.c (dcache_write_line): Remove declaration.
6125 * infrun.c (build_infrun): Remove declaration.
6126 * tracepoint.c (tracepoint_save_command): Remove declaration.
6127 * linux-nat.c (init_lwp_list): Delete. No longer used.
6128 * event-loop.c (check_async_signal_handlers): Delete declaration.
6129 * infrun.c (init_execution_control_state): Delete.
6130 (proceed): Update comment to avoid mentioning
6131 init_execution_control_state.
6132 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6133 * ada-lang.c (ada_to_static_fixed_value): Delete.
6134 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6135 * cp-namespace.c (cp_copy_usings): Delete.
6136 * xml-syscall.c (xml_number_of_syscalls): Delete.
6137 * progspace.c (find_program_space_by_num): Delete.
6138 * inflow.c (handle_sigio): Delete declaration.
6139 * hppa-tdep.c (hppa_alignof): Delete.
6140 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6141 (mipsnbsd_core_osabi_sniffer): Delete.
6143 2010-01-18 Tom Tromey <tromey@redhat.com>
6146 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6147 (CONST_CAST): New tokens.
6148 (exp): Add new productions.
6149 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6151 (is_cast_operator): New function.
6152 (yylex): Handle cast operators specially.
6153 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6154 UNOP_REINTERPRET_CAST>: New cases.
6155 * expprint.c (print_subexp_standard): Likewise.
6156 (op_name_standard): Likewise.
6157 (dump_subexp_body_standard): Likewise.
6158 * parse.c (operator_length_standard): Likewise.
6159 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6160 UNOP_REINTERPRET_CAST.
6161 * gdbtypes.c (class_types_same_p): New function.
6162 (is_ancestor): Use it.
6163 (is_public_ancestor): New function.
6164 (is_unique_ancestor_worker): Likewise.
6165 (is_unique_ancestor): Likewise.
6166 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6167 (is_unique_ancestor): Declare.
6168 * valops.c (value_reinterpret_cast): New function.
6169 (dynamic_cast_check_1): Likewise.
6170 (dynamic_cast_check_2): Likewise.
6171 (value_dynamic_cast): Likewise.
6172 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6174 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6176 Fix build failure when building without Python support.
6177 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6180 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6182 Use XVS field type instead of doing a parallel lookup.
6183 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6184 if it is a reference type instead of doing a type lookup using
6187 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6189 Trust PAD types instead of using PAD___XVS.
6190 * ada-lang.c (trust_pad_over_xvs): New static variable.
6191 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6192 parallel XVS type, follow the XVS type instead of the PAD type.
6193 (unwrap_value): Make sure that there is no parallel XVE type
6194 before returning the value as is.
6195 (set_ada_list, show_ada_list): New static variables.
6196 (set_ada_command, show_ada_command): New functions.
6197 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6198 Add new "set/show ada trust-PAD-over-XVS" setting.
6200 2010-01-18 Tom Tromey <tromey@redhat.com>
6201 Thiago Jung Bauermann <bauerman@br.ibm.com>
6203 Allow "source" to load python scripts.
6204 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6205 * python/python.c (source_python_script): New function.
6206 * python/python.h (source_python_script): Add declaration.
6207 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6208 (script_ext_off, script_ext_soft, script_ext_strict)
6209 (script_ext_enums, script_ext_mode): New static constants.
6210 (show_script_ext_mode, find_and_open_script): New functions.
6211 (source_script): Enhance to handle Python scripts.
6212 (init_cli_cmds): Add set/show script-extension commands.
6214 2010-01-16 Stan Shebs <stan@codesourcery.com>
6216 * tracepoint.h (struct trace_status): Use unsigned long long
6218 * tracepoint.c (trace_status_command): Fix printf directive.
6219 (trace_save_command): Check fwrite returns, fix printf directive.
6220 (trace_filename): New global.
6221 (tfile_open): Set it, check read returns.
6222 (tfile_close): Free trace_filename.
6223 (tfile_get_traceframe_address): Check read returns.
6224 (tfile_trace_find): Ditto.
6225 (tfile_fetch_registers): Ditto.
6226 (tfile_xfer_partial): Ditto.
6227 (tfile_get_trace_state_variable_value): Ditto.
6229 2010-01-15 Stan Shebs <stan@codesourcery.com>
6231 Add trace file support.
6232 * tracepoint.h (enum trace_stop_reason): New enum.
6233 (struct trace_status): New struct.
6234 (parse_trace_status): Declare.
6235 (struct uploaded_tp): Move here from remote.c,
6236 add fields for actions.
6237 (struct uploaded_tsv): New struct.
6238 * tracepoint.c (tfile_ops): New target vector.
6239 (trace_fd): New global.
6240 (tfile_open): New function.
6241 (tfile_close): New function.
6242 (tfile_files_info): New function.
6243 (tfile_get_trace_status): New function.
6244 (tfile_get_traceframe_address): New function.
6245 (tfile_trace_find): New function.
6246 (tfile_fetch_registers): New function.
6247 (tfile_xfer_partial): New function.
6248 (tfile_get_trace_state_variable_value): New function.
6249 (init_tfile_ops): New function.
6250 (_initialize_tracepoint): Call it, add tfile target.
6251 (trace_status): New global.
6252 (current_trace_status): New function.
6253 (trace_running_p): Remove, change all users to get from
6254 current_trace_status()->running.
6255 (get_trace_status): Remove.
6256 (trace_status_command): Call target_get_trace_status directly,
6257 report more detail including tracing stop reasons.
6258 (trace_find_command): Always allow tfind on a file.
6259 (trace_find_pc_command): Ditto.
6260 (trace_find_tracepoint_command): Ditto.
6261 (trace_find_line_command): Ditto.
6262 (trace_find_range_command): Ditto.
6263 (trace_find_outside_command): Ditto.
6264 (trace_frames_offset, cur_offset): Declare as off_t.
6265 (trace_regblock_size): Rename from reg_size, update users.
6266 (parse_trace_status): New function.
6267 (tfile_interp_line): New function.
6268 (disconnect_or_stop_tracing): Ensure current trace
6269 status before asking what to do.
6270 (stop_reason_names): New global.
6271 (trace_save_command): New command.
6272 (get_uploaded_tp): Move here from remote.c.
6273 (find_matching_tracepoint): Ditto.
6274 (merge_uploaded_tracepoints): New function.
6275 (parse_trace_status): Use stop_reason_names.
6276 (_initialize_tracepoint): Define tsave command.
6277 * target.h (target_ops): New fields to_save_trace_data,
6278 to_upload_tracepoints, to_upload_trace_state_variables,
6279 to_get_raw_trace_data, change to_get_trace_status
6280 to take a pointer to a status struct.
6281 (target_save_trace_data): New macro.
6282 (target_upload_tracepoints): New macro.
6283 (target_upload_trace_state_variables): New macro.
6284 (target_get_raw_trace_data): New macro.
6285 * target.c (update_current_target): Add new methods, change
6286 signature of to_get_trace_status.
6287 * remote.c (hex2bin): Make globally visible.
6289 (remote_download_trace_state_variable): Download name also.
6290 (remote_get_trace_status): Update parameter, use
6292 (remote_save_trace_data): New function.
6293 (remote_upload_tracepoints): New function.
6294 (remote_upload_trace_state_variables): New function.
6295 (remote_get_raw_trace_data): New function.
6296 (remote_start_remote): Use them.
6297 (_initialize_remote_ops): Add operations.
6298 * ax-gdb.c: Include breakpoint.h.
6299 * breakpoint.c (create_tracepoint_from_upload): Use
6300 break_command_really, return tracepoint, warn about unimplemented
6302 * NEWS: Mention trace file addition.
6304 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6306 Fix compilation warning on gcc-3.4.
6307 * exec.c (print_section_info): Move the `displacement' variable
6308 initialization to its declaration.
6310 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6312 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6315 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6317 "info tasks" broken by typedefs in ATCB type definitions.
6318 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6319 ada_check_typedef before retrieving the length of the type for
6322 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6324 Do not use name-based lookup for unconstrained packed arrays.
6325 * ada-lang.c (find_parallel_type_by_descriptive_type):
6326 Limit the fallback to name-based lookups to the case where
6327 the type is a constrained packed array.
6329 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6331 Enhance gdb-gdb.py to handle main_type.type_specific.
6332 * gdb-gdb.py: Print the type-specific part of struct main_type.
6334 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6336 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6337 * configure: Regenerate.
6338 * config.in: Regenerate.
6339 * utils.c: Include sys/resource.h.
6340 (dump_core, can_dump_core): New.
6341 (internal_vproblem): Update the comment. Check can_dump_core while
6342 setting dump_core_p. Replace two abort calls by dump_core calls.
6344 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6345 Eli Zaretskii <eliz@gnu.org>
6347 * NEWS: Document the PIE support.
6349 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6351 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6352 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6354 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6356 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6357 Replace exec_entry_point call by bfd_get_start_address.
6359 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6361 Support Valgrind attachments broken by the PIE support.
6362 * auxv.c: Include gdbcore.h.
6363 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6364 parameters ops, object and annex. Remove their assertions.
6365 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6366 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6367 (memory_xfer_auxv): ... here.
6368 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6370 * procfs.c (procfs_xfer_partial): Likewise.
6371 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6372 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6373 (svr4_solib_create_inferior_hook): Conditionalize the
6374 svr4_relocate_main_executable call.
6376 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6378 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6379 target_section. Find SECT in current_target_sections, gdb_assert it.
6380 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6382 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6383 of separate debug info file.
6385 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6387 Support PIEs with no symfile_objfile.
6388 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6389 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6391 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6393 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6395 (svr4_static_exec_displacement): ... a new function.
6396 (svr4_exec_displacement): New function.
6397 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6398 new_offsets using alloca now. Remove variable old_chain and changed.
6399 Call objfile_relocate unconditionally now.
6401 2010-01-14 Doug Evans <dje@google.com>
6403 * gdbtypes.c (arch_flags_type): Fix comment.
6404 * gdbtypes.h (arch_composite_type): Fix comment.
6406 2009-01-14 Tristan Gingold <gingold@adacore.com>
6408 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6409 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6410 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6411 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6412 macho_add_oso_symfile.
6413 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6415 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6417 Tru64: Dead threads are never deleted.
6418 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6419 (dec_thread_count_gdb_threads): Fix counter increment.
6420 (dec_thread_add_gdb_thread): Fix *listp increment.
6421 (resync_thread_list): Fix bug in deletion of dead threads that
6422 caused all threads to be deleted, instead of just the dead ones.
6424 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6428 * python/python-internal.h: Add lazy_string_object_type
6430 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6431 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6432 * python/py-value.c (valpy_lazy_string): New function.
6433 (convert_value_from_python): Add lazy string conversion.
6434 * python/py-prettyprint.c (pretty_print_one_value): Check if
6435 return is also a lazy string.
6436 (print_string_repr): Add lazy string printing branch.
6437 (print_children): Likewise.
6438 * python/py-lazy-string.c: New file. Implement lazy strings.
6439 * python/python.c (_initialize_python): Call
6440 gdbpy_initialize_lazy_string.
6441 * varobj.c (value_get_print_value): Add lazy string printing
6442 branch. Account for encoding.
6443 * c-lang.c (c_printstr): Account for new encoding argument. If
6444 encoding is NULL, find encoding suited for type, otherwise use
6446 * language.h (language_defn): Add encoding argument.
6447 (LA_PRINT_STRING): Likewise.
6448 * language.c (unk_lang_printstr): Update to reflect new encoding
6449 argument to language_defn.
6450 * ada-lang.h (ada_printstr): Likewise.
6451 * c-lang.h (c_printstr): Likewise.
6452 * p-lang.h (pascal_printstr);
6453 * f-lang.c (f_printstr): Likewise.
6454 * m2-lang.c (m2_printstr): Likewise.
6455 * objc-lang.c (objc_printstr): Likewise.
6456 * p-lang.c (pascal_printstr): Likewise.
6457 * scm-lang.c (scm_printstr): Likewise.
6458 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6460 * ada-valprint.c (ada_printstr): Likewise.
6461 * f-valprint.c (f_val_print): Likewise
6462 * m2-valprint.c (m2_val_print): Likewise.
6463 * p-valprint.c (pascal_val_print): Likewise.
6464 * expprint.c (print_subexp_standard): Likewise.
6465 * valprint.c (val_print_string): Likewise.
6466 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6467 (SUBDIR_PYTHON_SRCS): Likewise.
6468 (py-lazy-string.o): New rule.
6470 2010-01-13 Doug Evans <dje@google.com>
6472 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6473 uninitialized" warning from gcc on local `tree'.
6475 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6477 Implement core awareness.
6479 * bcache.c (compare_ints): Remove
6480 (print_percentage): Use compare_positive_ints.
6481 * defs.h (compare_positive_ints): Declare.
6482 * linux-nat.h (struct lin_lwp): New field core.
6483 (linux_nat_core_of_thread_1): Declare.
6484 * linux-nat.c (add_lwp): Init the 'core' field.
6485 (linux_nat_wait_1): Record the core.
6486 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6487 (linux_nat_add_target): Register the above.
6488 * linux-thread-db.c (update_thread_core): New.
6489 (thread_db_find_new_threads): Update core information for
6491 * remote.c (struct private_thread_info): New.
6492 (free_private_thread_info, demand_private_info): New.
6493 (PACKET_qXfer_threads, use_osdata_threads): New.
6494 (struct thread_item, threads_parsing_context
6495 (start_thread, end_thread, thread_attributes)
6496 (thread_children, threads_children, threads_elements): New.
6497 (remote_threads_info): Try qXfer:threads before anything
6499 (remote_protocol_packets): Register qXfer:threads.
6500 (remote_open_1): Init use_osdata_threads.
6501 (struct stop_reply): New field 'core'.
6502 (remote_parse_stop_reply): Parse core number.
6503 (process_stop_reply): Record core number.
6504 (remote_xfer_partial): Handle qXfer:threads.
6505 (remote_core_of_thread): New.
6506 (init_remote_ops): Register remote_core_of_thread.
6507 (_initialize_remote): Register qXfer:read.
6508 * target.c (target_core_of_thread): New
6509 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6510 (struct target_ops): New field to_core_of_threads.
6511 (target_core_of_thread): Declare.
6512 * gdbthread.h (struct thread_info): New field private_dtor.
6513 * thread.c (print_thread_info): Report the core.
6514 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6515 * utils.c (compare_positive_ints): New.
6516 * features/threads.dtd: New.
6517 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6518 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6519 (do_nothing, free_vector_of_osdata_items)
6520 (splay_tree_int_comparator, free_splay_tree): New.
6521 (print_one_inferior_data): Implemented printing of selected
6522 inferiors. Collect and print cores.
6523 (output_cores): New.
6524 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6525 thread groups together with --available.
6527 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6529 * configure: Regenerate (for _STRUCTURED_PROC).
6531 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6533 Delete dead function.
6534 * ada-lang.c (extract_string): Delete. No longer used.
6536 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6538 Fix -Wunused warning in dec-thread.c.
6539 * dec-thread.c (dec_thread_count_gdb_threads)
6540 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6542 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6544 * ada-valprint.c (ada_print_floating): Remove trailing space.
6546 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6548 Add support for DW_AT_GNAT_descriptive_type.
6549 * gdbtypes.h (enum type_specific_kind): New enum.
6550 (struct main_type) [type_specific_field]: New component.
6551 [type_specific]: Add new component "gnat_stuff".
6552 (struct gnat_aux_type): New type.
6553 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6554 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6555 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6556 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6557 (TYPE_SPECIFIC_FIELD): New macros.
6558 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6559 type does not hold any cplus-specific data.
6560 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6561 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6562 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6563 cplus-specific data.
6564 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6565 Set new component TYPE_SPECIFIC_FIELD (type).
6566 (gnat_aux_default): New constant.
6567 (allocate_gnat_aux_type): New function.
6568 (init_type): Add initialization the type-specific stuff for
6569 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6570 (print_gnat_stuff): New function.
6571 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6572 specific data. Adjust code that prints the contents of the
6573 type-specific union using the TYPE_SPECIFIC_FIELD value.
6574 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6575 the type cplus stuff for Ada types.
6576 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6577 Error out if these routines are called with an Ada type.
6578 (read_structure_type, read_array_type, read_subrange_type):
6579 Add call to set_descriptive_type.
6580 (set_die_type): Initialize the gnat-specific data if necessary.
6581 (need_gnat_info, die_descriptive_type, set_descriptive_type):
6583 * ada-lang.c (decode_constrained_packed_array_type): Use
6584 decode_constrained_packed_array_type instead of doing a standard
6585 lookup to locate a parallel type.
6586 (find_parallel_type_by_descriptive_type): New function.
6587 (ada_find_parallel_type_with_name): New function.
6588 (ada_find_parallel_type): Reimplement using
6589 ada_find_parallel_type_with_name.
6590 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6591 to check if type has a cplus stuff.
6592 * linespec.c (total_number_of_methods): Likewise.
6593 * mdebugread.c (new_type): Likewise.
6595 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6597 * NEWS: Document the 0b binary number prefix parsing.
6599 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6601 * objfiles.c (objfile_relocate1): Change the return type to int.
6602 Describe the new return value. Return non-zero if data changed.
6603 (objfile_relocate): New variable changed. Set it. Call
6604 breakpoint_re_set depending on CHANGED.
6606 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6608 Implement binary numbers parsing.
6609 * c-exp.y (parse_number): New case 'b' and 'B'.
6611 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6612 Tristan Gingold <gingold@adacore.com>
6614 * solib.c (info_sharedlibrary_command): Replace
6615 objfile_has_partial_symbols and objfile_has_full_symbols calls by
6616 objfile_has_symbols.
6618 2010-01-10 Joel Brobecker <brobecker@adacore.com>
6620 * NEWS: Document the improvements made to the mips-irix port.
6622 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6624 Fix the documentation of valprint.c:value_print.
6625 * valprint.c (value_print): Update the function description to
6626 mention that the syntax of the output follows the current_language,
6629 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6631 Fix displacement of separate debug info files.
6632 * objfiles.c (objfile_relocate): Rename to ...
6633 (objfile_relocate1): ... here and make it static. Extend the comment.
6634 (objfile_relocate): New function.
6635 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6636 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
6637 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
6638 allocated using alloca.
6639 * symfile.c (copy_section_addr_info): Remove.
6640 (build_section_addr_info_from_objfile): Make it global. New variables
6641 addr_bit and mask, use them.
6642 * symfile.h (build_section_addr_info_from_objfile): New prototype.
6643 (copy_section_addr_info): Remove.
6645 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6647 Signal unwinder for mips-irix N32.
6648 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6650 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6651 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
6652 (SIGCONTEXT_LO_OFF): New macros.
6653 (mips_irix_n32_tramp_frame_init): New function.
6654 (mips_irix_n32_tramp_frame): New static constant.
6655 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6657 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6659 Breakpoint in shared library does not work on mips-irix.
6660 * procfs.c: #include "observer.h".
6661 (procfs_inferior_created): New function, moving here the code
6662 which unsets the syssgi syscall-exit notifications.
6663 (procfs_create_inferior): Remove the code which unsets the syssgi
6664 syscall-exit notifications. It is too early to do this here.
6665 (_initialize_procfs): Attach the procfs_inferior_created observer.
6667 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6669 Wrong return convention for arrays (mips-irix).
6670 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6671 128 bits or smaller are returned the same way as structs
6672 and unions of the the same size.
6674 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6676 Cannot set the PC on mips-irix.
6677 * irix5-nat.c (fill_gregset): Check regno against the raw PC
6678 register number, no the cooked one.
6680 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6682 Error while loading core file on mips-irix.
6683 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6684 if debugging from a core file.
6686 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6688 GDB hangs when attaching to process on mips-irix.
6689 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6690 attaching to a process.
6692 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6694 Use the correct breakpoint instruction on mips-irix.
6695 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6696 containing the correct breakpoint instruction to use on mips-irix.
6697 Use it when the osabi is GDB_OSABI_IRIX.
6699 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6701 -Wunused warning in procfs.c (mips-irix only).
6702 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
6703 throughout instead of using praddset and prdelset respectively.
6705 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6707 GDB crash while stepping into function.
6708 * infrun.c (handle_inferior_event): Refetch the current frame
6709 after handling what.main_action, in case that pointer became
6712 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6714 Fix build failure of solaris-hosted cross debuggers.
6715 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6717 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
6719 Fix build failure on sparc-solaris.
6720 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6722 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6724 Move some symfile code into subroutines.
6725 * symfile.h (relative_addr_info_to_section_offsets)
6726 (addr_info_make_relative): New prototypes.
6727 * symfile.c (default_symfile_offsets): Move a part to ...
6728 (relative_addr_info_to_section_offsets): ... this new function.
6729 (default_symfile_offsets): Call it.
6730 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6732 (addr_info_make_relative): ... this new function.
6734 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6736 Add from_tty to solib_create_inferior_hook.
6737 * infcmd.c (post_create_inferior): Move solib_add after
6738 solib_create_inferior_hook. Pass from_tty to
6739 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
6740 0 from_tty and comment why.
6741 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6742 * linux-nat.c (linux_child_follow_fork): Likewise.
6743 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6744 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6746 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6747 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6748 * solib-null.c (null_solib_create_inferior_hook): Likewise.
6749 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6750 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6751 * solib-som.c (som_solib_create_inferior_hook): Likewise.
6752 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6753 Pass it to svr4_so_ops.solib_create_inferior_hook.
6754 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6756 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
6758 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
6760 * solib-target.c (solib_target_solib_create_inferior_hook): New
6762 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
6763 it to ops->solib_create_inferior_hook.
6764 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6765 Move solib_add after solib_create_inferior_hook, call it now with
6766 from_tty as 0. New comment there.
6767 * solib.h (solib_create_inferior_hook): New parameter from_tty.
6768 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6771 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
6774 * infrun.c (handle_inferior_event): Use get_thread_regcache
6775 with events ptid, not get_current_regcache.
6777 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6779 GDB crash with empty executable name (MinGW).
6780 * source.c (openp): Add assert that parameter string is not NULL.
6781 if parameter string is an empty string, then return with a failure
6784 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6786 Get rid of support for VAX Floats.
6787 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6788 (ada_vax_float_print_function): Delete.
6789 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6790 (ada_vax_float_print_function): Delete.
6791 * ada-typeprint.c (print_vax_floating_point_type): Delete.
6792 (ada_print_type): Remove support for VAX floats.
6793 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6795 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6797 * stabsread.c (read_args): Handle zero arguments.
6799 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6801 Cannot find in-tree libiconv.a after reconfigure.
6802 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6803 that we can use, then cache the path to this archive.
6804 * configure: Regenerate.
6806 2010-01-07 Stan Shebs <stan@codesourcery.com>
6808 Make tracepoint operations go through target vector.
6809 * target.h (enum trace_find_type): New enum.
6810 (struct target_ops): New fields to_trace_init,
6811 to_download_tracepoint, to_download_trace_state_variable,
6812 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6813 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6814 to_set_disconnected_tracing.
6815 (target_trace_init): New macro.
6816 (target_download_tracepoint): New macro.
6817 (target_download_trace_state_variable): New macro.
6818 (target_trace_start): New macro.
6819 (target_trace_set_readonly_regions): New macro.
6820 (target_get_trace_status): New macro.
6821 (target_trace_stop): New macro.
6822 (target_trace_find): New macro.
6823 (target_get_trace_state_variable_value): New macro.
6824 (target_set_disconnected_tracing): New macro.
6825 * target.c (update_current_target): Inherit and set defaults for
6826 tracepoint operations.
6827 * tracepoint.c (default_collect): Make globally visible.
6828 (target_is_remote): Remove, along with all calls.
6829 (tvariables_info): Call target_get_trace_state_variable_value.
6830 (remote_set_transparent_ranges): Remove.
6831 (trace_start_command): Call target_trace_init,
6832 target_download_tracepoint, etc.
6833 (download_tracepoint): Remove.
6834 (trace_stop_command): Simplify.
6835 (stop_tracing): Call target_trace_stop.
6836 (get_trace_status): Call target_get_trace_status.
6837 (trace_status_command): Add case for targets that cannot trace.
6838 (finish_tfind_command): Change to take numerical arguments, call
6840 (trace_find_command): Update call to finish_tfind_command.
6841 (trace_find_pc_command): Ditto.
6842 (trace_find_tracepoint_command): Ditto.
6843 (trace_find_line_command): Ditto.
6844 (trace_find_range_command): Ditto.
6845 (trace_find_outside_command): Ditto.
6846 (set_disconnected_tracing_value): Call
6847 target_set_disconnected_tracing.
6848 * remote.c: Add protocol encoding bits from tracepoint.c.
6849 (trace_error): Move from tracepoint.c.
6850 (remote_get_noisy_reply): Ditto.
6851 (free_actions_list_cleanup_wrapper): Ditto.
6852 (free_actions_list): Ditto.
6853 (remote_trace_init): New function.
6854 (remote_download_tracepoint): New function.
6855 (remote_download_trace_state_variable): New function.
6856 (remote_trace_set_readonly_regions): New function.
6857 (remote_trace_start): New function.
6858 (remote_get_trace_status): New function.
6859 (remote_trace_stop): New function.
6860 (remote_trace_find): New function.
6861 (remote_download_trace_state_variable): New function.
6862 (remote_set_disconnected_tracing): New function.
6863 (init_remote_ops): Add tracepoint operations.
6865 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6867 2010-01-07 Tristan Gingold <gingold@adacore.com>
6869 * symfile.c (build_section_addr_info_from_objfile): New function.
6870 (symbol_file_add_separate): Don't use offsets from objfile but
6873 2010-01-06 Stan Shebs <stan@codesourcery.com>
6875 Support disconnected tracing.
6876 * infcmd.c (detach_command): Ask whether to stop tracing.
6877 * cli/cli-cmds.c (quit_command): Ditto.
6878 * breakpoint.h (struct breakpoint): New field number_on_target.
6879 * breakpoint.c (create_tracepoint_from_upload): New function.
6880 (get_tracepoint_by_number_on_target): New function.
6881 * remote.c (struct remote): New field disconnected_tracing.
6882 (remote_disconnected_tracing_feature): New function.
6883 (remote_protocol_features): Add DisconnectedTracing.
6884 (struct uploaded_tp): New struct.
6885 (uploaded_tps): New global.
6886 (get_uploaded_tp): New function.
6887 (find_matching_tracepoint): New function.
6888 (remote_get_tracing_state): New function.
6889 (remote_start_remote): Call it.
6890 * tracepoint.c (disconnected_tracing): New global.
6891 (trace_start_command): Initialize number_on_target.
6892 (stop_tracing): New function, split out from...
6893 (trace_stop_command): Call stop_tracing.
6894 (get_trace_status): New function, split out from...
6895 (trace_status_command): Call get_trace_status, add info on
6896 disconnection behavior.
6897 (disconnect_or_stop_tracing): New function.
6898 (finish_tfind_command): Translate from number on target.
6899 (trace_find_tracepoint_command): Translate to number on target.
6900 (send_disconnected_tracing_value): New function.
6901 (set_disconnected_tracing): New function.
6902 (_initialize_tracepoint): Add disconnected-tracing variable.
6903 * NEWS: Mention disconnected tracing.
6905 2010-01-06 Tristan Gingold <gingold@adacore.com>
6907 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6908 parameter to main_objfile. Iterate on all separate debug objfiles.
6909 * symfile.h (symbol_file_add_separate)
6910 (find_separate_debug_file_by_debuglink): Remove parameter names.
6911 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6912 (reread_symbols): Use free_objfile_separate_debug.
6913 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6915 (objfile_separate_debug_iterate, add_separate_debug_objfile)
6916 (free_objfile_separate_debug): New prototypes.
6917 * objfiles.c (objfile_separate_debug_iterate): New function.
6918 (add_separate_debug_objfile, free_objfile_separate_debug): New
6920 (free_objfile): Use free_objfile_separate_debug. Adjust for
6921 multiple separate debug objfile.
6922 (objfile_has_symbols): Adjust comment. Iterate on all separate
6924 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6926 (lookup_minimal_symbol_text): Ditto.
6927 (lookup_minimal_symbol_by_pc_name): Ditto.
6928 (lookup_minimal_symbol_solib_trampoline): Ditto.
6929 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6932 2010-01-05 Stan Shebs <stan@codesourcery.com>
6934 Add fast tracepoints.
6935 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6936 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6937 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6938 * breakpoint.c (tracepoint_type): New function.
6939 (ALL_TRACEPOINTS): Use it.
6940 (should_be_inserted): Ditto.
6941 (bpstat_check_location): Ditto.
6942 (print_one_breakpoint_location): Ditto.
6943 (user_settable_breakpoint): Ditto.
6944 (set_breakpoint_location_function): Ditto.
6945 (disable_breakpoints_in_shlibs): Ditto.
6946 (delete_trace_command): Ditto.
6947 (print_it_typical): Add bp_fast_tracepoint case.
6948 (bpstat_what): Ditto.
6949 (print_one_breakpoint_location): Ditto.
6950 (allocate_bp_location): Ditto.
6952 (breakpoint_re_set_one): Ditto.
6953 (disable_command): Ditto.
6954 (enable_command): Ditto.
6955 (check_fast_tracepoint_sals): New function.
6956 (break_command_really): Call it.
6957 (ftrace_command): New function.
6958 (_initialize_breakpoint): Add ftrace command.
6959 * gdbarch.sh (fast_tracepoint_valid_at): New.
6960 * gdbarch.h, gdbarch.c: Regenerate.
6961 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6962 (i386_gdbarch_init): Use it.
6963 * remote.c (struct remote_state): New field fast_tracepoints.
6964 (PACKET_FastTracepoints): New packet config type.
6965 (remote_fast_tracepoint_feature): New function.
6966 (remote_protocol_features): Add FastTracepoints.
6967 (remote_supports_fast_tracepoints): New function.
6968 (_initialize_remote): Add FastTracepoints.
6969 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
6970 * NEWS: Mention fast tracepoints.
6972 2010-01-06 Joel Brobecker <brobecker@adacore.com>
6974 * gdb-gdb.py: New file.
6976 2010-01-05 Michael Snyder <msnyder@vmware.com>
6978 * infrun.c (handle_inferior_event): Fix typo in comment.
6980 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6982 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
6984 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6986 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
6988 (s390-linux32-expedite): Define.
6989 (s390-linux64-expedite): Define.
6990 (s390x-linux64-expedite): Define.
6991 * features/s390-acr.xml: New file.
6992 * features/s390-fpr.xml: New file.
6993 * features/s390-core32.xml: New file.
6994 * features/s390-core64.xml: New file.
6995 * features/s390x-core64.xml: New file.
6996 * features/s390-linux32.xml: New file.
6997 * features/s390-linux64.xml: New file.
6998 * features/s390x-linux64.xml: New file.
6999 * features/s390-linux32.c: New generated file.
7000 * features/s390-linux64.c: New generated file.
7001 * features/s390x-linux64.c: New generated file.
7003 * regformats/s390-linux32.dat: New generated file.
7004 * regformats/s390-linux64.dat: New generated file.
7005 * regformats/s390x-linux64.dat: New generated file.
7006 * regformats/reg-s390.dat: Remove.
7007 * regformats/reg-s390x.dat: Remove.
7009 * s390-nat.c: Include "auxv.h" and <elf.h>.
7010 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7011 (s390_target_wordsize): New function.
7012 (s390_auxv_parse): Likewise.
7013 (s390_get_hwcap): Likewise.
7014 (s390_read_description): Likewise.
7015 (_initialize_s390_nat): Install s390_auxv_parse and
7016 s390_read_description.
7018 * s390-tdep.c: Include "features/s390-linux32.c",
7019 "features/s390-linux64.c", and "features/s390x-linux64.c".
7020 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7021 (s390_register_call_saved): New function.
7022 (s390_register_name): Remove.
7023 (s390_register_type): Remove.
7024 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7025 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7026 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7027 (s390_pseudo_register_name): New function.
7028 (s390_pseudo_register_type): New function.
7029 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7030 Handle full GPR pesudos and varying pseudo register numbers.
7031 (s390_pseudo_register_write): Likewise
7032 (s390x_pseudo_register_read): Remove.
7033 (s390x_pseudo_register_write): Likewise.
7034 (s390_register_group): Remove.
7035 (s390_pseudo_register_group): New function.
7036 (s390_regmap_gregset): Add GPR upper halves.
7037 (s390x_regmap_gregset): Likewise.
7038 (s390_regmap_fpregset): Likewise.
7039 (s390_regmap_upper): New global variable.
7040 (s390_upper_regset): New global variable.
7041 (s390_upper_regset_sections): New global variable.
7042 (s390_regset_from_core_section): Handle GPR upper halves.
7043 (s390_core_read_description): New function.
7044 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7045 register information. Handle varying pseudo register numbers.
7046 (s390_backchain_frame_unwind_cache): Likewise.
7047 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7048 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7049 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7050 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7051 Handle varying pseudo register numbers.
7052 (s390_unwind_pc): Handle varying pseudo register numbers.
7053 (s390_dwarf2_prev_register): New function.
7054 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7055 register information. Handle varying pseudo register numbers.
7056 Install s390_dwarf2_prev_register to unwind full GPRs.
7057 (s390_gdbarch_init): Handle target descriptions. Assign varying
7058 pseudo register numbers. Install s390_adjust_frame_regnum.
7059 (_initialize_s390_tdep): Initialize target descriptions.
7061 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7062 (S390_NUM_REGS): Redefine to include upper half registers.
7063 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7064 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7065 (tdesc_s390_linux32): Add declaration.
7066 (tdesc_s390_linux64): Likewise.
7067 (tdesc_s390x_linux64): Likewise.
7069 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7071 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7072 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7073 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7074 (ppc_linux_vmx_regset_sections): Likewise.
7075 (ppc_linux_fp_regset_sections): Likewise.
7077 * corelow.c (get_core_register_section): Constify arguments.
7078 (get_core_registers): Use gdbarch_core_regset_sections instead
7079 of hard-coded platform-specific register section names.
7081 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7083 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7084 a register, assume the least-significant part is used.
7085 (write_pieced_value): Likewise.
7087 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7089 * printcmd.c: Include "arch-utils.h".
7090 (do_one_display): Re-parse expression if current architecture changed.
7092 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7093 Joel Brobecker <brobecker@adacore.com>
7095 * gdbtypes.c (check_typedef): New comment on type length.
7096 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7097 comment on type length.
7098 (value_primitive_field): Keep the original TYPE value, new comment.
7100 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7102 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7103 p_start. Change != comparisons to > and < comparisons.
7105 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7107 * cli/cli-script.c (process_next_line): Check P2 overrun.
7109 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7111 Update the copyright hearder to add year 2010 for most GDB files.
7113 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7115 Fix build failure in inf-ptrace.c.
7116 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7118 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7120 * top.c (print_gdb_version): Update copyright year.
7122 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7124 Fix break *FUN'address thread NUM.
7125 * ada-lex.l (task): Expand rule to also match the thread keyword.
7127 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7129 Fix break *FUN'address task NUM.
7130 * ada-lex.l (task): New rule.
7131 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7132 been built before using it.
7134 For older changes see ChangeLog-2009.
7140 version-control: never