1 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4 (dwarf_expr_tls_address): Use per_cu instead of objfile.
5 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
6 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
8 (struct needs_frame_baton): New field per_cu.
9 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
10 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
12 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
14 * cp-support.c (make_symbol_overload_list_namespace): Only search
15 static and global blocks.
16 (make_symbol_overload_list_block): New function.
17 (make_symbol_overload_list): Separate namespace search from block
19 (make_symbol_overload_list_qualified): Use
20 make_symbol_overload_list_block.
22 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
24 * value.h: Created oload_search_type enum.
25 (find_overload_match): Use oload_search_type enum.
26 * valops.c (find_overload_match): Support combined member and
28 * eval.c (evaluate_subexp_standard): Calls to
29 find_overload_match now use oload_search_type enum.
30 (oload_method_static): Verify index is a proper value.
31 * valarith.c (value_user_defined_cpp_op): Search for and handle
32 both member and non-member operators.
33 (value_user_defined_cpp_op): New function.
34 (value_user_defined_op): New function.
35 (value_x_unop): Use value_user_defined_op.
36 (value_x_binop): Ditto.
37 * cp-support.c (make_symbol_overload_list_using): Added block
39 Add check for namespace aliases and imported declarations.
41 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
43 * breakpoint.h (owner): Extend the comment.
45 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
47 Clear stale specific bp_location from former whole breakpoint.
48 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
50 (free_bp_location): ... here. Rename there the called function to
51 bpstat_remove_bp_location_callback.
52 (bpstat_remove_breakpoint_callback): Rename to ...
53 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
54 to struct bp_location. Change the called function to
55 bpstat_remove_bp_location. Create new declaration for the function.
56 (bpstat_remove_breakpoint): Rename to ...
57 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
58 code for the new parameter type.
60 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
62 * README: Make version-agnostic.
64 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
66 Fix duplicate types for single DIE.
67 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
69 (read_array_type): Remove type initialization. Recheck get_die_type
70 after initial die_type. Move set_die_type before set_descriptive_type.
71 (read_set_type): New variable domain_type. Recheck get_die_type after
72 initial die_type. Move attr initialization later.
73 (read_tag_pointer_type, read_tag_reference_type): New variable
74 target_type. Recheck get_die_type after initial die_type.
75 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
76 die_type and die_containing_type.
77 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
78 Recheck get_die_type after initial die_type.
79 (read_subrange_type): Recheck get_die_type after initial die_type.
80 Move set_die_type before set_descriptive_type.
81 (set_die_type): Extend the function comment. Call complaint if DIE has
82 some type already set.
84 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
86 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
87 for current naming of thread groups (iN, not N).
89 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
91 * ada-lang.c (ada_operator_length): Constify `struct expression'.
92 * parse.c (operator_length): Likewise.
93 (operator_length_standard): Likewise.
94 * parser-defs.h (operator_length): Likewise.
95 (operator_length_standard): Likewise.
96 (struct exp_descriptor <operator_length>): Likewise.
98 2010-06-04 Doug Evans <dje@google.com>
100 Add support for enabling/disabling individual pretty-printers.
101 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
102 * python/python-internal.h (gdbpy_enabled_cst): Declare.
103 * python/python.c (gdbpy_enabled_cst): Define.
104 (_initialize_python): Initialize gdbpy_enabled_cst.
107 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
109 * breakpoint.c (update_global_location_list): Fix comment typo.
111 2010-06-04 Hui Zhu <teawater@gmail.com>
113 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
115 2010-06-03 Doug Evans <dje@google.com>
117 * configure.ac: Don't fail if python is unusable when
118 configured with --with-python=auto.
119 * configure: Regenerate.
121 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
123 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
125 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
127 * valprint.h (get_array_bounds): Change low and high parameter types
129 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
131 (val_print_array_elements): Adapt to change above.
132 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
133 * p-valprint.c (pascal_val_print): Likewise.
135 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
137 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
138 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
141 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
143 Support DW_TAG_module as separate namespaces.
144 * dwarf2read.c (typename_concat): New parameter physname.
145 (read_module_type): New function and declaration.
146 (scan_partial_symbols): Scan also DW_TAG_module children.
147 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
148 to typename_concat backward compatible physname value 0.
149 (partial_die_full_name, read_namespace_type): Pass to typename_concat
150 backward compatible physname value 0.
151 (add_partial_module, read_module): Remove FIXME comment.
152 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
153 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
154 DIEs under DW_TAG_module.
155 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
156 DW_AT_MIPS_linkage_name first, extend it for language_fortran
157 && physname and return there instead of just setting NAME. Extend
158 the main block for language_fortran. Pass physname parameter to the
159 typename_concat call.
160 (read_import_statement, read_func_scope, get_scope_pc_bounds)
161 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
162 (new_symbol): Fill in cplus_specific.demangled_name if it is still
163 missing from SYMBOL_SET_NAMES in the language_fortran case.
164 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
166 (read_type_die) <DW_TAG_module>: New.
167 (MAX_SEP_LEN): Increase to 7.
168 (typename_concat): New parameter physname. New variable lead. Support
169 also language_fortran.
170 * f-exp.y (yylex): Consider : also as a symbol name character class.
171 * f-lang.c: Include cp-support.h.
172 (f_word_break_characters, f_make_symbol_completion_list): New functions.
173 (f_language_defn): Use cp_lookup_symbol_nonlocal,
174 f_word_break_characters and f_make_symbol_completion_list.
175 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
176 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
177 * symtab.c (symbol_init_language_specific): Support language_fortran.
178 (symbol_find_demangled_name): New comment on language_fortran.
179 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
180 for language_fortran.
181 (lookup_symbol_aux_local): Check imports also for language_fortran.
182 (default_make_symbol_completion_list): Rename to ...
183 (default_make_symbol_completion_list_break_on): ... this name. New
184 parameter break_on, use it.
185 (default_make_symbol_completion_list): New stub.
186 * symtab.h (default_make_symbol_completion_list_break_on): New
189 2010-06-02 Joel Brobecker <brobecker@adacore.com>
191 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
194 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
196 * dwarf2read.c (typename_concat): Add const to the variable sep.
198 2010-06-02 Tom Tromey <tromey@redhat.com>
200 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
201 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
202 type is const. Add 'def' argument. Add missing operators, remove
204 (decode_locdesc): Update.
205 (dwarf2_always_disassemble): New global.
206 (show_dwarf2_always_disassemble): New function.
207 (_initialize_dwarf2_read): Add always-disassemble.
208 (dwarf2_per_cu_offset_size): New function.
209 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
210 (piece_end_p): New function.
211 (locexpr_describe_location_piece): Replace 'size' argument with
212 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
213 some constants. Remove errors.
214 (disassemble_dwarf_expression): New function.
215 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
216 Add 'offset_size' argument.
217 (loclist_describe_location): Change output formatting.
218 * dwarf2expr.h (dwarf_stack_op_name): Declare.
220 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
222 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
225 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
227 * dwarf2read.c (read_subrange_type): Handle missing base type
228 according to Dwarf-2 specifications.
230 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
232 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
234 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
235 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
236 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
237 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
238 UNOP_CHMAX, UNOP_CHMIN.
239 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
240 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
241 UNOP_CHMIN>: Remove opcodes.
243 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
245 * dwarf2read.c (read_func_scope): Do not complain for
246 external function if bounds are not found.
248 2010-06-01 Pedro Alves <pedro@codesourcery.com>
250 * NEWS: Mention gdbserver fast tracepoints support.
252 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
254 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
256 (windows_set_console_info): New function.
257 (windows_create_inferior): Call windows_set_console_info
258 if NEW_CONSOLE is true.
259 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
260 (_initialize_loadable): Initialize GetConsoleFontSize and
261 GetCurrentConsoleFont.
263 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
265 * Makefile.in (RDYNAMIC): New.
266 (SFILES): Add proc-service.list.
267 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
268 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
269 * config/arm/linux.mh: Likewise.
270 * config/i386/linux.mh: Likewise.
271 * config/i386/linux64.mh: Likewise.
272 * config/ia64/linux.mh: Likewise.
273 * config/m32r/linux.mh: Likewise.
274 * config/m68k/linux.mh: Likewise.
275 * config/mips/linux.mh: Likewise.
276 * config/pa/linux.mh: Likewise.
277 * config/powerpc/linux.mh: Likewise.
278 * config/powerpc/ppc64-linux.mh: Likewise.
279 * config/s390/s390.mh: Likewise.
280 * config/sparc/linux.mh: Likewise.
281 * config/sparc/linux64.mh: Likewise.
282 * config/xtensa/linux.mh: Likewise.
283 * configure.ac: New RDYNAMIC on native host and GCC.
284 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
285 * configure: Regenerate.
286 * proc-service.list: New.
288 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
290 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
293 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
295 * linux-nat.c (linux_nat_wait_1): Do not call
296 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
297 TARGET_WAITKIND_SIGNALLED.
299 2010-05-27 Joel Brobecker <brobecker@adacore.com>
301 * ada-lang.c (ada_inferior_data): New struct.
302 (ada_inferior_data): New static global.
303 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
304 (ada_get_tsd_type): New functions.
305 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
306 to look the tsd type up.
307 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
308 event. Set ada_inferior_data.
310 2010-05-27 Pedro Alves <pedro@codesourcery.com>
312 * remote.c (unpack_varlen_hex): Remove forward declaration.
313 (remote_console_output): Make static, and add forward declaration.
314 * remote.h: Drop FIXME comment.
315 (unpack_varlen_hex): Declare.
316 (remote_console_output, remote_cisco_objfile_relocate)
317 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
319 * tracepoint.c: Include "remote.h".
320 (unpack_varlen_hex): Delete declaration.
322 2010-05-27 Tom Tromey <tromey@redhat.com>
324 * dwarf2loc.c (struct piece_closure) <refc>: New field.
325 (allocate_piece_closure): Initialize refc.
326 (copy_pieced_value_closure): Use refc.
327 (free_pieced_value_closure): Likewise.
329 2010-05-27 Tom Tromey <tromey@redhat.com>
331 * arm-tdep.c (push_stack_item): 'contents' now const.
332 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
333 value_contents_writeable. Introduce new temporary.
335 2010-05-27 Tom Tromey <tromey@redhat.com>
337 * findcmd.c (parse_find_args): Use value_contents, not
340 2010-05-27 Tom Tromey <tromey@redhat.com>
342 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
343 const. Use value_contents, not value_contents_writeable.
345 2010-05-27 Joel Brobecker <brobecker@adacore.com>
347 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
348 by call to value_contents.
350 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
352 * MAINTAINERS: Add myself for write after approval privileges.
354 2010-05-26 Doug Evans <dje@google.com>
356 Allow python to find its files if moved from original location.
357 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
358 (GDB_AC_WITH_DIR): Call it.
359 * configure.ac: Define WITH_PYTHON_PATH if we can find the
360 python installation directory.
361 * config.in: Regenerate.
362 * configure: Regenerate.
363 * defs.h (python_libdir): Declare.
364 * main.c (python_libdir): Define.
365 (captured_main): Initialize python_libdir.
366 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
367 call Py_SetProgramName to make sure python can find its libraries
370 * configure.ac: Try to use python's distutils to fetch compilation
372 * configure: Regenerate.
373 * python/python-config.py: New file.
375 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
377 * ser-tcp.c (net_open): Check error return from socket() call by its
378 equality to -1 not by it being negative.
379 (net_close): Likewise.
381 2010-05-26 Pedro Alves <pedro@codesourcery.com>
383 * NEWS: Mention the `qRelocInsn' feature.
384 * gdbarch.sh (relocate_instruction): New.
385 * amd64-tdep.c (rip_relative_offset): New.
387 (amd64_relocate_instruction): New.
388 (amd64_init_abi): Install it.
389 * i386-tdep.c (append_insns): New.
390 (i386_relocate_instruction): New.
391 (i386_gdbarch_init): Install it.
392 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
393 * gdbarch.h, gdbarch.c: Regenerate.
395 2010-05-26 Tom Tromey <tromey@redhat.com>
397 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
398 (struct dwarf2_loclist_baton) <data>: Likewise.
399 * dwarf2loc.c (find_location_expression): Constify return type.
400 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
401 (dwarf2_loc_desc_needs_frame): Likewise.
402 (loclist_read_variable): Constify.
403 (loclist_describe_location): Likewise.
404 (loclist_tracepoint_var_ref): Likewise.
406 2010-05-25 Tom Tromey <tromey@redhat.com>
408 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
409 (dwarf_expr_frame_base_1): Likewise.
410 (read_pieced_value): Update.
411 (needs_frame_frame_base): Constify.
412 (dwarf2_tracepoint_var_loc): Likewise.
413 (dwarf2_tracepoint_var_access): Likewise.
414 (locexpr_describe_location_piece): Likewise.
415 (locexpr_describe_location_1): Likewise.
416 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
419 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
420 (dwarf_expr_eval, read_uleb128, read_sleb128)
421 (dwarf2_read_address): Update.
422 * dwarf2expr.c (dwarf_expr_eval): Constify.
423 (read_uleb128): Likewise.
424 (read_sleb128): Likewise.
425 (dwarf2_read_address): Likewise.
426 (require_composition): Likewise.
427 (execute_stack_op): Likewise.
428 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
430 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
432 (no_get_frame_base): Constify.
433 (execute_stack_op): Likewise.
434 (execute_cfa_program): Likewise.
435 (read_encoded_value): Likewise.
437 2010-05-25 Doug Evans <dje@google.com>
439 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
441 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
442 * event-loop.c: ... here.
443 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
445 (tui_getc): Pass correct value for `error' parameter to
448 Add python gdb.GdbError and gdb.string_to_argv.
449 * NEWS: Document them.
450 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
451 the exception is gdb.GdbError. Print a second traceback if there's
452 an error computing the error message.
453 (gdbpy_string_to_argv): New function.
454 * python/py-utils.c (gdbpy_obj_to_string): New function.
455 (gdbpy_exception_to_string): New function.
456 * python/python-internal.h (gdbpy_string_to_argv): Declare.
457 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
458 (gdbpy_gdberror_exc): Declare.
459 * python/python.c (gdbpy_gdberror_exc): New global.
460 (_initialize_python): Initialize gdbpy_gdberror_exc and create
462 (GdbMethods): Add string_to_argv.
464 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
466 * windows-nat.c (display_selector): Call GetLastError to give better
469 2010-05-24 Pedro Alves <pedro@codesourcery.com>
471 * config.in: Regenerate.
473 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
476 * target.c (push_target): Return only void. Remove the return value
478 * target.h (push_target): Return only void.
480 2010-05-23 Pedro Alves <pedro@codesourcery.com>
482 Update gnulib from latest git.
483 (250b80067c1e1d8faa0c42fb572f721975b929c5)
485 * gnulib/memcmp.c: Removed.
486 * gnulib/memchr.valgrind: New.
487 * gnulib/stddef.in.h: New.
488 * gnulib/Makefile.am: Updated.
489 * gnulib/memchr.c: Updated.
490 * gnulib/memmem.c: Updated.
491 * gnulib/stdint.in.h: Updated.
492 * gnulib/str-two-way.h: Updated.
493 * gnulib/string.in.h: Updated.
494 * gnulib/wchar.in.h: Updated.
496 * gnulib/extra/link-warning.h: Removed.
497 * gnulib/extra/c++defs.h: New.
498 * gnulib/extra/warn-on-use.h: New.
499 * gnulib/extra/arg-nonnull.h: Updated.
501 * gnulib/m4/extensions.m4: Updated.
502 * gnulib/m4/gnulib-cache.m4: Updated.
503 * gnulib/m4/gnulib-common.m4: Updated.
504 * gnulib/m4/gnulib-comp.m4: Updated.
505 * gnulib/m4/gnulib-tool.m4: Updated.
506 * gnulib/m4/include_next.m4: Updated.
507 * gnulib/m4/longlong.m4: Updated.
508 * gnulib/m4/memchr.m4: Updated.
509 * gnulib/m4/memmem.m4: Updated.
510 * gnulib/m4/stdint.m4: Updated.
511 * gnulib/m4/string_h.m4: Updated.
512 * gnulib/m4/memcmp.m4: Removed.
513 * gnulib/m4/onceonly_2_57.m4: Removed.
514 * gnulib/m4/00gnulib.m4: New.
515 * gnulib/m4/mmap-anon.m4: New.
516 * gnulib/m4/multiarch.m4: New.
517 * gnulib/m4/onceonly.m4: New.
518 * gnulib/m4/stddef_h.m4: New.
519 * gnulib/m4/warn-on-use.m4: New.
520 * gnulib/m4/wchar.m4: Removed.
521 * gnulib/m4/wchar_h.m4: New.
522 * gnulib/m4/wchar_t.m4: New.
523 * gnulib/m4/wint_t.m4: New.
525 * aclocal.m4: Regenerate.
526 * config.in: Likewise.
527 * configure: Likewise.
528 * gnulib/Makefile.in: Likewise.
530 2010-05-21 Tom Tromey <tromey@redhat.com>
532 * dwarf2loc.c (extract_bits_primitive): New function.
533 (extract_bits): Likewise.
534 (insert_bits): Likewise.
535 (copy_bitwise): Likewise.
536 (read_pieced_value): Do all operations in bits.
537 (write_pieced_value): Likewise.
538 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
539 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
540 Always use xrealloc to resize piece array.
541 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
542 <DW_OP_piece>: Update.
543 <DW_OP_bit_piece>: New case.
545 2010-05-21 Tom Tromey <tromey@redhat.com>
547 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
548 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
549 * dwarf2expr.h (enum dwarf_value_location)
550 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
551 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
552 (add_piece): Handle empty piece.
553 (execute_stack_op) <DW_OP_piece>: Handle
554 DWARF_VALUE_OPTIMIZED_OUT.
556 2010-05-21 Tom Tromey <tromey@redhat.com>
558 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
559 evaluate_subexp, not evaluate_subexp_with_coercion.
561 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
563 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
566 2010-05-21 Tom Tromey <tromey@redhat.com>
568 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
570 (write_pieced_value): Likewise.
572 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
574 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
575 and DW_TAG_volatile_type.
576 (new_symbol): Likewise.
578 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
580 * p-valprint.c (pascal_val_print): Call get_array_bounds
581 to obtain the number of elements in an array.
583 2010-05-19 Doug Evans <dje@google.com>
585 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
587 * python.c (source_python_script): Add comment.
588 (source_python_script_for_objfile): Remove unnecessary call to
591 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
592 Sergio Durigan Junior <sergiodj@redhat.com>
595 * parse.c (exp_iterate): Use operator_length wrapper function.
597 2010-05-18 Michael Snyder <msnyder@vmware.com>
599 * ada-lang.c: White space.
600 * ada-typeprint.c: White space.
601 * ada-valprint.c: White space.
602 * addrmap.c: White space.
603 * auxv.c: White space.
604 * ax-gdb.c: White space.
606 2010-05-18 Hui Zhu <teawater@gmail.com>
608 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
610 (inferior_call_waitpid): Move make_cleanup out of check.
611 Check the return of waitpid.
612 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
614 2010-05-17 Michael Snyder <msnyder@vmware.com>
616 * tui/tui.c: White space.
617 * tui/tui-data.c: White space.
618 * tui/tui-disasm.c: White space.
619 * tui/tui-file.c: White space.
620 * tui/tui-interp.c: White space.
621 * tui/tui-main.c: White space.
622 * tui/tui-out.c: White space.
623 * tui/tui-regs.c: White space.
624 * tui/tui-source.c: White space.
625 * tui/tui-stack.c: White space.
626 * tui/tui-win.c: White space.
627 * tui/tui-winsource.c: White space.
629 * procfs.c: White space.
631 * python/py-auto-load.c: White space.
632 * python/py-block.c: White space.
633 * python/py-breakpoint.c: White space.
634 * python/py-cmd.c: White space.
635 * python/py-function.c: White space.
636 * python/py-lazy-string.c: White space.
637 * python/py-objfile.c: White space.
638 * python/py-param.c: White space.
639 * python/py-prettyprint.c: White space.
640 * python/py-progspace.c: White space.
641 * python/py-symtab.c: White space.
642 * python/python.c: White space.
643 * python/py-type.c: White space.
644 * python/py-utils.c: White space.
645 * python/py-value.c: White space.
647 * mi/mi-cmd-break.c: White space.
648 * mi/mi-cmd-env.c: White space.
649 * mi/mi-cmds.c: White space.
650 * mi/mi-cmd-stack.c: White space.
651 * mi/mi-cmd-var.c: White space.
652 * mi/mi-console.c: White space.
653 * mi/mi-getopt.c: White space.
654 * mi/mi-interp.c: White space.
655 * mi/mi-main.c: White space.
656 * mi/mi-out.c: White space.
657 * mi/mi-parse.c: White space.
659 * cli/cli-cmds.c: White space.
660 * cli/cli-decode.c: White space.
661 * cli/cli-dump.c: White space.
662 * cli/cli-interp.c: White space.
663 * cli/cli-logging.c: White space.
664 * cli/cli-script.c: White space.
665 * cli/cli-setshow.c: White space.
667 * valarith.c: White space.
668 * valops.c: White space.
669 * valprint.c: White space.
670 * value.c: White space.
671 * varobj.c: White space.
672 * xcoffread.c: White space.
673 * xml-support.c: White space.
674 * xml-tdesc.c: White space.
676 2010-05-17 Andreas Schwab <schwab@redhat.com>
679 * c-lang.c (c_printstr): Compute real length of NUL terminated
682 2010-05-17 Joel Brobecker <brobecker@adacore.com>
684 * parse.c (parse_exp_in_context): When block is not NULL, use
685 its associated language to parse the expression instead of
686 the current_language.
688 2010-05-17 Joel Brobecker <brobecker@adacore.com>
690 * jv-lang.c (java_lookup_class): Remove commented out code.
691 (type_from_class): Likewise.
692 (java_op_print_tab): Remove commented-out elements.
694 2010-05-17 Joel Brobecker <brobecker@adacore.com>
696 * ada-lang.c (to_fixed_range_type): The the raw index type as
697 argument instead of the raw type name. Remove orig_type parameter.
698 Update calls throughout.
699 (ada_fixup_array_indexes_type): New function.
700 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
701 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
702 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
703 Remove name parameter.
704 (print_array_type): Add call to ada_fixup_array_indexes_type.
705 Update calls to print_range_type.
706 (ada_print_type): Update calls to print_range_type.
708 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
710 * dwarf2read.c (read_set_type): Set type length if
711 DW_AT_byte_size attribute is present.
713 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
715 * p-valprint.c (pascal_val_print): Handle set type if range limits
716 are undefined but size is known.
718 2010-05-17 Pedro Alves <pedro@codesourcery.com>
720 * procfs.c: Reformat.
722 2010-05-16 Michael Snyder <msnyder@vmware.com>
724 * target.c: White space.
725 * target-descriptions.c: White space.
726 * target-memory.c: White space.
727 * thread.c: White space.
728 * top.c: White space.
729 * tracepoint.c: White space.
730 * trad-frame.c: White space.
731 * tramp-frame.c: White space.
732 * ui-file.c: White space.
733 * ui-out.c: White space.
734 * user-regs.c: White space.
735 * utils.c: White space.
737 * scm-exp.c: White space.
738 * scm-lang.c: White space.
739 * scm-valprint.c: White space.
740 * sentinel-frame.c: White space.
741 * ser-base.c: White space.
742 * ser-go32.c: White space.
743 * serial.c: White space.
744 * ser-mingw.c: White space.
745 * ser-pipe.c: White space.
746 * ser-tcp.c: White space.
747 * ser-unix.c: White space.
748 * solib.c: White space.
749 * solib-darwin.c: White space.
750 * solib-frv.c: White space.
751 * solib-irix.c: White space.
752 * solib-osf.c: White space.
753 * solib-pa64.c: White space.
754 * solib-som.c: White space.
755 * solib-spu.c: White space.
756 * solib-svr4.c: White space.
757 * solib-target.c: White space.
758 * source.c: White space.
759 * stabsread.c: White space.
760 * stack.c: White space.
761 * std-regs.c: White space.
762 * symfile.c: White space.
763 * symmisc.c: White space.
764 * symtab.c: White space.
766 2010-05-16 Michael Snyder <msnyder@vmware.com>
768 * source.c (_initialize_source): Add "rev" as an abbreviation
769 for the "reverse-search" command.
771 2010-05-16 Michael Snyder <msnyder@vmware.com>
773 * record.c: White space.
774 * regcache.c: White space.
775 * reggroups.c: White space.
776 * remote-fileio.c: White space.
777 * remote-m32r-sdi.c: White space.
778 * remote-mips.c: White space.
779 * remote-sim.c: White space.
780 * remote.c: White space.
781 (process_g_packet): Remove orphan braces.
783 2010-05-15 Michael Snyder <msnyder@vmware.com>
785 * parse.c: White space.
786 * p-lang.c: White space.
787 * posix-hdep.c: White space.
788 * printcmd.c: White space.
789 * progspace.c: White space.
790 * prologue-value.c: White space.
791 * psymtab.c: White space.
792 * p-typeprint.c: White space.
793 * p-valprint.c: White space.
795 * objc-lang.c: White space.
796 * objfiles.c: White space.
797 * observer.c: White space.
798 * osabi.c: White space.
799 * osdata.c: White space.
801 * m2-lang.c: White space.
802 * m2-valprint.c: White space.
803 * macrocmd.c: White space.
804 * macroexp.c: White space.
805 * macroscope.c: White space.
806 * macrotab.c: White space.
807 * main.c: White space.
808 * maint.c: White space.
809 * mdebugread.c: White space.
810 * memattr.c: White space.
811 * minsyms.c: White space.
812 * monitor.c: White space.
814 2010-05-14 Michael Snyder <msnyder@vmware.com>
816 * jv-lang.c: White space.
817 * jv-typeprint.c: White space.
818 * jv-valprint.c: White space.
819 * language.c: White space.
820 * libunwind-frame.c: White space.
821 * linespec.c: White space.
822 * linux-nat.c: White space.
823 * linux-record.c: White space.
824 * linux-thread-db.c: White space.
826 * infcall.c: White space.
827 * inf-child.c: White space.
828 * infcmd.c: White space.
829 * inferior.c: White space.
830 * inf-loop.c: White space.
831 * inflow.c: White space.
832 * inline-frame.c: White space.
833 * interps.c: White space.
835 * gcore.c: White space.
836 * gdb.c: White space.
837 * gdbtypes.c: White space.
838 * gnu-nat.c: White space.
839 * gnu-v2-abi.c: White space.
840 * gnu-v3-abi.c: White space.
842 * findcmd.c: White space.
843 * findvar.c: White space.
844 * fork-child.c: White space.
845 * frame-base.c: White space.
846 * frame.c: White space.
847 * frame-unwind.c: White space.
848 * f-valprint.c: White space.
850 * elfread.c: White space.
851 * environ.c: White space.
852 * eval.c: White space.
853 * event-loop.c: White space.
854 * event-top.c: White space.
855 * exceptions.c: White space.
856 * exec.c: White space.
857 * expprint.c: White space.
859 * dbxread.c: White space.
860 * dcache.c: White space.
861 * disasm.c: White space.
862 * doublest.c: White space.
863 * dsrec.c: White space.
864 * dummy-frame.c: White space.
865 * dwarf2expr.c: White space.
866 * dwarf2-frame.c: White space.
867 * dwarf2loc.c: White space.
868 * dwarf2read.c: White space.
870 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
874 * python/py-value.c (valpy_hash): New function.
875 (value_object_type): Register valpy_hash.
877 2010-05-14 Hui Zhu <teawater@gmail.com>
878 Michael Snyder <msnyder@vmware.com>
880 * linux-fork.c (gdbthread.h): New include.
881 (fork_info): Add parent_ptid.
882 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
884 (delete_checkpoint_command): Call inferior_call_waitpid.
885 (checkpoint_command): Set parent_ptid.
887 2010-05-13 Michael Snyder <msnyder@vmware.com>
889 * dictionary.c: Re-indent to GNU coding standard.
891 * charset.c: White space.
892 * c-lang.c: White space.
893 * cli-out.c: White space.
894 * coffread.c: White space.
895 * complaints.c: White space.
896 * completer.c: White space.
897 * corefile.c: White space.
898 * corelow.c: White space.
899 * cp-abi.c: White space.
900 * cp-namespace.c: White space.
901 * cp-support.c: White space.
902 * cp-valprint.c: White space.
903 * c-typeprint.c: White space.
904 * c-valprint.c: White space.
905 * blockframe.c: White space.
906 * breakpoint.c: White space.
907 * buildsym.c: White space.
908 * blockframe.c: White space.
909 * bcache.c: White space.
910 * gdbarch.sh: White space, add blank lines.
911 * arch-utils.c: Ditto.
912 * gdbarch.c: Regenerate.
913 * frame.c: White space, add blank lines.
914 * stack.c: White space, add blank lines.
915 (initialize_stack): Remove long-dead code.
917 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
920 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
921 (locexpr_read_variable, loclist_read_variable): Update the callers.
923 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
926 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
927 Remove check of NULL returned by tag_type_to_type.
928 (die_containing_type): Remove variable type. Remove type_die variable
929 initialization. Remove check of NULL returned by tag_type_to_type.
931 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
934 * gdbtypes.c (lookup_struct_elt_type): Also lookup
935 names of unnamed structures or unions.
937 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
939 * procfs.c (proc_watchpoint_address): New function.
940 (procfs_stopped_by_watchpoint): Remove useless check after
941 find_procinfo_or_die call.
942 (procfs_stopped_data_address): New function.
943 (procfs_use_watchpoints): Register new watchpoint related function.
945 2010-05-11 Tom Tromey <tromey@redhat.com>
947 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
949 2010-05-10 Michael Snyder <msnyder@vmware.com>
951 * utils.c: White space cleanup.
953 2010-05-10 Tom Tromey <tromey@redhat.com>
955 * eval.c (ptrmath_type_p): Add 'lang' argument.
956 (evaluate_subexp_standard): Update.
957 (evaluate_subexp_with_coercion): Update.
958 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
960 2010-05-10 Michael Snyder <msnyder@vmware.com>
962 * utils.c (do_fclose_cleanup) Restore local variable.
964 2010-05-09 Doug Evans <dje@google.com>
966 * record.c (init_record_core_ops): Rename record_core to record-core.
968 2010-05-08 Joel Brobecker <brobecker@adacore.com>
970 Implement task switching on pa-hpux.
971 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
972 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
974 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
976 * valops.c (find_overload_match): Add missing i18n markup.
978 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
980 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
982 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
984 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
985 list for the obconcat call.
986 * mdebugread.c (parse_symbol): Likewise.
987 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
989 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
990 New variable ap. Remove variables len and val.
991 * symfile.h (obconcat): Likewise for the prototype.
993 2010-05-07 Michael Snyder <msnyder@vmware.com>
995 * python/python.c (execute_gdb_command): Remove unused variables.
996 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
997 * python/py-breakpoint.c (gdbpy_breakpoint_created):
998 Remove unused variable.
999 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1000 (cmdpy_completer): Remove unused variable.
1001 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1002 * python/py-function.c (fnpy_call): Remove unused variable.
1003 * python/py-objfile.c (objfile_to_objfile_object):
1004 Remove unused variable.
1005 * python/py-param.c (parmpy_init): Remove unused variable.
1006 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1007 Remove unused variable.
1008 (gdbpy_default_visualizer): Remove unused variable.
1009 * python/py-progspace.c (pspace_to_pspace_object):
1010 Remove unused variable.
1011 * python/py-symtab.c (symtab_and_line_to_sal_object):
1012 Remove unused variable.
1013 * python/py-type.c (typy_template_argument):
1014 Remove unused variable.
1015 * python/py-value.c (valpy_string): Remove unused variable.
1016 (convert_value_from_python): Remove unused variables.
1018 2010-05-07 Michael Snyder <msnyder@vmware.com>
1020 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1021 and use it to compute variable 't1'.
1023 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1025 * ada-lang.c (assign_aggregate): Remove unused variable.
1027 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1030 * valops.c (find_overload_match): Handle fsym == NULL case.
1031 Add int no_adl argument.
1032 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1034 Add int no_adl argument.
1035 (find_oload_champ_namespace): Add int no_adl argument.
1036 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1038 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1039 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1040 Evaluate arguments and use them to perform ADL lookup.
1041 Pass no_adl argument to find_overload_match.
1042 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1043 * cp-support.h: Added prototype for
1044 make_symbol_overload_list_namespace.
1045 * cp-support.c (make_symbol_overload_list_namespace): New function.
1046 (make_symbol_overload_list_adl_namespace): New function.
1047 (make_symbol_overload_list_adl): New function.
1048 (make_symbol_overload_list_using): Moved code to add function to
1049 overload set to make_symbol_overload_list_namespace.
1050 * c-exp.y: create UNKNOWN_CPP_NAME token.
1051 Add parse rule for ADL functions.
1052 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1054 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1056 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1059 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1061 Implement task switching on solaris targets.
1062 * sol-thread.c (thread_db_find_thread_from_tid)
1063 (sol_get_ada_task_ptid): New functions.
1064 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1066 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1068 * remote.c (remote_query_supported_append): Use reconcat.
1069 (remote_query_supported): Install a cleanup. Use reconcat.
1071 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1073 * gdbarch.sh (qsupported): Delete.
1074 * gdbarch.h, gdbarch.c: Regenerate.
1075 * remote.c (remote_query_supported): Remove use of
1078 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1080 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1083 2010-05-06 Michael Snyder <msnyder@vmware.com>
1085 * xml-support.c (xinclude_start_include): Delete unused variable.
1086 (xml_process_xincludes): Delete unused variable.
1087 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1088 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1089 (tdesc_find_arch_register): Delete unused variable.
1090 (tdesc_use_registers): Delete unused variable.
1091 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1092 * inferior.c (print_inferior): Delete unused variable.
1093 * record.c (record_open_1): Delete unused variable.
1094 (record_restore): Delete unused variable.
1095 (cmd_record_save): Delete unused variable.
1096 * gcore.c (derive_heap_segment): Delete unused variable.
1097 (objfile_find_memory_regions): Use unused variable.
1098 * jit.c (jit_inferior_init): Delete unused variable.
1099 * progspace.c (clone_program_space): Delete unused variable.
1100 (pspace_empty_p): Delete unused variable.
1102 * frame-unwind.c (frame_unwind_find_by_frame):
1103 Delete unused variable.
1104 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1105 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1106 (method_name_from_physname): Delete unused variable.
1107 (cp_func_name): Delete unused variable.
1108 (cp_validate_operator): Delete unused variable.
1109 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1110 Delete unused variable.
1111 * trad-frame.c (trad_frame_get_prev_register):
1112 Delete unused variable.
1113 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1115 * serial.c (serial_for_fd): Delete unused variable.
1116 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1117 * top.c (execute_command): Delete unused variable.
1118 (init_main): Delete unused variable.
1119 * utils.c (do_fclose_cleanup): Delete unused variable.
1120 (do_all_inferior_continuations): Delete unused variable.
1121 (initialize_utils): Delete unused variable.
1122 (internal_problem_mode): Delete unused global.
1123 * frame.c (get_prev_frame): Delete unused global.
1124 (get_frame_locals_address): Delete unused global.
1125 (get_frame_args_address): Delete unused global.
1127 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1128 (pascal_type_print_varspec_prefix): Delete unused variable.
1129 * f-typeprint.c (f_type_print_base): Delete unused variable.
1130 (f_type_print_varspec_suffix): Delete unused variable.
1131 * m2-typeprint.c (m2_print_type): Delete unused variable.
1132 (m2_long_set): Delete unused variable.
1133 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1134 * d-valprint.c (dynamic_array_type): Delete unused variable.
1135 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1136 Delete unused variable.
1137 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1138 * m2-valprint.c (m2_val_print): Delete unused variable.
1140 * ui-out.c (ui_out_field_int): Delete unused variable.
1141 (ui_out_field_fmt_int): Delete unused variable.
1142 * varobj.c (varobj_list_children): Delete unused variable.
1143 (varobj_set_value): Delete unused variable.
1144 (install_new_value_visualizer): Delete unused variable.
1145 (varobj_set_visualizer): Delete unused variable.
1146 (varobj_update): Delete unused variable.
1147 (varobj_editable_p): Delete unused variable.
1148 (c_value_of_root): Delete unused variable.
1149 (cplus_describe_child): Delete unused variable.
1151 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1152 (decode_constrained_packed_array_type): Delete unused variable.
1153 (add_defn_to_vec): Delete unused variable.
1154 (symbol_completion_match): Delete unused variable.
1155 (value_tag_from_contents_and_address): Delete unused variable.
1156 (ada_evaluate_subexp): Delete unused variable.
1157 * c-lang.c (classify_type): Delete unused variable.
1158 * f-lang.c (f_printstr): Delete unused variable.
1159 * objc-lang.c (objc_printstr): Delete unused variable.
1160 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1161 * jv-lang.c (type_from_class): ifdef unused variable.
1162 (java_class_name_from_physname): Delete unused variable.
1163 * m2-lang.c (m2_printstr): Delete unused variable.
1165 * objfiles.c (objfile_relocate): Delete unused variable.
1166 * maint.c (_initialize_maint_cmds): Delete unused variable.
1167 * demangle.c (_initialize_demangler): Delete unused variable.
1168 * corefile.c (reopen_exec_file): Delete unused variable.
1169 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1170 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1172 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1173 * memattr.c (mem_delete): Delete unused variable.
1174 (invalidate_target_mem_regions): Delete unused variable.
1175 * mem-break.c (default_memory_insert_breakpoint):
1176 Delete unused variable.
1177 * target.c (target_get_osdata): Delete unused variable.
1178 * parse.c (length_of_subexp): Delete unused variable.
1179 (prefixify_subexp): Delete unused variable.
1180 (exp_iterate): Delete unused variable.
1181 * reverse.c (delete_bookmark_command): Delete unused variable.
1183 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1184 * macroexp.c (gather_arguments): Delete unused variable.
1185 (substitute_args): Delete unused variable.
1186 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1187 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1188 (_initialize_gdbarch): Delete unused variable.
1189 * gdbarch.c, gdbarch.h: Regenerate.
1190 * arch-utils.c (initialize_current_architecture):
1191 Delete unused variable.
1192 (_initialize_gdbarch_utils): Delete unused variable.
1193 * gdbtypes.c (make_cv_type): Delete unused variable.
1194 (make_type_with_address_space): Delete unused variable.
1196 * linespec.c (decode_compound): Delete unused variable.
1197 * dictionary.c (iterator_next_hashed): Delete unused variable.
1198 * infcall.c (call_function_by_hand): Delete unused variable.
1199 * infcmd.c (step_1): Delete unused variable.
1200 (registers_info): Delete unused variable.
1201 (attach_command): Delete unused variable.
1202 * infrun.c (follow_exec): Delete unused variable.
1203 (handle_step_into_function_backwards): Delete unused variable.
1204 (_initialize_infrun): Delete unused variable.
1205 * stack.c (parse_frame_specification_1): Delete unused variable.
1206 (frame_info): Delete unused variable.
1207 (backtrace_command_1): Delete unused variable.
1208 (catch_info): Delete unused variable.
1210 * eval.c (evaluate_subexp_standard): Delete unused variable.
1211 * valops.c (value_cast_pointers): Delete unused variable.
1212 (value_dynamic_cast): Delete unused variable.
1213 (value_array): Delete unused variable.
1214 (find_overload_match): Delete unused variable.
1215 * valarith.c (value_subscript): Delete unused variable.
1216 (value_binop): Delete unused variable.
1217 * valprint.c (_initialize_valprint): Delete unused variable.
1218 * printcmd.c (print_command_1): Delete unused variable.
1219 (address_info): Delete unused variable.
1220 (printf_command): Delete unused variable.
1222 * auxv.c (target_auxv_search): Delete unused variable.
1223 * blockframe.c (get_frame_block): Delete unused variable.
1224 * regcache.c (regcache_cpy): Delete unused variable.
1225 (regcache_cpy_no_passthrough): Delete unused variable.
1226 * charset.c (wchar_iterate): Delete unused variable.
1227 (find_charset_names): Delete unused variable.
1228 (_initialize_charset): Delete unused variable.
1229 * disasm.c (do_mixed_source_and_assembly):
1230 Delete unused variable.
1231 * source.c (set_default_source_symtab_and_line):
1232 Delete unused variable.
1233 (set_substitute_path_command): Delete unused variable.
1234 * value.c (preserve_values): Delete unused variable.
1235 (value_from_double): Delete unused variable.
1237 2010-05-05 Michael Snyder <msnyder@vmware.com>
1239 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1240 (find_last_source_symtab_from_partial): Delete unused variable.
1241 * symfile.c (place_section): Delete unused variable.
1242 (default_symfile_offsets): Delete unused variable.
1243 (get_debug_link_info): Delete unused variable.
1244 (find_separate_debug_file_by_debuglink): Delete unused variable.
1245 (add_symbol_file_command): Delete unused variable.
1246 (symfile_find_segment_sections): Delete unused variable.
1247 * symmisc.c (free_symtab): Delete unused variable.
1248 (dump_symtab_1): Delete unused variable.
1249 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1250 (find_pc_sect_symtab): Delete unused variable.
1251 (skip_prologue_using_lineinfo): Delete unused variable.
1252 (sources_info): Delete unused variable.
1253 (completion_list_add_name): Delete unused variable.
1254 (expand_line_sal): Delete unused variable.
1256 * breakpoint.c (validate_commands_for_breakpoint):
1257 Delete unused variables.
1258 (insert_catchpoint): Delete unused variable.
1259 (update_watchpoint): Delete unused variable.
1260 (insert_bp_location): Delete unused variable.
1261 (insert_breakpoint_locations): Delete unused variable.
1262 (remove_breakpoint_1): Delete unused variable.
1263 (software_breakpoint_inserted_here_p): Delete unused variable.
1264 (watchpoints_triggered): Delete unused variable.
1265 (bpstat_check_watchpoint): Delete unused variable.
1266 (bpstat_stop_status): Delete unused variable.
1267 (print_one_breakpoint_location): Delete unused variable.
1268 (allocate_bp_location): Delete unused variable.
1269 (create_breakpoint): Delete unused variable.
1270 (watch_command_1): Delete unused variable.
1271 (catch_exception_command_1): Delete unused variable.
1272 (catch_ada_exception_command): Delete unused variable.
1273 (delete_breakpoint): Delete unused variable.
1274 (breakpoint_re_set_one): Delete unused variable.
1275 (do_enable_breakpoint): Delete unused variable.
1277 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1279 * amd64-tdep.c: Include disasm.h.
1280 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1281 (amd64_insn_length): Moved to disasm.c and renamed.
1282 (fixup_riprel): Adjust.
1283 * disasm.c (do_ui_file_delete): New.
1284 (gdb_insn_length): New.
1285 (gdb_buffered_insn_length_fprintf)
1286 (gdb_buffered_insn_length_init_dis)
1287 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1289 * disasm.h (gdb_insn_length): Declare.
1290 (gdb_buffered_insn_length): Declare.
1292 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1294 * remote.c (clear_threads_parsing_context): New.
1295 (remote_threads_info): Delete unused null_cleanup. Install a
1296 cleanup to clear the threads_parsing_context in case parsing
1299 2010-05-05 Michael Snyder <msnyder@vmware.com>
1301 * c-exp.y (parse_string_or_char): Delete unused variable.
1302 (c_lex): Delete unused variable.
1303 * cp-name-parser.y (cpname_lex): Delete unused variable.
1304 * ada-exp.y (find_primitive_type): Delete unused variable.
1305 (write_var_or_type): Delete unused variable.
1306 * jv-exp.y (java_parse): Delete unused variable.
1307 (push_expression_name): Delete unused variable.
1308 * p-exp.y (pascal_lex): Delete unused variable.
1310 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1312 * remote.c (remote_threads_info): Really revert previous previous
1315 2010-05-05 Michael Snyder <msnyder@vmware.com>
1317 * elfread.c (elf_symtab_read): Delete unused variable.
1318 (find_separate_debug_file_by_buildid): Delete unused variables.
1319 (elf_symfile_read): Delete unused variable.
1321 * coffread.c (coff_symfile_read): Delete unused variables.
1323 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1324 (read_pe_exported_syms): Delete unused variable.
1326 * stabsread.c (define_symbol): Delete unused variable.
1328 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1329 (process_psymtab_comp_unit): Delete unused variable.
1330 (dwarf2_build_psymtabs_hard): Delete unused variable.
1331 (load_partial_comp_unit): Delete unused variable.
1332 (create_all_comp_units): Delete unused variable.
1333 (scan_partial_symbols): Delete unused variable.
1334 (add_partial_symbol): Delete unused variable.
1335 (add_partial_namespace): Delete unused variable.
1336 (add_partial_enumeration): Delete unused variable.
1337 (load_full_comp_unit): Delete unused variable.
1338 (process_full_comp_unit): Delete unused variable.
1339 (read_file_scope): Delete unused variable.
1340 (read_type_unit_scope): Delete unused variable.
1341 (process_structure_scope): Delete unused variable.
1342 (process_enumeration_scope): Delete unused variable.
1343 (read_tag_ptr_to_member_type): Delete unused variable.
1344 (read_typedef): Delete unused variable.
1345 (read_partial_die): Delete unused variable.
1346 (decode_locdesc): Delete unused variable.
1347 (zeroed_partial_die): Delete unused global variable.
1349 * tui/tui-interp.c (_initialize_tui_interp):
1350 Delete unused variable.
1351 * tui/tui-regs.c tui_display_registers_from):
1352 Delete unused variable.
1353 (tui_check_register_values): Delete unused variable.
1354 (tui_register_format): Delete unused variable.
1355 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1356 * tui/tui-windata.c (tui_display_data_from_line):
1357 Delete unused variables.
1358 (tui_vertical_data_scroll): Delete unused variables.
1360 2010-05-05 Michael Snyder <msnyder@vmware.com>
1362 * remote.c (remote_threads_info): Revert questionable part of
1363 the previous change.
1365 2010-05-05 Michael Snyder <msnyder@vmware.com>
1367 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1368 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1369 (mi_cmd_var_list_children): Delete unused variable.
1370 (varobj_update_one): Delete unused variable.
1371 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1372 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1373 Delete unused variable.
1374 (mi_cmd_stack_list_variables): Delete unused variable.
1375 (list_args_or_locals): Delete unused variable.
1376 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1377 Delete unused variables.
1378 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1379 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1380 Delete unused variable.
1381 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1382 (mi_cmd_interpreter_exec): Delete unused variable.
1383 (mi_on_normal_stop): Delete unused variable.
1384 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1385 (print_one_inferior): Delete unused variables.
1386 (mi_execute_command): Delete unused variable.
1387 (mi_cmd_execute): Delete unused variable.
1388 (timestamp): Delete unused variable.
1390 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1391 (restore_binary_file): Delete unused variable.
1392 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1393 * cli/cli-script.c (define_command): Delete unused variables.
1394 (recurse_read_control_structure): Delete unused variable.
1395 (script_from_file): Delete unused variable.
1396 * cli/cli-cmds.c (complete_command): Delete unused variable.
1397 (disassemble_command): Delete unused variable.
1399 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1400 * tracepoint.c (delete_trace_variable_command):
1401 Delete unused variables.
1402 (encode_actions_1): Delete unused variables.
1403 (start_tracing): Delete unused variable.
1404 (trace_status_mi): Delete unused variable.
1405 (tfind_1): Delete unused variable.
1406 (trace_find_pc_command): Delete unused variable.
1407 (trace_find_line_command): Delete unused variables.
1408 (trace_find_range_command): Delete unused variables.
1409 (trace_find_outside_command): Delete unused variables.
1410 (parse_tracepoint_definition): Delete unused variables.
1411 (tfile_fetch_registers): Delete unused variable.
1413 * dcache.c (dcache_init): Delete unused variable.
1414 (dcache_info): Delete unused variable.
1416 * remote.c (remote_threads_info): Delete unused variable.
1417 (process_stop_reply) :Delete unused variable.
1418 (remote_get_trace_status): Delete unused variables.
1420 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1421 (thread_from_lwp): Delete unused variable.
1422 (enable_thread_event_reporting): Delete unused variable.
1423 (check_for_thread_db): Delete unused variables.
1424 (thread_db_find_new_threads_2): Delete unused variable.
1426 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1427 (checkpoint_command): Delete unused variable.
1428 (linux_fork_context): Delete unused variables.
1430 * linux-nat.c (linux_parent_pid): Delete unused global variable.
1431 (linux_tracefork_child): Delete unused variable.
1432 (linux_child_follow_fork): Delete unused variable.
1433 (linux_nat_detach): Delete unused variable.
1434 (linux_handle_extended_wait): Delete unused variable.
1435 (linux_nat_has_pending_sigint): Delete unused variable.
1436 (linux_nat_find_memory_regions): Delete unused variable.
1437 (linux_nat_make_corefile_notes): Delete unused variables.
1438 (linux_nat_info_proc_cmd): Delete unused variable.
1439 (linux_proc_pending_signals): Delete unused variable.
1440 (linux_nat_stop_lwp): Delete unused variables.
1441 (_initialize_linux_nat): Delete unused variable.
1443 * ser-pipe.c (pipe_ops): Delete unused global variable.
1445 * linux-record.c (record_linux_system_call):
1446 Delete unused variables.
1448 * corelow.c (core_xfer_partial): Delete unused variables.
1450 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1451 (svr4_solib_create_inferior_hook): Add ifdef around
1452 conditionally-used variable declarations.
1454 * solib.c (solib_find): Delete unused variable.
1455 (free_so_symbols): Delete unused variable.
1456 (info_sharedlibrary_command): Delete unused variable.
1457 (reload_shared_libraries_1): Delete unused variable.
1458 (_initialize_solib): Delete unused variable.
1460 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1461 (i386_collect_xstateregset): Delete unused variable.
1462 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1464 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1465 Delete unused variable 'type'.
1467 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1469 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
1470 ada-lang.c: Remove comment mentioning these macros.
1471 * m2-exp.y: Delete commented out code.
1473 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1475 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1477 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1479 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1481 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1482 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1484 (cleanup_kernel_helper_return): Likewise.
1485 * arm-tdep.c (copy_unmodified): Likewise.
1486 (copy_preload): Likewise.
1487 (copy_copro_load_store): Likewise.
1488 (cleanup_branch): Likewise.
1489 (copy_b_bl_blx): Likewise.
1490 (copy_bx_blx_reg): Likewise.
1491 (copy_alu_imm): Likewise.
1492 (copy_alu_reg): Likewise.
1493 (copy_alu_shifted_reg): Likewise.
1494 (cleanup_load): Likewise.
1495 (cleanup_store): Likewise.
1496 (cleanup_block_load_pc): Likewise.
1497 (cleanup_svc): Likewise.
1498 (copy_undef): Likewise.
1499 (copy_unpred): Likewise.
1500 * remote.c (register_remote_support_xml): Likewise.
1502 2010-05-05 Hui Zhu <teawater@gmail.com>
1504 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1506 2010-05-04 Mark Kettenis <kettenis@gnu.org>
1508 * remote.c (register_remote_support_xml)
1509 (remote_query_supported_append, remote_query_supported): Add cast
1510 to NULL used as sentinel.
1511 * tracepoint.c (tvariables_info_1): Likewise.
1512 * utils.c (add_internal_problem_command): Likewise.
1514 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1516 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1517 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1518 registers gracefully.
1520 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1522 * exec.c (print_section_info): Display entry point without arch
1525 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1528 * printcmd.c (x_command): Only dereference once implicitly for
1531 2010-05-03 Doug Evans <dje@google.com>
1533 * event-loop.c (gdb_timer): Delete unused global.
1534 (create_timer): Update.
1536 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1538 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1539 CURRENT->DECLARATION case.
1540 * cp-support.h (struct using_direct): Provide extended comment.
1542 2010-05-03 Mark Kettenis <kettenis@gnu.org>
1544 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1545 HPPABSD_SIZEOF_GREGS.
1546 (HPPAOBSD_SIZEOF_FPREGS): New define.
1547 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1548 (hppaobsd_supply_fpregset): New function.
1549 (hppaobsd_gregset): Renamed from hppabsd_gregset.
1550 (hppaobsd_fpregset): New variable.
1551 (hppaobsd_regset_from_core_section): Handle floating-point registers.
1552 (_initialize_hppabsd_tdep): Remove spurious blank line.
1554 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1557 * p-valprint.c (pascal_value_print): Always dereference a value with
1558 type code TYPE_CODE_REF.
1560 2010-05-03 Pedro Alves <pedro@codesourcery.com>
1562 * remote.c (remote_notice_signals): New.
1563 (remote_start_remote): In non-stop mode, update the remote end on
1564 which signals it can silently pass.
1565 (init_remote_ops): Install remote_notice_signals.
1567 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1569 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
1570 * command.h (error_no_arg): ... here. Remove NORETURN, change
1571 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1572 * defs.h (NORETURN, ATTR_NORETURN): Remove.
1573 (perror_with_name, verror, error, error_stream, vfatal, fatal)
1574 (internal_verror, internal_error, nomem): Remove NORETURN, change
1575 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1576 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1577 (throw_vfatal, throw_error): Remove NORETURN.
1578 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1579 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1580 (throw_error, deprecated_throw_reason): Remove NORETURN, change
1581 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1582 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1583 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1585 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1586 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1588 * target.c (tcomplain): Likewise.
1589 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1591 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1592 (internal_error, perror_with_name, nomem): Remove NORETURN.
1593 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1596 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1598 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1599 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1600 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1601 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1602 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1603 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1604 * complaints.h (complaint, internal_complaint): Likewise.
1605 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1606 (ATTR_FORMAT): Remove.
1607 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1608 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1609 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1610 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1611 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1612 (internal_error, internal_vwarning, internal_warning, warning)
1613 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1614 * disasm.c (fprintf_disasm): Likewise.
1615 * exceptions.c (throw_it): Likewise.
1616 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1617 (throw_error): Likewise.
1618 * language.h (type_error, range_error): Likewise.
1619 * linespec.c (cplusplus_error): Likewise.
1620 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1621 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1622 * monitor.c (monitor_debug): Likewise.
1623 * parser-defs.h (parser_fprintf): Likewise.
1624 * serial.h (serial_printf): Likewise.
1625 * tui/tui-hooks.c (tui_query_hook): Likewise.
1626 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1627 (uo_message): Likewise.
1628 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1629 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1631 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1633 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1635 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1636 (cli_table_header, cli_begin, cli_end, cli_field_int)
1637 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1638 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1639 Delete forward declarations.
1640 (cli_ui_out_impl): Move below the callbacks.
1641 (_initialize_cli_out): Delete.
1643 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1645 * README: Use consistent `GDB' and `GDBserver' spellings.
1647 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1649 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1651 2010-05-01 Pedro Alves <pedro@codesourcery.com>
1653 * infrun.c (prepare_for_detach): In non-stop, context switch to
1654 the thread that got the event before handling the event.
1656 2010-04-30 Tom Tromey <tromey@redhat.com>
1658 * symtab.c (symbol_set_names): Fix typo.
1660 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1662 * python/py-param.c (parm_constants): Avoid ARI warning
1663 by adding ARI comment.
1664 (parmpy_init): Likewise.
1666 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1668 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1669 and created type for re-use.
1671 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1673 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1675 2010-04-29 Doug Evans <dje@google.com>
1677 * ser-base.h (reschedule): Delete prototype.
1678 * ser-base.c (reschedule): Make static.
1680 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1682 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1683 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1684 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
1686 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
1689 2010-04-29 Pedro Alves <pedro@codesourcery.com>
1693 * regcache.c (registers_changed): Rename to ...
1694 (registers_changed_ptid): ... this, and only delete register cache
1695 entries matching the ptid filter argument.
1696 (registers_changed): Reimplement on top of registers_changed_ptid.
1697 * regcache.h (registers_changed_ptid): Declare.
1698 * target.c (target_resume): Flush register caches.
1700 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
1701 Tom Tromey <tromey@redhat.com>
1702 Thiago Jung Bauermann <bauerman@br.ibm.com>
1704 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1705 (SUBDIR_PYTHON_SRCS): Likewise.
1706 (py-parameter.o): New rule.
1707 * python/py-parameter.c: New file.
1708 * python/python-internal.h (gdbpy_initialize_parameter)
1709 (gdbpy_parameter, gdbpy_parameter_value)
1710 (gdbpy_parse_command_name): Declare.
1711 * python/py-cmd.c (parse_command_name): Rename to
1712 gdbpy_parse_command_name.
1713 (gdbpy_parse_command_name): Accept a starting list parameter and
1715 (cmdpy_init): Use gdbpy_parse_command_name.
1716 * python/python.c (parameter_to_python): Rename to
1717 gdbpy_parameter_to_python. Accept enum var_types and value.
1718 (gdbpy_parameter): Use gdbpy_parameter_value.
1719 (_initialize_python): Call gdbpy_initialize_parameters.
1721 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1723 * MAINTAINERS: Add myself for write after approval privileges.
1725 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
1728 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1729 (COMMON_OBS): Add d-lang.o d-valprint.o.
1730 (HFILES_NO_SRCDIR): Add d-lang.h.
1731 * NEWS: Mention D language support.
1732 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1733 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1734 * d-lang.c: New file.
1735 * d-lang.h: New file.
1736 * d-valprint.c: New file.
1737 * defs.h (enum language): Add language_d.
1738 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1739 * language.c (binop_result_type, integral_type, character_type)
1740 (string_type, boolean_type, structured_type): Add language_d.
1741 * symfile.c (init_filename_language_table): Add language_d.
1742 * symtab.c: Include d-lang.h.
1743 (symbol_init_language_specific, symbol_find_demangled_name)
1744 (symbol_natural_name, lookup_symbol_in_language)
1745 (symbol_demangled_name, symbol_matches_domain): Add language_d.
1747 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1749 * solib-svr4.c (solib_svr4_r_map): Expand function description.
1751 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1753 * symfile.c (init_filename_language_table): Register .dg files
1756 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1758 * gdbtypes.h (struct main_type): Expand comment about target_type
1761 2010-04-27 Pedro Alves <pedro@codesourcery.com>
1762 Tristan Gingold <gingold@adacore.com>
1764 * symfile.c (reread_symbols): Also search for file in libraries.
1767 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1769 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1770 in terms of configuration.
1772 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1774 * objfiles.c: Include solist.h.
1775 (free_all_objfiles): New variable so. Check stale solist objfiles.
1776 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1777 and no_shared_libraries.
1779 2010-04-27 Joel Brobecker <brobecker@adacore.com>
1782 * python/py-auto-load.c (source_section_scripts): Remove trailing
1783 new-line in i18n string.
1785 2010-04-26 Doug Evans <dje@google.com>
1787 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1789 2010-04-26 Tom Tromey <tromey@redhat.com>
1791 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1794 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1796 Removal of config/i386/nm-i386sol2.h native configuration file.
1797 * config/i386/nm-i386sol2.h: Remove file.
1798 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1799 * config/i386/sol2-64.mh: Idem.
1800 * config/djgpp/fnchange.lst: Remove reference to that file.
1801 * Makefile.in (HFILES_NO_SRCDIR): Idem.
1803 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
1805 PR breakpoints/11531.
1806 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1807 macro definition and related comment.
1808 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1809 (resume): Remove code and comment related to this macro.
1811 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1813 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1816 2010-04-24 Pedro Alves <pedro@codesourcery.com>
1818 * defs.h: Adjust comment.
1819 * filesystem.h, filesystem.c: New files.
1820 * Makefile.in (SFILES): Add filesystem.c.
1821 (COMMON_OBS): Add filesystem.o.
1822 * solib.c (solib_find): Handle DOS-based filesystems. Handle
1823 different target and host path flavours.
1824 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1825 has_dos_based_file_system on the gdbarch.
1826 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1827 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1828 * i386-tdep.c (i386_go32_init_abi): Ditto.
1829 * gdbarch.sh (has_dos_based_file_system): New.
1830 * gdbarch.h, gdbarch.c: Regenerate.
1831 * NEWS: Mention improved support for remote targets with DOS-based
1832 filesystems. Mention new `set/show target-file-system-kind'
1835 2010-04-23 Stan Shebs <stan@codesourcery.com>
1837 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1839 (struct agent_reqs): Remove.
1840 (ax_reg_mask): Declare.
1841 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1842 (free_agent_expr): Free reg_mask.
1843 (ax_print): Add scope and register mask info.
1844 (ax_reqs): Remove agent_reqs argument, use agent expression
1845 fields, and move part of register mask computation to...
1846 (ax_reg_mask): New function.
1847 * ax-gdb.c (gen_trace_static_fields): Call it.
1848 (gen_traced_pop): Ditto.
1849 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1850 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1851 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1852 (gen_eval_for_expr): Ditto, and require an rvalue.
1853 (agent_command): Call ax_reqs.
1854 (agent_eval_command): Ditto.
1855 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1856 (validate_action_line): Ditto.
1857 (collect_symbol): Ditto.
1858 (encode_actions_1): Ditto.
1860 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
1861 Paul Pluzhnikov <ppluzhnikov@google.com>
1862 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 Fix deadlock on looped list of loaded shared objects.
1865 * solib-svr4.c (LM_PREV): New function.
1866 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1867 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
1868 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
1869 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1871 2010-04-23 Doug Evans <dje@google.com>
1873 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1875 * configure: Regenerate.
1876 * main.c: #include "python/python.h".
1877 (captured_main): Defer loading auto-loaded scripts until after
1878 local_gdbinit has been sourced.
1879 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1880 (load_auto_scripts_for_objfile): New function.
1881 (auto_load_new_objfile): Call it.
1882 * python/python.h (gdbpy_global_auto_load): Declare.
1883 (load_auto_scripts_for_objfile): Declare.
1885 Add support for auto-loading scripts from .debug_gdb_scripts section.
1886 * NEWS: Add entry for .debug_gdb_scripts.
1887 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1888 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1889 (py-auto-load.o): New rule.
1890 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1891 * cli/cli-cmds.h (find_and_open_script): Update prototype.
1892 * python/py-auto-load.c: New file.
1893 * python/python-internal.h: #include <stdio.h>.
1894 (set_python_list, show_python_list): Declare.
1895 (gdbpy_initialize_auto_load): Declare.
1896 (source_python_script_for_objfile): Declare.
1897 * python/python.c: Remove #include of observer.h.
1898 (gdbpy_auto_load): Moved to py-auto-load.c.
1899 (GDBPY_AUTO_FILENAME): Ditto.
1900 (gdbpy_new_objfile): Delete.
1901 (source_python_script_for_objfile): New function.
1902 (set_python_list, show_python_list): Make externally visible.
1903 (_initialize_python): Move "auto-load" command to py-auto-load.c
1904 and observer_attach_new_objfile to py-auto-load.c.
1906 2010-04-23 Jerome Guitton <guitton@adacore.com>
1908 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1909 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1910 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1912 (alpha_heuristic_analyze_probing_loop): New function.
1913 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1914 and handle cases when a stack probe loop is generated.
1915 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1916 (alpha_mdebug_max_frame_size_exceeded): New function.
1917 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1918 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1919 Return 0 when the maximum debuggable frame size has been exceeded.
1921 2010-04-23 Joel Brobecker <brobecker@adacore.com>
1924 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1926 2010-04-20 Chris Moller <cmoller@redhat.com>
1930 * symtab.c (rbreak_command): Added code to include a filename
1931 specification in the rbreak argument.
1932 * NEWS: Added a brief description of filename-qualified rbreak.
1934 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 Fix crashes on dangling display expressions.
1937 * ada-lang.c (ada_operator_check): New function.
1938 (ada_exp_descriptor): Fill-in the field operator_check.
1939 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
1940 * jv-lang.c (exp_descriptor_java): Likewise.
1941 * m2-lang.c (exp_descriptor_modula2): Likewise.
1942 * scm-lang.c (exp_descriptor_scm): Likewise.
1943 * parse.c (exp_descriptor_standard): Likewise.
1944 (operator_check_standard): New function.
1945 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
1946 * parser-defs.h (struct exp_descriptor): New field operator_check.
1947 (operator_check_standard, exp_uses_objfile): New declarations.
1948 * printcmd.c: Remove the inclusion of solib.h.
1949 (display_uses_solib_p): Remove the function.
1950 (clear_dangling_display_expressions): Call lookup_objfile_from_block
1951 and exp_uses_objfile instead of display_uses_solib_p.
1952 * solist.h (struct so_list) <objfile>: New comment.
1953 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
1954 * symtab.h (lookup_objfile_from_block): New declaration.
1955 (struct general_symbol_info) <obj_section>: Extend the comment.
1957 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1958 Thiago Jung Bauermann <bauerman@br.ibm.com>
1960 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
1961 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
1962 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
1963 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
1964 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
1965 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
1966 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
1967 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
1968 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
1969 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
1970 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
1971 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
1972 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
1973 Define, in case <ptrace.h> doesn't provide it.
1974 (booke_debug_info): New variable.
1975 (max_slots_number): Ditto.
1976 (hw_break_tuple): New struct.
1977 (thread_points): Ditto.
1978 (ppc_threads): New variable.
1979 (PPC_DEBUG_CURRENT_VERSION): New define.
1980 (have_ptrace_new_debug_booke): New function.
1981 (ppc_linux_check_watch_resources): Renamed to ...
1982 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
1983 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
1984 (booke_cmp_hw_point): New function.
1985 (booke_find_thread_points_by_tid): Ditto.
1986 (booke_insert_point): Ditto.
1987 (booke_remove_point): Ditto.
1988 (ppc_linux_insert_hw_breakpoint): Ditto.
1989 (ppc_linux_remove_hw_breakpoint): Ditto.
1990 (get_trigger_type): Ditto.
1991 (ppc_linux_insert_watchpoint): Handle BookE processors.
1992 (ppc_linux_remove_watchpoint): Ditto.
1993 (ppc_linux_new_thread): Ditto.
1994 (ppc_linux_thread_exit): New function..
1995 (ppc_linux_stopped_data_address): Handle BookE processors.
1996 (ppc_linux_watchpoint_addr_within_range): Ditto.
1997 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
1998 to_remove_hw_breakpoint fields of the target operations struct.
1999 Add observe for the thread_exit event.
2001 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2003 * i386-linux-nat.c (regmap): Removed.
2004 (fetch_register): Replace regmap with
2005 i386_linux_gregset_reg_offset.
2006 (store_register): Likewise.
2007 (supply_gregset): Likewise.
2008 (fill_gregset): Likewise.
2010 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2013 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2015 2010-04-22 Chris Moller <cmoller@redhat.com>
2017 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2018 method of popping recursion-detection stack with a method based on
2019 obstack_object_size(). (Similar to the PR9167 patch below, but for
2020 the static array obstack rather than the static member obstack.)
2022 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2024 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2025 (_initialize_amd64_linux_nat): Replace
2026 amd64_linux_gregset64_reg_offset with
2027 amd64_linux_gregset_reg_offset.
2029 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2032 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2034 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2037 * stabsread.c (set_length_in_type_chain): New function.
2038 (read_struct_type): Call set_length_in_type_chain function.
2039 (read_enum_type): Idem.
2041 2010-04-21 Stan Shebs <stan@codesourcery.com>
2042 Nathan Sidwell <nathan@codesourcery.com>
2044 * tracepoint.c (trace_save): Open in binary mode.
2046 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2048 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2050 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2051 builtin_char32 fields.
2052 * printcmd.c (decode_format): Set char size to '\0'
2053 for strings unless explicit size is given.
2054 (print_formatted): Correct calculation of NEXT_ADDRESS
2055 for 16 or 32 bit strings.
2056 (do_examine): Do not force byte size for strings.
2057 Use builtin_char16 and builtin_char32 types to display
2058 16 or 32 bit-wide strings.
2059 (x_command): Set LAST_SIZE to 'b' for string type.
2061 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2064 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2067 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2068 there is no .reg-xstate section.
2069 (i386_linux_core_read_description): Check XCR0 first.
2071 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2073 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2076 2010-04-21 Chris Moller <cmoller@redhat.com>
2079 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2080 method of popping recursion-detection stack with a method based on
2081 obstack_object_size().
2083 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2086 * p-valprint.c (pascal_val_print): Fix default printing of integer
2089 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2091 Fix compilation warning on gcc-4.1.2.
2092 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2093 local variable`pc' to zero.
2095 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2097 Implement thread support with core files on alpha-tru64.
2098 * dec-thread.c (dec_thread_find_new_threads): New function,
2099 extracted from resync_thread_list.
2100 (resync_thread_list): Add OPS parameter. Replace extracted-out
2101 code by call to dec_thread_find_new_threads.
2102 (dec_thread_wait): Update call to resync_thread_list.
2103 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2105 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2107 * ada-lang.c (value_pointer): New function.
2108 (make_array_descriptor): Call value_pointer to convert addresses to
2111 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2113 * rs6000-aix-tdep.c: #include exceptions.h.
2114 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2115 while reading the memory at ADDR, then ADDR cannot be a function
2118 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2120 * ada-typeprint.c (ada_print_typedef): New function.
2121 * ada-lang.h (ada_print_typedef): Add declaration.
2122 * ada-lang.c (ada_language_defn): set la_print_typdef field
2123 to ada_print_typedef.
2125 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2127 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2129 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2131 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2132 (iterate_over_mappings): Adjust function profile. Add declaration.
2133 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2136 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2138 * procfs.c (solib_mappings_callback): Move function up to avoid
2141 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2143 * procfs.c (find_signalled_thread, find_stop_signal): Move
2144 these functions down to define them only when used.
2146 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2148 * valprint.c (common_val_print): Fix the value before extracting
2150 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2151 * ada-lang.h (ada_to_fixed_value): New function declaration.
2152 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2153 to avoid code duplication and fix a bug in the handling of
2154 fixed types contents.
2156 2010-04-20 Tom Tromey <tromey@redhat.com>
2158 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2159 (read_partial_die): Likewise.
2160 (dwarf_attr_name): Likewise.
2162 2010-04-20 Chris Moller <cmoller@redhat.com>
2166 * cp-valprint.c (global): Adding new static array recursion
2168 (cp_print_value_fields, cp_print_static_field): Added new static
2169 array recursion detection code.
2171 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2173 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2174 general-purpose register set should be 68 instead of 144.
2175 (i386_linux_sse_regset_sections): Likewise.
2176 (i386_linux_avx_regset_sections): Likewise.
2178 2010-04-20 Stan Shebs <stan@codesourcery.com>
2179 Nathan Sidwell <nathan@codesourcery.com>
2181 * dwarf2loc.c (struct axs_var_loc): New struct.
2182 (dwarf2_tracepoint_var_loc): New function.
2183 (dwarf2_tracepoint_var_access): New function.
2184 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2186 (locexpr_describe_location_piece): New function.
2187 (locexpr_describe_location_1): New function.
2188 (locexpr_describe_location): Call it, update signature.
2189 (loclist_describe_location): Rewrite to loop over locations,
2191 * symtab.h (struct symbol_computed_ops): Add address to
2192 describe_location arguments, return void.
2193 * printcmd.c (address_info): Get context PC, pass to computed
2194 location description.
2195 * tracepoint.c (scope_info): Ditto.
2196 * ax-gdb.c (trace_kludge): Export.
2198 2010-04-20 Tom Tromey <tromey@redhat.com>
2200 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2201 (struct dwarf2_cie) <segment_size>: New field.
2202 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2203 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2205 (read_attribute_value): Handle DW_FORM_flag_present,
2206 DW_FORM_sec_offset, DW_FORM_exprloc.
2207 (dump_die_shallow): Likewise.
2208 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2209 (dwarf2_const_value): Handle DW_FORM_exprloc.
2210 (attr_form_is_block): Likewise.
2211 (struct line_header) <maximum_ops_per_instruction>: New field.
2212 (dwarf_decode_line_header): Set new field.
2213 (dwarf_decode_lines): Handle new field.
2215 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 * f-exp.y: Add new production to recognize the `logical*8' type.
2218 (LOGICAL_S8_KEYWORD): New token.
2219 * f-lang.c (enum f_primitive_types)
2220 <f_primitive_type_logical_s8>: New field.
2221 (f_language_arch_info): Handling `logical*8' type.
2222 (build_fortran_types): Building `logical*8' type.
2223 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2225 2010-04-19 Doug Evans <dje@google.com>
2227 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2228 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2229 (pipe_close): Ditto.
2231 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2233 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2235 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2237 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2238 type to void function.
2240 2010-04-19 Stan Shebs <stan@codesourcery.com>
2241 Vladimir Prus <vladimir@codesourcery.com>
2243 * tracepoint.c (tfind_1): Add missing newline, report exit from
2245 * target.c (update_current_target): Make default
2246 to_trace_find return -1.
2248 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2250 * objc-lang.c (find_methods): Move symname check up.
2252 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2254 * ada-lang.c (print_recreate_exception)
2255 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2256 not "catch unhandled".
2258 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2260 PR breakpoints/8554.
2262 Implement `save-breakpoints'.
2264 * breakpoint.c (save_cmdlist): New.
2265 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2267 (print_recreate_catch_fork): New.
2268 (catch_fork_breakpoint_ops): Install it.
2269 (print_recreate_catch_vfork): New.
2270 (catch_vfork_breakpoint_ops): Install it.
2271 (print_recreate_catch_syscall): New.
2272 (catch_syscall_breakpoint_ops): Install it.
2273 (print_recreate_catch_exec): New.
2274 (catch_exec_breakpoint_ops): Install it.
2275 (print_recreate_exception_catchpoint): New.
2276 (gnu_v3_exception_catchpoint_ops): Install it.
2277 (save_breakpoints): New, based on tracepoint_save_command, but
2278 handle all breakpoint types.
2279 (save_breakpoints_command): New.
2280 (tracepoint_save_command): Rename to...
2281 (save_tracepoints_command): ... this, and reimplement using
2283 (save_command): New.
2284 (_initialize_breakpoints): Install the "save" command prefix.
2285 Install the "save breakpoints" command. Make "save-tracepoints" a
2286 deprecated alias for "save tracepoints".
2287 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2288 * ada-lang.c (print_recreate_exception): New.
2289 (print_recreate_catch_exception): New.
2290 (catch_exception_breakpoint_ops): Install it.
2291 (print_recreate_catch_exception_unhandled): New.
2292 (catch_exception_unhandled_breakpoint_ops): Install it.
2293 (print_recreate_catch_assert): New.
2294 (catch_assert_breakpoint_ops): Install it.
2296 * NEWS: Mention the new `save breakpoints' command. Mention the
2297 new `save tracepoints' alias and that `save-tracepoints' is now
2300 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2304 * tui/tui-out.c: Include cli-out.h.
2305 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2306 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2307 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2308 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2310 (struct ui_out_data): Rename to...
2311 (struct tui_ui_out_data): ... this. Remove `stream' and
2312 `suppress_output' fields, and inherit cli_ui_out_data.
2313 (tui_out_data): New typedef.
2314 (tui_ui_out_impl): Don't initialize fields staticaly.
2315 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2316 (tui_begin, tui_end): Delete.
2317 (tui_field_int): Adjust to delegate most work to the base type.
2318 (tui_field_skip): Delete.
2319 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2320 delegate most work to the base type.
2321 (tui_spaces): Delete.
2322 (tui_text): Adjust to delegate most work to the base type.
2323 (tui_message): Delete.
2324 (tui_wrap_hint): Delete.
2325 (tui_flush): Delete.
2326 (out_field_fmt): Delete.
2327 (field_separator): Delete.
2328 (tui_out_new): Adjust to initialize the base type.
2329 (_initialize_tui_out): Initialize tui_ui_out_impl.
2330 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2332 (cli_out_data): Adjust.
2333 (cli_ui_out_impl): Make extern.
2334 (cli_table_header, cli_field_int, cli_field_skip): Use
2335 uo_field_string instead of cli_field_string.
2336 (cli_redirect): Adjust to use cli_out_data.
2337 (cli_out_data_ctor): New.
2338 (cli_out_new): Use it.
2339 * cli-out.h (struct ui_file): Remove forward declaration.
2340 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2341 (cli_ui_out_impl): Declare.
2342 (cli_out_data_ctor): Declare.
2343 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2344 (uo_field_string): No longer static.
2345 (ui_out_data): Change return type to void pointer.
2346 (ui_out_new): Change `data' parameter type to void pointer.
2347 * ui-out.h (struct ui_out_data): Don't forward declare.
2348 (ui_out_data): Change return type to void pointer.
2349 (ui_out_new): Change `data' parameter type to void pointer.
2350 (uo_field_string): Declare.
2352 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2354 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2355 instead of always false.
2357 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2360 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2363 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2365 * breakpoint.c (watchpoints_triggered): Use
2366 is_hardware_watchpoint.
2367 (watchpoints_triggered): Ditto.
2368 (bpstat_check_location): Use is_watchpoint and
2369 is_hardware_watchpoint.
2370 (bpstat_check_watchpoint): Use is_watchpoint and
2371 is_hardware_watchpoint.
2372 (bpstat_stop_status): Fix comment.
2373 (user_settable_breakpoint): Use is_watchpoint.
2374 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2375 (disable_watchpoints_before_interactive_call_start): Use
2377 (enable_watchpoints_after_interactive_call_stop): Use
2379 (clear_command): Use is_watchpoint.
2380 (do_enable_breakpoint): Use is_watchpoint.
2382 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2384 * solib-frv.c (enable_break1_done): Delete.
2385 (enable_break2): Do not check enable_break1_done. Move the
2386 enable_break2_done setting and call to
2387 remove_solib_event_breakpoints() to the end. Return without
2388 warning when the contents of _dl_debug_addr are 0.
2389 (enable_break): Do not set enable_break1_done.
2390 (frv_clear_solib): Likewise.
2392 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2394 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2395 instead of an error if no PLT entry is found. Return a
2396 potentially useful result.
2397 (m32c_m16c_pointer_to_address): Add code to search for function
2398 address when no .plt entry is found.
2400 2010-04-16 Stan Shebs <stan@codesourcery.com>
2402 * tracepoint.c (trace_variable_command): Run a cleanup.
2404 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2406 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2408 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2410 Support for Windows OS Thread Information Block.
2411 * NEWS: Document new feature.
2412 * remote.c (PACKET_qGetTIBAddr): New enum element.
2413 (remote_get_tib_address): New function.
2414 (init_remote_ops): Set to_get_tib_address field
2415 to remote_get_tib_address.
2416 (_initialize_remote): Add add_packet_config_cmd
2417 for PACKET_qGetTIBAddr.
2418 * target.c (update_current_target): Set default value for
2419 new to_get_tib_address field.
2420 * target.h (target_ops): New field to_get_tib_address.
2421 (target_get_tib_address): New macro.
2422 * windows-nat.c (thread_info): Add thread_local_base field.
2423 (windows_add_thread): Add tlb argument of type 'void *'.
2424 (fake_create_process): Adapt windows_add_thread call.
2425 (get_windows_debug_event): Idem.
2426 (windows_get_tib_address): New function.
2427 (init_windows_ops): Set to_get_tib_address field
2428 to remote_get_tib_address.
2429 (_initialize_windows_nat): Replace info_w32_cmdlist
2430 initialization by a call to init_w32_command_list.
2431 (info_w32_command, info_w32_cmdlist): Removed from here...
2432 to windows-tdep.c file.
2433 * windows-tdep.h (info_w32_cmdlist): Declare.
2434 (init_w32_command_list): New external function
2436 * windows-tdep.c: Add several headers.
2437 (info_w32_cmdlist): to here, made global.
2438 (thread_information_32): New struct.
2439 (thread_information_64): New struct.
2440 (TIB_NAME): New char array.
2441 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2442 (maint_display_all_tib): New static variable.
2443 (windows_get_tlb_type): New function.
2444 (tlb_value_read, tlb_value_write): New functions.
2445 (tlb_value_funcs): New static struct.
2446 (tlb_make_value): New function.
2447 (display_one_tib): New function.
2448 (display_tib): New function.
2449 (show_maint_show_all_tib):New function.
2450 (info_w32_command): Moved from windows-nat.c.
2451 (init_w32_command_list): New function.
2452 (_initialize_windows_tdep): New function.
2453 New "maint set/show show-all-tib" command
2454 New "$_tlb" internal variable.
2456 2010-04-16 Joel Brobecker <brobecker@adacore.com>
2458 * tui/tui-regs.c (tui_display_register): Add comment about
2460 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2462 2010-04-15 Stan Shebs <stan@codesourcery.com>
2464 * frame.c: Include tracepoint.h.
2465 (get_current_frame): Allow a trace frame to be an alternate source
2466 of stack frame data.
2467 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2470 2010-04-15 Pedro Alves <pedro@codesourcery.com>
2472 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2474 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2476 2010-04-15 Doug Evans <dje@google.com>
2478 * NEWS: Add entry for python program space support.
2479 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2480 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2481 (py-progspace.o): New rule.
2482 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2484 (find_pretty_printer_from_progspace): New function.
2485 (find_pretty_printer_from_gdb): New function.
2486 (find_pretty_printer): Rewrite.
2487 * python/py-progspace.c: New file.
2488 * python/python-internal.h (program_space): Add forward decl.
2489 (pspace_to_pspace_object, pspy_get_printers): Declare.
2490 (gdbpy_initialize_pspace): Declare.
2491 * python/python.c: #include "progspace.h".
2492 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2493 (_initialize_python): Call gdbpy_initialize_pspace.
2494 (GdbMethods): Add current_progspace, progspaces.
2496 Add -s option to source command.
2497 * NEWS: Document new option.
2498 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2499 Delete from_tty and cleanupp args. Split filep arg into file and
2500 full_pathp. New arg search_path.
2501 (source_script_from_stream): New function.
2502 (source_script_with_search): New function.
2503 (source_script): Rewrite.
2504 (source_command): Parse "-s" option.
2505 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2506 * python/python.c (source_python_script): Make file arg a const char *.
2507 Don't call fclose, leave for caller.
2508 * python/python.h (source_python_script): Update.
2510 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2511 Pedro Alves <pedro@codesourcery.com>
2513 Avoid rereading shared libraries that haven't changed.
2515 * solib.c (free_so_symbols): New function, from ...
2516 (free_so): ... here. Call it.
2517 (solib_read_symbols): Don't warn here if symbols have already been
2519 (solib_add): Warn here instead, if a pattern was specified.
2520 (reload_shared_libraries_1): New.
2521 (reload_shared_libraries): Rewrite to not fetch the library list.
2523 2010-04-14 Doug Evans <dje@google.com>
2525 * source.c (openp): Strip DOS drive letter if present before
2526 concatenating string to search path.
2528 2010-04-14 Pedro Alves <pedro@codesourcery.com>
2530 * objfiles.h (gdb_bfd_close_or_warn): Declare.
2531 * objfiles.c (gdb_bfd_close_or_warn): New.
2532 * corelow.c: Include objfiles.h
2533 (core_close): Use gdb_bfd_close_or_warn.
2534 * elfread.c (build_id_verify): Ditto.
2535 * exec.c (exec_close, exec_close_1): Ditto.
2537 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2538 Pedro Alves <pedro@codesourcery.com>
2540 Group errors for many missing shared libraries.
2542 * solist.h (struct so_list): Remove from_tty.
2543 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2544 (solib_map_sections): Take so_list argument. Return 0 if we
2545 failed to open a BFD. Add target sections here.
2546 (symbol_add_stub): Delete.
2547 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
2548 not from_tty copied from the so_list. Don't warn a second time
2549 for a missing library.
2550 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
2551 add to the section table here. Print out a single warning for all
2553 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2556 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2558 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2559 error/warning messages. Capitalize and use complete sentences.
2560 (blpy_block_syms_iternext): Likewise.
2561 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2562 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2563 (frame_info_to_frame_object, frapy_read_var)
2564 (gdbpy_frame_stop_reason_string): Likewise.
2565 * python/py-lazy-string.c (stpy_convert_to_value)
2566 (gdbpy_create_lazy_string_object): Likewise.
2567 * python/py-objfile.c (objfpy_set_printers): Likewise.
2568 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2569 * python/python.c (parameter_to_python): Likewise.
2570 * python/py-type.c (typy_range, typy_target): Likewise.
2571 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2572 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2575 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2579 * python/py-prettyprint.c (pretty_print_one_value): Test for
2581 (print_string_repr): Test for Py_None. Set flags accordingly.
2582 Return value depending on return type.
2583 (print_children): Take a value indicating whether data was printed
2584 before this function was called. Alter output accordingly.
2585 (apply_val_pretty_printer): Capture return value from
2586 print_string_repr and pass to print_children.
2588 2010-04-13 Mark Kettenis <kettenis@gnu.org>
2591 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2592 register note sections.
2593 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2595 (i386_linux_init_abi): Install list of supported register note
2596 sections that matches the target description.
2598 2010-04-13 Pedro Alves <pedro@codesourcery.com>
2600 * remote.c (remote_get_noisy_reply): Don't error out on empty
2602 (remote_start_remote): Update and merge tracepoints and trace
2603 state variables as long as the target supports tracepoints.
2604 (remote_trace_init): Fix prototype.
2605 (remote_download_trace_state_variable): Validate reply.
2606 (remote_trace_set_readonly_regions): Fix prototype.
2607 (remote_trace_start): Fix prototype. Check for empty reply.
2608 (remote_get_trace_status): Small cleanup.
2609 (remote_trace_stop): Fix prototype. Check for empty reply.
2610 (remote_trace_find): Check for empty reply.
2611 (remote_save_trace_data): Validate reply.
2612 (remote_set_disconnected_tracing): Check for empty reply, and
2614 (remote_set_circular_trace_buffer): Ditto.
2616 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
2618 Suppress unused value warning during compilation.
2619 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2621 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2623 2010-04-12 Stan Shebs <stan@codesourcery.com>
2625 * tracepoint.c (tfile_xfer_partial): Check read result.
2627 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2629 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2630 * remote-sim.c (gdbsim_files_info): Likewise.
2632 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2634 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2635 * arm-linux-nat.c (arm_linux_vfp_register_count): New
2637 (fetch_vfp_registers): New function to fetch VFP registers.
2638 (store_vfp_registers): New function to store VFP registers.
2639 (arm_linux_fetch_inferior_registers): Add support for VFP
2641 (arm_linux_store_inferior_registers): Likewise.
2642 (arm_linux_read_description): Likewise.
2643 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2646 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
2648 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2650 (amd64_collect_xstateregset): Likewise.
2652 2010-04-09 Stan Shebs <stan@codesourcery.com>
2654 * tracepoint.c (trace_status_mi): Report frames created.
2656 * tracepoint.c (trace_dump_command): Include default-collect
2659 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2661 * symtab.c (find_function_start_sal): Never return SAL pointing
2662 before function start address, even if line info is missing.
2664 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2666 * NEWS: Mention tracepoints support.
2668 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2670 * tracepoint.c (trace_status_mi): Report disconnected tracing and
2671 circular trace buffer statuses.
2673 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 * config/djgpp/fnchange.lst: Fix typo in translations for
2676 symbol-without-target_section.exp and symbol-without-target_section.c.
2678 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2680 * breakpoint.c (condition_command): Pass condition expression to
2681 set_breakpoint_condition stripped from breakpoint number.
2683 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
2684 Thiago Jung Bauermann <bauerman@br.ibm.com>
2685 Tom Tromey <tromey@redhat.com>
2687 * breakpoint.c (condition_command): Simplify. Move condition
2689 (set_breakpoint_condition): ... here. New function.
2690 * breakpoint.h (set_breakpoint_condition): Declare.
2691 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2692 (SUBDIR_PYTHON_SRCS): Likewise.
2693 (py-breakpoint.o): New rule.
2694 * python/py-breakpoint.c: New file.
2695 * python/python-internal.h (gdbpy_breakpoints)
2696 (gdbpy_initialize_breakpoints): Declare.
2697 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2699 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2701 * regformats/regdat.sh: Include server.h. Don't include
2704 2010-04-08 Stan Shebs <stan@codesourcery.com>
2705 Pedro Alves <pedro@codesourcery.com>
2707 * tracepoint.h (struct trace_status): New fields disconnected_tracing
2708 and circular_buffer.
2709 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2710 * tracepoint.c (trace_status_command): Display target's status for
2711 disconnected tracing and circular buffer.
2712 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2713 query for non-disconnected-tracing case, remove the stop_tracing
2715 (tfile_open): Clear disconnected and circular buffer status.
2716 (trace_save): Save disconnected and circular buffer status.
2717 (parse_trace_status): Parse disconnected and circular buffer status,
2718 also recognize disconnected as a stop reason.
2719 * remote.c (remote_set_disconnected_tracing): Only set
2720 QTDisconnected if the remote end supports disconnected tracing.
2721 Warn otherwise, if trying to enable disconnected tracing.
2722 * infcmd.c (detach_command): Update disconnect_tracing call.
2723 * cli/cli-cmds.c (quit_command): Ditto.
2725 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2727 * i387-tdep.c (i387_collect_xsave): Replace abort with
2730 2010-04-08 Stan Shebs <stan@codesourcery.com>
2732 * breakpoint.c (default_collect_info): New function.
2733 (breakpoints_info): Call it.
2734 (maintenance_info_breakpoints): Ditto.
2735 (tracepoints_info): Ditto.
2737 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2739 * i387-tdep.c (i387_collect_xsave): Re-indent.
2741 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
2743 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2744 if HAVE_PTRACE_GETFPXREGS is defined.
2745 (i386_linux_read_description): Set have_ptrace_getfpxregs and
2746 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2748 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2749 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2750 if .reg-xfp section doesn't exist.
2751 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2753 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2755 * i386-tdep.c: Include "features/i386/i386-mmx.c".
2756 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2757 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
2758 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2759 (i386_gdbarch_init): Update comments.
2760 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2762 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2764 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2766 * features/Makefile (i386/i386-mmx-expedite): New.
2767 (i386/i386-mmx-linux-expedite): Likewise.
2768 ($(outdir)/i386/i386-mmx.dat): Likewise.
2769 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2771 * features/i386/i386-mmx-linux.c: New.
2772 * features/i386/i386-mmx-linux.xml: Likewise.
2773 * features/i386/i386-mmx.c: Likewise.
2774 * features/i386/i386-mmx.xml: Likewise.
2775 * regformats/i386/i386-mmx-linux.dat: Likewise.
2776 * regformats/i386/i386-mmx.dat: Likewise.
2778 * features/Makefile (WHICH): Add i386/i386-mmx and
2779 i386/i386-mmx-linux.
2781 2010-04-08 Doug Evans <dje@google.com>
2783 * source.c (openp): Skip $cdir in PATH.
2785 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
2788 * python/py-lazy-string.c (stpy_convert_to_value): Check for
2790 (gdbpy_create_lazy_string_object): Allow strings with a NULL
2791 address and a zero length.
2793 2010-04-08 Hui Zhu <teawater@gmail.com>
2795 * i386-tdep.c (i386_process_record): Add support for insn
2798 2010-04-07 Doug Evans <dje@google.com>
2800 * python/python.c (source_python_script): Use ensure_python_env
2801 to prepare environment for script.
2803 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2805 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2806 <sys/uio.h> and "i386-xstate.h".
2807 (PTRACE_GETREGSET): New.
2808 (PTRACE_SETREGSET): Likewise.
2809 (have_ptrace_getregset): Likewise.
2810 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2812 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2814 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2815 (amd64_linux_store_inferior_registers): Likewise.
2816 (amd64_linux_read_description): Check and enable AVX target
2819 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2820 and "features/i386/amd64-avx-linux.c".
2821 (amd64_linux_regset_sections): New.
2822 (amd64_linux_core_read_description): Check and enable AVX
2824 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
2825 set_gdbarch_core_regset_sections.
2826 (_initialize_amd64_linux_tdep): Call
2827 initialize_tdesc_amd64_avx_linux.
2829 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2830 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2831 (tdesc_amd64_avx_linux): New.
2832 (amd64_linux_update_xstateregset): Likewise.
2834 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2835 (amd64_ymm_names): New.
2836 (amd64_ymmh_names): Likewise.
2837 (amd64_register_name): Likewise.
2838 (amd64_supply_xstateregset): Likewise.
2839 (amd64_collect_xstateregset): Likewise.
2840 (amd64_supply_xsave): Likewise.
2841 (amd64_collect_xsave): Likewise.
2842 (AMD64_NUM_REGS): Removed.
2843 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2844 %xmmN if AVX is available.
2845 (amd64_pseudo_register_name): Support pseudo YMM registers.
2846 (amd64_regset_from_core_section): Support .reg-xstate section.
2847 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2848 and ymm0h_regnum. Call set_gdbarch_register_name.
2849 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2851 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2852 AMD64_YMM15H_REGNUM.
2853 (AMD64_NUM_REGS): New.
2854 (amd64_supply_xsave): Likewise.
2855 (amd64_collect_xsave): Likewise.
2856 (amd64_register_name): Removed.
2857 (amd64_register_type): Likewise.
2859 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2861 * i387-tdep.c: Include "i386-xstate.h".
2862 (XSAVE_XSTATE_BV_ADDR): New.
2863 (xsave_avxh_offset): Likewise.
2864 (XSAVE_AVXH_ADDR): Likewise.
2865 (i387_supply_xsave): Likewise.
2866 (i387_collect_xsave): Likewise.
2868 * i387-tdep.h (I387_NUM_YMM_REGS): New.
2869 (I387_YMM0H_REGNUM): Likewise.
2870 (I387_YMMENDH_REGNUM): Likewise.
2871 (i387_supply_xsave): Likewise.
2872 (i387_collect_xsave): Likewise.
2874 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2876 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2877 <sys/uio.h> and "i386-xstate.h".
2878 (PTRACE_GETREGSET): New.
2879 (PTRACE_SETREGSET): Likewise.
2880 (fetch_xstateregs): Likewise.
2881 (store_xstateregs): Likewise.
2882 (GETXSTATEREGS_SUPPLIES): Likewise.
2883 (regmap): Include 8 upper YMM registers.
2884 (i386_linux_fetch_inferior_registers): Support XSAVE extended
2886 (i386_linux_store_inferior_registers): Likewise.
2887 (i386_linux_read_description): Check and enable AVX target
2890 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2891 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2892 (i386_linux_regset_sections): Add ".reg-xstate".
2893 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2894 (i386_linux_core_read_xcr0): New.
2895 (i386_linux_core_read_description): Check and enable AVX target
2897 (i386_linux_init_abi): Set xsave_xcr0_offset.
2898 (_initialize_i386_linux_tdep): Call
2899 initialize_tdesc_i386_avx_linux.
2901 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2902 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2903 (i386_linux_core_read_xcr0): New.
2904 (tdesc_i386_avx_linux): Likewise.
2905 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2907 * i386-tdep.c: Include "i386-xstate.h" and
2908 "features/i386/i386-avx.c".
2909 (i386_ymm_names): New.
2910 (i386_ymmh_names): Likewise.
2911 (i386_ymmh_regnum_p): Likewise.
2912 (i386_ymm_regnum_p): Likewise.
2913 (i386_xmm_regnum_p): Likewise.
2914 (i386_register_name): Likewise.
2915 (i386_ymm_type): Likewise.
2916 (i386_supply_xstateregset): Likewise.
2917 (i386_collect_xstateregset): Likewise.
2918 (i386_sse_regnum_p): Removed.
2919 (i386_pseudo_register_name): Support pseudo YMM registers.
2920 (i386_pseudo_register_type): Likewise.
2921 (i386_pseudo_register_read): Likewise.
2922 (i386_pseudo_register_write): Likewise.
2923 (i386_dbx_reg_to_regnum): Return %ymmN register number for
2924 %xmmN if AVX is available.
2925 (i386_regset_from_core_section): Support .reg-xstate section.
2926 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2927 (i386_process_record): Replace i386_sse_regnum_p with
2929 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2930 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
2931 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
2932 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
2933 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
2934 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
2936 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
2938 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
2939 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
2941 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
2942 (I386_AVX_NUM_REGS): New.
2943 (i386_xmm_regnum_p): Likewise.
2944 (i386_ymm_regnum_p): Likewise.
2945 (i386_ymmh_regnum_p): Likewise.
2947 * common/i386-xstate.h: New.
2949 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2951 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
2953 * features/Makefile (WHICH): Add i386/i386-avx,
2954 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
2955 (i386/i386-avx-expedite): New.
2956 (i386/i386-avx-linux-expedite): Likewise.
2957 (i386/x86-64-avx-expedite):Likewise.
2958 (i386/x86-64-avx-linux-expedite): Likewise.
2959 ($(outdir)/i386/i386-avx.dat): New dependency.
2960 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
2961 ($(outdir)/i386/x86-avx-64.dat): Likewise.
2962 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
2964 * features/i386/32bit-avx.xml: New.
2965 * features/i386/64bit-avx.xml: Likewise.
2966 * features/i386/i386-avx-linux.c: Likewise.
2967 * features/i386/i386-avx-linux.xml: Likewise.
2968 * features/i386/i386-avx.c: Likewise.
2969 * features/i386/i386-avx.xml: Likewise.
2970 * features/i386/x86-64-avx-linux.c: Likewise.
2971 * features/i386/x86-64-avx-linux.xml: Likewise.
2972 * features/i386/x86-64-avx.c: Likewise.
2973 * features/i386/x86-64-avx.xml: Likewise.
2974 * regformats/i386/i386-avx-linux.dat: Likewise.
2975 * regformats/i386/i386-avx.dat: Likewise.
2976 * regformats/i386/x86-64-avx-linux.dat: Likewise.
2977 * regformats/i386/x86-64-avx.dat: Likewise.
2979 2010-04-07 Doug Evans <dje@google.com>
2981 * top.c (source_file_name): Make const char *.
2982 * top.h (source_file_name): Update.
2983 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
2985 (script_from_file): Change `file' arg to const char *.
2986 * cli/cli-script.h (script_from_file): Update.
2988 2010-04-06 Doug Evans <dje@google.com>
2990 * cli/cli-cmds.c (source_command): Run cleanups.
2992 2010-04-06 Stan Shebs <stan@codesourcery.com>
2994 * defs.h (char_ptr): Move typedef here from...
2995 * ada-lang.c (char_ptr): Remove.
2996 * charset.c (char_ptr): Remove.
2997 * tracepoint.h (struct uploaded_string): Remove.
2998 (struct uploaded_tp): Use vectors for string arrays.
2999 * tracepoint.c (trace_save): Use vectors of actions.
3000 (parse_tracepoint_definition): Ditto.
3001 (get_uploaded_tp): Clear vectors.
3002 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3003 (next_cmd): Change to an int.
3004 (read_next_cmd): Use vector of command strings.
3006 2010-04-06 Doug Evans <dje@google.com>
3008 * top.h (source_script, cd_command): Delete.
3009 * main.c: #include "cli/cli-cmds.h"
3011 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3013 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3014 type in bytes, not bits.
3016 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3018 * stabsread.c (define_symbol): Add support for char
3019 and string constants.
3021 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3023 Remove remaining "%ll" uses.
3024 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3026 * rs6000-nat.c (rs6000_ptrace64): Idem.
3027 * solib-pa64.c (pa64_current_sos): Idem.
3028 * solib-spu.c (spu_current_sos): Idem.
3029 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3031 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3033 * sh64-tdep.c (sh64_show_media_regs): Idem.
3035 2010-04-05 Stan Shebs <stan@codesourcery.com>
3037 * tracepoint.c: Include gdbcore.h.
3038 (tfile_xfer_partial): Return partial results, also try reading
3040 (tfile_has_all_memory): New function.
3041 (init_tfile_ops): Use it.
3043 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3046 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3047 the changes in data-directory.
3048 (init_sysinfo): Reload the syscall XML file if the data-directory
3051 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3056 2010-04-04 Stan Shebs <stan@codesourcery.com>
3057 Nathan Sidwell <nathan@codesourcery.com>
3059 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3060 breakpoints printed.
3061 (is_hardware_watchpoint): Make argument const.
3062 (is_watchpoint): Ditto.
3063 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3065 (breakpoints_info): Pass NULL to breakpoint_1.
3066 (maintenance_info_breakpoints): Ditto.
3067 (watchpoints_info): New function.
3068 (tracepoints_info): Use breakpoint_1 filter.
3069 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3070 (_initialize_breakpoint): Make "info watchpoints" its own command.
3071 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3072 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3074 2010-04-04 Stan Shebs <stan@codesourcery.com>
3076 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3078 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3081 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3083 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3086 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3088 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3090 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3093 2010-04-02 Hui Zhu <teawater@gmail.com>
3095 * i386-tdep.c (OT_DQUAD): New enum.
3096 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3097 SSE3, SSSE3 and SSE4.
3099 2010-04-02 Hui Zhu <teawater@gmail.com>
3101 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3104 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3106 * tracepoint.c (trace_dump_actions): New, factored out from
3107 trace_dump_command, and adjusted to recurse into while-stepping's
3109 (trace_dump_command): Use it.
3111 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3113 * breakpoint.h (struct counted_command_line): Moved definition to
3114 breakpoint.c, and forward declare.
3115 (breakpoint_commands): Declare.
3116 * breakpoint.c (struct counted_command_line): Moved here.
3117 (breakpoint_commands): New.
3118 * tracepoint.c (encode_actions): Use breakpoint_commands.
3119 * remote.c (remote_download_tracepoint): Ditto.
3121 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3123 * remote.c (remote_parse_stop_reply): Use hex_string instead
3124 of phex_nz for error.
3126 2010-04-01 Stan Shebs <stan@codesourcery.com>
3127 Nathan Sidwell <nathan@codesourcery.com>
3129 * tracepoint.h (enum actionline_type): Remove.
3130 (validate_actionline): Change return to void.
3131 * tracepoint.c (report_agent_reqs_errors): New function.
3132 (validate_actionline): Call it, change return to void, report errors
3134 (collect_symbol): Call report_agent_reqs_errors.
3135 (encode_actions_1): Ditto.
3136 (encode_actions): Don't expect a result from validate_actionline.
3138 2010-04-01 Stan Shebs <stan@codesourcery.com>
3140 * tracepoint.c (trace_start_command): Confirm if trace is running.
3141 (trace_stop_command): Error if trace not running.
3143 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3145 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3146 (AMD64_NUM_LOWER_BYTE_REGS): New.
3147 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3148 (amd64_pseudo_register_write): Likewise.
3149 (amd64_init_abi): Set num_byte_regs to 20.
3151 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3153 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3154 (prev_breakpoint_count): New.
3155 (set_breakpoint_count): Adjust.
3156 (rbreak_start_breakpoint_count): New.
3157 (start_rbreak_breakpoints): Adjust.
3158 (end_rbreak_breakpoints): Adjust.
3159 (struct commands_info) <arg>: New field.
3160 (do_map_commands_command): Tweak output to include breakpoint spec
3162 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3163 ARG was empty on entry. Set INFO's arg.
3164 (create_breakpoint): Adjust.
3166 * NEWS: Clarify `commands' changes.
3168 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3170 * tracepoint.c: Include stack.h.
3171 (struct add_local_symbols_data): New.
3172 (do_collect_symbol): New.
3173 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3174 iterate_over_block_local_vars.
3175 * stack.c (print_block_frame_locals): Rewrite as ...
3176 (iterate_over_block_locals): ... this. Take a callback function
3177 pointer and generic data pointer, and call that instead of
3178 print_variable_and_value.
3179 (struct print_variable_and_value_data): New.
3180 (do_print_variable_and_value): New.
3181 (iterate_over_block_local_vars): New, abstracted out from
3182 print_frame_local_vars.
3183 (print_frame_local_vars): Rewrite using
3184 iterate_over_block_local_vars.
3185 (iterate_over_block_arg_vars): New, abstracted out from
3186 print_frame_arg_vars.
3187 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3188 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3189 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3191 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3193 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3194 instructions. Use the PC+4 if the base of the TBB or TBH is the
3197 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3199 Fix crash on reading wrong function declaration DWARF.
3200 * dwarf2read.c (read_subroutine_type): New variable void_type.
3201 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3202 more close to their use.
3204 2010-03-31 Stan Shebs <stan@codesourcery.com>
3206 * breakpoint.c (tracepoint_save_command): Include variables,
3207 conditionals, tracepoint types, and default-collect.
3208 * tracepoint.c (save_trace_state_variables): New function.
3209 * tracepoint.h (save_trace_state_variables): Declare it.
3211 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3213 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3215 2010-03-30 Keith Seitz <keiths@redhat.com>
3217 * c-typeprint.c (c_type_print_args): Don't print "void"
3218 for java, regardless of whether it is TYPE_PROTOTYPED.
3219 Use the passed-in language instead of current_language.
3220 (c_type_print_varspec_suffix): Use current_language instead
3221 of assuming language_c.
3222 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3223 any return type specifier from the physname.
3225 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3227 * tui/tui-interp.c (tui_is_toplevel): New.
3229 (tui_allowed_p): New.
3230 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3232 * tui/tui.h (tui_allowed_p): Declare.
3234 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3236 * serial.h: Include winsock2.h before windows.h.
3238 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3240 * NEWS: Mention xmlRegisters= in qSupported packet.
3242 * i386-tdep.c: Include "remote.h".
3243 (_initialize_i386_tdep): Call register_remote_support_xml.
3245 * remote.c (remote_support_xml): New.
3246 (register_remote_support_xml): Likewise.
3247 (remote_query_supported_append): Likewise.
3248 (remote_query_supported): Support remote_support_xml.
3250 * remote.h (register_remote_support_xml): New.
3252 2010-03-29 Stan Shebs <stan@codesourcery.com>
3254 * tracepoint.c (trace_find_line_command): Remove dead code.
3256 * tracepoint.h (struct uploaded_string): New struct.
3257 (struct uploaded_tp): New fields for source strings.
3258 * breakpoint.c (this_utp, next_cmd): New globals.
3259 (read_uploaded_action): New function.
3260 (create_tracepoint_from_upload): Fill in more parts
3262 * tracepoint.c (encode_source_string): New function.
3263 (trace_save): Write out source strings, fix error checks.
3264 (parse_tracepoint_definition): Add source string parsing.
3265 * remote.c (PACKET_TracepointSource): New packet type.
3266 (remote_download_command_source): New function.
3267 (remote_download_tracepoint): Download source pieces also.
3268 (_initialize_remote): Add packet config command.
3270 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3273 * tracepoint.c (start_tracing): Check tracepoints before sending
3274 commands to target, don't start if all tracepoints disabled.
3276 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3278 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3280 2010-03-26 Stan Shebs <stan@codesourcery.com>
3282 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3284 2010-03-26 Tom Tromey <tromey@redhat.com>
3286 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3288 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3290 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3291 (skip_prologue_sal): Remove local definition.
3292 (resolve_sal_pc): Remove now unnecessary code.
3293 * linespec.c (minsym_found): Call skip_prologue_sal.
3294 * symtab.c (find_function_start_pc): Remove.
3295 (find_function_start_sal): Extract prologue skipping into ...
3296 (skip_prologue_sal): ... this new function. Handle code both
3297 with and without debug info. Respect SAL's explicit_pc and
3298 explicit_line flags. Inline old find_function_start_pc.
3299 * symtab.h (find_function_start_pc): Remove.
3300 (skip_prologue_sal): Add prototype.
3302 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3304 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3305 for DW_TAG_imported_module children.
3307 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3309 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3310 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3311 * completer.c (add_struct_fields): Fix inverted logic.
3313 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3315 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3317 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3319 * tracepoint.c (current_trace_status): Don't make sure error_desc
3321 (parse_trace_status): Release a previous error_desc string, and
3322 set it to NULL by default. If stop reason is tracepoint_error,
3323 make sure error_desc is not left NULL.
3325 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3327 * tracepoint.c (trace_save): Remove X from tracepoint error
3330 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3332 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3333 the terror description. Don't expect an X prefix.
3335 2010-03-25 Stan Shebs <stan@codesourcery.com>
3337 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3338 (struct trace_status): New field error_desc.
3339 * tracepoint.c (stop_reason_names): Add terror.
3340 (current_trace_status): Ensure non-NULL error description.
3341 (trace_status_command): Add error report.
3342 (trace_status_mi): Ditto.
3343 (trace_save): Add special case for error description.
3344 (parse_trace_status): Add case for errors.
3346 2010-03-25 Keith Seitz <keiths@redhat.com>
3348 * dwarf2read.c (read_subroutine_type): If the compilation unit
3349 language is Java, mark any formal parameter named "this" as
3350 artificial (GCC/43521).
3351 (dwarf2_name): Add special handling for Java constructors.
3353 2010-03-25 Tom Tromey <tromey@redhat.com>
3355 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3356 * infrun.c (handle_inferior_event): Change initialization of
3358 (handle_inferior_event): Change assignment to stop_stack_dummy.
3359 (normal_stop): Update use of stop_stack_dummy.
3360 (struct inferior_status) <stop_stack_dummy>: Change type.
3361 * inferior.h (stop_stack_dummy): Update.
3362 * infcmd.c (stop_stack_dummy): Change type.
3363 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3365 (call_function_by_hand): Call set_std_terminate_breakpoint.
3366 Rewrite std::terminate handling.
3367 * breakpoint.h (enum bptype) <bp_std_terminate,
3368 bp_std_terminate_master>: New.
3369 (enum stop_stack_kind): New.
3370 (struct bpstat_what) <call_dummy>: Change type.
3371 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3373 * breakpoint.c (create_std_terminate_master_breakpoint): New
3375 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3376 Call create_std_terminate_master_breakpoint.
3377 (print_it_typical): Handle new breakpoint kinds.
3378 (bpstat_stop_status): Handle bp_std_terminate_master.
3379 (bpstat_what): Correctly set call_dummy field. Handle
3380 bp_std_terminate_master and bp_std_terminate.
3381 (print_one_breakpoint_location): Update.
3382 (allocate_bp_location): Update.
3383 (set_std_terminate_breakpoint): New function.
3384 (delete_std_terminate_breakpoint): Likewise.
3385 (create_thread_event_breakpoint): Update.
3386 (delete_command): Update.
3387 (breakpoint_re_set_one): Update.
3388 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3390 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 * symfile.c (build_section_addr_info_from_bfd): New.
3393 (build_section_addr_info_from_objfile): Base it on
3394 build_section_addr_info_from_bfd.
3395 (addrs_section_compar, addrs_section_sort): New.
3396 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3397 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3398 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3400 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3402 * elfread.c (find_separate_debug_file_by_buildid):
3403 Remove unused local variable.
3405 2010-03-24 Tom Tromey <tromey@redhat.com>
3407 PR breakpoints/9352:
3408 * NEWS: Mention changes to `commands' and `rbreak'.
3409 * symtab.c (do_end_rbreak_breakpoints): New function.
3410 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3411 end_rbreak_breakpoints.
3412 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3413 (set_breakpoint_count): Likewise. Clear last_was_multi.
3414 (multi_start, multi_end, last_was_multi): New globals.
3415 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3417 (struct commands_info): New
3418 (do_map_commands_command): New function.
3419 (commands_command_1): New function.
3420 (commands_command): Use it.
3421 (commands_from_control_command): Likewise.
3422 (do_delete_breakpoint): New function.
3423 (delete_command): Use it.
3424 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3425 (do_map_disable_breakpoint): New function.
3426 (disable_command): Use it.
3427 (do_map_enable_breakpoint): New function.
3428 (enable_command): Use it.
3429 (enable_once_breakpoint): Add argument.
3430 (enable_once_command): Update.
3431 (enable_delete_breakpoint): Add argument.
3432 (enable_delete_command): Update.
3433 (break_command_really): Set last_was_multi when needed.
3434 (check_tracepoint_command): Fix formatting.
3435 (validate_commands_for_breakpoint): New function.
3436 (breakpoint_set_commands): Use it.
3437 (tracepoint_save_command): Update.
3438 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3441 2010-03-24 Tom Tromey <tromey@redhat.com>
3443 * breakpoint.h (struct counted_command_line): New struct.
3444 (struct breakpoint) <commands>: Change type.
3445 (struct bpstats) <commands>: Change type.
3446 <commands_left>: New field.
3447 * breakpoint.c (alloc_counted_command_line): New function.
3448 (incref_counted_command_line): Likewise.
3449 (decref_counted_command_line): Likewise.
3450 (do_cleanup_counted_command_line): Likewise.
3451 (make_cleanup_decref_counted_command_line): Likewise.
3452 (breakpoint_set_commands): Use decref_counted_command_line and
3453 alloc_counted_command_line.
3454 (commands_command): Don't error if breakpoint commands are
3456 (commands_from_control_command): Likewise.
3457 (bpstat_free): Update.
3458 (bpstat_copy): Likewise.
3459 (bpstat_clear_actions): Likewise.
3460 (bpstat_do_actions_1): Likewise.
3461 (bpstat_stop_status): Likewise.
3462 (print_one_breakpoint_location): Likewise.
3463 (delete_breakpoint): Likewise.
3464 (bpstat_alloc): Initialize new field.
3465 (tracepoint_save_command): Update.
3466 * tracepoint.c (encode_actions): Update.
3467 (trace_dump_command): Update.
3469 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3471 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3472 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3473 (read_structure_type): For RealView, set TYPE_STUB on structures with
3474 no byte size and no children.
3475 (read_subroutine_type): Mark functions as prototyped by default.
3476 * symtab.c (producer_is_realview): New function.
3477 * symtab.h (expand_line_sal): Fix declaration formatting.
3478 (producer_is_realview): Declare.
3480 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3482 * arm-tdep.c (skip_prologue_function): New function.
3483 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3484 (thumb_analyze_prologue): Document return value. Recognize more
3485 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3487 (arm_skip_prologue): Remove call dummy check. Check the prologue
3488 for non-GNU compilers.
3489 (arm_instruction_changes_pc): New function.
3490 (arm_analyze_prologue): New function, broken out from
3491 arm_scan_prologue. Recognize more ARM instructions and skippable
3492 calls. Update comments. Handle NULL cache. Return the address
3493 of the first unrecognized instruction. Do not skip past other
3494 instructions which change control flow. Add debug output.
3495 (arm_scan_prologue): Use arm_analyze_prologue.
3496 (ARM_PC_32): Delete.
3497 (shifted_reg_val): Simplify ARM_PC_32 check.
3499 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3501 * tracepoint.c (tvariables_info_1): Actually compute
3502 the number of rows in the result.
3504 2010-03-24 Pedro Alves <pedro@codesourcery.com>
3506 * remote.c (crc32): Constify `buf' parameter.
3507 (remote_verify_memory): New, abstracted out from...
3508 (compare_sections_command): ... this. Remove hardcoded target
3510 (init_remote_ops): Install remote_verify_memory.
3511 * target.c (target_verify_memory): New.
3512 * target.h (struct target_ops) <to_verify_memory>: New field.
3513 (target_verify_memory): Declare.
3515 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3517 Implement -trace-save.
3519 * mi-cmds.h (mi_cmds_trace_save): Declare.
3520 * mi-cmds.c (mi_cmds): Register -trace-save.
3521 * mi/mi-main.c (mi_cmd_trace_save): New.
3522 * remote.c (remote_save_trace_data): Take const parameter.
3523 * target.h (struct target_ops::to_save_trace_data): Take
3525 * target.c (update_current_target): Adjust to the above.
3526 * tracepoint.c (trave_save): New, extracted from
3527 (trace_save_command): ...this.
3528 (tfile_trace_find): Remove message that is unnecessary now
3529 that 'tfind' reports found frame.
3530 * tracepoint.h (trace_save): Declare.
3532 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3534 Implement -trace-find.
3536 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3537 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3538 * mi/mi-main.c (mi_cmd_trace_find): New.
3539 * target.h (struct target_ops): Document to_trace_find.
3540 * tracepoint.h (tfind_1): Declare.
3541 * tracepoint.c (finish_tfind_command): Rename to...
3543 * remote.c (remote_trace_find): Return -1 if target say
3544 there's no frame. Improve error diagnostics.
3546 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3548 -trace-define-variable and -trace-list-variables.
3550 * tracepoint.c (create_trace_state_variable): Make
3551 private copy of name, as opposed to assuming the
3552 pointer lives forever.
3553 (tvariables_info_1): New.
3554 (tvariables_info): Use the above.
3555 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3557 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3558 and -trace-list-variables.
3559 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3560 (mi_cmd_trace_list_variables): New.
3561 * mi/mi-main.c (mi_cmd_trace_define_variable)
3562 (mi_cmd_trace_list_variables): New.
3564 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3566 Implement -break-passcount.
3568 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3569 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3570 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3572 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3574 -trace-start/-trace-end/-trace-status.
3576 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3578 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3579 (mi_cmd_trace_stop): Declare.
3580 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3581 (mi_cmd_trace_stop): New.
3582 * tracepoint.c (start_tracing): New, extracted from...
3583 (trace_start_command): ...this.
3584 (trace_status_mi): New.
3585 * tracepoint.h (struct trace_status): Document
3586 stopping_tracepoint.
3587 (start_tracing, stop_tracing, trace_status_mi): Declare.
3589 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3591 Implement creating tracepoints with -break-insert.
3593 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3594 to mean that tracepoint should be created.
3596 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3598 * breakpoint.c (check_no_tracepoint_commands): Use
3599 current spelling of 'teval'.
3601 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3603 Unify actions and commands
3605 * defs.h (read_command_lines, read_command_lines_1): New
3606 parameters validator and closure.
3607 * tracepoint.h (struct action_line): Remove.
3608 * breakpoint.h (struct breakpoint): Remove the 'actions'
3610 * defs.h (enum command_control_type): New value
3611 while_stepping_control.
3612 (struct command_line): Add comments.
3613 * breakpoint.c (breakoint_is_tracepoint): New.
3614 (breakpoint_set_commands): For tracepoints,
3615 verify the commands are permissible.
3616 (check_tracepoint_commands): New.
3617 (commands_command): Require that each new line is validated using
3618 check_tracepoint_command, if we set commands for a tracepoint.
3619 (create_tracepoint_from_upload): Likewise.
3620 (print_one_breakpoint_location): Remove the code to print
3621 actions specifically.
3622 (tracepoint_save_command): Relay to print_command_lines.
3623 * cli/cli-script.c (process_next_line): New parameters validator
3624 and closure. Handle 'while-stepping'. Call validator if not null.
3625 (read_command_lines, read_command_lines1): Likewise.
3626 (recurse_read_control_structure): New parameters validator and
3627 closure. Handle while_stepping_control.
3628 (print_command_lines): Handle while-stepping.
3629 (get_command_line, define_command, document_command): Adjust.
3630 * remote.c (remote_download_tracepoint): Adjust.
3631 * tracepoint.c (make_cleanup_free_actions, read_actions)
3632 (free_actions, do_free_actions_cleanup): Remove.
3633 (trace_actions_command): Use read_command_lines.
3634 (validate_actionline): Use error in one place.
3635 (encode_actions_1): New, extracted from...
3636 (encode_actions): ...this. Also use cleanups for exception
3638 (trace_dump_command): Adjust.
3639 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3642 2010-03-23 Mike Frysinger <vapier@gentoo.org>
3644 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3646 2010-03-22 Stan Shebs <stan@codesourcery.com>
3648 * value.c (value_static_field): Be lazy about the field's value.
3650 2010-03-22 Reid Kleckner <reid@kleckner.net>
3653 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3655 (disable_breakpoints_in_shlibs): Likewise.
3657 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3659 * dwarf2read.c (partial_die_parent_scope): Work around buggy
3660 GCC 4.1 debug info generation (GCC PR c++/28460).
3661 (determine_prefix): Likewise.
3663 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
3665 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3667 * tui/tui-layout.c (extract_display_start_addr): Likewise.
3669 2010-03-19 Stan Shebs <stan@codesourcery.com>
3671 * ax-gdb.c (gen_fetch): Handle bool.
3672 (gen_usual_unary): Ditto.
3674 (gen_equal): New function.
3675 (gen_less): New function.
3676 (gen_expr_binop_rest): Call them, also return integer type from
3680 2010-03-19 Tom Tromey <tromey@redhat.com>
3682 * jv-lang.c (jv_dynamics_objfile_data_key)
3683 (jv_type_objfile_data_key): New globals.
3684 (class_symtab): Move earlier.
3685 (jv_per_objfile_free): New function.
3686 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
3688 Remove ancient #if 1.
3689 (add_class_symbol): Remove redundant declaration.
3690 (java_lookup_class): Use alloc_type, not alloc_type_arch.
3691 (java_link_class_type): Mark as static. Update.
3692 (jv_clear_object_type): New function.
3693 (set_java_object_type): Likewise.
3694 (get_java_object_type): Use set_java_object_type.
3695 (is_object_type): Likewise.
3696 (_initialize_java_language): Register new objfile keys.
3697 (get_java_class_symtab): Add 'gdbarch' parameter.
3698 (add_class_symtab_symbol): Update.
3699 (type_from_class): Update.
3701 2010-03-19 Stan Shebs <stan@codesourcery.com>
3703 * ax-general.c (ax_const_l): Fix a sizing bug.
3705 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3709 2010-03-18 Stan Shebs <stan@codesourcery.com>
3710 Pedro Alves <pedro@codesourcery.com>
3712 * target.h (struct target_ops): New method
3713 to_set_circular_trace_buffer.
3714 (target_set_circular_trace_buffer): New macro.
3715 * target.c (update_current_target): Add
3716 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3718 * remote.c (remote_set_circular_trace_buffer): New function.
3719 (init_remote_ops): Add it to vector.
3720 * tracepoint.h (struct trace_status): New field traceframes_created,
3721 change buffer_size and buffer_free to int.
3722 * tracepoint.c (circular_trace_buffer): New global.
3723 (start_tracing): Send values of disconnected tracing and circular
3724 trace buffer settings.
3725 (set_circular_trace_buffer): New function.
3726 (parse_trace_state): Handle total space and frames created.
3727 (trace_status_command): Display total space and total frames
3729 (trace_save): Write out new status values.
3730 (parse_trace_status): Set traceframe_count, traceframes_created,
3731 buffer_free and buffer_size to -1 by default.
3732 (_initialize_tracepoint): New setshow for circular-trace-buffer.
3733 * NEWS: Mention the circular trace buffer option.
3735 2010-03-18 Tom Tromey <tromey@redhat.com>
3737 * infcmd.c (finish_command_continuation): Wrap print_return_value
3740 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3742 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3743 DIE has a name before creating the associated partial symbol.
3744 (read_func_scope): Emit a complaint if the subprogram does not
3745 have a name or when we can't extract the subprogram PC bounds.
3747 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3749 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3750 instead of selected frame architecture.
3752 2010-03-18 Pedro Alves <pedro@codesourcery.com>
3754 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
3755 a valid selected thread, and that it is not running.
3756 (advance_command): Ditto.
3757 (finish_command): Ditto.
3759 2010-03-17 Stan Shebs <stan@codesourcery.com>
3761 * ax-gdb.c (require_rvalue): Disallow non-scalars.
3763 * infcall.c: Include tracepoint.h.
3764 (call_function_by_hand): Disallow calls in tfind mode.
3765 * infcmd.c: Include tracepoint.h.
3766 (ensure_not_tfind_mode): New function.
3767 (continue_1): Call it.
3769 (jump_command): Ditto.
3770 (signal_command): Ditto.
3771 (advance_command): Ditto.
3772 (until_command): Ditto.
3773 (finish_command): Ditto.
3774 * tracepoint.h (disconnect_or_stop_tracing): Declare.
3776 * ax-gdb.h (struct axs_value): New field optimized_out.
3777 (gen_trace_for_var): Add gdbarch argument.
3778 * ax-gdb.c (gen_trace_static_fields): New function.
3779 (gen_traced_pop): Call it, add gdbarch argument.
3780 (gen_trace_for_expr): Update call to it.
3781 (gen_trace_for_var): Ditto, and report optimized-out variables.
3782 (gen_struct_ref_recursive): Check for optimized-out value.
3783 (gen_struct_elt_for_reference): Ditto.
3784 (gen_static_field): Pass gdbarch instead of expression, assume
3785 optimization if field not found.
3786 (gen_var_ref): Set the optimized_out flag.
3787 (gen_expr): Error on optimized-out variable.
3788 * tracepoint.c (collect_symbol): Handle struct-valued vars as
3789 expressions, skip optimized-out variables with computed locations.
3790 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3791 erroring out if location expression missing.
3792 (loclist_tracepoint_var_ref): Don't error out here.
3794 2010-03-17 Tom Tromey <tromey@redhat.com>
3796 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3797 DWARF data is available.
3799 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3801 * symfile.c (generic_load): Reset breakpoints after loading.
3803 2010-03-17 Tom Tromey <tromey@redhat.com>
3805 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3807 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3809 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3810 create_breakpoint call, adjust the parameters.
3812 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3813 Chandru <chandru@in.ibm.com>
3815 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3816 * valarith.c (value_subscripted_rvalue): Suppress error if
3817 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3819 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
3821 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3823 2010-03-16 Joel Brobecker <brobecker@adacore.com>
3825 * ada-tasks.c (task_command_1): Check that the task ptid is valid
3826 before doing the associated thread switch.
3828 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
3830 * MAINTAINERS: Update my email address.
3832 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
3834 Simplify MI breakpoint setting.
3836 * breakpoint.c (break_command_really): Make nonstatic and
3838 (create_breakpoint): ...this. Rename prior function by this name
3840 (create_breakpoint_sal): ...this.
3841 (create_breakpoints): Rename to...
3842 (create_breakpoints_sal): ...this.
3843 (set_breakpoint): Remove.
3844 * breakpoint.h: Adjust to above changes.
3845 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3847 2010-03-15 Stan Shebs <stan@codesourcery.com>
3849 * ax-gdb.c: Include cp-support.h.
3850 (find_field): Remove.
3851 (gen_primitive_field): New function.
3852 (gen_struct_ref_recursive): New function.
3853 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3855 (gen_static_field): New function.
3856 (gen_struct_elt_for_reference): New.
3857 (gen_namespace_elt): New.
3858 (gen_maybe_namespace_elt): New.
3859 (gen_aggregate_elt_ref): New.
3860 (gen_expr): Add OP_SCOPE, display opcode name in error message.
3862 2010-03-15 Tom Tromey <tromey@redhat.com>
3864 * dwarf2read.c (die_needs_namespace): Also return 0 for
3867 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
3870 * cp-support.h: Added char *declaration element to using_direct
3872 (cp_add_using): Added char *declaration argument.
3873 (cp_add_using_directive): Ditto.
3874 (cp_lookup_symbol_imports): made extern.
3875 * cp-namespace.c: Updated with the above changes.
3876 * dwarf2read.c (read_import_statement): Ditto.
3877 (read_namespace): Ditto.
3878 (read_import_statement): Support import declarations.
3879 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3881 Added support for 'declaration_only' search.
3882 (cp_lookup_symbol_namespace): Attempt to search for the name as
3883 is before consideration of imports.
3884 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3885 search at every block level search.
3886 Now takes language argument.
3887 (lookup_symbol_aux): Updated.
3889 2010-03-15 Tom Tromey <tromey@redhat.com>
3891 * c-exp.y (name_not_typename): Add 'operator' clause.
3893 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
3895 * configure.ac: Exit if ${gdb_target_obs}" is not set.
3896 * configure: Regenerate.
3898 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3901 and ".sdynbss". Update the comment.
3903 2010-03-15 Jie Zhang <jie@codesourcery.com>
3905 * MAINTAINERS: Update my email address.
3907 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3909 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3911 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3913 * charset.c [USE_WIN32API]: Include <windows.h>.
3914 (_initialize_charset): Correct type of w32_host_default_charset.
3916 2010-03-14 Pedro Alves <pedro@codesourcery.com>
3918 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3920 2010-03-12 Tom Tromey <tromey@redhat.com>
3923 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3924 in a lexical block does not need a namespace.
3925 (new_symbol) <DW_TAG_variable>: Put extern variables on
3926 list_in_scope in all cases.
3928 2010-03-12 Stan Shebs <stan@codesourcery.com>
3930 * ax-gdb.c (gen_expr): Add shift expressions.
3931 (gen_expr_binop_rest): Ditto.
3933 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
3935 * buildsym.c (finish_block): Reset using_directives pointer
3936 after block initialization.
3938 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
3940 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
3941 * i386-tdep.c (i386_word_names): Likewise.
3943 2010-03-12 Pedro Alves <pedro@codesourcery.com>
3945 * target.c (memory_xfer_partial): Don't use the stack cache if
3946 inspecting trace frames.
3947 * tracepoint.c (finish_tfind_command): Invalidate the target
3950 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
3953 for the PIC displacement, print also the displacement value.
3954 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
3956 2010-03-10 Kevin Buettner <kevinb@redhat.com>
3958 * remote-mips.c (close_ports, mips_initialize_cleanups)
3959 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
3960 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
3961 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
3962 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
3963 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
3964 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
3965 comments describing each of these functions.
3966 (mips_enter_debug, mips_exit_debug, common_open)
3967 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
3968 blank line after the comment describing the function.
3970 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * solib-svr4.c (svr4_exec_displacement): Return now success, new
3973 parameter displacementp. Update comment.
3974 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
3975 element exists. Return if svr4_exec_displacement was not successful.
3978 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3979 Daniel Jacobowitz <dan@codesourcery.com>
3981 * solib-svr4.c (read_program_header): Support type == -1 to read
3982 all program headers.
3983 (read_program_headers_from_bfd): New function.
3984 (svr4_static_exec_displacement): Remove and move the comment ...
3985 (svr4_exec_displacement): ... here. Remove variable found. New
3986 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
3987 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
3988 targets using read_program_headers_from_bfd. Remove the call of
3989 svr4_static_exec_displacement.
3991 2010-03-10 Tom Tromey <tromey@redhat.com>
3993 * dwarf2read.c (struct pubnames_header): Remove.
3994 (_PUBNAMES_HEADER): Remove.
3995 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
3996 (struct aranges_header): Remove.
3997 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
3998 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
3999 (PUBNAMES_SECTION): Remove.
4000 (ARANGES_SECTION): Remove.
4001 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4002 (dwarf2_build_psymtabs): Remove dead code.
4003 (dwarf2_build_psymtabs_easy): Remove.
4005 2010-03-10 Tom Tromey <tromey@redhat.com>
4007 * elfread.c (elf_symfile_read): Don't call
4008 dwarf2_build_frame_info.
4009 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4010 (struct dwarf2_per_objfile) <objfile>: New field.
4011 (dwarf2_has_info): Now idempotent. Set objfile field.
4012 (dwarf2_read_section): Check and set readin field. Call
4014 (dwarf2_build_psymtabs): Don't read all sections.
4015 (read_type_comp_unit_head): Read types section.
4016 (create_debug_types_hash_table): Likewise.
4017 (init_cu_die_reader): Add asserts.
4018 (process_type_comp_unit): Add assert.
4019 (dwarf2_build_psymtabs_hard): Read info section.
4020 (load_partial_comp_unit): Add assert.
4021 (create_all_comp_units): Read info section.
4022 (load_full_comp_unit): Likewise.
4023 (dwarf2_ranges_read): Read ranges section.
4024 (dwarf2_record_block_ranges): Add assert.
4025 (dwarf2_read_abbrevs): Read abbrev section.
4026 (read_indirect_string): Read str section.
4027 (dwarf_decode_line_header): Read line section.
4028 (read_signatured_type_at_offset): Read types section.
4029 (dwarf_decode_macros): Read macinfo section.
4030 (dwarf2_symbol_mark_computed): Read loc section.
4031 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4032 dwarf2_build_frame_info.
4033 (dwarf2_build_frame_info): Unconditionally set
4034 dwarf2_frame_objfile_data on the objfile.
4035 * configure.ac: Check for posix_madvise.
4036 * config.in, configure: Rebuild.
4038 2010-03-10 Tom Tromey <tromey@redhat.com>
4040 * xcoffread.c (xcoff_start_psymtab): Update.
4041 (xcoff_end_psymtab): Update.
4042 * psymtab.c (allocate_psymtab): Remove dead code.
4043 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4045 * mdebugread.c (parse_partial_symbols): Update.
4046 (new_psymtab): Likewise.
4047 * dwarf2read.c (process_psymtab_comp_unit): Update.
4048 (psymtab_to_symtab_1): Update.
4049 * dbxread.c (start_psymtab): Update.
4050 (end_psymtab): Likewise.
4052 2010-03-10 Tom Tromey <tromey@redhat.com>
4054 * xcoffread.c: Include psymtab.h.
4055 (xcoff_sym_fns): Update.
4056 * symtab.h (struct partial_symbol): Remove.
4057 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4058 (struct partial_symtab): Remove.
4059 (PSYMTAB_TO_SYMTAB): Remove.
4060 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4061 (find_pc_sect_psymtab): Remove.
4062 (find_pc_sect_symtab_via_partial): Declare.
4063 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4064 (find_main_psymtab): Remove.
4065 (find_main_filename): Declare.
4066 (fixup_psymbol_section): Remove.
4067 (fixup_section): Declare.
4068 * symtab.c: Include psymtab.h.
4069 (lookup_symtab): Use lookup_symtab method.
4070 (lookup_partial_symtab): Remove.
4071 (find_pc_sect_psymtab_closer): Remove.
4072 (find_pc_sect_psymtab): Remove.
4073 (find_pc_sect_symtab_via_partial): New function.
4074 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4075 (fixup_section): No longer static.
4076 (fixup_psymbol_section): Remove.
4077 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4078 (lookup_global_symbol_from_objfile): Likewise.
4079 (lookup_symbol_aux_psymtabs): Remove.
4080 (lookup_symbol_aux_quick): New function.
4081 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4082 (lookup_partial_symbol): Remove.
4083 (basic_lookup_transparent_type_quick): New function.
4084 (basic_lookup_transparent_type): Use it.
4085 (find_main_psymtab): Remove.
4086 (find_main_filename): New function.
4087 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4088 (find_line_symtab): Use expand_symtabs_with_filename method.
4089 (output_partial_symbol_filename): New function.
4090 (sources_info): Use map_partial_symbol_filenames.
4091 (struct search_symbols_data): New type.
4092 (search_symbols_file_matches): New function.
4093 (search_symbols_name_matches): Likewise.
4094 (search_symbols): Use expand_symtabs_matching method.
4095 (struct add_name_data): Rename from add_macro_name_data.
4096 (add_macro_name): Update.
4097 (add_partial_symbol_name): New function.
4098 (default_make_symbol_completion_list): Use
4099 map_partial_symbol_names.
4100 (struct add_partial_symbol_name): New type.
4101 (maybe_add_partial_symtab_filename): New function.
4102 (make_source_files_completion_list): Use
4103 map_partial_symbol_filenames.
4104 (expand_line_sal): Use expand_symtabs_with_filename method.
4105 * symmisc.c: Include psymtab.h.
4106 (print_objfile_statistics): Use print_stats method.
4107 (dump_objfile): Use dump method.
4108 (dump_psymtab, maintenance_print_psymbols)
4109 (maintenance_info_psymtabs, maintenance_check_symtabs)
4110 (extend_psymbol_list): Remove.
4111 * symfile.h (struct quick_symbol_functions): New struct.
4112 (struct sym_fns) <qf>: New field.
4113 (sort_pst_symbols): Remove.
4114 (increment_reading_symtab): Declare.
4115 * symfile.c: Include psymtab.h.
4116 (compare_psymbols, sort_pst_symbols): Remove.
4117 (psymtab_to_symtab): Remove.
4118 (increment_reading_symtab): New function.
4119 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4121 (set_initial_language): Use find_main_filename.
4122 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4123 (free_named_symtabs): Remove unused code.
4124 (start_psymtab_common, add_psymbol_to_bcache)
4125 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4127 * stack.c: Include psymtab.h, symfile.h.
4128 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4129 * source.h (psymtab_to_fullname): Don't declare.
4130 * source.c: Include psymtab.h.
4131 (select_source_symtab): Use find_last_source_symtab method.
4132 (forget_cached_source_info): Use forget_cached_source_info
4134 (find_and_open_source): No longer static.
4135 (psymtab_to_fullname): Remove.
4136 * somread.c: Include psymtab.h.
4137 (som_sym_fns): Update.
4138 * psympriv.h: New file.
4139 * psymtab.h: New file.
4140 * psymtab.c: New file.
4141 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4142 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4143 * objfiles.c: Include psymtab.h.
4144 (objfile_relocate1): Use relocate method.
4145 (objfile_has_partial_symbols): Use has_symbols method.
4146 * mipsread.c: Include psymtab.h.
4147 (ecoff_sym_fns): Update.
4148 * mi/mi-cmd-file.c: Include psymtab.h.
4149 (print_partial_file_name): New function.
4150 (mi_cmd_file_list_exec_source_files): Use
4151 map_partial_symbol_filenames.
4152 * mdebugread.c: Include psympriv.h.
4153 * machoread.c: Include psympriv.h.
4154 (macho_sym_fns): Update.
4155 * m2-exp.y (yylex): Use lookup_symtab.
4156 * elfread.c: Include psympriv.h.
4157 (elf_sym_fns): Update.
4158 * dwarf2read.c: Include psympriv.h.
4159 * dbxread.c: Include psympriv.h.
4160 (aout_sym_fns): Update.
4161 * cp-support.c: Include psymtab.h.
4162 (read_in_psymtabs): Remove.
4163 (make_symbol_overload_list_qualified): Use
4164 expand_symtabs_for_function method.
4165 * coffread.c: Include psympriv.h.
4166 (coff_sym_fns): Update.
4167 * blockframe.c: Include psymtab.h.
4168 (find_pc_partial_function): Use find_pc_sect_symtab method.
4169 * ada-lang.h (ada_update_initial_language): Update.
4170 * ada-lang.c: Include psymtab.h.
4171 (ada_update_initial_language): Remove 'main_pst' argument.
4172 (ada_lookup_partial_symbol): Remove.
4173 (struct ada_psym_data): New type.
4174 (ada_add_psyms): New function.
4175 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4176 (struct add_partial_datum): New type.
4177 (ada_add_partial_symbol_completions): New function.
4178 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4179 (ada_exception_support_info_sniffer): Update.
4180 * Makefile.in (SFILES): Add psymtab.c.
4181 (COMMON_OBS): Add psymtab.o.
4182 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4184 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4186 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4188 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4191 * cp-namespace.c (cp_add_using): Deleted.
4192 (cp_add_using_directive): Use obstack allocations.
4193 Merged the function cp_add_using into this one.
4194 Added 'struct obstack *' argument.
4195 (cp_scan_for_anonymous_namespaces): Updated.
4196 * cp-support.h: Updated.
4197 * dwarf2read.c (read_import_statement): Updated.
4198 (read_namespace): Updated.
4200 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4202 * windows-nat.c (cygwin_conv_path): Remove old macro.
4204 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4206 * breakpoint.c (condition_command): Handle watchpoint conditions.
4207 (is_hardware_watchpoint): Add comment.
4208 (is_watchpoint): New.
4209 (update_watchpoint): Don't reparse the watchpoint's condition
4212 (watchpoint_check): Use it.
4213 (bpstat_check_watchpoint): Handle it.
4214 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4215 conditions in a frame where it makes sense.
4216 (watch_command_1): Store the innermost block of the condition
4218 (delete_breakpoint): Delete the watchpoint condition expression.
4219 * breakpoint.h (struct bp_location) <cond>: Update comment.
4220 (struct breakpoint): New field `cond_exp_valid_block'.
4222 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4224 Adjust handling of Ada DIEs after dwarf2_physname patch.
4225 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4227 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4228 Pierre Muller <muller@ics.u-strasbg.fr>
4230 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4231 from/to posix/win32.
4232 (windows_make_so): Use non-Cygwin 1.7 specific function.
4233 (windows_create_inferior): Make sure that cygallargs points to
4234 original args in non Cygwin 1.7. case.
4236 2010-03-09 Michael Snyder <msnyder@vmware.com>
4238 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4239 after target_read_memory to get host byte order.
4240 (i386_process_record): Ditto.
4242 2010-03-09 Keith Seitz <keiths@redhat.com>
4244 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4245 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4246 print out const or volatile qualifiers, too.
4247 (c_type_print_args): Add parameters show_artificial and language.
4248 Skip artificial parameters when requested.
4249 Use the appropriate language printer.
4250 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4251 parameters and pass language_c.
4252 * dwarf2read.c (die_list): New file global.
4253 (struct partial_die_info): Update comments for name field.
4254 (pdi_needs_namespace): Renamed to ...
4255 (die_needs_namespace): ... this. Rewrite.
4256 (dwarf2_linkage_name): Remove.
4257 (add_partial_symbol): Do not predicate the call to
4258 partial_die_full_name based on pdi_needs_namespace.
4259 Remove call to cp_check_possible_namespace_symbols and associated
4261 (guess_structure_name): Do not inspect child subprogram DIEs.
4262 (dwarf2_fullname): Update comments.
4263 Use die_needs_namespace to assist in computing the name.
4264 (read_func_scope): Use dwarf2_name to get the DIE's name.
4265 Use dwarf2_physname to get the "linkage name" of the DIE.
4266 (dwarf2_add_member_field): Use dwarf2_physname instead of
4267 dwarf2_linkage_name.
4268 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4269 (determine_class): Remove.
4270 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4272 (new_symbol): Unconditionally call dwarf2_name.
4273 Compute the "linkage name" using dwarf2_physname.
4274 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4275 When determining to scan for anonymous C++ namespaces, ignore
4277 (dwarf2_physname): New function.
4278 (dwarf2_full_name): Move content to new function and call
4280 (dwarf2_compute_name): "New" function.
4281 (_initialize_dwarf2_read): Initialize die_list.
4282 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4284 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4285 without a demangled name.
4286 Print out type information for non-virtual methods.
4287 * linespec.c (decode_line_1): Force ANY string using "::" (or
4288 "." for java) to use decode_compound, and clean up any stray quoting.
4289 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4290 (decode_compound): Stop consuming at an open parenthesis.
4291 Keep template parameters.
4292 Keep any overload information.
4293 Keep keywords like "const".
4294 Remove paren_pointer.
4295 Move is_quoted check from set_flags to here.
4296 Remove #if 0 code from 2000. Ten years is long enough.
4297 (find_method): Before comparing symbol names, canonicalize the string
4299 If a specific overload is requested, find it. Otherwise throw an error.
4300 (find_method_overload_end): New function.
4301 (set_flags): Remove.
4302 (decode_compound): Assume that parentheses are matched.
4304 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4306 * linespec.c (decode_line_1): Keep important keywords like
4307 "const" and "volatile".
4308 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4309 * typeprint.h (c_type_print_args): Add declaration.
4310 * ui-file.c (do_ui_file_obsavestring): New function.
4311 (ui_file_obsavestring): New function.
4312 * ui-file.h (ui_file_obsavestring): Add declaration.
4313 * valops.c (find_overload_match): Resolve the object to
4315 If the object is a data member, search the object for the member
4316 and return with staticp set.
4317 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4318 Do not attempt to extract a function name from non-function types.
4319 If the extracted function name and the original name are the same,
4320 we don't have a C++ method.
4322 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4323 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4325 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4326 and arguments from symbol lookups.
4327 * ax-gdb.c (gen_expr): Likewise.
4328 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4329 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4330 lookup_possible_namespace_symbol): Likewise.
4331 * cp-support.c (read_in_psymtabs): Likewise.
4332 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4333 * language.h (la_lookup_symbol_nonlocal): Likewise.
4334 * scm-valprint.c (scm_inferior_print): Likewise.
4335 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4336 * solib-svr.c (elf_lookup_lib): Likewise.
4337 * solib.c (show_auto_solib_add): Likewise.
4338 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4339 * symmisc.c (maintenance_check_symtabs): Likewise.
4340 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4341 lookup_symbol_aux_local, lookup_symbol_aux_block,
4342 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4343 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4344 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4345 basic_lookup_transparent_type, find_main_psymtab,
4346 lookup_block_symbol): Likewise.
4347 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4348 lookup_symbol_global, lookup_symbol_aux_block,
4349 lookup_symbol_partial_symbol, lookup_block_symbol,
4350 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4352 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4354 * python/python-internal.h: Include symtab.h.
4356 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4357 Pierre Muller <muller@ics.u-strasbg.fr>
4359 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4360 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4363 2010-03-08 Tom Tromey <tromey@redhat.com>
4365 * breakpoint.c (breakpoint_1): Add "QUIT".
4367 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4368 Pedro Alves <pedro@codesourcery.com>
4370 * solib.c (solib_find): Replace extension if
4371 solib_symbols_extension is set in the target gdbarch.
4372 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4373 solib_symbols_extension to "sym".
4374 * gdbarch.sh (solib_symbols_extension): New variable.
4375 (pstring): New function.
4376 * gdbarch.h, gdbarch.c: Regenerate.
4378 2010-03-08 Tom Tromey <tromey@redhat.com>
4382 * utils.c: Include main.h.
4383 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4384 (defaulted_query): Use default answer if `batch_flag'.
4385 * main.h (batch_flag): Declare.
4386 * main.c (batch_flag): New global.
4387 (captured_main): Remove 'batch'. Update.
4389 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4391 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4394 * remote-mips.c (rockhopper_ops): New target_ops struct.
4395 (MON_ROCKHOPPER): New mips_monitor_type.
4396 (read_hex_value): New function.
4397 (mips_request): Send 8-byte values with a 'T' packet. Read the
4398 packet argument as a string and use read_hex_value to parse it.
4399 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4400 (rockhopper_open): New function.
4401 (mips_wait): Read the PC, FP and SP fields as strings. Use
4402 read_hex_value to parse them and mips_set_register to commit them.
4403 (mips_set_register): New function.
4404 (mips_fetch_registers): Do not cast register value to "unsigned"
4405 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4406 (mips_store_registers): Use a 'T' packet to set registers when
4407 using MON_ROCKHOPPER.
4408 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4409 and expect the total to be printed before the entry address.
4410 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4412 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4414 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4415 Change return value to int. Store value fetched in location
4416 addressed by `val'. Use function's return value as success
4417 or failure indicator. Adjust all callers.
4419 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4421 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4423 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4424 Hui Zhu <teawater@gmail.com>
4426 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4427 tmp_to_stopped_data_address.
4428 (record_open): Reset tmp_to_stopped_by_watchpoint and
4429 tmp_to_stopped_data_address.
4430 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4431 to_stopped_data_address.
4433 2010-03-08 Hui Zhu <teawater@gmail.com>
4435 * i386-tdep.c (i386_process_record): Initialize regnum.
4437 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4439 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4440 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4442 2010-03-08 Joel Brobecker <brobecker@adacore.com>
4444 Memory error when reading wrong core file.
4445 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4446 errors while reading the inferior memory, and return zero if
4447 an exception was raised.
4449 2010-03-07 Michael Snyder <msnyder@vmware.com>
4451 * record.c (record_restore): Rename tmpu8 to rectype.
4453 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4454 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4456 (i386_record_push): Rename local tmpulongest to addr.
4458 (i386_process_record): Rename local tmpulongest to addr.
4460 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4463 Rename local variable tmpu8 to opcode8 and regnum.
4465 2010-03-07 Joel Brobecker <brobecker@adacore.com>
4467 * remote.c (remote_get_ada_task_ptid): New function.
4468 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
4470 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4472 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4473 block. Define helper macros to reduce ifdefs in code.
4474 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4475 size. Call unadorned GetModuleFileNameEx rather than
4476 GetModuleFileNameEx*.
4477 (windows_make_so): Use __PMAX to denote maximum buffer size and
4478 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4480 (get_image_name): Use __PMAX to denote maximum buffer size.
4481 (handle_load_dll): Likewise.
4482 (windows_pid_to_exec_file): Likewise.
4483 (windows_create_inferior): Add many accommodations for older Cygwin and
4485 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4486 __USEWIDE conditional.
4487 (bad_GetModuleFileNameExA): Likewise.
4488 (_initialize_loadable): Just use real function names without the dyn_
4489 part since they are defined earlier.
4491 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
4492 Tom Tromey <tromey@redhat.com>
4494 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4495 (parse_escape): Likewise.
4496 * python/py-utils.c (unicode_to_target_string): Update.
4497 (unicode_to_target_python_string): Update.
4498 (target_string_to_unicode): Update.
4499 * printcmd.c (printf_command): Update.
4500 * p-exp.y (yylex): Update.
4501 * objc-exp.y (yylex): Update.
4502 * mi/mi-parse.c: Include charset.h.
4503 (mi_parse_escape): New function.
4504 (mi_parse_argv): Use it.
4505 * jv-exp.y (yylex): Update.
4506 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4508 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4509 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4510 * gdbarch.c: Rebuild.
4511 * gdbarch.h: Rebuild.
4512 * defs.h (parse_escape): Update.
4513 * cli/cli-setshow.c: Include arch-utils.h.
4514 (do_setshow_command): Update.
4515 * cli/cli-cmds.c (echo_command): Update.
4516 * charset.h (target_charset, target_wide_charset): Update.
4517 * charset.c: Include arch-utils.h.
4518 (target_charset_name): Default to "auto".
4519 (target_wide_charset_name): Likewise.
4520 (show_target_charset_name): Handle "auto".
4521 (show_target_wide_charset_name): Likewise.
4522 (be_le_arch): New global.
4523 (set_be_le_names): Add 'gdbarch' argument.
4524 (validate): Likewise. Don't call set_be_le_names.
4525 (set_charset_sfunc, set_host_charset_sfunc)
4526 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4528 (target_charset): Add 'gdbarch' argument.
4529 (target_wide_charset): Likewise. Remove 'byte_order' argument.
4530 (auto_target_charset_name): New global.
4531 (default_auto_charset, default_auto_wide_charset): New functions.
4532 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
4533 for target charsets. Copy result of nl_langinfo. Use GetACP if
4535 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4536 remove 'byte_order' argument. Update.
4537 (classify_type): Likewise.
4538 (c_emit_char): Update.
4539 (c_printchar): Update.
4540 (c_printstr): Update.
4541 (c_get_string): Update.
4542 (evaluate_subexp_c): Update.
4543 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4545 * python/python.c (gdbpy_target_charset): New function.
4546 (gdbpy_target_wide_charset): Likewise.
4547 (GdbMethods): Update.
4550 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4552 * symfile.c (build_section_addr_info_from_objfile): Do not mask
4553 off high address bits.
4555 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4557 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4558 address as UnsignedLongLong, not LongLong.
4560 2010-03-05 Kevin Buettner <kevinb@redhat.com>
4561 Pedro Alves <pedro@codesourcery.com>
4563 * remote-mips.c (gdbthread.h): Include.
4564 (remote_mips_ptid): Declare.
4565 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4566 (common_open): Set inferior_ptid, add it as an inferior, and
4567 as a thread too. Delete FIXME comment regarding start_remote().
4568 (mips_close): Invoke generic_mourn_inferior().
4569 (mips_kill): Make sure that target_mourn_inferior is invoked.
4570 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4571 it's now invoked from mips_close().
4572 (mips_load): Don't null out inferior_ptid. Don't call
4573 clear_symtab_users().
4574 (mips_thread_alive, mips_pid_to_str): New functions.
4575 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
4576 to_thread_alive and to_pid_to_str operations.
4578 2010-03-04 Tom Tromey <tromey@redhat.com>
4580 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4581 in DWARF 3 and later.
4582 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4584 2010-03-04 Keith Seitz <keiths@redhat.com>
4586 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4587 If the filename portion of the linespec was quoted, recheck the
4588 remainder for additional quoting.
4589 (locate_first_half): Skip over completer chars, too.
4591 2010-03-04 Tom Tromey <tromey@redhat.com>
4593 * printcmd.c (printf_command): Pass dummy argument to
4596 2010-03-04 Doug Evans <dje@google.com>
4598 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4601 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4603 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4605 * breakpoint.c (update_watchpoint): Create a sentinel location if
4606 the software watchpoint isn't watching any memory.
4607 (breakpoint_address_bits): Skip dummy software watchpoint locations.
4609 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4611 * utils.c (fputs_maybe_filtered): Check if there's already a top
4612 level interpreter before dereferencing it. If there isn't one,
4613 don't paginate either.
4615 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4617 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4618 the state right when single stepping.
4619 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4620 Get the next PC along with the instruction state.
4621 (thumb_get_next_pc): Remove.
4622 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4624 2010-03-04 Hui Zhu <teawater@gmail.com>
4626 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4628 2010-03-03 Pedro Alves <pedro@codesourcery.com>
4630 * utils.c (fputs_maybe_filtered): Always disable pagination if the
4631 top level interpreter is MI.
4633 2010-03-03 Stan Shebs <stan@codesourcery.com>
4635 * remote.c (remote_download_tracepoint): Iterate over locations.
4636 * tracepoint.c (validate_actionline): Ditto.
4637 (encode_actions): Add location argument.
4638 (trace_dump_command): Check all locations to see if stepping
4641 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
4642 Eli Zaretskii <eliz@gnu.org>
4644 * NEWS: Add X86 general purpose registers section.
4646 2010-03-03 Tom Tromey <tromey@redhat.com>
4649 * varobj.c (install_new_value): Handle case where new print_value
4652 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
4655 * printcmd.c (printf_command): Print end of format string using
4658 2010-03-02 Tom Tromey <tromey@redhat.com>
4660 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4661 * defs.h (read_command_lines_1): Add missing 'void'.
4662 * cli/cli-script.c (recurse_read_control_structure): Add missing
4664 (read_next_line): Likewise.
4665 (read_command_lines_1): Likewise.
4667 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4669 * spu-tdep.c (spu_analyze_prologue): Track instruction to
4670 store backchain as part of prologue.
4672 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4674 * progspace.c (update_address_spaces): Update inferior address spaces
4677 2010-03-02 Doug Evans <dje@google.com>
4679 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4680 lowpc,highpc args to addrmap_set_empty.
4682 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
4684 * amd64-tdep.c (amd64_byte_names): New.
4685 (amd64_word_names): Likewise.
4686 (amd64_dword_names): Likewise.
4687 (amd64_pseudo_register_name): Likewise.
4688 (amd64_pseudo_register_read): Likewise.
4689 (amd64_pseudo_register_write): Likewise.
4690 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4691 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
4692 set_gdbarch_pseudo_register_write and
4693 set_tdesc_pseudo_register_name. Don't call
4694 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
4696 * i386-tdep.c (i386_num_mmx_regs): Removed.
4697 (i386_num_pseudo_regs): Likewise.
4698 (i386_byte_names): New.
4699 (i386_word_names): Likewise.
4700 (i386_byte_regnum_p): Likewise.
4701 (i386_word_regnum_p): Likewise.
4702 (i386_mmx_regnum_p): Updated.
4703 (i386_pseudo_register_name): Make it global. Handle byte and
4704 word pseudo-registers.
4705 (i386_pseudo_register_read): Likewise.
4706 (i386_pseudo_register_write): Likewise.
4707 (i386_pseudo_register_type): Handle byte, word and dword
4709 (i386_register_reggroup_p): Don't include pseudo
4710 registers, except for MXX, in any register groups. Don't
4711 include pseudo byte, word, dword registers in general_reggroup.
4712 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4713 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
4714 pseudo-registers after word pseudo-registers. Call
4715 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4717 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4718 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4720 (i386_byte_regnum_p): New.
4721 (i386_word_regnum_p): Likewise.
4722 (i386_dword_regnum_p): Likewise.
4723 (i386_pseudo_register_name): Likewise.
4724 (i386_pseudo_register_read): Likewise.
4725 (i386_pseudo_register_write): Likewise.
4727 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4729 * target-descriptions.c (tdesc_type): Remove
4730 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4731 (tdesc_predefined_types): Likewise.
4732 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
4733 if flag name is empty.
4734 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4736 * features/i386/32bit-core.xml: Define i386_eflags.
4737 * features/i386/64bit-core.xml: Likewise.
4739 * features/i386/32bit-sse.xml: Define i386_mxcsr.
4740 * features/i386/64bit-sse.xml: Likewise.
4742 * features/i386/amd64-linux.c: Regenerated.
4743 * features/i386/amd64.c: Likewise.
4744 * features/i386/i386-linux.c: Likewise.
4745 * features/i386/i386.c: Likewise.
4747 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
4749 * gdbtypes.c (append_composite_type_field_raw): New.
4750 (append_composite_type_field_aligned): Use the new function.
4751 * gdbtypes.h (append_composite_type_field_raw): Declare.
4752 * target-descriptions.c (struct tdesc_type_field): Add start and end.
4753 (struct tdesc_type_flag): New type.
4754 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4755 kind. Add size to u.u. Add u.f for flags.
4756 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4757 (tdesc_free_type): Likewise.
4758 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4759 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4760 (tdesc_add_bitfield, tdesc_add_flag): New.
4761 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4762 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4763 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4764 current_type. Add current_type_size and current_type_is_flags.
4765 (tdesc_start_union): Clear the new fields.
4766 (tdesc_start_struct, tdesc_start_flags): New.
4767 (tdesc_start_field): Handle struct fields, including bitfields.
4768 (field_attributes): Make type optional. Add start and end.
4769 (union_children): Rename to struct_union_children.
4770 (union_attributes): Rename to struct_union_attributes. Add optional
4772 (flags_attributes): New.
4773 (feature_children): Add struct and flags.
4774 * features/gdb-target.dtd: Add flags and struct to features.
4775 Make field type optional. Add field start and end.
4777 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
4779 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4780 (amd64_linux_read_description): Likewise.
4781 (_initialize_amd64_linux_nat): Set to_read_description to
4782 amd64_linux_read_description.
4784 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4785 (amd64_linux_register_name): Removed.
4786 (amd64_linux_register_type): Likewise.
4787 (amd64_linux_core_read_description): New.
4788 (amd64_linux_init_abi): Set target description to
4789 tdesc_amd64_linux if needed. Support orig_rax in target
4790 description. Don't call set_gdbarch_register_name nor
4791 set_gdbarch_register_type. Call
4792 set_gdbarch_core_read_description.
4793 (_initialize_amd64_linux_tdep): Call
4794 initialize_tdesc_amd64_linux.
4796 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4798 * amd64-tdep.c: Include "features/i386/amd64.c".
4799 (amd64_register_names): Removed.
4800 (amd64_register_name): Likewise.
4801 (amd64_register_type): Likewise.
4802 (amd64_init_abi): Set num_core_regs and register_names. Set
4803 target description to tdesc_amd64 if needed. Don't call
4804 set_gdbarch_register_name nor set_gdbarch_register_type.
4805 (_initialize_amd64_tdep): New.
4807 * i386-linux-nat.c (i386_linux_read_description): New.
4808 (_initialize_i386_linux_nat): Set to_read_description to
4809 i386_linux_read_description.
4811 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4812 (i386_linux_register_name): Removed.
4813 (i386_linux_core_read_description): New.
4814 (i386_linux_read_description): Likewise.
4815 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4816 Set target description to tdesc_i386_linux if needed. Support
4817 orig_eax. Set register_reggroup_p. Call
4818 set_gdbarch_core_read_description.
4819 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4821 * i386-linux-tdep.h (tdesc_i386_linux): New.
4823 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4826 * i386-tdep.c: Include "features/i386/i386.c".
4827 (i386_register_names): Make it const.
4828 (i386_mmx_names): Likewise.
4829 (i386_num_register_names): Removed.
4830 (i386_register_name): Likewise.
4831 (i386_eflags_type): Likewise.
4832 (i386_mxcsr_type): Likewise.
4833 (i386_sse_type): Likewise.
4834 (i386_register_type): Likewise.
4835 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4836 (i386_pseudo_register_name): New.
4837 (i386_pseudo_register_type): Likewise.
4838 (i386_mmx_type): Make it static.
4839 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
4840 I387_NUM_REGS. Set num_core_regs and register_names. Don't
4841 call set_gdbarch_register_name nor set_gdbarch_register_type.
4842 Set register_reggroup_p. Set target description to tdesc_i386
4843 if needed. Call set_tdesc_pseudo_register_type,
4844 set_tdesc_pseudo_register_name and tdesc_use_registers.
4845 (_initialize_i386_tdep): Call initialize_tdesc_i386.
4846 initialize_tdesc_x86_64.
4848 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4849 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
4850 register_names, tdesc and register_reggroup_p.
4851 (I386_NUM_FREGS): Removed.
4852 (i386_eflags_type): Likewise.
4853 (i386_mxcsr_type): Likewise.
4854 (i386_mmx_type): Likewise.
4855 (i386_sse_type): Likewise.
4856 (i386_register_name): Likewise.
4857 (i386_regnum): Add I386_MXCSR_REGNUM.
4858 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4860 * i387-tdep.h (I387_NUM_REGS): New.
4862 * regformats/i386/i386-linux.dat: Generated.
4863 * regformats/i386/i386.dat: Likewise.
4864 * regformats/i386/amd64-linux.dat: Likewise.
4865 * regformats/i386/amd64.dat: Likewise.
4867 * regformats/reg-i386-linux.dat: Removed.
4868 * regformats/reg-i386.dat: Likewise.
4869 * regformats/reg-x86-64-linux.dat: Likewise.
4870 * regformats/reg-x86-64.dat: Likewise.
4872 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
4874 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4875 cygwin_conv_path API rather than the deprecated
4876 cygwin_conv_to_full_posix_path.
4878 (GetModuleFileNameExA): Undefine for Cygwin.
4879 (GetModuleFileNameExW): Define for Cygwin.
4880 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4881 Call GetModuleFileNameExW and convert path to POSIX using
4883 (windows_make_so): Always define p. Drop unused variable m.
4884 Don't use Win32 functions to check file existance, rather use
4885 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
4886 Use canonicalize_file_name to get full path.
4887 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4888 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
4889 use correct target buffer size in call to WideCharToMultiByte.
4890 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4891 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4892 (windows_create_inferior): Convert all paths and arguments to wchar_t
4893 and use CreateProcessW on Cygwin.
4894 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4895 (bad_GetModuleFileNameExA): Undefine for Cygwin.
4896 (bad_GetModuleFileNameExW): Define for Cygwin.
4897 (_initialize_loadable): Load GetModuleFileNameExW into
4898 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
4900 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
4903 * python/py-frame.c (frapy_read_var): Add block argument and logic
4904 to cope with user provided blocks.
4906 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4908 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4911 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
4913 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4914 (COMMON_OBS): ... to here since it's used unconditionally.
4915 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4918 2010-02-26 David Daney <ddaney@caviumnetworks.com>
4920 * mips-linux-tdep.c: Update struct sigframe comments.
4921 (SIGFRAME_CODE_OFFSET): Delete macro.
4922 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4924 (mips_linux_n32n64_sigframe_init): Same.
4926 2010-02-26 Kevin Buettner <kevinb@redhat.com>
4928 * remote-mips.c (mips_load): Don't use pseudo-register when
4929 invalidating regcache.
4931 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4933 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4935 2010-02-26 Pedro Alves <pedro@codesourcery.com>
4937 * NEWS: Add "New targets" section, and mention ARM Symbian
4940 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
4942 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
4943 add ADDR_SIZE member.
4944 (allocate_piece_closure): Update.
4945 (copy_pieced_value_closure): Likewise.
4946 (dwarf2_evaluate_loc_desc): Likewise.
4947 (read_pieced_value): Use DWARF address size instead of
4948 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
4950 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
4951 Tom Tromey <tromey@redhat.com>
4953 * python/py-type.c (typy_lookup_typename): Add in block argument.
4954 If provided restrict lookup to specified blocks.
4955 (gdbpy_lookup_type): Likewise.
4956 (typy_lookup_type): Likewise.
4958 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
4963 * arm-symbian-tdep.c: New.
4964 * configure.tgt (arm*-*-symbianelf*): New target.
4965 (*-*-symbianelf*): New OS.
4966 * osabi.c (gdb_osabi_names): Add Symbian.
4967 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
4968 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
4969 (ALLDEPFILES): Add arm-symbian-tdep.c.
4971 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
4973 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
4975 2010-02-24 Pedro Alves <pedro@codesourcery.com>
4977 * mi/mi-main.c (mi_cmd_execute): Fix typo.
4979 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
4980 Tom Tromey <tromey@redhat.com>
4981 Thiago Jung Bauermann <bauerman@br.ibm.com>
4983 * python/python.c (_initialize_python): Call
4984 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
4985 gdbpy_initialize_blocks.
4986 * python/python-internal.h: Declare struct symbol, block and
4987 symtab_and_line. Declare block_object_type and
4989 (gdbpy_lookup_symbol gdbpy_block_for_pc)
4990 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
4991 (symbol_to_symbol_object, block_to_block_object)
4992 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
4993 (gdbpy_initialize_blocks ): Declare.
4994 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
4995 (frapy_select): Add methods.
4996 (frapy_read_var): Add symbol branch.
4997 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
4999 (SUBDIR_PYTHON_SRCS): Likewise.
5000 (py-symbol.o): New rule.
5001 (py-symtab.o): Likewise.
5002 (py-block.o): Likewise.
5003 * python/py-symbol.c: New file.
5004 * python/py-symtab.c: Likewise.
5005 * python/py-block.c: Likewise.
5007 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5011 * inferior.h (prepare_for_detach): Declare.
5012 (struct inferior) <detaching>: New field.
5013 * infrun.c (prepare_for_detach): New.
5014 (handle_inferior_event) <random signal>: Don't stop if detaching.
5015 * target.c (target_detach): Call prepare_for_detach.
5017 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5019 Per-process displaced stepping queue.
5021 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5022 (displaced_step_gdbarch, displaced_step_closure,
5023 (displaced_step_original, displaced_step_copy): Move globals to
5025 (struct displaced_step_inferior_state): ... new structure.
5026 (displaced_step_inferior_states): New global.
5027 (get_displaced_stepping_state, add_displaced_stepping_state)
5028 (remove_displaced_stepping_state, infrun_inferior_exit): New
5030 (displaced_step_clear): Add displaced_step_inferior_state
5031 parameter, and adjust to handle it.
5032 (displaced_step_clear_cleanup): Parameter is now a
5033 displaced_step_inferior_state. Adjust.
5034 (displaced_step_prepare): Adjust.
5035 (displaced_step_fixup, displaced_step_fixup)
5036 (infrun_thread_ptid_changed, resume): Adjust.
5037 (init_wait_for_inferior): Don't call displaced_step_clear.
5038 (infrun_thread_stop_requested): Rewrite.
5039 (_initialize_infrun): Install infrun_inferior_exit as
5040 inferior_exit observer.
5042 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5044 * inferior.h (ptid_match): Declare.
5045 * infrun.c (ptid_match): New.
5046 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5047 (handle_notification): Add debug output.
5048 * linux-nat.c (ptid_match): Delete.
5050 2010-02-24 David S. Miller <davem@davemloft.net>
5052 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5053 * syscalls/sparc-linux.xml: New.
5054 * syscalls/sparc64-linux.xml: New.
5055 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5056 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5057 (sparc32_linux_get_syscall_number): New function.
5058 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5059 syscall number fetcher.
5060 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5061 (sparc64_linux_get_syscall_number): New function.
5062 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5063 syscall number fetcher.
5065 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5069 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5070 * inferior.c (add_inferior_silent): Notify inferior_added
5072 (delete_inferior_1): Notify inferior_removed observer.
5073 (exit_inferior_1): Pass inferior, not pid, to observer.
5074 (inferior_appeared): Likewise.
5075 (add_inferior_with_spaces): New.
5076 (add_inferior_command): Use the above.
5077 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5080 * inflow.c (inflow_inferior_exit): Likewise.
5081 * jit.c (jit_inferior_exit_hook): Likewise.
5083 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5085 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5086 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5087 (report_initial_inferior): New.
5088 (mi_inferior_removed): Register the above. Make sure
5089 inferior_added observer is called on the first inferior.
5090 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5091 inferior number, not pid.
5092 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5094 * mi/mi-main.c (current_context): New.
5095 (proceed_thread_callback): Use typed closure.
5096 Proceed everything if pid is 0. Most implementation split into
5097 (proceed_thread): ... this.
5098 (run_one_inferior): New.
5099 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5100 Adjust for multiexec behaviour.
5101 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5102 (mi_cmd_execute): Handle the 'thread-group' option here.
5103 Do some extra checks.
5104 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5106 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5108 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5110 Make -exec-run a proper MI commands.
5112 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5113 * mi/mi-cmds.c (mi_cmds): Adjust.
5114 * mi/mi-main.c (mi_cmd_exec_run): New.
5116 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5117 Stan Shebs <stan@codesourcery.com>
5119 * tracepoint.h (set_traceframe_number)
5120 (cleanup_restore_current_traceframe): Declare.
5121 * tracepoint.c (set_traceframe_number): New.
5122 (struct current_traceframe_cleanup): New.
5123 (do_restore_current_traceframe_cleanup)
5124 (restore_current_traceframe_cleanup_dtor)
5125 (make_cleanup_restore_current_traceframe): New.
5126 * infrun.c: Include tracepoint.h.
5127 (fetch_inferior_event): Switch out and in of tfind mode.
5129 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5131 * breakpoint.c (breakpoint_init_inferior): Also delete
5132 bp_shlib_event breakpoints.
5133 * solib-frv.c (enable_break): Remove call to
5134 remove_solib_event_breakpoints.
5135 * solib-svr4.c (enable_break): Ditto.
5136 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5137 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5138 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5139 * solib-spu.c (spu_enable_break): Ditto.
5141 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5143 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5145 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5147 * varobj.c (varobj_update): Avoid non-constants in initializers.
5149 2010-02-23 Tom Tromey <tromey@redhat.com>
5151 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5152 handle big-endian values.
5153 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5155 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5160 * breakpoint.c (insert_bp_location): If inserting the read
5161 watchpoint failed, fallback to an access watchpoint.
5162 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5163 if the value changed, if not watching the same memory for writes.
5164 (watchpoint_locations_match): Add comment.
5165 (update_global_location_list): Copy the location's watchpoint type.
5166 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5167 handle read watchpoints here.
5168 (i386_insert_watchpoint): Read watchpoints aren't supported.
5169 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5171 * target.h (target_insert_watchpoint): Update description.
5173 2010-02-19 Tom Tromey <tromey@redhat.com>
5175 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5176 * m2-typeprint.c (m2_print_type): Update.
5177 * gdbtypes.c (recursive_dump_type): Update.
5178 (copy_type_recursive): Update.
5179 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5180 (c_type_print_base): Update.
5181 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5183 (struct cplus_struct_type) <ntemplate_args>: Remove.
5184 <struct template_arg>: Remove.
5185 <is_dynamic>: Move earlier.
5186 (TYPE_TEMPLATE_ARGS): Remove.
5187 (TYPE_NTEMPLATE_ARGS): Remove.
5188 (TYPE_TEMPLATE_ARG): Remove.
5190 2010-02-19 Tom Tromey <tromey@redhat.com>
5192 PR c++/8693, PR c++/9496:
5193 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5194 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5195 write_dollar_variable. Don't try to classify NAME tokens.
5196 (token_and_value): New type.
5197 (token_fifo, popping, name_obstack): New globals.
5198 (classify_name): New function.
5199 (classify_inner_name): Likewise.
5201 (VARIABLE): Now has type sval.
5202 (exp : VARIABLE): Call write_dollar_variable.
5203 (qualified_name): Use TYPENAME, not typebase. Add production for
5204 multiple "::" instances.
5205 (variable): Use name_not_typename.
5206 (qualified_type): Remove.
5209 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5212 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5213 found by bfd_get_section_by_name.
5214 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5216 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5218 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5219 7.0 section" into "Changes in 7.1".
5221 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5223 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5224 * version.in: Bump version to 7.1.50.20100219-cvs.
5226 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5228 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5229 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5231 2010-02-17 Tom Tromey <tromey@redhat.com>
5233 * NEWS: Add Python API Improvements section.
5235 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5237 * NEWS: Correct typo.
5239 2010-02-17 Tom Tromey <tromey@redhat.com>
5241 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5243 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5245 * symfile.c (build_section_addr_info_from_objfile): Include sections
5246 only if they are SEC_ALLOC or SEC_LOAD.
5248 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5251 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5252 of ULONGEST for address size.
5254 2010-02-17 Tom Tromey <tromey@redhat.com>
5256 * NEWS: Add C++ improvements section.
5258 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5260 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5261 PyThreadState_Swap): Avoid "statement with no effect" warning.
5263 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5265 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5266 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5268 2010-02-17 Tristan Gingold <gingold@adacore.com>
5269 Petr Hluzin <petr.hluzin@gmail.com>
5271 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5272 gdb_assert. Fix info->size for SIG prologue.
5274 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5276 * infcmd.c (show_inferior_tty_command): Check for NULL.
5277 Correct output message.
5279 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5281 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5282 FUNCTION contains parentheses. Improve removal of a trailing
5285 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5287 * gcore.c (do_bfd_delete_cleanup): New function.
5288 (gcore_command): Use it. Discard the cleanup after success.
5289 (gcore_copy_callback): Delete dead code.
5291 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5293 * symfile.c (addr_info_make_relative): Always use
5294 find_lowest_section.
5296 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5298 * NEWS: Added entry for namespace fixes.
5300 2010-02-15 Tom Tromey <tromey@redhat.com>
5302 * dwarf2read.c (guess_structure_name): Allocate name on the
5305 2010-02-15 Tom Tromey <tromey@redhat.com>
5307 * c-typeprint.c (c_type_print_base): Reverse order of test.
5309 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5311 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5312 initialize it from ELF BFD. Extend the prelink condition by it.
5314 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5316 * defs.h (parse_pid_to_attach): New.
5317 * utils.c (parse_pid_to_attach): New.
5318 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5319 * gnu-nat.c (gnu_attach): Likewise.
5320 * nto-procfs.c (procfs_attach): Likewise.
5321 * procfs.c (procfs_attach): Likewise.
5322 * windows-nat.c (windows_attach): Likewise.
5323 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5324 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5325 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5328 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5330 * MAINTAINERS: Add myself for write after approval privileges.
5332 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5334 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5337 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5339 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5340 only if INFO_VERBOSE.
5342 2010-02-12 Tomas Holmberg <th@virtutech.com>
5344 * mi/mi-main.c: Added the --reverse flag to the following MI
5345 commands: exec-continue, exec-finish, exec-next, exec-step,
5346 exec-next-instruction, exec-step-instruction. This is to
5347 support reverse execution over the MI interface to gdb.
5349 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5351 * tracepoint.c (_initialize_tracepoint): Specify that the address
5352 range of `tfind outsize' is exclusive, and that the address range
5353 of `tfind range' is inclusive, in the commands' help strings.
5355 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5357 Spurious "dll not found" error messages on x64-windows.
5358 * windows-nat.c: Add include of complaints.h.
5359 (handle_unload_dll): Change dll-not-found error into a complaint.
5361 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5363 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5364 bp_tracepoint and bp_fast_tracepoint, not
5365 bp_loc_software_breakpoint.
5366 (update_global_location_list): Tracepoints are never duplicates of
5369 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5371 * breakpoint.c (break_command_really): Change return type to int.
5372 Return false if no breakpoint was created, true otherwise.
5373 (trace_command): Don't set the tracepoint count if no tracepoint
5375 (ftrace_command): Ditto.
5376 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5377 created in the breakpoints table.
5379 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5380 Ulrich Weigand <uweigand@de.ibm.com>
5382 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5384 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5386 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5387 the offset value isn't of integral type.
5389 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5391 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5394 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5396 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5397 non-subscriptable types.
5398 * valarith.c (binop_types_user_defined_p): New, abstracted out
5400 (binop_user_defined_p): ... this.
5401 * value.h (binop_types_user_defined_p): Declare.
5403 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5405 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5406 Merge uploaded TSVs before merging uploaded tracepoints.
5408 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5410 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5412 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5414 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5415 whitespace character after a dot in comment.
5416 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5418 (list_args_or_locals): For the 'all' (that is
5419 -stack-list-variables) case, always output list of tuples.
5420 Output 'arg' field if variable is argument.
5422 2010-02-10 Tom Tromey <tromey@redhat.com>
5424 * parser-defs.h (parser_debug): Declare.
5425 * parse.c (_initialize_parse): Install "debug parser" set/show
5427 (parser_debug): New global.
5428 (show_parserdebug): New function.
5429 * c-exp.y (c_parse): Set yydebug.
5431 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5433 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5434 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5435 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5437 (tdesc_find_type): New.
5438 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5439 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5441 * target-descriptions.h (tdesc_find_type): New.
5443 2010-02-10 Michael Snyder <msnyder@vmware.com>
5445 * gdb-gdb.py: Comment fix.
5447 2010-02-09 Tristan Gingold <gingold@adacore.com>
5449 * machoread.c (macho_symfile_relocate): New function.
5450 (macho_sym_fns): Use macho_symfile_relocate instead of
5451 default_symfile_relocate.
5452 (macho_oso_data): New type.
5453 (current_oso): New variable.
5454 (macho_add_oso_symfile): Do not compute section_addr_info, but
5455 instead set vma of sections.
5456 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5457 Set and clear current_oso.
5459 2010-02-09 Joel Brobecker <brobecker@adacore.com>
5461 Wrong type description for tagged type parameter.
5462 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5463 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5464 reference to a tagged type.
5466 2010-02-09 Tristan Gingold <gingold@adacore.com>
5468 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5469 brothers of the parent.
5471 2010-02-08 Tom Tromey <tromey@redhat.com>
5475 * valops.c (search_struct_field): Make 'name' const.
5476 (search_struct_method): Likewise.
5477 (find_method_list): Make 'method' const.
5478 (value_struct_elt): Make 'name' and 'err' const.
5479 (value_find_oload_method_list): Make 'method' const.
5480 (find_overload_match): Make 'name' const.
5481 * eval.c (evaluate_subexp_standard): New locals function,
5483 <OP_FUNCALL>: Handle OP_SCOPE specially.
5485 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5487 * infrun.c (handle_inferior_event): Do not look up regcache
5488 for exited processes.
5490 2010-02-08 Chris Moller <moller@mollerware.com>
5493 * valarith.c (value_ptrdiff): Added a test for a zero type length,
5494 warn if found, and assume length = 1.
5496 2010-02-08 Chris Moller <cmoller@redhat.com>
5499 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5500 cp_print_static_field) Fix use of obstacks.
5502 2010-02-08 Pedro Alves <pedro@codesourcery.com>
5504 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5505 resumed LWPs as resumed.
5506 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5507 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5508 of throwing an internal error. If an LWP of a process we're not
5509 waiting for reports a signal, don't force collecting a SIGSTOP,
5510 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5511 go through all LWPs cancelling breakpoints in non-stop mode.
5512 (resume_stopped_resumed_lwps): New.
5513 (linux_nat_wait): Use it.
5515 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5517 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5518 i386/amd64 and i386/amd64-linux.
5519 (i386/i386-expedite): New.
5520 (i386/i386-linux-expedite): Likewise.
5521 (i386/amd64-expedite):Likewise.
5522 (i386/amd64-linux-expedite): Likewise.
5523 ($(outdir)/i386/i386-linux.dat): Likewise.
5524 ($(outdir)/i386/amd64.dat): Likewise.
5525 ($(outdir)/i386/amd64-linux.dat): Likewise.
5527 * features/i386/32bit-core.xml: New.
5528 * features/i386/32bit-linux.xml: Likewise.
5529 * features/i386/32bit-sse.xml: Likewise.
5530 * features/i386/64bit-core.xml: Likewise.
5531 * features/i386/64bit-linux.xml: Likewise.
5532 * features/i386/64bit-sse.xml: Likewise.
5533 * features/i386/i386-linux.xml: Likewise.
5534 * features/i386/i386.xml: Likewise.
5535 * features/i386/amd64-linux.xml: Likewise.
5536 * features/i386/amd64.xml: Likewise.
5537 * features/i386/i386-linux.c: Likewise.
5538 * features/i386/i386.c: Likewise.
5539 * features/i386/amd64-linux.c: Likewise.
5540 * features/i386/amd64.c: Likewise.
5542 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
5545 * cp-support.h: Added char* alias element to using_direct data
5547 (cp_add_using): Added char* alias argument.
5548 (cp_add_using_directive): Ditto.
5549 * cp-namespace.c: Updated with the above changes.
5550 (cp_lookup_symbol_imports): Check for aliases.
5551 * dwarf2read.c (read_import_statement): Figure out local alias
5552 for the import and pass it on to cp_add_using.
5553 (read_namespace): Pass alias argument to cp_add_using.
5555 2010-02-05 Hui Zhu <teawater@gmail.com>
5557 * defs.h (gdb_bfd_errmsg): New extern.
5558 * exec.c (exec_file_attach): Change bfd_errmsg to
5560 * utils.c (AMBIGUOUS_MESS1): New macro.
5561 (AMBIGUOUS_MESS2): New macro.
5562 (gdb_bfd_errmsg): New function.
5564 2010-02-04 Doug Evans <dje@google.com>
5566 * solib-svr4.c (enable_break): Add comment.
5568 2010-02-04 Anthony Green <green@moxielogic.com>
5570 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5573 2010-02-04 Tom Tromey <tromey@redhat.com>
5575 * valops.c (search_struct_field): Account for
5576 value_embedded_offset. Fix check for virtual base past the end of
5577 the object. Use value_copy when making a slice of the value.
5579 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5582 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5583 only if gdb_stdout is a tty.
5585 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5587 * target-descriptions.c: Include "osabi.h".
5588 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5591 2010-02-04 Tristan Gingold <gingold@adacore.com>
5593 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5594 (macho_symtab_read): Adjust calls to macho_add_oso.
5595 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5596 (macho_symfile_read): Adjust call to macho_oso_symfile.
5597 (macho_new_init): Move this function after declarations.
5598 (macho_symfile_init): Ditto.
5599 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5600 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5602 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
5604 Include MI command in remotelog.
5606 * mi/mi-main.c (mi_execute_command): Call target_log_command.
5608 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5610 * remote.c (remote_state): Remove gdbarch.
5611 (init_remote_state): Don't set gdbarch.
5612 (remote_query_supported): Pass target_gdbarch instead of
5613 rs->gdbarch to gdbarch_qsupported.
5615 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5617 * gdbarch.sh: Add qsupported.
5619 * gdbarch.c: Regenerated.
5620 * gdbarch.h: Likewise.
5622 * remote.c (remote_state): Add gdbarch.
5623 (init_remote_state): Set gdbarch.
5624 (remote_query_supported): Support gdbarch_qsupported.
5626 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
5628 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5629 __FreeBSD_kernel_version.
5631 2010-02-03 Tristan Gingold <gingold@adacore.com>
5633 * symfile.h (struct sym_fns): Add sym_relocate field.
5634 (default_symfile_relocate): New prototype.
5635 (symfile_relocate_debug_section): First argument is now an objfile.
5636 * symfile.c (default_symfile_relocate): Rename from
5637 symfile_relocate_debug_section, first argument is now an objfile.
5638 (symfile_relocate_debug_section): New function.
5639 * coffread.c (coff_sym_fns): Set sym_relocate field.
5640 * somread.c (som_sym_fns): Ditto.
5641 * mipsread.c (ecoff_sym_fns): Ditto.
5642 * machoread.c (macho_sym_fns): Ditto.
5643 * elfread.c (elf_sym_fns): Ditto.
5644 * dwarf2read.c (dwarf2_read_section): Ditto.
5645 * xcoffread.c (xcoff_sym_fns): Ditto.
5646 * dbxread.c (aout_sym_fns): Ditto.
5647 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5648 (elfstab_build_psymtabs): Ditto.
5650 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5652 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5654 2010-02-02 Tom Tromey <tromey@redhat.com>
5656 * valops.c (value_cast_structs): Try downcasting using the RTTI
5659 2010-02-02 Tom Tromey <tromey@redhat.com>
5661 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5662 (gnuv2_baseclass_offset): Now static.
5663 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5664 * gnu-v2-abi.h: Remove.
5666 2010-02-02 Tom Tromey <tromey@redhat.com>
5668 * m2-typeprint.c (m2_record_fields): Don't use
5670 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5671 (struct main_type) <flag_declared_class>: New field.
5672 (struct cplus_struct_type) <declared_type>: Remove.
5673 <ntemplate_args>: Move earlier.
5674 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5675 (DECLARED_TYPE_TEMPLATE): Remove.
5676 (TYPE_DECLARED_TYPE): Remove.
5677 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5678 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5679 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5682 2010-02-02 Tom Tromey <tromey@redhat.com>
5684 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5685 * valops.c (search_struct_field): Compute nbases after calling
5687 (check_field): Call CHECK_TYPEDEF.
5688 * cp-valprint.c (cp_print_value): Pass correct address to
5689 baseclass_offset. Fix check for virtual base past the end of the
5690 object. Don't offset address passed to cp_print_value_fields or
5691 apply_val_pretty_printer.
5692 (cp_print_value_fields): Fix call to val_print.
5693 (cp_print_value_fields_rtti): New function.
5694 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5695 * p-valprint.c (pascal_object_print_value_fields): Fix call to
5697 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5699 * language.h (struct language_defn) <la_val_print>: Document.
5700 * c-lang.h (cp_print_value_fields_rtti): Declare.
5702 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5705 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5706 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5707 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5709 2010-02-01 Michael Matz <matz@suse.de>
5710 Daniel Jacobowitz <dan@codesourcery.com>
5712 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
5713 functions use a frame pointer.
5715 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5717 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
5718 by a conditional setting DYN_ADDR. Use DYN_ADDR.
5719 * config/djgpp/fnchange.lst: Add translations for
5720 symbol-without-target_section.exp and symbol-without-target_section.c.
5722 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5724 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5725 (remote_breakpoint_for_pc): Correct invalid_p check.
5726 * gdbarch.c: Regenerated.
5728 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5730 * arm-tdep.c (arm_find_mapping_symbol): New function, from
5732 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5733 (extend_buffer_earlier): New function.
5734 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5735 (arm_adjust_breakpoint_address): New function.
5736 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5738 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5740 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5741 (arm_linux_thumb2_le_breakpoint): New constants.
5742 (arm_linux_init_abi): Set thumb2_breakpoint and
5743 thumb2_breakpoint_size.
5744 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5745 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
5746 Implement support for single stepping through IT blocks if
5747 a 32-bit Thumb breakpoint instruction is available.
5748 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5749 is available, use it when needed.
5750 (arm_remote_breakpoint_from_pc): New function.
5751 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5752 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5753 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
5755 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
5757 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5758 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5759 * gdbarch.c, gdbarch.h: Regenerated.
5760 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5761 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5762 gdbarch_remote_breakpoint_from_pc.
5764 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5766 * infrun.c (prepare_to_proceed): Handle other signals which might
5768 (handle_inferior_event): Move the check for unusual breakpoint
5771 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
5773 amd64 - function returning record with field straddling 2 registers.
5774 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5775 a record of length <= 16 in which a field straddles the two
5778 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5780 Implement return values on amd64-windows.
5781 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5782 (amd64_windows_return_value): New function.
5783 (amd64_windows_init_abi): Call set_gdbarch_return_value with
5784 amd64_windows_return_value.
5786 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5788 amd64-windows: 32 bytes allocated on stack by caller for integer
5789 parameter registers.
5790 * i386-tdep.h (struct gdbarch_tdep): Add new field
5791 integer_param_regs_saved_in_caller_frame.
5792 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5793 tdep->integer_param_regs_saved_in_caller_frame to 1.
5794 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5795 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5797 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5799 amd64-windows: memory args passed by pointer during function calls.
5800 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5801 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5802 where tdep->memory_args_by_pointer is non-zero.
5803 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5804 tdep->memory_args_by_pointer to 1.
5806 2010-01-29 Joel Brobecker <brobecker@adacore.com>
5808 amd64-windows: Integer parameters in function calls.
5809 * i386-tdep.h (enum amd64_reg_class): New, moved here from
5811 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5812 call_dummy_integer_regs, and classify.
5813 * amd64-tdep.h (amd64_classify): Add declaration.
5814 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5815 (amd64_reg_class): Delete, moved to i386-tdep.h.
5816 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
5817 Replace call to amd64_classify by call to tdep->classify.
5818 (amd64_push_arguments): Get the list of registers to use for
5819 passing integer parameters from the gdbarch tdep structure,
5820 rather than using a hardcoded one. Replace calls to amd64_classify
5821 by calls to tdep->classify.
5822 (amd64_push_dummy_call): Get the register number used for
5823 the "hidden" argument from tdep->call_dummy_integer_regs.
5824 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5825 and tdep->call_dummy_integer_regs. Set tdep->classify.
5826 * amd64-windows-tdep.c: Add include of gdbtypes.h.
5827 (amd64_windows_dummy_call_integer_regs): New static global.
5828 (amd64_windows_classify): New function.
5829 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5830 tdep->call_dummy_integer_regs and tdep->classify.
5832 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5834 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
5835 for the new regcache. All callers updated.
5836 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5837 (get_thread_arch_regcache): Do not set aspace here.
5838 * regcache.h (regcache_xmalloc): Update declaration.
5840 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5841 regcache_xmalloc updated.
5843 2010-01-28 Joel Brobecker <brobecker@adacore.com>
5845 Another -Wunused-function error in procfs.c (sparc-solaris)
5846 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
5847 Only define if SYS_syssgi is defined.
5848 (remove_dbx_link_breakpoint): Delete declaration. Move up.
5849 (dbx_link_addr, insert_dbx_link_bpt_in_file)
5850 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
5853 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
5855 * windows-nat.c (windows_initialization_done): New variable.
5856 (get_windows_debug_event): Issue error when process dies before
5857 completely initializing.
5858 (do_initial_windows_stuff): Set flag to indicate when we are done with
5859 the initial steps of attaching to the child.
5861 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5863 * symtab.h (struct symbol <symtab>): New comment on NULL values.
5865 2010-01-27 Doug Evans <dje@google.com>
5867 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5869 * breakpoint.c (bpstat_stop_status): Delete useless code.
5871 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5873 * printcmd.c (display_uses_solib_p): Remove variable section. Access
5874 objfile via SYMBOL_SYMTAB.
5876 2010-01-26 Tom Tromey <tromey@redhat.com>
5879 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5880 coerce_array on result.
5882 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5884 * cp-namespace.c (cp_lookup_symbol_namespace): Added
5885 search_parent argument.
5886 (cp_add_using): Initialize 'searched' field.
5887 (reset_directive_searched): New function.
5888 * cp-support.h: Add 'searched' field to using_direct struct.
5889 (cp_lookup_symbol_imports): Ditto.
5890 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5891 Perform recursive search.
5892 Implement non parent search.
5893 * valops.c (value_maybe_namespace_elt): Updated.
5895 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
5898 * dwarf2read.c (read_lexical_block_scope): Create blocks for
5899 scopes which contain using directives even if they contain no
5901 * symtab.c (lookup_symbol_aux): Pass lowest level block to
5902 la_lookup_symbol_nonlocal.
5903 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5904 cp_lookup_symbol_namespace.
5905 (cp_lookup_symbol_namespace): Perform an import lookup at every
5907 (cp_lookup_symbol_imports): New function.
5908 (cp_lookup_symbol_in_namespace): New function.
5910 2010-01-25 Tom Tromey <tromey@redhat.com>
5913 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5916 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5918 * configure.ac: Only use host_os part when disabling TUI on osf.
5919 Use test to check variables, prefix strings with x.
5920 * configure: Regenerate.
5922 * solib-osf.c (osf_current_sos): Initialize tail.
5924 2010-01-25 gingold <gingold@adacore.com>
5926 * windows-nat.c (windows_continue): Use %x to print thread id.
5927 (get_windows_debug_event): Ditto.
5929 2010-01-22 Tom Tromey <tromey@redhat.com>
5932 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5933 type and arguments. Use smash_to_methodptr_type.
5934 (read_structure_type): Call quirk_gcc_member_function_pointer
5936 * gdbtypes.h (smash_to_methodptr_type): Declare.
5937 * gdbtypes.c (smash_to_methodptr_type): New function.
5938 (lookup_methodptr_type): Use it.
5940 2010-01-21 Tom Tromey <tromey@redhat.com>
5943 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
5944 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
5945 * glibc-tdep.c (find_minsym_and_objfile): Remove.
5946 (glibc_skip_solib_resolver): Use
5947 lookup_minimal_symbol_and_objfile.
5949 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
5951 * inflow.c (check_syscall): Guard by #if clause for GO32 and
5954 2010-01-20 Tom Tromey <tromey@redhat.com>
5957 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
5958 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
5959 * dwarf2expr.c (new_dwarf_expr_context): Allocate
5960 dwarf_stack_values, not CORE_ADDRs.
5961 (execute_stack_op): Change DW_OP_div and comparison operators to
5962 use signed operands.
5964 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
5966 Per-inferior args and tty and environment.
5968 * infcmd.c (inferior_args): Rename to ...
5969 (inferior_args_scratch): ... this.
5970 (inferior_io_terminal): Rename to ...
5971 (inferior_io_terminal_scratch): ... this.
5972 (inferior_argc, inferior_argv): Remove.
5973 (set_inferior_io_terminal, get_inferior_io_terminal): Store
5974 inside current_inferior().
5975 (set_inferior_tty_command, show_inferior_tty_command): New.
5976 (get_inferior_args, set_inferior_args): Store inside
5978 (notice_args_set): Likewise and rename to...
5979 (set_args_command): ... this.
5980 (set_inferior_args_vector): Likewise.
5981 (notice_args_read): Rename to...
5982 (show_args_command): ...new.
5983 (tty_command): Remove.
5984 (run_command_1): Don't free old args, as they are freed by
5985 set_inferior_arg now.
5986 (run_no_args_command): Likewise.
5987 (inferior_environ): Remove.
5988 (run_command_1): Use environment of the current inferior.
5989 (environment_info, set_environment_command)
5990 (unset_environment_command, path_info, path_command): Likewise.
5991 (_initialize_infcmd): Adjust for function and variable renames.
5992 Do not init inferior_environ.
5993 * inferior.h (set_inferior_arg): Adjust prototype.
5994 (struct inferior): New fields args, argc, argv, terminal, environment.
5995 (inferior_environ): Remove declaration.
5996 * inferior.c (free_inferior): Free new fields.
5997 (add_inferior_silent): Initialize 'environment' field.
5998 * main.c (captured_main): Set arguments only after the initial
5999 inferior has been created. Set set_inferior_io_terminal,
6001 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6003 (_initialize_mi_cmd_env): Adjust for disappearance of global
6005 * solib.c (solib_find): Use environment of the current inferior.
6007 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6009 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6011 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6013 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6015 Get rid of ada-lang.c:function_name_from_pc.
6016 * ada-lang.c: Add "stack.h" #include.
6017 (function_name_from_pc): Delete.
6018 (is_known_support_routine): Replace call to function_name_from_pc
6019 by call to find_frame_funname.
6020 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6022 2010-01-19 Tom Tromey <tromey@redhat.com>
6025 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6028 2010-01-19 Tom Tromey <tromey@redhat.com>
6030 * top.c (stop_sig, float_handler, do_nothing): Remove.
6032 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6034 * breakpoint.c (watchpoint_check): Check the call
6035 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6037 * config/djgpp/fnchange.lst: Add translations for
6038 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6039 watchpoint-cond-gone-stripped.c.
6041 2010-01-19 Tom Tromey <tromey@redhat.com>
6044 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6045 into parent scope, and enumerator into grandparent scope.
6047 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6049 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6051 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6053 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6054 i[34567]86-*-solaris2.1[0-9]*.
6055 * configure.tgt: Likewise.
6057 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6059 * NEWS: Document the source command enhancement allowing it
6060 to load Python scripts. Document the "set/show script-extension"
6063 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6065 Add -Wunused-function to compile flags.
6066 * configure.ac: Add -Wunused-function to build_warnings.
6067 * configure: Regenerate.
6069 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6071 "delete" ada-lex.c:input function, not used.
6072 * ada-lex.l: #define YY_NO_INPUT.
6074 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6076 Delete free_named_symtabs and associated cleanup.
6077 * symfile.h (free_named_symtabs): Delete declaration.
6078 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6079 (cashier_psymtab): Comment function out.
6081 (free_named_symtabs): Delete.
6082 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6083 * dbxread.c (end_psymtab): Likewise.
6084 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6085 * exec.c (exec_close_1): Ditto.
6086 * xcoffread.c (xcoff_end_psymtab): Likewise.
6088 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6090 * stack.c (print_block_frame_labels): Comment function out.
6092 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6094 Delete unused or undefined functions.
6095 * breakpoint.c (ep_parse_optional_filename): Delete.
6096 * dcache.c (dcache_write_line): Remove declaration.
6097 * infrun.c (build_infrun): Remove declaration.
6098 * tracepoint.c (tracepoint_save_command): Remove declaration.
6099 * linux-nat.c (init_lwp_list): Delete. No longer used.
6100 * event-loop.c (check_async_signal_handlers): Delete declaration.
6101 * infrun.c (init_execution_control_state): Delete.
6102 (proceed): Update comment to avoid mentioning
6103 init_execution_control_state.
6104 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6105 * ada-lang.c (ada_to_static_fixed_value): Delete.
6106 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6107 * cp-namespace.c (cp_copy_usings): Delete.
6108 * xml-syscall.c (xml_number_of_syscalls): Delete.
6109 * progspace.c (find_program_space_by_num): Delete.
6110 * inflow.c (handle_sigio): Delete declaration.
6111 * hppa-tdep.c (hppa_alignof): Delete.
6112 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6113 (mipsnbsd_core_osabi_sniffer): Delete.
6115 2010-01-18 Tom Tromey <tromey@redhat.com>
6118 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6119 (CONST_CAST): New tokens.
6120 (exp): Add new productions.
6121 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6123 (is_cast_operator): New function.
6124 (yylex): Handle cast operators specially.
6125 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6126 UNOP_REINTERPRET_CAST>: New cases.
6127 * expprint.c (print_subexp_standard): Likewise.
6128 (op_name_standard): Likewise.
6129 (dump_subexp_body_standard): Likewise.
6130 * parse.c (operator_length_standard): Likewise.
6131 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6132 UNOP_REINTERPRET_CAST.
6133 * gdbtypes.c (class_types_same_p): New function.
6134 (is_ancestor): Use it.
6135 (is_public_ancestor): New function.
6136 (is_unique_ancestor_worker): Likewise.
6137 (is_unique_ancestor): Likewise.
6138 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6139 (is_unique_ancestor): Declare.
6140 * valops.c (value_reinterpret_cast): New function.
6141 (dynamic_cast_check_1): Likewise.
6142 (dynamic_cast_check_2): Likewise.
6143 (value_dynamic_cast): Likewise.
6144 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6146 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6148 Fix build failure when building without Python support.
6149 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6152 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6154 Use XVS field type instead of doing a parallel lookup.
6155 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6156 if it is a reference type instead of doing a type lookup using
6159 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6161 Trust PAD types instead of using PAD___XVS.
6162 * ada-lang.c (trust_pad_over_xvs): New static variable.
6163 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6164 parallel XVS type, follow the XVS type instead of the PAD type.
6165 (unwrap_value): Make sure that there is no parallel XVE type
6166 before returning the value as is.
6167 (set_ada_list, show_ada_list): New static variables.
6168 (set_ada_command, show_ada_command): New functions.
6169 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6170 Add new "set/show ada trust-PAD-over-XVS" setting.
6172 2010-01-18 Tom Tromey <tromey@redhat.com>
6173 Thiago Jung Bauermann <bauerman@br.ibm.com>
6175 Allow "source" to load python scripts.
6176 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6177 * python/python.c (source_python_script): New function.
6178 * python/python.h (source_python_script): Add declaration.
6179 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6180 (script_ext_off, script_ext_soft, script_ext_strict)
6181 (script_ext_enums, script_ext_mode): New static constants.
6182 (show_script_ext_mode, find_and_open_script): New functions.
6183 (source_script): Enhance to handle Python scripts.
6184 (init_cli_cmds): Add set/show script-extension commands.
6186 2010-01-16 Stan Shebs <stan@codesourcery.com>
6188 * tracepoint.h (struct trace_status): Use unsigned long long
6190 * tracepoint.c (trace_status_command): Fix printf directive.
6191 (trace_save_command): Check fwrite returns, fix printf directive.
6192 (trace_filename): New global.
6193 (tfile_open): Set it, check read returns.
6194 (tfile_close): Free trace_filename.
6195 (tfile_get_traceframe_address): Check read returns.
6196 (tfile_trace_find): Ditto.
6197 (tfile_fetch_registers): Ditto.
6198 (tfile_xfer_partial): Ditto.
6199 (tfile_get_trace_state_variable_value): Ditto.
6201 2010-01-15 Stan Shebs <stan@codesourcery.com>
6203 Add trace file support.
6204 * tracepoint.h (enum trace_stop_reason): New enum.
6205 (struct trace_status): New struct.
6206 (parse_trace_status): Declare.
6207 (struct uploaded_tp): Move here from remote.c,
6208 add fields for actions.
6209 (struct uploaded_tsv): New struct.
6210 * tracepoint.c (tfile_ops): New target vector.
6211 (trace_fd): New global.
6212 (tfile_open): New function.
6213 (tfile_close): New function.
6214 (tfile_files_info): New function.
6215 (tfile_get_trace_status): New function.
6216 (tfile_get_traceframe_address): New function.
6217 (tfile_trace_find): New function.
6218 (tfile_fetch_registers): New function.
6219 (tfile_xfer_partial): New function.
6220 (tfile_get_trace_state_variable_value): New function.
6221 (init_tfile_ops): New function.
6222 (_initialize_tracepoint): Call it, add tfile target.
6223 (trace_status): New global.
6224 (current_trace_status): New function.
6225 (trace_running_p): Remove, change all users to get from
6226 current_trace_status()->running.
6227 (get_trace_status): Remove.
6228 (trace_status_command): Call target_get_trace_status directly,
6229 report more detail including tracing stop reasons.
6230 (trace_find_command): Always allow tfind on a file.
6231 (trace_find_pc_command): Ditto.
6232 (trace_find_tracepoint_command): Ditto.
6233 (trace_find_line_command): Ditto.
6234 (trace_find_range_command): Ditto.
6235 (trace_find_outside_command): Ditto.
6236 (trace_frames_offset, cur_offset): Declare as off_t.
6237 (trace_regblock_size): Rename from reg_size, update users.
6238 (parse_trace_status): New function.
6239 (tfile_interp_line): New function.
6240 (disconnect_or_stop_tracing): Ensure current trace
6241 status before asking what to do.
6242 (stop_reason_names): New global.
6243 (trace_save_command): New command.
6244 (get_uploaded_tp): Move here from remote.c.
6245 (find_matching_tracepoint): Ditto.
6246 (merge_uploaded_tracepoints): New function.
6247 (parse_trace_status): Use stop_reason_names.
6248 (_initialize_tracepoint): Define tsave command.
6249 * target.h (target_ops): New fields to_save_trace_data,
6250 to_upload_tracepoints, to_upload_trace_state_variables,
6251 to_get_raw_trace_data, change to_get_trace_status
6252 to take a pointer to a status struct.
6253 (target_save_trace_data): New macro.
6254 (target_upload_tracepoints): New macro.
6255 (target_upload_trace_state_variables): New macro.
6256 (target_get_raw_trace_data): New macro.
6257 * target.c (update_current_target): Add new methods, change
6258 signature of to_get_trace_status.
6259 * remote.c (hex2bin): Make globally visible.
6261 (remote_download_trace_state_variable): Download name also.
6262 (remote_get_trace_status): Update parameter, use
6264 (remote_save_trace_data): New function.
6265 (remote_upload_tracepoints): New function.
6266 (remote_upload_trace_state_variables): New function.
6267 (remote_get_raw_trace_data): New function.
6268 (remote_start_remote): Use them.
6269 (_initialize_remote_ops): Add operations.
6270 * ax-gdb.c: Include breakpoint.h.
6271 * breakpoint.c (create_tracepoint_from_upload): Use
6272 break_command_really, return tracepoint, warn about unimplemented
6274 * NEWS: Mention trace file addition.
6276 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6278 Fix compilation warning on gcc-3.4.
6279 * exec.c (print_section_info): Move the `displacement' variable
6280 initialization to its declaration.
6282 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6284 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6287 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6289 "info tasks" broken by typedefs in ATCB type definitions.
6290 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6291 ada_check_typedef before retrieving the length of the type for
6294 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6296 Do not use name-based lookup for unconstrained packed arrays.
6297 * ada-lang.c (find_parallel_type_by_descriptive_type):
6298 Limit the fallback to name-based lookups to the case where
6299 the type is a constrained packed array.
6301 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6303 Enhance gdb-gdb.py to handle main_type.type_specific.
6304 * gdb-gdb.py: Print the type-specific part of struct main_type.
6306 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6308 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6309 * configure: Regenerate.
6310 * config.in: Regenerate.
6311 * utils.c: Include sys/resource.h.
6312 (dump_core, can_dump_core): New.
6313 (internal_vproblem): Update the comment. Check can_dump_core while
6314 setting dump_core_p. Replace two abort calls by dump_core calls.
6316 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 Eli Zaretskii <eliz@gnu.org>
6319 * NEWS: Document the PIE support.
6321 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6323 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6324 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6326 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6329 Replace exec_entry_point call by bfd_get_start_address.
6331 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6333 Support Valgrind attachments broken by the PIE support.
6334 * auxv.c: Include gdbcore.h.
6335 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6336 parameters ops, object and annex. Remove their assertions.
6337 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6338 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6339 (memory_xfer_auxv): ... here.
6340 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6342 * procfs.c (procfs_xfer_partial): Likewise.
6343 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6344 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6345 (svr4_solib_create_inferior_hook): Conditionalize the
6346 svr4_relocate_main_executable call.
6348 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6350 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6351 target_section. Find SECT in current_target_sections, gdb_assert it.
6352 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6354 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6355 of separate debug info file.
6357 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6359 Support PIEs with no symfile_objfile.
6360 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6361 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6363 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6365 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6367 (svr4_static_exec_displacement): ... a new function.
6368 (svr4_exec_displacement): New function.
6369 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6370 new_offsets using alloca now. Remove variable old_chain and changed.
6371 Call objfile_relocate unconditionally now.
6373 2010-01-14 Doug Evans <dje@google.com>
6375 * gdbtypes.c (arch_flags_type): Fix comment.
6376 * gdbtypes.h (arch_composite_type): Fix comment.
6378 2009-01-14 Tristan Gingold <gingold@adacore.com>
6380 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6381 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6382 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6383 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6384 macho_add_oso_symfile.
6385 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6387 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6389 Tru64: Dead threads are never deleted.
6390 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6391 (dec_thread_count_gdb_threads): Fix counter increment.
6392 (dec_thread_add_gdb_thread): Fix *listp increment.
6393 (resync_thread_list): Fix bug in deletion of dead threads that
6394 caused all threads to be deleted, instead of just the dead ones.
6396 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6400 * python/python-internal.h: Add lazy_string_object_type
6402 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6403 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6404 * python/py-value.c (valpy_lazy_string): New function.
6405 (convert_value_from_python): Add lazy string conversion.
6406 * python/py-prettyprint.c (pretty_print_one_value): Check if
6407 return is also a lazy string.
6408 (print_string_repr): Add lazy string printing branch.
6409 (print_children): Likewise.
6410 * python/py-lazy-string.c: New file. Implement lazy strings.
6411 * python/python.c (_initialize_python): Call
6412 gdbpy_initialize_lazy_string.
6413 * varobj.c (value_get_print_value): Add lazy string printing
6414 branch. Account for encoding.
6415 * c-lang.c (c_printstr): Account for new encoding argument. If
6416 encoding is NULL, find encoding suited for type, otherwise use
6418 * language.h (language_defn): Add encoding argument.
6419 (LA_PRINT_STRING): Likewise.
6420 * language.c (unk_lang_printstr): Update to reflect new encoding
6421 argument to language_defn.
6422 * ada-lang.h (ada_printstr): Likewise.
6423 * c-lang.h (c_printstr): Likewise.
6424 * p-lang.h (pascal_printstr);
6425 * f-lang.c (f_printstr): Likewise.
6426 * m2-lang.c (m2_printstr): Likewise.
6427 * objc-lang.c (objc_printstr): Likewise.
6428 * p-lang.c (pascal_printstr): Likewise.
6429 * scm-lang.c (scm_printstr): Likewise.
6430 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6432 * ada-valprint.c (ada_printstr): Likewise.
6433 * f-valprint.c (f_val_print): Likewise
6434 * m2-valprint.c (m2_val_print): Likewise.
6435 * p-valprint.c (pascal_val_print): Likewise.
6436 * expprint.c (print_subexp_standard): Likewise.
6437 * valprint.c (val_print_string): Likewise.
6438 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6439 (SUBDIR_PYTHON_SRCS): Likewise.
6440 (py-lazy-string.o): New rule.
6442 2010-01-13 Doug Evans <dje@google.com>
6444 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6445 uninitialized" warning from gcc on local `tree'.
6447 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6449 Implement core awareness.
6451 * bcache.c (compare_ints): Remove
6452 (print_percentage): Use compare_positive_ints.
6453 * defs.h (compare_positive_ints): Declare.
6454 * linux-nat.h (struct lin_lwp): New field core.
6455 (linux_nat_core_of_thread_1): Declare.
6456 * linux-nat.c (add_lwp): Init the 'core' field.
6457 (linux_nat_wait_1): Record the core.
6458 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6459 (linux_nat_add_target): Register the above.
6460 * linux-thread-db.c (update_thread_core): New.
6461 (thread_db_find_new_threads): Update core information for
6463 * remote.c (struct private_thread_info): New.
6464 (free_private_thread_info, demand_private_info): New.
6465 (PACKET_qXfer_threads, use_osdata_threads): New.
6466 (struct thread_item, threads_parsing_context
6467 (start_thread, end_thread, thread_attributes)
6468 (thread_children, threads_children, threads_elements): New.
6469 (remote_threads_info): Try qXfer:threads before anything
6471 (remote_protocol_packets): Register qXfer:threads.
6472 (remote_open_1): Init use_osdata_threads.
6473 (struct stop_reply): New field 'core'.
6474 (remote_parse_stop_reply): Parse core number.
6475 (process_stop_reply): Record core number.
6476 (remote_xfer_partial): Handle qXfer:threads.
6477 (remote_core_of_thread): New.
6478 (init_remote_ops): Register remote_core_of_thread.
6479 (_initialize_remote): Register qXfer:read.
6480 * target.c (target_core_of_thread): New
6481 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6482 (struct target_ops): New field to_core_of_threads.
6483 (target_core_of_thread): Declare.
6484 * gdbthread.h (struct thread_info): New field private_dtor.
6485 * thread.c (print_thread_info): Report the core.
6486 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6487 * utils.c (compare_positive_ints): New.
6488 * features/threads.dtd: New.
6489 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6490 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6491 (do_nothing, free_vector_of_osdata_items)
6492 (splay_tree_int_comparator, free_splay_tree): New.
6493 (print_one_inferior_data): Implemented printing of selected
6494 inferiors. Collect and print cores.
6495 (output_cores): New.
6496 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6497 thread groups together with --available.
6499 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6501 * configure: Regenerate (for _STRUCTURED_PROC).
6503 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6505 Delete dead function.
6506 * ada-lang.c (extract_string): Delete. No longer used.
6508 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6510 Fix -Wunused warning in dec-thread.c.
6511 * dec-thread.c (dec_thread_count_gdb_threads)
6512 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6514 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6516 * ada-valprint.c (ada_print_floating): Remove trailing space.
6518 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6520 Add support for DW_AT_GNAT_descriptive_type.
6521 * gdbtypes.h (enum type_specific_kind): New enum.
6522 (struct main_type) [type_specific_field]: New component.
6523 [type_specific]: Add new component "gnat_stuff".
6524 (struct gnat_aux_type): New type.
6525 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6526 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6527 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6528 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6529 (TYPE_SPECIFIC_FIELD): New macros.
6530 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6531 type does not hold any cplus-specific data.
6532 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6533 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6534 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6535 cplus-specific data.
6536 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6537 Set new component TYPE_SPECIFIC_FIELD (type).
6538 (gnat_aux_default): New constant.
6539 (allocate_gnat_aux_type): New function.
6540 (init_type): Add initialization the type-specific stuff for
6541 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6542 (print_gnat_stuff): New function.
6543 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6544 specific data. Adjust code that prints the contents of the
6545 type-specific union using the TYPE_SPECIFIC_FIELD value.
6546 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6547 the type cplus stuff for Ada types.
6548 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6549 Error out if these routines are called with an Ada type.
6550 (read_structure_type, read_array_type, read_subrange_type):
6551 Add call to set_descriptive_type.
6552 (set_die_type): Initialize the gnat-specific data if necessary.
6553 (need_gnat_info, die_descriptive_type, set_descriptive_type):
6555 * ada-lang.c (decode_constrained_packed_array_type): Use
6556 decode_constrained_packed_array_type instead of doing a standard
6557 lookup to locate a parallel type.
6558 (find_parallel_type_by_descriptive_type): New function.
6559 (ada_find_parallel_type_with_name): New function.
6560 (ada_find_parallel_type): Reimplement using
6561 ada_find_parallel_type_with_name.
6562 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6563 to check if type has a cplus stuff.
6564 * linespec.c (total_number_of_methods): Likewise.
6565 * mdebugread.c (new_type): Likewise.
6567 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6569 * NEWS: Document the 0b binary number prefix parsing.
6571 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6573 * objfiles.c (objfile_relocate1): Change the return type to int.
6574 Describe the new return value. Return non-zero if data changed.
6575 (objfile_relocate): New variable changed. Set it. Call
6576 breakpoint_re_set depending on CHANGED.
6578 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6580 Implement binary numbers parsing.
6581 * c-exp.y (parse_number): New case 'b' and 'B'.
6583 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6584 Tristan Gingold <gingold@adacore.com>
6586 * solib.c (info_sharedlibrary_command): Replace
6587 objfile_has_partial_symbols and objfile_has_full_symbols calls by
6588 objfile_has_symbols.
6590 2010-01-10 Joel Brobecker <brobecker@adacore.com>
6592 * NEWS: Document the improvements made to the mips-irix port.
6594 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6596 Fix the documentation of valprint.c:value_print.
6597 * valprint.c (value_print): Update the function description to
6598 mention that the syntax of the output follows the current_language,
6601 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6603 Fix displacement of separate debug info files.
6604 * objfiles.c (objfile_relocate): Rename to ...
6605 (objfile_relocate1): ... here and make it static. Extend the comment.
6606 (objfile_relocate): New function.
6607 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6608 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
6609 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
6610 allocated using alloca.
6611 * symfile.c (copy_section_addr_info): Remove.
6612 (build_section_addr_info_from_objfile): Make it global. New variables
6613 addr_bit and mask, use them.
6614 * symfile.h (build_section_addr_info_from_objfile): New prototype.
6615 (copy_section_addr_info): Remove.
6617 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6619 Signal unwinder for mips-irix N32.
6620 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6622 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6623 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
6624 (SIGCONTEXT_LO_OFF): New macros.
6625 (mips_irix_n32_tramp_frame_init): New function.
6626 (mips_irix_n32_tramp_frame): New static constant.
6627 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6629 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6631 Breakpoint in shared library does not work on mips-irix.
6632 * procfs.c: #include "observer.h".
6633 (procfs_inferior_created): New function, moving here the code
6634 which unsets the syssgi syscall-exit notifications.
6635 (procfs_create_inferior): Remove the code which unsets the syssgi
6636 syscall-exit notifications. It is too early to do this here.
6637 (_initialize_procfs): Attach the procfs_inferior_created observer.
6639 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6641 Wrong return convention for arrays (mips-irix).
6642 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6643 128 bits or smaller are returned the same way as structs
6644 and unions of the the same size.
6646 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6648 Cannot set the PC on mips-irix.
6649 * irix5-nat.c (fill_gregset): Check regno against the raw PC
6650 register number, no the cooked one.
6652 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6654 Error while loading core file on mips-irix.
6655 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6656 if debugging from a core file.
6658 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6660 GDB hangs when attaching to process on mips-irix.
6661 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6662 attaching to a process.
6664 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6666 Use the correct breakpoint instruction on mips-irix.
6667 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6668 containing the correct breakpoint instruction to use on mips-irix.
6669 Use it when the osabi is GDB_OSABI_IRIX.
6671 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6673 -Wunused warning in procfs.c (mips-irix only).
6674 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
6675 throughout instead of using praddset and prdelset respectively.
6677 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6679 GDB crash while stepping into function.
6680 * infrun.c (handle_inferior_event): Refetch the current frame
6681 after handling what.main_action, in case that pointer became
6684 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6686 Fix build failure of solaris-hosted cross debuggers.
6687 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6689 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
6691 Fix build failure on sparc-solaris.
6692 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6694 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6696 Move some symfile code into subroutines.
6697 * symfile.h (relative_addr_info_to_section_offsets)
6698 (addr_info_make_relative): New prototypes.
6699 * symfile.c (default_symfile_offsets): Move a part to ...
6700 (relative_addr_info_to_section_offsets): ... this new function.
6701 (default_symfile_offsets): Call it.
6702 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6704 (addr_info_make_relative): ... this new function.
6706 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6708 Add from_tty to solib_create_inferior_hook.
6709 * infcmd.c (post_create_inferior): Move solib_add after
6710 solib_create_inferior_hook. Pass from_tty to
6711 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
6712 0 from_tty and comment why.
6713 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6714 * linux-nat.c (linux_child_follow_fork): Likewise.
6715 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6716 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6718 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6719 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6720 * solib-null.c (null_solib_create_inferior_hook): Likewise.
6721 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6722 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6723 * solib-som.c (som_solib_create_inferior_hook): Likewise.
6724 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6725 Pass it to svr4_so_ops.solib_create_inferior_hook.
6726 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6728 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
6730 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
6732 * solib-target.c (solib_target_solib_create_inferior_hook): New
6734 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
6735 it to ops->solib_create_inferior_hook.
6736 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6737 Move solib_add after solib_create_inferior_hook, call it now with
6738 from_tty as 0. New comment there.
6739 * solib.h (solib_create_inferior_hook): New parameter from_tty.
6740 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6743 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
6746 * infrun.c (handle_inferior_event): Use get_thread_regcache
6747 with events ptid, not get_current_regcache.
6749 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6751 GDB crash with empty executable name (MinGW).
6752 * source.c (openp): Add assert that parameter string is not NULL.
6753 if parameter string is an empty string, then return with a failure
6756 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6758 Get rid of support for VAX Floats.
6759 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6760 (ada_vax_float_print_function): Delete.
6761 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6762 (ada_vax_float_print_function): Delete.
6763 * ada-typeprint.c (print_vax_floating_point_type): Delete.
6764 (ada_print_type): Remove support for VAX floats.
6765 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6767 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6769 * stabsread.c (read_args): Handle zero arguments.
6771 2009-01-08 Joel Brobecker <brobecker@adacore.com>
6773 Cannot find in-tree libiconv.a after reconfigure.
6774 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6775 that we can use, then cache the path to this archive.
6776 * configure: Regenerate.
6778 2010-01-07 Stan Shebs <stan@codesourcery.com>
6780 Make tracepoint operations go through target vector.
6781 * target.h (enum trace_find_type): New enum.
6782 (struct target_ops): New fields to_trace_init,
6783 to_download_tracepoint, to_download_trace_state_variable,
6784 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6785 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6786 to_set_disconnected_tracing.
6787 (target_trace_init): New macro.
6788 (target_download_tracepoint): New macro.
6789 (target_download_trace_state_variable): New macro.
6790 (target_trace_start): New macro.
6791 (target_trace_set_readonly_regions): New macro.
6792 (target_get_trace_status): New macro.
6793 (target_trace_stop): New macro.
6794 (target_trace_find): New macro.
6795 (target_get_trace_state_variable_value): New macro.
6796 (target_set_disconnected_tracing): New macro.
6797 * target.c (update_current_target): Inherit and set defaults for
6798 tracepoint operations.
6799 * tracepoint.c (default_collect): Make globally visible.
6800 (target_is_remote): Remove, along with all calls.
6801 (tvariables_info): Call target_get_trace_state_variable_value.
6802 (remote_set_transparent_ranges): Remove.
6803 (trace_start_command): Call target_trace_init,
6804 target_download_tracepoint, etc.
6805 (download_tracepoint): Remove.
6806 (trace_stop_command): Simplify.
6807 (stop_tracing): Call target_trace_stop.
6808 (get_trace_status): Call target_get_trace_status.
6809 (trace_status_command): Add case for targets that cannot trace.
6810 (finish_tfind_command): Change to take numerical arguments, call
6812 (trace_find_command): Update call to finish_tfind_command.
6813 (trace_find_pc_command): Ditto.
6814 (trace_find_tracepoint_command): Ditto.
6815 (trace_find_line_command): Ditto.
6816 (trace_find_range_command): Ditto.
6817 (trace_find_outside_command): Ditto.
6818 (set_disconnected_tracing_value): Call
6819 target_set_disconnected_tracing.
6820 * remote.c: Add protocol encoding bits from tracepoint.c.
6821 (trace_error): Move from tracepoint.c.
6822 (remote_get_noisy_reply): Ditto.
6823 (free_actions_list_cleanup_wrapper): Ditto.
6824 (free_actions_list): Ditto.
6825 (remote_trace_init): New function.
6826 (remote_download_tracepoint): New function.
6827 (remote_download_trace_state_variable): New function.
6828 (remote_trace_set_readonly_regions): New function.
6829 (remote_trace_start): New function.
6830 (remote_get_trace_status): New function.
6831 (remote_trace_stop): New function.
6832 (remote_trace_find): New function.
6833 (remote_download_trace_state_variable): New function.
6834 (remote_set_disconnected_tracing): New function.
6835 (init_remote_ops): Add tracepoint operations.
6837 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6839 2010-01-07 Tristan Gingold <gingold@adacore.com>
6841 * symfile.c (build_section_addr_info_from_objfile): New function.
6842 (symbol_file_add_separate): Don't use offsets from objfile but
6845 2010-01-06 Stan Shebs <stan@codesourcery.com>
6847 Support disconnected tracing.
6848 * infcmd.c (detach_command): Ask whether to stop tracing.
6849 * cli/cli-cmds.c (quit_command): Ditto.
6850 * breakpoint.h (struct breakpoint): New field number_on_target.
6851 * breakpoint.c (create_tracepoint_from_upload): New function.
6852 (get_tracepoint_by_number_on_target): New function.
6853 * remote.c (struct remote): New field disconnected_tracing.
6854 (remote_disconnected_tracing_feature): New function.
6855 (remote_protocol_features): Add DisconnectedTracing.
6856 (struct uploaded_tp): New struct.
6857 (uploaded_tps): New global.
6858 (get_uploaded_tp): New function.
6859 (find_matching_tracepoint): New function.
6860 (remote_get_tracing_state): New function.
6861 (remote_start_remote): Call it.
6862 * tracepoint.c (disconnected_tracing): New global.
6863 (trace_start_command): Initialize number_on_target.
6864 (stop_tracing): New function, split out from...
6865 (trace_stop_command): Call stop_tracing.
6866 (get_trace_status): New function, split out from...
6867 (trace_status_command): Call get_trace_status, add info on
6868 disconnection behavior.
6869 (disconnect_or_stop_tracing): New function.
6870 (finish_tfind_command): Translate from number on target.
6871 (trace_find_tracepoint_command): Translate to number on target.
6872 (send_disconnected_tracing_value): New function.
6873 (set_disconnected_tracing): New function.
6874 (_initialize_tracepoint): Add disconnected-tracing variable.
6875 * NEWS: Mention disconnected tracing.
6877 2010-01-06 Tristan Gingold <gingold@adacore.com>
6879 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6880 parameter to main_objfile. Iterate on all separate debug objfiles.
6881 * symfile.h (symbol_file_add_separate)
6882 (find_separate_debug_file_by_debuglink): Remove parameter names.
6883 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6884 (reread_symbols): Use free_objfile_separate_debug.
6885 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6887 (objfile_separate_debug_iterate, add_separate_debug_objfile)
6888 (free_objfile_separate_debug): New prototypes.
6889 * objfiles.c (objfile_separate_debug_iterate): New function.
6890 (add_separate_debug_objfile, free_objfile_separate_debug): New
6892 (free_objfile): Use free_objfile_separate_debug. Adjust for
6893 multiple separate debug objfile.
6894 (objfile_has_symbols): Adjust comment. Iterate on all separate
6896 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6898 (lookup_minimal_symbol_text): Ditto.
6899 (lookup_minimal_symbol_by_pc_name): Ditto.
6900 (lookup_minimal_symbol_solib_trampoline): Ditto.
6901 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6904 2010-01-05 Stan Shebs <stan@codesourcery.com>
6906 Add fast tracepoints.
6907 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6908 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6909 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6910 * breakpoint.c (tracepoint_type): New function.
6911 (ALL_TRACEPOINTS): Use it.
6912 (should_be_inserted): Ditto.
6913 (bpstat_check_location): Ditto.
6914 (print_one_breakpoint_location): Ditto.
6915 (user_settable_breakpoint): Ditto.
6916 (set_breakpoint_location_function): Ditto.
6917 (disable_breakpoints_in_shlibs): Ditto.
6918 (delete_trace_command): Ditto.
6919 (print_it_typical): Add bp_fast_tracepoint case.
6920 (bpstat_what): Ditto.
6921 (print_one_breakpoint_location): Ditto.
6922 (allocate_bp_location): Ditto.
6924 (breakpoint_re_set_one): Ditto.
6925 (disable_command): Ditto.
6926 (enable_command): Ditto.
6927 (check_fast_tracepoint_sals): New function.
6928 (break_command_really): Call it.
6929 (ftrace_command): New function.
6930 (_initialize_breakpoint): Add ftrace command.
6931 * gdbarch.sh (fast_tracepoint_valid_at): New.
6932 * gdbarch.h, gdbarch.c: Regenerate.
6933 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6934 (i386_gdbarch_init): Use it.
6935 * remote.c (struct remote_state): New field fast_tracepoints.
6936 (PACKET_FastTracepoints): New packet config type.
6937 (remote_fast_tracepoint_feature): New function.
6938 (remote_protocol_features): Add FastTracepoints.
6939 (remote_supports_fast_tracepoints): New function.
6940 (_initialize_remote): Add FastTracepoints.
6941 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
6942 * NEWS: Mention fast tracepoints.
6944 2010-01-06 Joel Brobecker <brobecker@adacore.com>
6946 * gdb-gdb.py: New file.
6948 2010-01-05 Michael Snyder <msnyder@vmware.com>
6950 * infrun.c (handle_inferior_event): Fix typo in comment.
6952 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6954 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
6956 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6958 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
6960 (s390-linux32-expedite): Define.
6961 (s390-linux64-expedite): Define.
6962 (s390x-linux64-expedite): Define.
6963 * features/s390-acr.xml: New file.
6964 * features/s390-fpr.xml: New file.
6965 * features/s390-core32.xml: New file.
6966 * features/s390-core64.xml: New file.
6967 * features/s390x-core64.xml: New file.
6968 * features/s390-linux32.xml: New file.
6969 * features/s390-linux64.xml: New file.
6970 * features/s390x-linux64.xml: New file.
6971 * features/s390-linux32.c: New generated file.
6972 * features/s390-linux64.c: New generated file.
6973 * features/s390x-linux64.c: New generated file.
6975 * regformats/s390-linux32.dat: New generated file.
6976 * regformats/s390-linux64.dat: New generated file.
6977 * regformats/s390x-linux64.dat: New generated file.
6978 * regformats/reg-s390.dat: Remove.
6979 * regformats/reg-s390x.dat: Remove.
6981 * s390-nat.c: Include "auxv.h" and <elf.h>.
6982 (HWCAP_S390_HIGH_GPRS): Define if undefined.
6983 (s390_target_wordsize): New function.
6984 (s390_auxv_parse): Likewise.
6985 (s390_get_hwcap): Likewise.
6986 (s390_read_description): Likewise.
6987 (_initialize_s390_nat): Install s390_auxv_parse and
6988 s390_read_description.
6990 * s390-tdep.c: Include "features/s390-linux32.c",
6991 "features/s390-linux64.c", and "features/s390x-linux64.c".
6992 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
6993 (s390_register_call_saved): New function.
6994 (s390_register_name): Remove.
6995 (s390_register_type): Remove.
6996 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
6997 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
6998 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
6999 (s390_pseudo_register_name): New function.
7000 (s390_pseudo_register_type): New function.
7001 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7002 Handle full GPR pesudos and varying pseudo register numbers.
7003 (s390_pseudo_register_write): Likewise
7004 (s390x_pseudo_register_read): Remove.
7005 (s390x_pseudo_register_write): Likewise.
7006 (s390_register_group): Remove.
7007 (s390_pseudo_register_group): New function.
7008 (s390_regmap_gregset): Add GPR upper halves.
7009 (s390x_regmap_gregset): Likewise.
7010 (s390_regmap_fpregset): Likewise.
7011 (s390_regmap_upper): New global variable.
7012 (s390_upper_regset): New global variable.
7013 (s390_upper_regset_sections): New global variable.
7014 (s390_regset_from_core_section): Handle GPR upper halves.
7015 (s390_core_read_description): New function.
7016 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7017 register information. Handle varying pseudo register numbers.
7018 (s390_backchain_frame_unwind_cache): Likewise.
7019 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7020 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7021 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7022 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7023 Handle varying pseudo register numbers.
7024 (s390_unwind_pc): Handle varying pseudo register numbers.
7025 (s390_dwarf2_prev_register): New function.
7026 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7027 register information. Handle varying pseudo register numbers.
7028 Install s390_dwarf2_prev_register to unwind full GPRs.
7029 (s390_gdbarch_init): Handle target descriptions. Assign varying
7030 pseudo register numbers. Install s390_adjust_frame_regnum.
7031 (_initialize_s390_tdep): Initialize target descriptions.
7033 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7034 (S390_NUM_REGS): Redefine to include upper half registers.
7035 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7036 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7037 (tdesc_s390_linux32): Add declaration.
7038 (tdesc_s390_linux64): Likewise.
7039 (tdesc_s390x_linux64): Likewise.
7041 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7043 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7044 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7045 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7046 (ppc_linux_vmx_regset_sections): Likewise.
7047 (ppc_linux_fp_regset_sections): Likewise.
7049 * corelow.c (get_core_register_section): Constify arguments.
7050 (get_core_registers): Use gdbarch_core_regset_sections instead
7051 of hard-coded platform-specific register section names.
7053 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7055 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7056 a register, assume the least-significant part is used.
7057 (write_pieced_value): Likewise.
7059 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7061 * printcmd.c: Include "arch-utils.h".
7062 (do_one_display): Re-parse expression if current architecture changed.
7064 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7065 Joel Brobecker <brobecker@adacore.com>
7067 * gdbtypes.c (check_typedef): New comment on type length.
7068 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7069 comment on type length.
7070 (value_primitive_field): Keep the original TYPE value, new comment.
7072 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7074 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7075 p_start. Change != comparisons to > and < comparisons.
7077 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7079 * cli/cli-script.c (process_next_line): Check P2 overrun.
7081 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7083 Update the copyright hearder to add year 2010 for most GDB files.
7085 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7087 Fix build failure in inf-ptrace.c.
7088 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7090 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7092 * top.c (print_gdb_version): Update copyright year.
7094 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7096 Fix break *FUN'address thread NUM.
7097 * ada-lex.l (task): Expand rule to also match the thread keyword.
7099 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7101 Fix break *FUN'address task NUM.
7102 * ada-lex.l (task): New rule.
7103 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7104 been built before using it.
7106 For older changes see ChangeLog-2009.
7112 version-control: never