1 2012-11-06 Pierre Muller <muller@sourceware.org>
3 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
6 2012-11-05 Joel Brobecker <brobecker@adacore.com>
8 * gnulib/update-gnulib.sh: New script.
10 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
12 * MAINTAINERS: Update my email address.
14 2012-11-05 Tom Tromey <tromey@redhat.com>
16 * frame.c (put_frame_register): Don't use temporary buffer.
18 2012-11-05 Pedro Alves <palves@redhat.com>
20 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
21 child. Clear 'pending_detach'.
22 * infrun.c (handle_vfork_child_exec_or_exit): Clear
23 'pending_detach' in the vfork parent.
25 2012-11-05 Doug Evans <dje@google.com>
27 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
28 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
29 * dwarf2read.c: #include "elf-bfd.h".
30 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
31 (dwop_section_names): Renamed from dwo_section names. All uses
32 updated. Add entries for .debug_cu_index, .debug_tu_index.
33 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
35 (struct dwp_sections): New type.
36 (struct virtual_dwo_sections): New type.
37 (struct dwp_hash_table): New type.
38 (struct dwp_file): New type.
39 (init_cutu_and_read_dies): Ensure DWO info/types section has been
40 read in. Handle DWOs coming from DWP files.
41 (lookup_dwo_file_slot): New function.
42 (dwarf2_locate_dwo_sections): Move definition closer to use.
43 (create_dwo_debug_info_hash_table_reader): Renamed from
44 create_debug_info_hash_table_reader. All callers updated.
45 (create_dwo_debug_info_hash_table): Renamed from
46 create_debug_info_hash_table. All callers updated.
47 (create_dwp_hash_table): New function.
48 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
49 (lookup_dwo_in_dwp): New function.
50 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
51 is_dwp. All callers updated.
52 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
53 (open_and_init_dwo_file): Renamed from init_dwo_file.
55 (lookup_dwo_file): Delete.
56 (dwarf2_locate_dwp_sections): New function.
57 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
58 (allocate_dwp_loaded_cutus_table): New function.
59 (open_and_init_dwp_file): New function.
60 (lookup_dwo_cutu): New function.
61 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
63 2012-11-03 Yao Qi <yao@codesourcery.com>
66 * breakpoint.c (trace_pass_set_count): Call
67 observer_notify_breakpoint_modified instead of
68 observer_notify_tracepoint_modified.
69 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
71 2012-11-02 Tom Tromey <tromey@redhat.com>
73 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
74 argument to complete_on_enum.
76 2012-11-02 Tom Tromey <tromey@redhat.com>
79 * configure.ac (build_warnings): Add -Wempty-body.
80 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
81 * remote.c (handle_notification): Use braces for empty 'else' body.
82 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
84 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
86 * solib-som.c (som_relocate_section_addresses): Use braces
87 for empty 'else' body.
88 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
89 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
91 2012-11-02 Pedro Alves <palves@redhat.com>
95 * infrun.c (handle_inferior_event)
96 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
97 null_ptid before handling a vfork child exec or exit. Switch to
98 the event ptid afterwards.
100 2012-11-02 Yao Qi <yao@codesourcery.com>
102 * std-operator.def: Remove OP_LABELED.
103 * eval.c: Remove the declaration of 'get_label'.
105 (evaluate_struct_tuple): Remove code handling OP_LABELED.
107 Remove local variable 'variantno' and related code.
108 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
110 * expprint.c (print_subexp_standard): Likewise.
111 (dump_subexp_body_standard): Likewise.
112 * parse.c (operator_length_standard): Likewise.
114 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
116 Incorporate ARI web page generator into GDB sources.
117 * contrib/ari/create-web-ari-in-src.sh: New file.
118 * contrib/ari/gdb_ari.sh: New file.
119 * contrib/ari/gdb_find.sh: New file.
120 * contrib/ari/update-web-ari.sh: New file.
122 2012-10-31 Tom Tromey <tromey@redhat.com>
124 * gdbarch.c: Rebuild.
125 * gdbarch.sh: Remove references to gdbarch_swap.
126 * corelow.c (core_open): Remove obsolete comment.
128 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
131 * c-typeprint.c (c_print_type): Don't print a space for vector
132 types, this is handled within the suffix.
133 (c_type_print_varspec_suffix): Add a space to vector suffix.
135 2012-10-26 Pedro Alves <palves@redhat.com>
137 * amd64-tdep.c (amd64_relocate_instruction): Use
138 store_unsigned_integer instead of memcpy.
139 * i386-tdep.c (i386_relocate_instruction): Ditto.
141 2012-10-26 Pedro Alves <palves@redhat.com>
143 * infrun.c (handle_inferior_event): Merge handling of
144 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
147 2012-10-26 Pedro Alves <palves@redhat.com>
149 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
152 2012-10-26 Pedro Alves <palves@redhat.com>
154 * target.c (target_waitstatus_to_string): Handle
155 TARGET_WAITKIND_VFORK_DONE.
157 2012-10-26 Pedro Alves <palves@redhat.com>
159 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
160 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
162 2012-10-24 Tristan Gingold <gingold@adacore.com>
164 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
167 2012-10-24 Joel Brobecker <brobecker@adacore.com>
169 * ravenscar-thread.c (ravenscar_wait): Only update the list
170 of threads and inferior_ptid if the inferior is still alive.
172 2012-10-24 Joel Brobecker <brobecker@adacore.com>
174 * ada-lang.c (is_known_support_routine): Use lbasename when
175 matching the symtab's filename against
176 known_runtime_file_name_patterns.
178 2012-10-24 Joel Brobecker <brobecker@adacore.com>
180 * ada-lang.c (ada_same_array_size_p): New function.
181 (ada_promote_array_of_integrals): New function.
182 (coerce_for_assign): Add handling of arrays where the elements
183 are integrals of a smaller size than the size of the target
186 2012-10-24 Joel Brobecker <brobecker@adacore.com>
188 * doublest.c (convert_doublest_to_floatformat): Fix comparison
189 against maximum exponent value.
191 2012-10-24 Joel Brobecker <brobecker@adacore.com>
193 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
196 2012-10-24 Joel Brobecker <brobecker@adacore.com>
198 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
199 strip typedef layer when computing the fixed type's field type,
200 only when computing its size.
202 2012-10-24 Mark Kettenis <kettenis@gnu.org>
205 * i386-tdep.c (i386_return_value): Handle complex double and long
208 2012-10-24 Joel Brobecker <brobecker@adacore.com>
210 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
211 New local variable args_len.
212 Quote the name of the executable when computing the command line.
214 2012-10-23 Mark Kettenis <kettenis@gnu.org>
219 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
221 * amd64-tdep.c (amd64_classify): Classify complex types.
222 (amd64_return_value): Handle the COMPLEX_X87 class.
224 2012-10-23 Joel Brobecker <brobecker@adacore.com>
226 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
227 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
229 2012-10-23 Joel Brobecker <brobecker@adacore.com>
231 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
233 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
234 to amd64_windows_auto_wide_charset.
236 2012-10-23 Yao Qi <yao@codesourcery.com>
238 * event-top.c (mark_async_signal_handler_wrapper): Remove.
239 * event-top.h: Remove its declaration.
240 (async_request_quit): Call mark_async_signal_handler instead of
241 mark_async_signal_handler_wrapper.
242 (async_do_nothing, async_disconnect): Likewise.
243 (async_stop_sig): Likewise.
244 * remote.c (handle_remote_sigint): Likewise.
245 (handle_remote_sigint_twice): Likewise.
247 2012-10-23 Yao Qi <yao@codesourcery.com>
249 * event-top.c (sigint_token, sighup_token): Replace 'void *'
250 with 'static struct async_signal_handler *'.
251 (sighup_token, sigquit_token, sigstp_token): Likewise.
253 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
255 * gdbarch.sh (function_list): Use 'pstring' when printing
256 a variable which could return NULL.
257 * gdbarch.c: Regenerate.
259 2012-10-10 Joel Brobecker <brobecker@adacore.com>
260 Tom Tromey <tromey@redhat.com>
262 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
263 inneffective if condition by gdb assertion. Add function
266 2012-10-19 Joel Brobecker <brobecker@adacore.com>
268 * parser-defs.h (struct exp_descriptor): Document constraint
269 on return value for "op_name" callbacks.
271 2012-10-18 Tom Tromey <tromey@redhat.com>
273 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
274 * symtab.c (iterate_over_some_symtabs): Constify.
275 * source.h (symtab_to_fullname): Return 'const char *'.
276 * source.c (symtab_to_fullname): Return 'const char *'.
277 * python/py-symtab.c (stpy_fullname): Constify.
278 * cli/cli-cmds.c (edit_command): Constify.
279 * breakpoint.c (print_breakpoint_location)
280 (update_static_tracepoint): Constify.
282 2012-10-18 Tom Tromey <tromey@redhat.com>
284 * breakpoint.c (compare_breakpoints): Fix comparison.
286 2012-10-18 Tom Tromey <tromey@redhat.com>
288 * valprint.c (generic_emit_char, generic_printstr): Pass size of
289 gdb_wchar_t to convert_between_encodings.
291 2012-10-17 Yao Qi <yao@codesourcery.com>
293 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
294 more parameter 'inferior'.
295 * corefile.c (write_memory_with_notification): Caller update.
297 * mi/mi-cmd-var.c: Include "mi-main.h".
298 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
299 to 1 and restore it later.
300 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
301 and "data-write-memory-bytes.
302 * mi/mi-interp.c: Include objfiles.h.
303 (mi_interpreter_init): Call observer_attach_memory_changed.
304 (mi_memory_changed): New.
305 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
308 * NEWS: Mention new MI notification "memory-changed".
310 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
312 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
314 2012-10-15 Doug Evans <dje@google.com>
316 New option -nh: inhibit loading of ~/.gdbinit.
318 * main.c (captured_main): Recognize and process -nh.
319 (print_gdb_help): Mention -nh.
320 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
322 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
326 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
328 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
329 nor pc_regnum_from_eax.
330 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
331 nor pc_regnum_from_eax.
333 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
335 Fix entry values resolving in inlined frames.
336 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
337 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
340 2012-10-15 Joel Brobecker <brobecker@adacore.com>
342 * configure.ac: Build with -DMS_WIN64 if building with Python
343 enabled using GCC on amd64-windows.
344 * configure: Regenerate.
346 2012-10-15 Tom Tromey <tromey@redhat.com>
349 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
352 2012-10-15 Tom Tromey <tromey@redhat.com>
355 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
357 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
359 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
360 reset thread numbering back to 1.
362 2012-10-11 Doug Evans <dje@google.com>
364 PR breakpoints/14643.
365 * linespec.c (struct ls_parser): New member keyword_ok.
366 (linespec_lexer_lex_string): Add comment.
367 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
369 (parse_linespec): Set keyword_ok.
371 2012-10-10 Doug Evans <dje@google.com>
373 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
374 "0x" prefix on address in log message.
376 * dwarf2read.c (read_1_byte): Add const to buf parameter.
377 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
378 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
379 (lookup_dwo_file): Add const to dwo_name parameter.
380 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
382 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
384 Fix crash during stepping on ppc32.
385 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
388 2012-10-03 Doug Evans <dje@google.com>
391 * buildsym.c (buildsym_init): Reset using_directives to NULL.
393 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
395 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
396 output and use uint32_t not long to ensure 4 byte size.
398 2012-10-02 Joel Brobecker <brobecker@adacore.com>
400 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
403 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
405 * target.c (simple_search_memory): Include access length in
408 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
409 Edjunior Machado <emachado@linux.vnet.ibm.com>
412 * solib.c (solib_find): Prevent GDB from loading native libraries when
413 debugging a cross-target corefile.
415 2012-09-28 selven <pcthegreat@gmail.com>
417 Make definition match declaration.
419 * regcache.c (regcache_register_status): Change return type to
420 enum register_status.
422 2012-09-28 Yao Qi <yao@codesourcery.com>
424 * mi/mi-main.c (mi_cmd_data_write_memory): Call
425 write_memory_with_notification instead of write_memory.
426 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
427 instead of target_write_memory.
429 2012-09-28 Yao Qi <yao@codesourcery.com>
431 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
432 when the length of content is not an even number.
434 2012-09-27 Tom Tromey <tromey@redhat.com>
436 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
437 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
439 2012-09-27 Joel Brobecker <brobecker@adacore.com>
441 * sol-thread.c (sol_thread_fetch_registers)
442 (sol_thread_store_registers): Delete commented out code.
444 2012-09-27 Joel Brobecker <brobecker@adacore.com>
446 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
447 Move these functions to sparc-sol-thread.c.
448 * sparc-sol-thread.c: New file.
449 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
450 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
452 * configure: Regenerate.
454 2012-09-27 Joel Brobecker <brobecker@adacore.com>
456 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
457 Remove commented-out code.
459 2012-09-27 Joel Brobecker <brobecker@adacore.com>
461 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
462 Enable this code for sparc hosts only.
464 2012-09-27 Joel Brobecker <brobecker@adacore.com>
466 * procfs.h (procfs_find_LDT_entry): Add declaration.
467 * sol-thread.c (ps_lgetLDT): Delete local declaration of
468 function procfs_find_LDT_entry.
470 2012-09-27 Joel Brobecker <brobecker@adacore.com>
472 * procfs.c (proc_get_LDT_entry): Make static.
474 2012-09-27 Joel Brobecker <brobecker@adacore.com>
476 * procfs.c (proc_find_memory_regions): Fix declaration.
478 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
480 * amd64-tdep.c (amd64_return_value): Revert previous change
481 that used TYPE_LENGTH directly.
482 * bfin-tdep.c (bfin_extract_return_value): Likewise.
483 (bfin_store_return_value): Likewise.
484 * cris-tdep.c (cris_store_return_value): Likewise.
485 (cris_extract_return_value): Likewise.
486 * h8300-tdep.c (h8300_extract_return_value): Likewise.
487 * hppa-tdep.c (hppa64_return_value): Likewise.
488 * lm32-tdep.c (lm32_store_return_value): Likewise.
489 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
490 * spu-tdep.c (spu_value_from_register): Likewise.
491 * vax-tdep.c (vax_return_value): Likewise.
493 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
495 * gdbtypes.c (lookup_array_range_type): Expand parameters
496 LOW_BOUND and HIGH_BOUND to LONGEST.
497 (lookup_string_range_type): Likewise.
498 * gdbtypes.h (lookup_array_range_type): Likewise.
499 (lookup_string_range_type): Likewise.
500 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
501 Expand HIGHBOUND to ssize_t.
502 (value_string): Likewise.
503 * value.h (value_cstring): Expand parameter LEN to ssize_t.
504 (value_string): Likewise.
506 2012-09-27 Yao Qi <yao@codesourcery.com>
509 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
510 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
513 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
515 * procfs.c: Add gdb_bfd header.
516 * rs6000-nat.c: Likewise.
517 * solib-pa64.c: Likewise.
518 * spu-linux-nat.c: Likewise.
519 * windows-nat.c: Likewise.
521 2012-09-26 Tom Tromey <tromey@redhat.com>
523 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
525 2012-09-26 Tom Tromey <tromey@redhat.com>
527 * dwarf2read.c (mark_common_block_symbol_computed): New function.
528 (read_common_block): Handle child DIEs with
529 DW_AT_data_member_location.
530 (new_symbol_full): Add special case for common blocks.
532 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
533 Tom Tromey <tromey@redhat.com>
535 * dwarf2read.c (read_common_block): Rewrite.
536 (new_symbol_full): Handle DW_TAG_common_block.
537 * f-lang.c (head_common_list, find_common_for_function):
539 * f-lang.h (struct common_entry, struct saved_f77_common,
540 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
541 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
542 BLANK_COMMON_NAME_LOCAL): Remove.
543 (struct common_block): New.
544 * f-valprint.c (list_all_visible_commons): Remove.
545 (info_common_command_for_block): New function.
546 (info_common_command): Use it.
547 * stack.c (iterate_over_block_locals): Special case for
549 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
551 (struct general_symbol_info) <value.common_block>: New field.
552 (SYMBOL_VALUE_COMMON_BLOCK): New define.
554 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
555 Tom Tromey <tromey@redhat.com>
557 * f-lang.c (allocate_saved_bf_node,
558 allocate_saved_function_node, allocate_saved_f77_common_node,
559 allocate_common_entry_node, tail_common_list, current_common,
560 saved_bf_list, saved_bf_list_end, current_head_bf_list,
561 tmp_bf_ptr, add_common_block, add_common_entry,
562 find_first_common_named, patch_common_entries,
563 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
564 global_remote_debug, get_bf_for_fcn, saved_function_list,
565 saved_function_list_end, clear_function_list, struct saved_fcn,
566 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
567 SAVED_BF, SAVED_BF_PTR): Remove.
568 * f-lang.h (tail_common_list, current_common,
569 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
570 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
571 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
572 real_main_c_value): Remove.
573 * f-valprint.c (there_is_a_visible_common_named): Remove.
575 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
577 * breakpoint.c (update_global_location_list): Ignore previous
578 duplicate status of a breakpoint when starting a new scan for
579 duplicate breakpoints.
581 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
583 * arm-tdep.c (arm_skip_prologue): Extending producer check to
584 support LLVM compiler.
586 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
588 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
589 * bfin-tdep.c (bfin_extract_return_value): Likewise.
590 (bfin_store_return_value): Likewise.
591 * cris-tdep.c (cris_store_return_value): Likewise.
592 (cris_extract_return_value): Likewise.
593 * h8300-tdep.c (h8300_extract_return_value): Likewise.
594 * hppa-tdep.c (hppa64_return_value): Likewise.
595 * lm32-tdep.c (lm32_store_return_value): Likewise.
596 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
597 * spu-tdep.c (spu_value_from_register): Likewise.
598 * vax-tdep.c (vax_return_value): Likewise.
600 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
602 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
603 parameter LEN to ssize_t.
605 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
607 * ada-valprint.c (ada_val_print_1): Eliminate single-use
609 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
611 (alpha_store_return_value): Likewise.
612 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
613 (amd64_push_arguments): Likewise.
614 * ax-gdb.c (gen_trace_static_fields): Likewise.
615 (gen_traced_pop): Likewise.
616 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
617 * breakpoint.c (update_watchpoint): Likewise.
618 * findcmd.c (parse_find_args): Use local variable for type
620 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
621 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
622 (h8300_store_return_value): Likewise.
623 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
624 Use i386_darwin_arg_type_alignment directly.
625 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
626 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
627 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
628 (m68hc11_extract_return_value): Likewise.
629 * mep-tdep.c (mep_push_dummy_call): Likewise.
630 * printcmd.c (float_type_from_length): Likewise.
631 * s390-tdep.c (s390_value_from_register): Likewise.
632 * stack.c (read_frame_arg): Likewise.
633 * tracepoint.c (encode_actions_1): Likewise.
634 * valops.c (value_fetch_lazy): Use local variable for type
635 instead of length. Use TYPE_LENGTH directly.
636 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
638 2012-09-25 Joel Brobecker <brobecker@adacore.com>
640 * symtab.c (skip_prologue_sal): Fix typo in comment.
642 2012-09-25 Joel Brobecker <brobecker@adacore.com>
644 * linespec.c (create_sals_line_offset): Fix typo in comment.
646 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
648 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
649 use plongest to print the array size.
651 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
653 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
654 * p-valprint.c (pascal_type_print_base): Likewise.
656 2012-09-22 Yao Qi <yao@codesourcery.com>
658 * remote.c (remote_get_trace_status): Remove setting default
659 values of fields of 'ts'.
661 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
663 Fix internal error on canonicalization of clang types.
664 * cp-name-parser.y (operator): New comment at make_operator call for
665 new, delete, new[] and delete[].
666 (exp): Use "sizeof ". Add new comment at make_operator call.
668 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
670 Fix disassemble without parameters in tailcall frame.
671 * cli/cli-cmds.c (disassemble_current_function): Use
672 get_frame_address_in_block.
674 2012-09-21 Tom Tromey <tromey@redhat.com>
676 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
677 TYPE_CODE_UNION>: Unify, removing a goto.
679 2012-09-21 Tom Tromey <tromey@redhat.com>
681 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
683 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
685 * findvar.c (read_frame_register_value): Mark the result value as
686 optimized out if any of the input registers have been optimized out.
688 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
690 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
692 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
694 * eval.c (evaluate_subexp_standard): Eliminate single-use
697 2012-09-21 Yao Qi <yao@codesourcery.com>
699 * mi/mi-interp.c: Declare mi_record_changed.
700 (mi_interpreter_init): Call observer_attach_record_changed.
701 (mi_record_changed): New.
702 * record.c (record_open): Call observer_notify_record_changed.
703 (cmd_record_stop): Call observer_notify_record_changed.
706 2012-09-20 Tom Tromey <tromey@redhat.com>
709 * python/python.c (finalize_python): New function.
710 (_initialize_python): Make a final cleanup.
712 2012-09-19 Doug Evans <dje@google.com>
714 * buildsym.h (param_symbols): Delete, unused.
715 (context_stack): Delete member "params", unused.
716 * buildsym.c (push_context): Update.
717 * dwarf2read.c (read_func_scope): Update.
719 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
721 * sh-tdep.c (sh_register_convert_to_virtual)
722 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
723 all callers. Just do a memcpy if not the little-endian case.
725 * h8300-tdep.c (h8300_gdbarch_init): Invoke
726 set_gdbarch_double_format and set_gdbarch_long_double_format.
727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
728 set_gdbarch_double_format.
729 * sh-tdep.c (sh_gdbarch_init): Likewise.
731 * NEWS: Document the removal of SH's 'regs' command.
732 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
735 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
737 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
740 2012-09-18 Joel Brobecker <brobecker@adacore.com>
742 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
743 language when iterating over symbols.
745 2012-09-18 Yao Qi <yao@codesourcery.com>
747 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
748 (mi_interpreter_init): Call observer_attach_tsv_created and
749 observer_attach_tsv_deleted.
750 (mi_tsv_created, mi_tsv_deleted): New.
751 * tracepoint.c (delete_trace_state_variable): Call
752 observer_notify_tsv_deleted.
753 (trace_variable_command): Call observer_notify_tsv_created.
754 (delete_trace_variable_command): Call
755 observer_notify_tsv_deleted.
756 (create_tsv_from_upload): Call observer_notify_tsv_created.
759 2012-09-18 Yao Qi <yao@codesourcery.com>
761 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
762 if traceframe changed.
763 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
765 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
766 (mi_interpreter_init): Hook mi_traceframe_changed to observer
767 'traceframe_changed'.
768 (mi_traceframe_changed): New.
769 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
771 * NEWS: Mention the new MI notification.
773 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
775 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
777 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
779 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
780 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
781 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
782 Extend code also for PaX support. Convert all gdb_assert to warning
785 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
787 Implement auto-load user conveniences suggested by Doug Evans.
788 * auto-load.c: Include top.h.
789 (file_is_auto_load_safe): New variable advice_printed. Print advice.
790 (_initialize_auto_load): New variable scripts_directory_help. Mention
791 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
792 scripts-directory. Document in online help one can use also files for
793 set auto-load safe-path.
794 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
795 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
797 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
799 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
802 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
804 * m2-valprint.c (m2_print_array_contents): Eliminate variable
805 ELTLEN and use TYPE_LENGTH directly.
806 (m2_val_print): Likewise.
807 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
808 variable LEN and use TYPE_LENGTH directly.
809 (m68k_svr4_store_return_value): Likewise.
810 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
811 ARGLEN and use TYPE_LENGTH directly.
812 (mips_o64_push_dummy_call): Likewise.
813 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
814 variable LENGTH and use TYPE_LENGTH directly.
815 (s390_function_arg_float): Likewise.
816 (s390_function_arg_integer): Likewise.
817 (s390_push_dummy_call): Likewise.
818 (s390_return_value_convention): Likewise.
819 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
820 TYPE_LENGTH directly.
822 2012-09-17 Yao Qi <yao@codesourcery.com>
824 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
825 Update comment to add_setshow_integer_cmd.
826 * cli/cli-setshow.c (do_set_command): Handle case
827 'var_zuinteger_unlimited'.
828 (do_show_command): Likewise.
829 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
830 for command 'remotetimeout'.
831 * command.h (enum var_types): New zuinteger_unlimited. Update comment
833 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
834 for command 'set listsize'.
836 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
838 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
841 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
844 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
845 (frame_pop): Drop also TAILCALL_FRAME frames.
846 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
848 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
849 Pedro Alves <palves@redhat.com>
852 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
853 function start if we are already at function start. Both for
854 reverse-next and for reverse-step into function without line number
857 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
859 Code cleanup - rename 'inline' depth to 'artificial' depth.
860 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
861 frame_id_artificial_p, extend the comment.
862 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
863 * frame.c (fprint_frame_id): Rename at a user, change debug output
864 text to "artificial=".
865 (skip_inlined_frames): Rename to ...
866 (skip_artificial_frames): ... here. Extend the comment.
867 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
868 (frame_id_inlined_p): Rename to ...
869 (frame_id_artificial_p): ... here. Rename at a user.
870 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
871 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
873 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
875 (frame_id_inlined_p): Rename to ...
876 (frame_id_artificial_p): ... here.
877 * inline-frame.c (inline_frame_this_id): Rename at a user.
879 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
881 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
882 vector variables using vector_size syntax rather than array
885 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
887 * valarith.c (value_concat): Replace unsafe ALLOCA with
890 2012-09-14 Pedro Alves <palves@redhat.com>
892 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
894 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
896 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
897 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
898 data-directory as appropriate.
900 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
902 * printcmd.c (ui_printf): Eliminate single-use variable
905 2012-09-14 Yao Qi <yao@codesourcery.com>
906 Pedro Alves <palves@redhat.com>
908 * valops.c (value_assign): Move observer_notify_target_changed
909 below to replace reinit_frame_cache.
911 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
913 Refactor Python "gdb" module into a proper Python package, by
914 introducing a new "_gdb" module for code implemented in C, and
915 using reload/__import__ instead of exec.
916 * python/lib/gdb/__init__.py: Import * from _gdb.
917 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
918 prompt_hook, sys.argv): Moved from finish_python_initialization.
919 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
920 (packages, auto_load_packages): New list and function replacing
921 module_dict and auto-loading code, using __file__ instead of
922 gdb.PYTHONDIR and reload/__import__ instead of exec.
923 (GdbSetPythonDirectory): Replacing function of the same name
924 from finish_python_initialization, using reload/__import__ instead
925 of exec, as well as call auto_load_packages.
926 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
927 gdb_python_module and not gdb_module.
928 * python/python-internal.h (gdb_python_module): Declare.
929 * python/python.c (gdb_python_module): New global.
930 (before_prompt_hook): Check gdb_python_module and not gdb_module.
931 (_initialize_python): Rename gdb module to _gdb.
932 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
933 (finish_python_initialization): Move Python code to
934 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
937 2012-09-13 Pedro Alves <palves@redhat.com>
939 * Makefile.in (COMMON_OBS): Add registry.o.
940 * registry.c: New file.
941 * registry.h (struct registry_container): Declare.
942 (registry_data_callback): New typedef.
943 (struct registry_data, struct registry_data_registration, struct
944 registry_data_registry): New type.
945 (register_data_with_cleanup, registry_alloc_data)
946 (registry_callback_adaptor, registry_clear_data)
947 (registry_container_free_data, registry_set_data, registry_data):
949 (DEFINE_REGISTRY): Refactor structures and functions as shims over
950 the new common structures and functions.
951 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
954 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
956 * remote.c (remote_insert_hw_breakpoint): Throw exception if
957 there is an error inserting hardware breakpoints and use the
958 error message from the target.
960 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
961 Catch this exception and print the error message contained within. Do not
962 print the default hardware error breakpoint message in this case.
964 2012-09-12 Doug Evans <dje@google.com>
966 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
969 2012-09-11 Doug Evans <dje@google.com>
971 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
972 .gdb_index symbol attributes if there are none.
974 2012-09-11 Joel Brobecker <brobecker@adacore.com>
976 * symtab.h (struct minimal_symbol) [has_size]: New field.
977 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
978 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
979 * printcmd.c (build_address_symbolic): Only filter out zero-sized
980 minimal symbols if the symbol's size is actually known.
981 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
982 of msymbol's size field. Add comment.
983 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
984 SET_MSYMBOL_SIZE to set the minimal symbol size.
986 2012-09-11 Joel Brobecker <brobecker@adacore.com>
988 * minsyms.c (install_minimal_symbols): Use memset to fill entire
989 minimal_symbol struct object, rather than setting some of its
992 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
994 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
995 passed_a_ptr flag when displaying typedef types.
997 2012-09-10 Joel Brobecker <brobecker@adacore.com>
999 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1000 the optimized_out flag is preserved.
1002 2012-09-10 Anthony Green <green@moxielogic.com>
1004 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1005 prologue changes in GCC.
1007 2012-09-10 Keith Seitz <keiths@redhat.com>
1010 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1011 (BOOL_CONVERSION_BADNESS): ... this.
1012 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1013 (rank_one_type): Allow all boolean conversions
1014 permitted by the standard.
1016 2012-09-06 Tom Tromey <tromey@redhat.com>
1018 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1019 Don't decref py_objfile.
1021 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1023 Do not enable -lmcheck by default when Python is enabled with
1025 * configure.ac: (python_has_threads) New variable, by testing
1026 if WITH_THREAD is defined in Python.h.
1027 Move --enable-lmcheck after --with-python.
1028 Do not enable -lmcheck by default if python_has_threads=yes.
1029 Warn if --enable-lmcheck and python_has_threads=yes.
1030 * configure: Regenerate.
1032 2012-08-31 Yao Qi <yao@codesourcery.com>
1034 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1035 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1036 Update some commands.
1037 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1038 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1041 2012-08-31 Yao Qi <yao@codesourcery.com>
1043 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1045 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1047 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1049 2012-08-29 Doug Evans <dje@google.com>
1051 * main.c (print_gdb_help): Remove reference to
1052 --use-deprecated-index-sections.
1054 2012-08-28 Yao Qi <yao@codesourcery.com>
1056 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1057 (init_cmds): Call add_setshow_uinteger_cmd for command
1058 'max-user-call-depth'.
1059 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1060 declaration of 'max_user_call_depth'.
1061 * frame.c (backtrace_limit): Add 'unsigned'.
1062 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1064 * remote.c (remoteaddresssize): Add 'unsigned'.
1065 (remote_address_masked): Change local var 'address_size' to
1067 (_initialize_remote): Call add_setshow_uinteger_cmd for
1068 'remoteaddresssize'.
1069 * top.c (history_size): Add 'unsigned'.
1070 (show_commands): Change local variables to 'unsigned'.
1071 (set_history_size_command): Don't check history_size is negative.
1072 Adjust the condition to call unstifle_history and set history_size
1075 2012-08-28 Pedro Alves <palves@redhat.com>
1079 * infcmd.c (default_print_one_register_info): New, factored out
1080 from default_print_registers_info.
1081 (default_print_registers_info): Use it. Mark value unavailable if
1083 (registers_info): Print user registers with
1084 default_print_one_register_info.
1086 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1089 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1090 is not NULL before referencing it.
1092 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1095 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1098 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1099 Jan Kratochvil <jan.kratochvil@redhat.com>
1101 * auto-load.c (auto_load_objfile_script): Rename to ...
1102 (auto_load_objfile_script_1): ... here, change variable realname to
1103 parameter realname, document it, add return value, add variable retval.
1104 (auto_load_objfile_script): New function.
1106 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1108 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1109 followed by a whitespace.
1111 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1114 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1115 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1116 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1119 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1121 * memattr.c (create_mem_region): Fix memory region overlapping
1124 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1126 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1127 with xmalloc/cleanup.
1128 * mt-tdep.c (mt_push_dummy_call): Likewise.
1129 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1130 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1132 2012-08-24 Yao Qi <yao@codesourcery.com>
1134 * jv-exp.y (push_expression_name): Add "." at the end of error
1137 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1139 Document how to return from "python-interactive" to GDB.
1140 * python/python.c (_initialize_python): Update documentation.
1142 2012-08-23 Pedro Alves <palves@redhat.com>
1144 * infrun.c (_initialize_infrun) <handle command help text>:
1145 Mention that multiple signals are supported.
1147 2012-08-23 Pedro Alves <palves@redhat.com>
1149 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1152 2012-08-23 Yao Qi <yao@codesourcery.com>
1154 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1155 (tfind_1): Don't call registers_changed, set_traceframe_num,
1156 and clear_traceframe_info.
1157 Call set_current_traceframe.
1158 (set_current_traceframe): call set_traceframe_num.
1160 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1162 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1163 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1165 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1167 Enable readline in Python in a GDB-specific way and block the
1168 standard Python readline module to prevent conflicts with GDB.
1169 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1170 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1171 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1172 * python/py-gdb-readline.c: New file.
1173 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1175 * python/python.c (_initialize_python): Call
1176 gdbpy_initialize_gdb_readline.
1178 2012-08-22 Keith Seitz <keiths@redhat.com>
1180 * defs.h: Include build-gnulib/config.h
1182 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1184 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1187 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1189 Add a new "python-interactive" command that starts a standard
1190 Python interactive prompt with "pi" as alias, and add "py" as
1191 an alias to "python".
1192 * NEWS: Mention the new commands.
1193 * python/python.c (eval_python_command): New function.
1194 (python_interactive_command): For "python-interactive" with
1195 arguments, call eval_python_command. For "python-interactive"
1196 without arguments, call PyRun_InteractiveLoop.
1197 (_initialize_python): Add "python-interactive" command with
1198 "pi" as alias, and add "py" as an alias to "python".
1200 2012-08-22 Tom Tromey <tromey@redhat.com>
1202 * defs.h (quit_flag): Don't declare.
1203 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1204 (QUIT): Use new functions.
1205 * event-top.c (command_handler): Use clear_quit_flag.
1206 (handle_sigint): Use set_quit_flag.
1207 (async_request_quit): Use check_quit_flag. Don't check
1209 * exceptions.c (throw_exception): Use clear_quit_flag.
1210 * main.c (captured_main): Use clear_quit_flag.
1211 * python/python.c (clear_quit_flag, set_quit_flag)
1212 (check_quit_flag): New functions.
1213 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1215 * remote.c (remote_wait_as): Use check_quit_flag,
1217 (remote_start_remote): Call QUIT.
1218 * symfile.c (load_progress): Use check_quit_flag.
1219 * top.c (command_loop): Use clear_quit_flag.
1220 (command_line_input): Call QUIT.
1221 * utils.c (quit_flag): Conditionally define.
1222 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1224 (prompt_for_continue): Call QUIT. Use quit, not
1226 * remote-mips.c (mips_expect_timeout): Call QUIT.
1227 * monitor.c (monitor_expect): Call QUIT.
1229 2012-08-22 Tom Tromey <tromey@redhat.com>
1231 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1232 (async_init_signals): Update.
1233 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1234 (SIGWINCH_HANDLER_BODY): Remove.
1236 2012-08-22 Tom Tromey <tromey@redhat.com>
1238 * jit.c (jit_object_close_impl): Don't malloc the objfile
1240 * objfiles.c (allocate_objfile): Don't malloc the objfile
1242 (free_objfile): Don't free the objfile name.
1243 * objfiles.h (struct objfile) <name>: Update comment.
1244 * symfile.c (reread_symbols): Fix reference counting. Don't
1245 malloc objfile name.
1247 2012-08-22 Tom Tromey <tromey@redhat.com>
1249 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1250 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1251 (symfile_bfd_open): Likewise.
1252 (generic_load): Likewise.
1253 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1254 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1256 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1258 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1259 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1260 (pmon_load_fast): Likewise.
1261 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1262 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1263 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1264 (macho_check_dsym): Likewise.
1265 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1266 (m32r_upload_command): Likewise.
1267 * gdb_bfd.h (gdb_bfd_cache): Declare.
1268 * gdb_bfd.c (struct gdb_bfd_data): New.
1269 (gdb_bfd_cache): New global.
1270 (struct gdb_bfd_cache_search): New.
1271 (hash_bfd): New function.
1273 (gdb_bfd_open): Likewise.
1274 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1275 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1277 * exec.c (exec_file_attach): Use gdb_bfd_open.
1278 * dsrec.c (load_srec): Use gdb_bfd_open.
1280 2012-08-22 Tom Tromey <tromey@redhat.com>
1282 * dwarf2read.c (macro_start_file): Update.
1283 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1284 (free_objfile_per_bfd_storage): Destroy macro_cache.
1285 (allocate_objfile, free_objfile): Update.
1286 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1288 (struct objfile) <macro_cache>: Remove.
1289 * symfile.c (reread_symbols): Update.
1290 * symmisc.c (print_symbol_bcache_statistics): Update.
1291 (print_objfile_statistics): Update.
1293 2012-08-22 Tom Tromey <tromey@redhat.com>
1295 * elfread.c (elf_symtab_read): Update.
1296 * objfiles.c (objfiles_bfd_data): New global.
1297 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1298 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1299 (allocate_objfile, free_objfile): Update.
1300 (_initialize_objfiles): Initialize objfiles_bfd_data.
1301 * objfiles.h (struct objfile_per_bfd_storage): New.
1302 (struct objfile) <per_bfd>: New field.
1303 <filename_cache>: Remove.
1304 (set_objfile_per_bfd): Declare.
1305 * symfile.c (reread_symbols): Update. Call
1306 set_objfile_per_bfd.
1307 (allocate_symtab): Update.
1308 * symmisc.c (print_symbol_bcache_statistics): Update.
1309 (print_objfile_statistics): Print the size of the BFD obstack.
1311 2012-08-22 Tom Tromey <tromey@redhat.com>
1313 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1314 * gdb_bfd.c: Use DEFINE_REGISTRY.
1315 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1316 (gdb_bfd_ref): Call bfd_alloc_data.
1317 (gdb_bfd_unref): Call bfd_free_data.
1319 2012-08-22 Tom Tromey <tromey@redhat.com>
1321 * registry.h (struct registry_fields): New.
1322 (REGISTRY_FIELDS): Redefine.
1323 (REGISTRY_ACCESS_FIELD): New macro.
1324 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1327 2012-08-22 Tom Tromey <tromey@redhat.com>
1329 * auto-load.c (_initialize_auto_load): Update.
1330 * solib-svr4.c (_initialize_svr4_solib): Update
1331 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1332 * solib-darwin.c (_initialize_darwin_solib): Update.
1333 * registry.h: New file.
1334 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1335 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1336 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1337 (register_program_space_data_with_cleanup)
1338 (register_program_space_data, program_space_alloc_data)
1339 (clear_program_space_data, set_program_space_data)
1340 (program_space_data): Don't declare.
1341 * progspace.c: Use DEFINE_REGISTRY.
1342 (struct program_space_data, struct
1343 program_space_data_registration, struct
1344 program_space_data_registry, program_space_data_registry)
1345 (register_program_space_data_with_cleanup)
1346 (register_program_space_data, program_space_alloc_data)
1347 (program_space_free_data, clear_program_space_data)
1348 (set_program_space_data, program_space_data): Remove.
1349 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1350 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1351 (register_objfile_data_with_cleanup, register_objfile_data)
1352 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1354 * objfiles.c: Use DEFINE_REGISTRY.
1355 (struct objfile_data, struct objfile_data_registration, struct
1356 objfile_data_registry, objfile_data_registry)
1357 (register_objfile_data_with_cleanup, register_objfile_data)
1358 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1359 (set_objfile_data, objfile_data): Remove.
1360 (_initialize_objfiles): Update.
1361 * jit.c (_initialize_jit): Update.
1362 * inflow.c (_initialize_inflow): Update.
1363 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1364 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1365 (register_inferior_data_with_cleanup, register_inferior_data)
1366 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1368 * inferior.c: Use DEFINE_REGISTRY.
1369 (struct inferior_data, struct inferior_data_registration, struct
1370 inferior_data_registry, inferior_data_registry)
1371 (register_inferior_data_with_cleanup, register_inferior_data)
1372 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1373 (set_inferior_data, inferior_data): Remove.
1374 * auxv.c (_initialize_auxv): Update.
1375 * ada-lang.c (_initialize_ada_language): Update.
1376 * breakpoint.c (_initialize_breakpoint): Update.
1377 * i386-nat.c (i386_use_watchpoints): Update.
1379 2012-08-22 Tom Tromey <tromey@redhat.com>
1381 * exec.c (exec_close, exec_file_attach): Update.
1382 (add_to_section_table): Initialize 'key' field.
1383 (add_target_sections, remove_target_sections): Add 'key' argument.
1384 * exec.h (add_target_sections, remove_target_sections): Add
1386 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1387 (reload_shared_libraries_1): Update.
1388 * target.h (struct target_section) <key>: New field.
1390 2012-08-22 Tom Tromey <tromey@redhat.com>
1392 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1394 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1396 * symfile.c (allocate_symtab): Use host_address_to_string
1397 function instead of cast of pointer to long which is not
1398 compatible with x86_64-w64-mingw32 build.
1400 2012-08-19 Andrew Pinski <apinski@cavium.com>
1402 * mips-tdep.c (is_octeon): New function.
1403 (is_octeon_bbit_op): New function.
1404 (mips32_next_pc): Handle Octeon's bbit instructions.
1405 (mips32_instruction_has_delay_slot): Likewise.
1407 2012-08-19 Andrew Pinski <apinski@cavium.com>
1409 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1410 before the function.
1412 2012-08-19 Andrew Pinski <apinski@cavium.com>
1414 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1416 2012-08-19 Keith Seitz <keiths@redhat.com>
1419 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1420 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1422 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1424 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1425 The typo broke "make TAGS".
1427 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1431 2012-08-17 Keith Seitz <keiths@redhat.com>
1434 * gdbtypes.c (strict_type_checking): New variable.
1435 (show_strict_type_checking): New function.
1436 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1437 if strict type checking is disabled.
1438 (_initialize_gdbtypes): Add "check type" subcommand.
1439 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1441 2012-08-17 Keith Seitz <keiths@redhat.com>
1443 * language.h (type_mode): Remove.
1444 (type_check): Remove.
1445 (struct language_defn): Remove la_type_check.
1446 (STRICT_TYPE): Remove unused macro.
1447 (type_error): Remove.
1448 * language.c (set_type_range_case): Renamed to ...
1449 (set_range_case): ... this. Update all callers.
1450 Remove type_mode/type_check.
1451 (type_mode): Remove.
1452 (type_check): Remove.
1453 (show_type_command): Remove.
1454 (set_type_command): Remove.
1455 (language_info): Remove type checking output.
1456 (type_error): Remove unused function.
1457 (range_error): Update comment.
1458 (unknown_language_defn): Remove la_type_check.
1459 (auto_language_defn): Likewise.
1460 (local_language_defn): Likewise.
1461 (_initialize_language): Remove "check type" subcommand.
1462 * ada-lang.c (ada_language_defn): Remove la_type_check.
1463 * c-lang.c (c_language_defn): Likewise.
1464 (cplus_language_defn): Likewise.
1465 (asm_language_defn): Likewise.
1466 (minimal_language_defn): Likewise.
1467 * d-lang.c (d_language_defn): Likewise.
1468 * f-lang.c (f_language_defn): Likewise.
1469 * go-lang.c (go_language_defn): Likewise.
1470 * jv-lang.c (java_language_defn): Likewise.
1471 * m2-lang.c (m2_language_defn): Likewise.
1472 * objc-lang.c (objc_language_defn): Likewise.
1473 * opencl-lang.c (opencl_language_defn): Likewise.
1474 * p-lang.c (pascal_language_defn): Likewise.
1476 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1478 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1480 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1482 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1484 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1485 using the regache. Use ia64_hpux_get_register_from_save_state_t
1486 to access the bsp and bspstore registers if not.
1488 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1490 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1491 * breakpoint.c (detach_breakpoints): Change pid parameter into
1492 a ptid. Adjust code accordingly.
1493 * infrun.c (handle_inferior_event): Delete variable child_pid.
1494 Update call to detach_breakpoints to pass the child ptid for
1496 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1497 assert that inferior_ptid's lwp is zero.
1498 (linux_handle_extended_wait): Update call to detach_breakpoints.
1499 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1502 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1504 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1505 parent, only call detach_breakpoints if tts.tts_event ==
1508 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1510 * dwarf2-frame.c (dwarf2_frame_cache): Use
1511 get_frame_address_in_block instead of get_frame_pc as
1512 the bound for executing the frame's FDE.
1514 2012-08-16 Yao Qi <yao@codesourcery.com>
1516 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1517 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1518 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1519 (c_type_print_varspec_suffix): Likewise.
1520 * eval.c (evaluate_subexp_standard): Likewise.
1521 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1522 (f_type_print_varspec_suffix): Likewise.
1523 * gdbtypes.c (is_scalar_type): Likewise.
1524 (recursive_dump_type): Likewise.
1525 * infcall.c (value_arg_coerce): Likewise.
1526 * m2-valprint.c (m2_val_print): Likewise.
1527 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1528 (pascal_type_print_varspec_suffix): Likewise.
1529 (pascal_type_print_base): Likewise.
1530 * p-valprint.c (pascal_val_print): Likewise.
1531 (pascal_val_print): Likewise.
1532 * valops.c (value_slice): Likewise.
1533 * valprint.c (scalar_type_p): Likewise.
1534 * valarith.c (value_bitstring_subscript): Remove.
1535 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1536 Remove comment on TYPE_CODE_BITSTRING.
1538 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1539 TYPE_CODE_BITSTRING.
1541 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1544 2012-08-16 Yao Qi <yao@codesourcery.com>
1546 * tracepoint.c (trace_find_none_command): Remove.
1547 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1549 2012-08-16 Yao Qi <yao@codesourcery.com>
1551 * remote.c (handle_notification): Remove parameter 'length'.
1552 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1554 2012-08-15 Keith Seitz <keiths@redhat.com>
1556 * gdbtypes.c (opaque_type_resolution): Make static.
1557 Add missing comment.
1558 (overload_debug): Add missing comment.
1559 (show_opaque_type_resolution): Likewise.
1560 (show_overload_debug): Likewise.
1561 (print_bit_vector): Remove unnecessary forward declaration.
1562 (print_arg_types): Likewise.
1563 (dump_fn_fieldlists): Likewise.
1564 (print_cplus_stuff): Likewise.
1566 2012-08-15 Tom Tromey <tromey@redhat.com>
1568 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1569 (gdb_bfd_ref): Initialize new field.
1570 (gdb_bfd_unref): Unref the archive BFD.
1571 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1574 2012-08-15 Tom Tromey <tromey@redhat.com>
1577 * python/py-bpevent.c (create_breakpoint_event_object): Update
1579 * python/py-event.c (evpy_add_attribute): Update comment.
1580 * python/py-exitedevent.c (create_exited_event_object): Fix
1581 reference counting and error handling.
1582 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1583 Fix reference counting.
1584 * python/py-signalevent.c (create_signal_event_object): Fix
1585 reference counting and error handling.
1586 * python/py-stopevent.c (emit_stop_event): Fix reference
1588 * python/py-threadevent.c (get_event_thread): Return a
1590 * python/py-type.c (convert_field): Fix reference counting.
1592 2012-08-15 Tom Tromey <tromey@redhat.com>
1594 * dwarf2read.c (dwarf_decode_macro_bytes)
1595 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1598 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1600 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1601 stepi, nexti, finish, next, step, jump, and continue commands.
1602 * infrun.c (_initialize_infrun): Update help text for the handle
1605 2012-08-14 Doug Evans <dje@google.com>
1607 * gdbtypes.c (struct extra): Delete, unused.
1609 * gdbtypes.c: Whitespace cleanup.
1610 (address_space_name_to_int): Remove "extern" from definition.
1611 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1613 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1614 TYPE_POINTER_TYPE (type).
1616 2012-08-14 Gary Benson <gbenson@redhat.com>
1618 * solib-svr4.c (svr4_free_library_list): Use free_so.
1620 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1622 * .gitignore: Add go-exp.c.
1624 2012-08-13 Doug Evans <dje@google.com>
1626 * value.c (show_convenience): Tweak comment.
1627 (_initialize_values): Mention convenience functions in the help text
1628 for "show convenience".
1630 2012-08-13 Yao Qi <yao@codesourcery.com>
1632 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1633 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1635 * eval.c (evaluate_subexp_standard): Likewise.
1636 * expprint.c (print_subexp_standard): Likewise.
1637 (dump_subexp_body_standard): Likewise.
1638 * parse.c (operator_length_standard): Likewise.
1640 2012-08-13 Yao Qi <yao@codesourcery.com>
1642 * std-operator.def: Remove OP_BITSTRING.
1643 * breakpoint.c (watchpoint_exp_is_const): Update.
1644 * eval.c (evaluate_subexp_standard): Remove handling to
1646 * expprint.c (print_subexp_standard): Likewise.
1647 (dump_subexp_body_standard): Likewise.
1648 * parse.c (operator_length_standard): Likewise.
1649 * valops.c (value_bitstring): Remove.
1650 * value.h: Remove the declaration of 'value_bitstring'.
1652 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1654 * linespec.c (find_methods): Remove unused variables `i1' and
1656 (decode_line_full): Likewise for `arg_start'.
1658 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1660 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1661 (zlib_decompress_section): Likewise for `section_data'.
1662 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1664 2012-08-10 Doug Evans <dje@google.com>
1666 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1667 * NEWS: Document them.
1668 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1670 * python/py-type.c (typy_array_1): New function.
1671 (typy_array): Call it.
1672 (typy_vector): New function.
1673 (type_object_methods): Add "vector".
1674 * python/lib/gdb/function/__init__.py: New file.
1675 * python/lib/gdb/function/strfns.py: New file.
1677 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1679 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1680 for TYPE_FIELD_BITPOS.
1681 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1683 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1686 * common/vec.h (VEC_merge): Define.
1687 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1688 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1689 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1690 * completer.c: Include gdb_signals.h.
1691 (signal_completer): Define.
1692 * completer.h (signal_completer): Add prototype.
1693 * infcmd.c (_initialize_infcmd): Assign the command
1694 completer for "signal" to handle_completer.
1695 * infrun.c: Include completer.h.
1696 (handle_completer): Define.
1697 (_initialize_infrun): Declare a new local variable c. Store the
1698 result of add_com("handle") to it. Assign the command
1699 completer for "handle" to handle_completer.
1701 2012-08-09 Yao Qi <yao@codesourcery.com>
1703 * cli/cli-decode.c (set_cmd_prefix): New.
1704 (lookup_cmd_for_prefixlist): New.
1705 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1706 of each cmd_list_element in *prefixlist.
1707 (add_setshow_cmd_full): set_cmd_prefix.
1708 (add_alias_cmd): Likewise.
1709 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1710 Declare 'auto_boolean_enums'.
1711 * cli/cli-setshow.c: Include "observer.h".
1712 (notify_command_param_changed_p): New.
1713 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1715 (do_setshow_command): Split it to ...
1716 (do_set_command, do_show_command): ... them. New.
1717 (do_set_command): Call observer_notify_command_param_changed if
1718 notify_command_param_changed_p returns true.
1719 (cmd_show_list): Caller update.
1720 * auto-load.c (set_auto_load_cmd): Likewise.
1721 * remote.c (show_remote_cmd): Likewise.
1722 * cli/cli-setshow.h: Update declarations.
1723 * top.c (execute_command): Call do_set_command and do_show_command.
1725 * NEWS: Mention new MI notification.
1726 * mi/mi-interp.c: Declare mi_command_param_changed.
1727 (mi_interpreter_init): Attach mi_command_param_changed to
1728 observer command_param_changed.
1729 (mi_command_param_changed): New.
1730 Remove mi_suppress_breakpoint_notifications.
1731 Define global variable mi_suppress_notification.
1732 (mi_breakpoint_created): Update.
1733 (mi_breakpoint_deleted): Likewise.
1734 (mi_breakpoint_modified): Likewise.
1735 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1736 'gdb-set' and set mi_suppress_notification.
1737 * mi/mi-main.h: (mi_suppress_notification): New struct.
1739 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1740 Jan Kratochvil <jan.kratochvil@redhat.com>
1742 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1744 2012-08-09 Yao Qi <yao@codesourcery.com>
1746 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1747 (skiplist): Move it to skip.c.
1748 (init_cmd_lists): Remove code setting enablebreaklist and
1750 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1751 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1753 * gdbcmd.h: Likewise.
1754 * skip.c (_initialize_step_skip): Move 'skiplist' from
1757 2012-08-09 Yao Qi <yao@codesourcery.com>
1759 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1760 * gnu-nat.c, symfile.c: Likewise.
1762 2012-08-08 Aaron Gamble <agamble@google.com>
1764 * utils.c (prompt_for_continue_wait_time): New static global.
1765 (make_command_stats_cleanup): Initialize it.
1766 (report_command_stats): Subtract time waiting for user.
1767 (prompt_for_continue): Track time waiting for user.
1768 (defaulted_query): Track time waiting for user.
1770 2012-08-08 Doug Evans <dje@google.com>
1772 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1774 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1775 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1776 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1777 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1778 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1779 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1781 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1782 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1783 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1784 (dump_prefix_expression): Handle OP_TYPE.
1786 2012-08-08 Keith Seitz <keiths@redhat.com>
1788 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1791 2012-08-08 Doug Evans <dje@google.com>
1793 * linux-thread-db.c: #include "gdb_vecs.h".
1794 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1796 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1797 (thread_db_load_search): Use a vector to iterate over path elements.
1798 Handle text appearing after "$pdir".
1800 * gdb_string.h: Moved to ...
1801 * common/gdb_string.h: ... here.
1802 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1803 gdb_string.h and gdb_assert.h.
1805 2012-08-08 Yao Qi <yao@codesourcery.com>
1807 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1808 (tic6x_value_to_register): Likewise.
1809 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1810 and set_gdbarch_value_to_register.
1812 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1813 Jean-Marc Saffroy <saffroy@gmail.com>
1816 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1817 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1818 * gcore.c (gcore_create_callback): New function comment. Add modified
1819 parameter. Only write modified regions. Set SEC_READONLY exactly
1820 according to MODIFIED.
1821 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1822 the passed modified value to FUNC.
1823 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1824 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1825 first. New variables modified and has_anonymous. Parse the lines of
1826 smaps file. Add the passed MODIFIED value to FUNC.
1827 * procfs.c (find_memory_regions_callback): Add the passed modified
1830 2012-08-06 Tom Tromey <tromey@redhat.com>
1832 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1833 (dwarf2_frame_cache): Use it.
1834 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1835 cache initialization constraint.
1837 2012-08-06 Tom Tromey <tromey@redhat.com>
1840 * varobj.c (update_dynamic_varobj_children): Don't call
1843 2012-08-06 Tom Tromey <tromey@redhat.com>
1846 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1848 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1850 * NEWS: New entry for 'cd' default parameters.
1851 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1853 2012-08-03 Tom Tromey <tromey@redhat.com>
1855 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1858 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1860 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1861 to attempting lseek/write.
1862 (inf_child_fileio_pread): Likewise for pread.
1864 2012-08-02 Yao Qi <yao@codesourcery.com>
1866 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1867 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1868 add_setshow_zinteger_cmd.
1869 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1870 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1871 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1872 instead of add_setshow_zinteger_cmd.
1873 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1874 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1875 instead of add_setshow_zinteger_cmd.
1876 * frame.c (frame_debug): Add 'unsigned'.
1877 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1878 add_setshow_zinteger_cmd.
1879 * frame.h: Update the declaration of 'frame_debug'.
1880 * gdbtypes.c (overload_debug): Add 'unsigned'.
1881 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1882 add_setshow_zinteger_cmd.
1883 * inferior.h: Update declaration of 'debug_infrun'.
1884 * infrun.c (debug_infrun): Add 'unsigned'.
1885 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1886 add_setshow_zinteger_cmd.
1887 * jit.c (jit_debug): Add 'unsigned'.
1888 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1889 add_setshow_zinteger_cmd.
1890 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1891 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1892 instead of add_setshow_zinteger_cmd.
1893 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1894 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1895 add_setshow_zinteger_cmd.
1896 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1897 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1898 instead of add_setshow_zinteger_cmd.
1899 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1900 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1901 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1902 intead of add_setshow_zinteger_cmd.
1903 * mips-tdep.c (mips_debug): Add 'unsigned'.
1904 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1905 instead of add_setshow_zinteger_cmd.
1906 * monitor.c (monitor_debug): Add 'unsigned'.
1907 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1908 add_setshow_zinteger_cmd.
1909 * observer.c (observer_debug): Add 'unsigned'.
1910 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1911 add_setshow_zinteger_cmd.
1912 * parse.c (expressiondebug): Add 'unsigned'.
1913 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1914 add_setshow_zinteger_cmd.
1915 * record.c (record_debug): Add 'unsigned'.
1916 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1917 add_setshow_zinteger_cmd.
1918 * record.h: Update the declaration of 'record_debug'.
1919 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1920 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1921 add_setshow_zinteger_cmd.
1922 * serial.c (global_serial_debug_p): Add 'unsigned'.
1923 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1924 add_setshow_zinteger_cmd.
1925 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1926 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1927 add_setshow_zinteger_cmd.
1928 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1929 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1930 add_setshow_zinteger_cmd.
1931 * target.c (targetdebug): Add 'unsigned'.
1932 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1933 add_setshow_zinteger_cmd.
1934 * valops.c (overload_debug): Add 'unsigned'.
1935 * varobj.c (varobjdebug): Add 'unsigned'.
1936 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1937 add_setshow_zinteger_cmd.
1938 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1939 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1940 instead of add_setshow_zinteger_cmd.
1942 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1943 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1944 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1945 instead of add_setshow_zinteger_cmd.
1946 * gdbarch.c, gdbarch.h: Re-generated.
1948 2012-08-02 Yao Qi <yao@codesourcery.com>
1950 * nto-tdep.c: Don't include cli/cli-decode.h and
1952 (_initialize_nto_tdep): Remove.
1953 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1955 Remove macro nto_internal_debugging.
1957 2012-08-01 Richard Henderson <rth@redhat.com>
1959 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1960 (mep-*-*) [gdb_target_obs]: Likewise.
1962 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1964 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1965 linux_get_siginfo_type.
1967 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1969 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1971 (call_function_by_hand) <ON_STACK>: Call write_memory with
1972 gdbarch_breakpoint_from_pc, if possible.
1973 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1976 2012-07-31 Yao Qi <yao@codesourcery.com>
1978 * tracepoint.c: Add 'static' for some variables.
1980 2012-07-31 Yao Qi <yao@codesourcery.com>
1982 * go32-nat.c: Declare _initialize_go32_nat.
1983 * ser-go32.c: Declare _initialize_ser_dos.
1984 * top.c (do_chdir_cleanup): Add 'static'.
1986 2012-07-30 Keith Seitz <keiths@redhat.com>
1988 * linespec.c (linespec_lex_number): A number followed
1989 by quotes is a valid number, too.
1991 2012-07-30 Tom Tromey <tromey@redhat.com>
1993 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1995 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1997 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1998 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2000 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2002 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2003 invalid or reevaluated to prevent prevent references to possibly
2004 delete'd type objects being left in the varobj.
2006 2012-07-27 Tom Tromey <tromey@redhat.com>
2007 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 * copying.awk: Print buffer-read-only and vi ro markers.
2010 * copying.c: Rebuild.
2011 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2012 * gdbarch.c, gdbarch.h: Rebuild.
2013 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2014 buffer-read-only and vi ro markers.
2015 * features/arm-with-iwmmxt.c: Rebuild.
2016 * features/arm-with-m-fpa-layout.c: Rebuild.
2017 * features/arm-with-m-vfp-d16.c: Rebuild.
2018 * features/arm-with-m.c: Rebuild.
2019 * features/arm-with-neon.c: Rebuild.
2020 * features/arm-with-vfpv2.c: Rebuild.
2021 * features/arm-with-vfpv3.c: Rebuild.
2022 * features/i386/amd64-avx-linux.c: Rebuild.
2023 * features/i386/amd64-avx.c: Rebuild.
2024 * features/i386/amd64-linux.c: Rebuild.
2025 * features/i386/amd64.c: Rebuild.
2026 * features/i386/i386-avx-linux.c: Rebuild.
2027 * features/i386/i386-avx.c: Rebuild.
2028 * features/i386/i386-linux.c: Rebuild.
2029 * features/i386/i386-mmx-linux.c: Rebuild.
2030 * features/i386/i386-mmx.c: Rebuild.
2031 * features/i386/i386.c: Rebuild.
2032 * features/i386/x32-avx-linux.c: Rebuild.
2033 * features/i386/x32-avx.c: Rebuild.
2034 * features/i386/x32-linux.c: Rebuild.
2035 * features/i386/x32.c: Rebuild.
2036 * features/mips-dsp-linux.c: Rebuild.
2037 * features/mips-linux.c: Rebuild.
2038 * features/mips64-dsp-linux.c: Rebuild.
2039 * features/mips64-linux.c: Rebuild.
2040 * features/rs6000/powerpc-32.c: Rebuild.
2041 * features/rs6000/powerpc-32l.c: Rebuild.
2042 * features/rs6000/powerpc-403.c: Rebuild.
2043 * features/rs6000/powerpc-403gc.c: Rebuild.
2044 * features/rs6000/powerpc-405.c: Rebuild.
2045 * features/rs6000/powerpc-505.c: Rebuild.
2046 * features/rs6000/powerpc-601.c: Rebuild.
2047 * features/rs6000/powerpc-602.c: Rebuild.
2048 * features/rs6000/powerpc-603.c: Rebuild.
2049 * features/rs6000/powerpc-604.c: Rebuild.
2050 * features/rs6000/powerpc-64.c: Rebuild.
2051 * features/rs6000/powerpc-64l.c: Rebuild.
2052 * features/rs6000/powerpc-7400.c: Rebuild.
2053 * features/rs6000/powerpc-750.c: Rebuild.
2054 * features/rs6000/powerpc-860.c: Rebuild.
2055 * features/rs6000/powerpc-altivec32.c: Rebuild.
2056 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2057 * features/rs6000/powerpc-altivec64.c: Rebuild.
2058 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2059 * features/rs6000/powerpc-cell32l.c: Rebuild.
2060 * features/rs6000/powerpc-cell64l.c: Rebuild.
2061 * features/rs6000/powerpc-e500.c: Rebuild.
2062 * features/rs6000/powerpc-e500l.c: Rebuild.
2063 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2064 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2065 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2066 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2067 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2068 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2069 * features/rs6000/powerpc-vsx32.c: Rebuild.
2070 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2071 * features/rs6000/powerpc-vsx64.c: Rebuild.
2072 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2073 * features/rs6000/rs6000.c: Rebuild.
2074 * features/s390-linux32.c: Rebuild.
2075 * features/s390-linux32v1.c: Rebuild.
2076 * features/s390-linux32v2.c: Rebuild.
2077 * features/s390-linux64.c: Rebuild.
2078 * features/s390-linux64v1.c: Rebuild.
2079 * features/s390-linux64v2.c: Rebuild.
2080 * features/s390x-linux64.c: Rebuild.
2081 * features/s390x-linux64v1.c: Rebuild.
2082 * features/s390x-linux64v2.c: Rebuild.
2083 * features/tic6x-c62x-linux.c: Rebuild.
2084 * features/tic6x-c62x.c: Rebuild.
2085 * features/tic6x-c64x-linux.c: Rebuild.
2086 * features/tic6x-c64x.c: Rebuild.
2087 * features/tic6x-c64xp-linux.c: Rebuild.
2088 * features/tic6x-c64xp.c: Rebuild.
2090 2012-07-27 Tom Tromey <tromey@redhat.com>
2092 * c-exp.y (classify_name): Avoid assignment in condition.
2094 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2096 * amd64-windows-tdep.c: Include "frame.h".
2097 (amd64_windows_skip_trampoline_code): New function.
2098 (amd64_windows_init_abi): Add trampoline registration.
2100 2012-07-27 Yao Qi <yao@codesourcery.com>
2102 * tracepoint.c (cur_traceframe_number): Remove.
2103 (set_tfile_traceframe): Remove.
2104 (tfile_trace_find, tfile_fetch_registers): Update callers.
2105 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2106 (tfile_open, tfile_trace_find): Likewise.
2108 2012-07-27 Yao Qi <yao@codesourcery.com>
2110 * thread.c (switch_to_thread): Don't call registers_changed.
2112 2012-07-26 Tom Tromey <tromey@redhat.com>
2114 * Makefile.in (SFILES): Remove objc-exp.y.
2115 (YYFILES): Remove objc-exp.c.
2116 (YYOBJ): Remove objc-exp.o.
2117 (local-maintainer-clean): Don't mention objc-exp.c.
2118 * c-exp.y: Include objc-lang.h.
2119 (%union) <class>: New field.
2120 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2121 (exp): Clone subscript production for OBJC_LBRAC. Add various
2122 Objective C productions.
2123 (msglist, msgarglist, msgarg): New productions.
2124 (array_mod, func_mod, operator): Clone productions for
2126 (parse_string_or_char): Handle '@' strings.
2127 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2128 (classify_name): Check la_name_of_this. Recognize ObjC class
2130 * objc-exp.y: Remove.
2131 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2132 * objc-lang.h (objc_parse, objc_error): Don't declare.
2134 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2136 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2138 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2140 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2143 2012-07-26 Tom Tromey <tromey@redhat.com>
2145 * copying.c: Rebuild.
2146 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2149 2012-07-26 Tom Tromey <tromey@redhat.com>
2151 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2153 (print_objfile_statistics): Likewise.
2154 (maintenance_print_symbols): Likewise.
2155 (maintenance_print_msymbols): Likewise.
2156 (maintenance_print_objfiles): Likewise.
2157 * psymtab.c (print_partial_symbols): Call QUIT.
2158 (maintenance_print_psymbols): Likewise. Don't modify
2160 * copying.c (show_copying_command): Don't modify immediate_quit.
2161 (show_warranty_command): Likewise.
2162 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2164 2012-07-26 Keith Seitz <keiths@redhat.com>
2166 * linespec.c (linespec_lexer_lex_number): The input
2167 is also a valid number if the next character is a comma
2170 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2172 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2175 2012-07-26 Tristan Gingold <gingold@adacore.com>
2177 * machoread.c: Include gdb_bfd.h.
2179 2012-07-26 Tristan Gingold <gingold@adacore.com>
2181 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2184 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2188 (dwarf2_evaluate_loc_desc): Likewise.
2189 (dwarf2_loc_desc_needs_frame): Likewise.
2190 (locexpr_describe_location_1): Likewise.
2191 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2193 (struct dwarf2_loclist_baton): Likewise.
2194 * dwarf2read.c (struct dwarf_block): Likewise.
2195 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2196 (decode_locdesc): Expand SIZE and I to size_t.
2198 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2202 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2204 * doublest.c (convert_doublest_to_floatformat): If the exponent
2205 is too small, treat the value as zero. If the exponent is too
2206 large, treat the value as infinity.
2208 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2210 * configure.ac: Add --enable-lmcheck configure option.
2211 * configure: Regenerate.
2213 2012-07-25 Tom Tromey <tromey@redhat.com>
2215 * NEWS: Mention maint info bfds.
2216 * gdb_bfd.c (all_bfds): New global.
2217 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2218 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2221 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2223 * configure.tgt: Add v850*-*-rtems*.
2225 2012-07-25 Tom Tromey <tromey@redhat.com>
2227 * macrotab.c (macro_bcache_str): Remove cast.
2229 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2231 * linespec.c (linespec_lexer_lex_number): Update comments,
2232 change the return and add check to make sure the input is
2233 the decimal numbers.
2234 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2235 false, call linespec_lexer_lex_string.
2237 2012-07-24 Tom Tromey <tromey@redhat.com>
2239 * symfile.c (symbol_file_add): Don't open BFD twice.
2241 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2243 * breakpoint.c (create_breakpoint): Store condition for pending
2246 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2248 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2249 (m68k_return_value): Handle complex types like structures.
2250 (m68k_svr4_return_value): Likewise.
2252 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2254 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2255 parameters to bfd_get_section_name.
2257 2012-07-24 Yao Qi <yao@codesourcery.com>
2259 * cli/cli-setshow.c: Handle case 'var_uinteger'
2260 and 'var_zuninteger' together. Handle case 'var_integer' and
2261 'var_zinteger' together.
2263 2012-07-23 Keith Seitz <keiths@redhat.com>
2265 * linespec.c (convert_linespec_to_sal): Don't add
2266 any symbols to the result vector if symbol_to_sal
2269 2012-07-23 Keith Seitz <keiths@redhat.com>
2271 * linespec.c (decode_objc): Record the function name
2274 2012-07-23 Tom Tromey <tromey@redhat.com>
2276 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2278 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2279 (map_vmap): Acquire a reference to the BFD.
2281 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2283 * p-valprint.c (pascal_object_print_value): Replace potentially
2284 unsafe alloca with xmalloc/xfree.
2285 * valops.c (search_struct_method): Likewise.
2287 2012-07-23 Tom Tromey <tromey@redhat.com>
2289 * solib-svr4.c (enable_break): Update.
2290 * bfd-target.h (target_bfd_reopen): Update documentation.
2292 2012-07-23 Tom Tromey <tromey@redhat.com>
2294 * symfile.c (separate_debug_file_exists): Update.
2295 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2296 (reread_symbols): Update.
2297 * elfread.c (build_id_verify): Update.
2298 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2299 bfd_open_maybe_remote.
2301 2012-07-23 Tom Tromey <tromey@redhat.com>
2303 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2305 2012-07-23 Tom Tromey <tromey@redhat.com>
2307 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2309 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2311 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2312 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2314 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2315 * objfiles.c (allocate_objfile): Acquire a new reference.
2316 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2317 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2318 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2319 a cleanup for 'nbfd'.
2320 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2322 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2323 make a cleanup for 'abfd'.
2324 (symbol_file_add): Make a BFD cleanup.
2326 2012-07-23 Tom Tromey <tromey@redhat.com>
2328 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2329 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2330 * corelow.c (core_open): Use gdb_bfd_fopen.
2331 * dsrec.c (load_srec): Use gdb_bfd_openr.
2332 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2333 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2334 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2335 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2336 (gdb_bfd_fdopenr): New functions.
2337 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2338 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2339 (gdb_bfd_fdopenr): Declare.
2340 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2341 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2342 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2343 gdb_bfd_openr_next_archived_file.
2344 (macho_check_dsym): Use gdb_bfd_openr.
2345 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2346 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2347 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2348 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2350 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2351 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2352 gdb_bfd_openr_next_archived_file.
2353 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2355 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2357 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2358 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2359 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2360 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2361 (symfile_bfd_open): Use gdb_bfd_fopen.
2362 (generic_load): Use gdb_bfd_openr.
2363 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2365 2012-07-23 Tom Tromey <tromey@redhat.com>
2367 * bfd-target.c (target_bfd_reopen): Update.
2368 * cli/cli-dump.c (bfd_openr_with_cleanup)
2369 (bfd_openw_with_cleanup): Update.
2370 * corelow.c (core_open): Update.
2371 * dsrec.c (load_srec): Update.
2372 * exec.c (exec_file_attach): Update.
2373 * gcore.c (create_gcore_bfd): Update.
2374 * gdb_bfd.c (gdb_bfd_ref): Return void.
2375 (gdb_bfd_open): Update.
2376 * gdb_bfd.h (gdb_bfd_ref): Return void.
2378 * jit.c (jit_bfd_try_read_symtab): Update.
2379 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2380 * machoread.c (macho_symfile_read_all_oso): Update.
2381 (macho_check_dsym): Update.
2382 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2383 * remote-m32r-sdi.c (m32r_load): Update.
2384 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2385 * rs6000-nat.c (add_vmap): Update.
2386 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2388 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2389 * solib-spu.c (spu_bfd_open): Update.
2390 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2391 * spu-linux-nat.c (spu_bfd_open): Update.
2392 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2393 (generic_load): Update.
2394 * windows-nat.c (windows_make_so): Update.
2396 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2398 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2400 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2402 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2403 SIGTRAMP_FRAME unwinding.
2405 2012-07-20 Doug Evans <dje@google.com>
2407 * NEWS: Document new options "set/show use-deprecated-index-sections",
2408 and delete reference to --use-deprecated-index-sections.
2409 * symfile.h (use_deprecated_index_sections): Delete.
2410 * dwarf2read.c (use_deprecated_index_sections): Make static.
2411 (read_index_from_section): Update wording of how to load
2412 deprecated index sections.
2413 (_initialize_dwarf2_read): New options
2414 "set/show use-deprecated-index-sections".
2415 * main.c (captured_main): Delete --use-deprecated-index-sections.
2417 2012-07-20 Pedro Alves <palves@redhat.com>
2422 * infrun.c (handle_inferior_event) <new thread>: Don't special
2423 case minus_one_ptid.
2424 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2425 * linux-thread-db.c (thread_get_info_callback): Don't return early
2426 if the thread is zombie.
2427 (thread_from_lwp): Change return type to void. Rewrite stale
2429 (attach_thread): Don't return early if the thread is zombie,
2430 instead set its "dying" flag.
2431 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2432 (find_new_threads_callback): Don't return early if the thread is
2435 2012-07-20 Pedro Alves <palves@redhat.com>
2437 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2438 * target.c (target_wait): Likewise.
2439 (str_comma_list_concat_elem, do_option, target_options_to_string):
2441 * target.h (target_options_to_string): Declare.
2443 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2444 Tom Tromey <tromey@redhat.com>
2446 * dwarf2read.c (dwarf_decode_macros)
2447 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2448 DW_MACRO_GNU_transparent_include_alt>: New cases.
2449 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2450 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2452 2012-07-20 Tom Tromey <tromey@redhat.com>
2454 * dwarf2read.c (try_open_dwo_file): Don't call
2455 gdb_bfd_stash_filename.
2457 2012-07-20 Pedro Alves <palves@redhat.com>
2459 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2460 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2461 (i386_process_record): Tweak description comments.
2463 2012-07-20 Pedro Alves <palves@redhat.com>
2465 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2466 (i386_process_record): Use record_read_memory.
2467 * record.c (record_read_memory): New function.
2468 (record_arch_list_add_mem, record_exec_insn): Use
2470 * record.h (record_read_memory): Declare.
2472 2012-07-20 Yao Qi <yao@codesourcery.com>
2474 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2477 2012-07-19 Pedro Alves <palves@redhat.com>
2479 * record.c (record_resume): Ask the target beneath to report all
2482 2012-07-19 Doug Evans <dje@google.com>
2484 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2485 there's no section at address zero.
2486 (dwarf2_record_block_ranges): Ditto.
2488 2012-07-19 Yao Qi <yao@codesourcery.com>
2490 * command.h, remote.c: Fix a typo in comment.
2492 2012-07-19 Tom Tromey <tromey@redhat.com>
2495 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2496 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2497 OP_DECLTYPE>: New cases.
2498 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2499 (type_exp): Add new productions.
2500 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2502 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2504 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2505 OP_DECLTYPE>: New case.
2506 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2508 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2509 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2511 2012-07-19 Tom Tromey <tromey@redhat.com>
2513 * c-exp.y (enum token_flags): New.
2514 (struct token) <cxx_only>: Remove.
2516 (tokentab3, tokentab2, ident_tokens): Update.
2517 (lex_one_token): Update. Handle FLAG_SHADOW.
2519 2012-07-19 Tom Tromey <tromey@redhat.com>
2521 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2522 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2523 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2524 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2525 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2526 type_exp production where appropriate.
2527 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2528 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2529 <UNOP_MEMVAL_TYPE>: New case.
2530 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2531 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2532 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2533 <UNOP_MEMVAL_TYPE>: New case.
2534 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2535 UNOP_REINTERPRET_CAST>: Update.
2536 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2537 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2538 UNOP_REINTERPRET_CAST>: Update.
2539 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2540 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2541 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2544 2012-07-19 Yao Qi <yao@codesourcery.com>
2545 Jan Kratochvil <jan.kratochvil@redhat.com>
2547 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2548 and case 'var_optional_filename' together.
2549 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2550 instead of add_setshow_optional_filename_cmd for setshow command
2551 'args'. Set completer for 'set args'.
2553 2012-07-18 Doug Evans <dje@google.com>
2555 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2556 * common/gdb_vecs.c: New file, contents from utils.c.
2557 * common/host-defs.h: New file, contents from defs.h.
2558 * utils.h: New file, contents from defs.h.
2559 * defs.h: Move all declarations of objects defined in utils.c
2560 to utils.h (except QUIT() and related).
2561 #include "utils.h", "host-defs.h".
2562 * probe.h (probe_p): Move here from gdb_vecs.h.
2563 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2564 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2565 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2566 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2567 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2568 (COMMON_OBS): Add gdb_vecs.o.
2569 (gdb_vecs.o): New rule.
2571 2012-07-18 Keith Seitz <keiths@redhat.com>
2573 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2574 parameter. If non-zero, use SYMNAME as the canonical name
2577 (convert_linespec_to_sals): Use add_sal_to_sals for
2579 (decode_line_full): No need to "fill in missing canonical names"
2580 anymore. Simply make cleanups for the allocated names.
2582 2012-07-18 Keith Seitz <keiths@redhat.com>
2584 * linespec.c (struct linespec): Constify expression,
2585 source_filename, function_name, and label_name.
2586 (symbol_not_found_error): Make all parameters const.
2587 (linespec_parser_delete): No need to check for NULL
2588 when using xfree. Cast const char * to char * for xfree.
2590 2012-07-18 Keith Seitz <keiths@redhat.com>
2592 * breakpoint.c (invalid_thread_id_error): New function.
2593 (find_condition_and_thread): Use invalid_thread_id_error.
2594 (watch_command_1): Likewise.
2596 2012-07-18 Tom Tromey <tromey@redhat.com>
2598 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2599 * contrib/cc-with-tweaks.sh: New file.
2601 2012-07-18 Tom Tromey <tromey@redhat.com>
2603 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2604 (locate_dwz_sections): Recognize .gdb_index.
2605 (create_cus_from_index_list): New function.
2606 (create_cus_from_index): Use it. Handle .dwz data.
2607 (read_index_from_section): New function, extracted from
2609 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2612 2012-07-18 Tom Tromey <tromey@redhat.com>
2614 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2615 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2616 <is_dwz>: New field.
2617 (struct dwz_file): New.
2618 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2619 (locate_dwz_sections, dwarf2_get_dwz_file)
2620 (get_abbrev_section_for_cu): New functions.
2621 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2622 (read_and_check_type_unit_head): Add abbrev_section argument.
2623 (create_debug_types_hash_table): Update.
2624 (init_cutu_and_read_dies): Use proper abbrev section.
2625 (init_cutu_and_read_dies_no_follow): Likewise.
2626 (set_partial_user): Do nothing if PST==NULL.
2627 (read_comp_units_from_section): New function.
2628 (create_all_comp_units): Use it.
2629 (scan_partial_symbols, partial_die_parent_scope): Update.
2630 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2631 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2632 (find_partial_die): Add offset_in_dwz argument. Update.
2633 (guess_partial_die_structure_name, fixup_partial_die): Update.
2634 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2635 DW_FORM_GNU_strp_alt.
2636 (read_indirect_string_from_dwz): New function.
2637 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2638 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2639 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2640 (follow_die_offset): Add offset_in_dwz argument.
2641 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2642 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2643 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2644 Handle new macro forms.
2645 (dwarf_decode_macros): Update.
2646 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2647 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2648 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2649 (create_debug_types_hash_table): Use correct abbrev section.
2650 (get_debug_line_section): New function.
2651 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2652 (process_full_comp_unit): Pass 'required' argument to
2653 end_symtab_get_static_block.
2654 * buildsym.h (end_symtab_get_static_block): Update.
2655 * buildsym.c (end_symtab_get_static_block): Add 'required'
2657 (end_symtab, end_expandable_symtab): Update.
2659 2012-07-18 Tom Tromey <tromey@redhat.com>
2661 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2663 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2664 (zlib_decompress_section): Remove.
2665 (dwarf2_read_section): Use gdb_bfd_map_section.
2666 (munmap_section_buffer): Remove.
2667 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2668 munmap_section_buffer.
2669 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2670 (struct gdb_bfd_section_data): New.
2671 (free_one_bfd_section): New function.
2672 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2673 (get_section_descriptor, zlib_decompress_section)
2674 (gdb_bfd_map_section): New functions.
2675 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2677 2012-07-18 Tom Tromey <tromey@redhat.com>
2679 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2681 2012-07-18 Tom Tromey <tromey@redhat.com>
2683 * gdb_bfd.c (struct gdb_bfd_data): New.
2684 (gdb_bfd_cache): New global.
2685 (struct gdb_bfd_cache_search): New.
2686 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2687 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2688 * gdb_bfd.h (gdb_bfd_open): Declare.
2690 2012-07-18 Tom Tromey <tromey@redhat.com>
2692 * utils.c (make_cleanup_bfd_unref): Rename from
2693 make_cleanup_bfd_close.
2694 * defs.h (make_cleanup_bfd_unref): Rename from
2695 make_cleanup_bfd_close.
2696 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2697 (bfd_openw_with_cleanup): Update.
2698 * corelow.c (core_open): Update.
2699 * dsrec.c (load_srec): Update.
2700 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2701 * remote-m32r-sdi.c (m32r_load): Update.
2702 * remote-mips.c (mips_load_srec): Update.
2703 (pmon_load_fast): Update.
2704 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2706 (darwin_bfd_open): Update.
2707 * solib.c (solib_bfd_fopen): Update.
2708 * symfile-mem.c (symbol_file_add_from_memory): Update.
2709 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2710 (symfile_bfd_open): Update.
2711 (generic_load): Update.
2713 2012-07-18 Tom Tromey <tromey@redhat.com>
2715 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2716 (pmon_load_fast): Likewise.
2717 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2718 (m32r_upload_command): Likewise.
2719 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2720 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2721 Use make_cleanup_bfd_close.
2723 2012-07-18 Tom Tromey <tromey@redhat.com>
2725 * symfile.c (symfile_bfd_open): Don't copy name. Call
2726 gdb_bfd_stash_filename.
2727 (load_command): Open the new BFD before freeing the old.
2728 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2729 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2730 Call gdb_bfd_stash_filename.
2731 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2732 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2733 gdb_bfd_stash_filename.
2734 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2735 Free found_pathname.
2736 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2737 gdb_bfd_stash_filename.
2738 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2739 * machoread.c (macho_add_oso_symfile): Call
2740 gdb_bfd_stash_filename.
2741 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2742 gdb_bfd_stash_filename.
2743 (macho_check_dsym): Don't copy filename. Call
2744 gdb_bfd_stash_filename.
2745 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2746 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2747 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2748 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2749 * exec.c (exec_close): Don't free the BFD's filename.
2750 (exec_file_attach): Don't copy the filename. Call
2751 gdb_bfd_stash_filename.
2752 * corelow.c (core_close): Don't free the BFD's filename.
2753 (core_open): Call gdb_bfd_stash_filename.
2754 * corefile.c (reopen_exec_file): Remove #if 0 code.
2755 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2757 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2759 2012-07-18 Tom Tromey <tromey@redhat.com>
2761 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2763 (free_dwo_file): Use gdb_bfd_unref.
2764 * cli/cli-dump.c: Include gdb_bfd.h.
2765 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2766 (bfd_openr_with_cleanup): Likewise.
2767 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2769 * utils.c: Include gdb_bfd.h.
2770 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2771 * symfile.c: Include gdb_bfd.h.
2772 (separate_debug_file_exists): Use gdb_bfd_unref.
2773 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2774 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2775 (generic_load): Use gdb_bfd_ref.
2776 (reread_symbols): Use gdb_bfd_unref.
2777 * symfile-mem.c: Include gdb_bfd.h.
2778 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2779 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2780 * solib.c: Include gdb_bfd.h.
2781 (solib_bfd_fopen): Use gdb_bfd_ref.
2782 (solib_bfd_open): Use gdb_bfd_unref.
2783 (free_so_symbols): Use gdb_bfd_unref.
2784 (reload_shared_libraries_1): Use gdb_bfd_unref.
2785 * solib-spu.c: Include gdb_bfd.h.
2786 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2787 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2789 * solib-frv.c: Include gdb_bfd.h.
2790 (enable_break2): Use gdb_bfd_unref.
2791 * solib-dsbt.c: Include gdb_bfd.h.
2792 (enable_break2): Use gdb_bfd_unref.
2793 * solib-darwin.c: Include gdb_bfd.h.
2794 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2796 (darwin_bfd_open): Use gdb_bfd_unref.
2797 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2798 * remote-mips.c: Include gdb_bfd.h.
2799 (mips_load_srec): Use gdb_bfd_ref.
2800 (pmon_load_fast): Use gdb_bfd_ref.
2801 * remote-m32r-sdi.c: Include gdb_bfd.h.
2802 (m32r_load): Use gdb_bfd_ref.
2803 * record.c: Include gdb_bfd.h.
2804 (record_save_cleanups): Use gdb_bfd_unref.
2805 (cmd_record_save): Use gdb_bfd_unref.
2806 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2808 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2809 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2810 * objfiles.c: Include gdb_bfd.h.
2811 (free_objfile): Use gdb_bfd_unref.
2812 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2814 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2815 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2816 (macho_check_dsym): Likewise.
2817 * m32r-rom.c: Include gdb_bfd.h.
2818 (m32r_load): Use gdb_bfd_ref.
2819 (m32r_upload_command): Use gdb_bfd_ref.
2820 * jit.c: Include gdb_bfd.h.
2821 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2822 * gdb_bfd.h: New file.
2823 * gdb_bfd.c: New file.
2824 * gcore.c: Include gdb_bfd.h.
2825 (create_gcore_bfd): Use gdb_bfd_ref.
2826 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2827 (gcore_command): Use gdb_bfd_unref.
2828 * exec.c: Include gdb_bfd.h.
2829 (exec_close): Use gdb_bfd_unref.
2830 (exec_close_1): Use gdb_bfd_unref.
2831 (exec_file_attach): Use gdb_bfd_ref.
2832 * elfread.c: Include gdb_bfd.h.
2833 (build_id_verify): Use gdb_bfd_unref.
2834 * dsrec.c: Include gdb_bfd.h.
2835 (load_srec): Use gdb_bfd_ref.
2836 * corelow.c: Include gdb_bfd.h.
2837 (core_close): Use gdb_bfd_unref.
2838 (core_open): Use gdb_bfd_ref.
2839 * bfd-target.c: Include gdb_bfd.h.
2840 (target_bfd_xclose): Use gdb_bfd_unref.
2841 (target_bfd_reopen): Use gdb_bfd_ref.
2842 * Makefile.in (SFILES): Add gdb_bfd.c.
2843 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2844 (COMMON_OBS): Add gdb_bfd.o.
2846 2012-07-18 Keith Seitz <keiths@redhat.com>
2848 * breakpoint.c (find_condition_and_thread): Initialize
2850 (create_breakpiont): find_condition_and_thread will now
2851 initialize COND_STRING, THREAD, and REST (and TASK).
2852 (addr_string_to_sals): Likewise.
2854 2012-07-18 Pedro Alves <palves@redhat.com>
2856 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2857 Pull the single step breakpoints out of the target.
2859 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2861 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2862 * stap-probe.c (compile_probe_arg): Likewise.
2864 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2866 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2867 (elf_compile_to_ax): Likewise.
2868 * infrun.c (insert_exception_resume_from_probe): Likewise.
2869 (check_exception_resume): Remove `objfile' variable.
2870 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2871 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2872 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2873 (compare_entries): Rename to...
2874 (compare_probes): ...this. Adjust function to work with
2875 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2877 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2879 (print_ui_out_info): Adjust argument to be `struct probe *'.
2880 (info_probes_for_ops): Adjust internal computations to use
2882 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2883 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2884 gen_info_probes_table_values>: Remove `objfile' argument.
2885 (struct probe) <objfile>: New field.
2886 (find_probe_by_pc): Remove `objfile' argument.
2887 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2888 (stap_get_probe_argument_count): Likewise.
2889 (stap_get_arg): Likewise.
2890 (stap_evaluate_probe_argument): Likewise.
2891 (stap_compile_to_ax): Likewise.
2892 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2893 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2894 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2895 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2896 sym_compile_to_ax>: Likewise.
2898 2012-07-18 Terry Guo <terry.guo@arm.com>
2901 * defs.h (GDB_MI_MSG_WIDTH): New.
2902 * ser_base (ser_base_read_error_fd): New function.
2903 (do_ser_base_readchar): Poll error file descriptor as well as
2905 (generic_readchar): Refactor error handling.
2907 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2909 * NEWS: Create a new section for the next release branch.
2910 Rename the section of the current branch, now that it has
2913 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2915 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2916 * version.in: Bump version to 7.5.50.20120718-cvs.
2918 2012-07-17 Keith Seitz <keiths@redhat.com>
2920 * linespec.c (linespec_parse_line_offset): Make parameter
2923 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2926 * f-valprint.c (info_common_command): New variable frame_id.
2927 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2928 * printcmd.c (print_variable_and_value): Extend function comment.
2929 Add comment for invalidated FRAME.
2930 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2931 FI form FRAME_ID after each print_frame_local_vars.
2932 (struct print_variable_and_value_data): Change frame to frame_id.
2933 (do_print_variable_and_value): New variable frame, initialize it from
2934 p->frame_id. Add comment for invalidated FRAME.
2935 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2936 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2937 for invalidated FRAME.
2939 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2940 Pedro Alves <palves@redhat.com>
2942 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2945 2012-07-16 Tom Tromey <tromey@redhat.com>
2947 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2949 2012-07-15 Doug Evans <dje@google.com>
2951 * dwarf2read.c (stmt_list_hash): New struct.
2952 (type_unit_group): Embed "per_cu" member, remove pointer.
2953 New union member "t", move member "tus" into it, all uses updated.
2954 New member "hash", replaces member "line_offset, all uses updated.
2955 (quick_file_names): Replace member "offset" with "hash", all uses
2957 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2958 (hash_file_name_entry, eq_file_name_entry): Call them.
2959 (hash_type_unit_group, eq_type_unit_group): Ditto.
2960 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2961 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2962 (dw2_get_file_names): Update.
2963 (create_type_unit_group): Replace "per_cu" arg with "cu".
2964 All callers updated. Fix "quick" (.gdb_index) handling.
2965 (get_type_unit_group): Replace "per_cu" arg with "cu".
2966 All callers updated.
2967 (build_type_unit_groups): Don't reset tu_stats.
2969 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2970 "tab_cur_size". Change member "tab" to be a htab_t.
2971 (create_filename_seen_cache): Update.
2972 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2973 (filename_seen): Update.
2975 2012-07-13 Doug Evans <dje@google.com>
2977 * symtab.c (filename_seen): Update comment.
2979 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2980 Doug Evans <dje@google.com>
2982 * buildsym.c (end_symtab_1): Split it to ...
2983 (end_symtab_get_static_block): ... this ...
2984 (end_symtab_from_static_block): ... and this function.
2985 (end_symtab, end_expandable_symtab): Call them.
2986 * buildsym.h (end_symtab_get_static_block)
2987 (end_symtab_from_static_block): New declarations.
2988 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2989 Set its valid CU ranges.
2991 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2993 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2994 DW_OP_GNU_parameter_ref.
2996 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2998 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2999 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3001 2012-07-13 Doug Evans <dje@google.com>
3003 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3004 (filename_seen_cache): New struct.
3005 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3006 (create_filename_seen_cache): New function.
3007 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3008 (filename_seen): Delete arg "first". New arg "cache". All callers
3010 (output_source_filename_data): New struct.
3011 (output_source_filename): Delete arg "first". New arg "data".
3012 All callers updated.
3013 (sources_info): Delete local "first". New locals "data", "cleanups".
3014 Rewrite to use filename_seen_cache.
3015 (add_partial_filename_data): Delete member "first". New member
3016 "filename_seen_cache". All uses updated.
3017 (make_source_files_completion_list): Rewrite to use
3018 filename_seen_cache.
3020 2012-07-12 Doug Evans <dje@google.com>
3022 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3024 2012-07-10 Doug Evans <dje@google.com>
3027 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3028 all_type_unit_groups, type_unit_groups, tu_stats.
3029 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3030 All uses updated. Add type_unit_group to union "s".
3031 (type_unit_group): New struct.
3032 (IS_TYPE_UNIT_GROUP): New macro.
3033 (abbrev_table): Delete unused member "section".
3034 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3035 (dw2_get_cu): Assert not used with type_unit_group.
3036 (dw2_get_primary_cu): New function.
3037 (dw2_build_type_unit_groups_reader): New function.
3038 (dw2_build_type_unit_groups): New function.
3039 (dw2_get_file_names): Assert not called on type units.
3040 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3041 Redo loop to iterate over type unit groups instead of type units.
3042 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3043 (read_abbrev_offset): New function.
3044 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3046 (create_partial_symtab): New function.
3047 (process_psymtab_comp_unit_reader): Assert not used with type units.
3048 Call create_partial_symtab.
3049 (process_psymtab_type_unit): Delete.
3050 (hash_type_unit_group, eq_type_unit_group): New functions.
3051 (allocate_type_unit_groups_table): New function.
3052 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3053 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3054 (create_type_unit_group, get_type_unit_group): New functions.
3055 (tu_abbrev_offset): New struct.
3056 (sort_tu_by_abbrev_offset): New function.
3057 (add_type_unit_group_to_table): New function.
3058 (build_type_unit_groups): New function.
3059 (build_type_psymtabs_reader): New function.
3060 (build_type_psymtab_dependencies): New function.
3061 (build_type_psymtabs): Rewrite.
3062 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3063 is seen in a type unit.
3064 (process_queue): Move symtab expansion debugging printfs here.
3065 Call process_full_type_unit for type units.
3066 (compute_symtab_includes): Assert not called for type units.
3067 (process_cu_includes): Don't call compute_symtab_includes for
3069 (process_full_type_unit): New function.
3070 (process_imported_unit_die): Flag an error if called for type units.
3071 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3072 updated. Assert not called for type units.
3073 (read_file_scope): Call dwarf2_start_symtab.
3074 (setup_type_unit_groups): New function.
3075 (read_type_unit_scope): Rewrite.
3076 (abbrev_table_read_table): Initialize abbrev_table->offset.
3077 (abbrev_table_free_cleanup): New function.
3078 (dwarf2_start_symtab): New function.
3079 (load_full_type_unit): Assert not called for type unit groups.
3080 * buildsym.c (finish_block_internal): New arg "expandable".
3081 All callers updated.
3082 (start_symtab): Move most contents to ...
3083 (restart_symtab): ... here. New function.
3084 (reset_symtab_globals): New function.
3085 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3086 Call reset_symtab_globals.
3087 (end_symtab, end_expandable_symtab): New functions.
3088 (set_missing_symtab, augment_type_symtab): New functions.
3089 * buildsym.h (end_expandable_symtab): Declare.
3090 (augment_type_symtab, restart_symtab): Declare.
3091 * psympriv.h (struct partial_symtab): New member "anonymous".
3092 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3094 (read_psymtabs_with_filename): Ditto.
3095 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3096 (expand_symtabs_matching_via_partial): Ditto.
3097 (dump_psymtab): Update.
3098 * dictionary.c (dict_add_pending): New function.
3099 * dictionary.h (dict_add_pending): Declare.
3101 2012-07-09 Doug Evans <dje@google.com>
3103 * buildsym.c (start_subfile): Remove unnecessary check for
3106 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3108 * dwarf2read.c (load_full_type_unit): Simplify.
3110 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3111 to struct signatured_type **. All uses updated.
3113 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3114 All callers updated.
3116 2012-07-09 Tom Tromey <tromey@redhat.com>
3118 * c-exp.y (check_parameter_typelist): New function.
3119 (parameter_typelist): Call it.
3120 * eval.c (make_params): Handle '(void)' case.
3121 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3124 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3126 * common/linux-ptrace.c: Include gdb_assert.h.
3127 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3128 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3130 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3132 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3133 * linux-nat.c (linux_child_post_attach)
3134 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3136 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3138 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3139 nptl <2.7 bug workaround for core files.
3141 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3143 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3145 (save_siginfo): Remove.
3146 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3148 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3149 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3150 * linux-nat.h (struct lwp_info): Remove field siginfo.
3152 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 Code cleanup for the next patch.
3155 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3156 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3158 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3159 (ia64_linux_stopped_data_address):
3160 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3162 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3163 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3164 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3167 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3170 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3171 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3173 2012-07-06 Tom Tromey <tromey@redhat.com>
3175 * c-exp.y (DOTDOTDOT): New token.
3176 (func_mod, exp): Use parameter_typelist.
3177 (parameter_typelist): New production.
3178 (tokentab3): Add "..." token.
3179 * eval.c (make_params): Handle varargs.
3180 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3183 2012-07-06 Tom Tromey <tromey@redhat.com>
3186 * c-exp.y (%union) <tvec>: Change type.
3187 (func_mod): Now uses <tvec> type.
3188 (exp): Update for tvec change.
3189 (direct_abs_decl): Push the typelist.
3190 (func_mod): Return a typelist.
3191 (nonempty_typelist): Update for tvec change.
3192 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3193 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3194 * parse.c (pop_type_list): New function.
3195 (push_typelist): New function.
3196 (follow_types): Handle tp_function_with_arguments.
3197 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3198 (enum type_pieces) <tp_function_with_arguments>: New constant.
3199 (union type_stack_elt) <typelist_val>: New field.
3200 (push_typelist): Declare.
3202 2012-07-06 Tom Tromey <tromey@redhat.com>
3204 * c-exp.y (%union) <type_stack>: New field.
3205 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3206 (ptr_operator_ts): New production.
3208 * parse.c (type_stack_reserve): New function.
3209 (check_type_stack_depth): Use it.
3210 (pop_type_stack, append_type_stack, push_type_stack)
3211 (get_type_stack, type_stack_cleanup): New functions.
3212 (follow_types): Handle tp_type_stack.
3213 (_initialize_parse): Simplify initialization.
3214 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3216 (union type_stack_elt) <stack_val>: New field.
3217 (get_type_stack, append_type_stack, push_type_stack)
3218 (type_stack_cleanup): Declare.
3220 2012-07-06 Tom Tromey <tromey@redhat.com>
3222 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3224 (struct type_stack): New.
3225 * parse.c (type_stack, type_stack_size, type_stack_depth):
3227 (type_stack): New global.
3228 (parse_exp_in_context, check_type_stack_depth)
3229 (insert_into_type_stack, insert_type, push_type, push_type_int)
3230 (insert_type_address_space, pop_type, pop_type_int)
3231 (_initialize_parse): Update.
3233 2012-07-06 Tom Tromey <tromey@redhat.com>
3235 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3238 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3240 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3242 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3243 Jan Kratochvil <jan.kratochvil@redhat.com>
3245 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3246 alloca with xmalloc/xfree.
3248 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3250 * MAINTAINERS (Write After Approval): Add myself to the list.
3252 2012-07-05 Doug Evans <dje@google.com>
3254 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3256 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3258 * ax-gdb.c (cli/cli-utils.h): New include.
3259 (linespec.h): Ditto.
3260 (agent_eval_command_one): New function.
3261 (agent_command_1): Ditto.
3262 (agent_command): Call function agent_command_1.
3263 (agent_eval_command): Ditto.
3264 (_initialize_ax_gdb): Change help for "maint agent"
3265 and "maint agent-eval".
3267 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3269 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3270 * cli/cli-utils.c (check_for_argument): New function.
3271 * cli/cli-utils.h (check_for_argument): Ditto.
3273 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3275 * NEWS: Mention x32 ABI support.
3277 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3279 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3280 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3282 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3283 and pc_regnum_from_eax to -1. Update SP regnum from
3284 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3287 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3290 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3293 * dwarf2expr.h: Include gdbtypes.h.
3294 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3295 these forward declarations.
3296 (cu_offset, sect_offset): Move these ...
3297 * gdbtypes.h: Remove include dwarf2expr.h.
3298 (cu_offset, sect_offset): ... here.
3300 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3302 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3303 (amd64_linux_sigtramp_code): This.
3304 (amd64_x32_linux_sigtramp_code): New.
3305 (LINUX_SIGTRAMP_LEN): Updated.
3306 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3308 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3310 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3312 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 * config.in: Regenerate.
3315 * configure: Regenerate.
3316 * configure.ac: Remove check for gnu/libc-version.h.
3317 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3319 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3320 variables libc_version, libc_major and libc_minor. Replace sscanf by
3321 inferior_has_bug. Extend the comment.
3323 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 * linux-thread-db.c (inferior_has_bug): New function.
3326 (thread_db_find_new_threads_silently): Return boolean as checked by
3327 inferior_has_bug, describe it in the comments.
3328 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3329 earlier. Abort the initialization if it returned non-zero.
3330 (thread_db_new_objfile): Exclude debug files.
3331 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3334 2012-07-02 Doug Evans <dje@google.com>
3336 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3337 related to queue management.
3339 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3340 instead of "debug dwarf2-die" in debugging printfs.
3341 (create_debug_info_hash_table_reader): Ditto.
3342 (create_debug_info_hash_table): Ditto.
3343 (init_dwo_file): Ditto.
3344 (init_cutu_and_read_dies): Add debugging printf.
3345 (init_cutu_and_read_dies_no_follow): Ditto.
3346 (process_psymtab_comp_unit_reader): Ditto.
3348 2012-07-02 Stan Shebs <stan@codesourcery.com>
3350 Add target-side support for dynamic printf.
3351 * NEWS: Mention the additional style.
3352 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3353 (struct bp_location): New field cmd_bytecode.
3354 * breakpoint.c: Include format.h.
3355 (disconnected_dprintf): New global.
3356 (parse_cmd_to_aexpr): New function.
3357 (build_target_command_list): New function.
3358 (insert_bp_location): Call it.
3359 (remove_breakpoints_pid): Skip dprintf breakpoints.
3360 (print_one_breakpoint_location): Ditto.
3361 (dprintf_style_agent): New global.
3362 (dprintf_style_enums): Add dprintf_style_agent.
3363 (update_dprintf_command_list): Add agent case.
3364 (agent_printf_command): New function.
3365 (_initialize_breakpoint): Add new commands.
3366 * common/ax.def (printf): New bytecode.
3367 * ax.h (ax_string): Declare.
3368 * ax-gdb.h (gen_printf): Declare.
3369 * ax-gdb.c: Include cli-utils.h, format.h.
3370 (gen_printf): New function.
3371 (maint_agent_print_command): New function.
3372 (_initialize_ax_gdb): Add maint agent-printf command.
3373 * ax-general.c (ax_string): New function.
3374 (ax_print): Add printf disassembly.
3375 * Makefile.in (SFILES): Add format.c
3376 (COMMON_OBS): Add format.o.
3377 * common/format.h: New file.
3378 * common/format.c: New file.
3379 * printcmd.c: Include format.h.
3380 (ui_printf): Call parse_format_string.
3381 * remote.c (remote_state): New field breakpoint_commands.
3382 (PACKET_BreakpointCommands): New enum.
3383 (remote_breakpoint_commands_feature): New function.
3384 (remote_protocol_features): Add new BreakpointCommands entry.
3385 (remote_can_run_breakpoint_commands): New function.
3386 (remote_add_target_side_commands): New function.
3387 (remote_insert_breakpoint): Call it.
3388 (remote_insert_hw_breakpoint): Ditto.
3389 (_initialize_remote): Add new packet configuration for
3390 target-side breakpoint commands.
3391 * target.h (struct target_ops): New field
3392 to_can_run_breakpoint_commands.
3393 (target_can_run_breakpoint_commands): New macro.
3394 * target.c (update_current_target): Handle
3395 to_can_run_breakpoint_commands.
3397 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3399 Execute -ix and -iex only after system and user gdbinit files.
3400 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3401 processing down after gdbinit files.
3403 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3405 Add fnmatch-gnu module.
3406 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3407 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3408 * gnulib/aclocal.m4: Regenerate.
3409 * gnulib/config.in: Regenerate.
3410 * gnulib/configure: Regenerate.
3411 * gnulib/import/dummy.c: Remove.
3412 * gnulib/import/Makefile.am: Regenerate.
3413 * gnulib/import/Makefile.in: Likewise.
3414 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3415 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3416 * gnulib/import/alloca.c: New file.
3417 * gnulib/import/alloca.in.h: Likewise.
3418 * gnulib/import/config.charset: Likewise.
3419 * gnulib/import/fnmatch.c: Likewise.
3420 * gnulib/import/fnmatch.in.h: Likewise.
3421 * gnulib/import/fnmatch_loop.c: Likewise.
3422 * gnulib/import/localcharset.c: Likewise.
3423 * gnulib/import/localcharset.h: Likewise.
3424 * gnulib/import/m4/alloca.m4: Likewise.
3425 * gnulib/import/m4/codeset.m4: Likewise.
3426 * gnulib/import/m4/configmake.m4: Likewise.
3427 * gnulib/import/m4/fcntl-o.m4: Likewise.
3428 * gnulib/import/m4/fnmatch.m4: Likewise.
3429 * gnulib/import/m4/glibc21.m4: Likewise.
3430 * gnulib/import/m4/localcharset.m4: Likewise.
3431 * gnulib/import/m4/locale-fr.m4: Likewise.
3432 * gnulib/import/m4/locale-ja.m4: Likewise.
3433 * gnulib/import/m4/locale-zh.m4: Likewise.
3434 * gnulib/import/m4/mbrtowc.m4: Likewise.
3435 * gnulib/import/m4/mbsinit.m4: Likewise.
3436 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3437 * gnulib/import/m4/mbstate_t.m4: Likewise.
3438 * gnulib/import/m4/stdbool.m4: Likewise.
3439 * gnulib/import/m4/wchar_h.m4: Likewise.
3440 * gnulib/import/m4/wctype_h.m4: Likewise.
3441 * gnulib/import/m4/wint_t.m4: Likewise.
3442 * gnulib/import/mbrtowc.c: Likewise.
3443 * gnulib/import/mbsinit.c: Likewise.
3444 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3445 * gnulib/import/mbsrtowcs-state.c: Likewise.
3446 * gnulib/import/mbsrtowcs.c: Likewise.
3447 * gnulib/import/ref-add.sin: Likewise.
3448 * gnulib/import/ref-del.sin: Likewise.
3449 * gnulib/import/stdbool.in.h: Likewise.
3450 * gnulib/import/streq.h: Likewise.
3451 * gnulib/import/strnlen1.c: Likewise.
3452 * gnulib/import/strnlen1.h: Likewise.
3453 * gnulib/import/verify.h: Likewise.
3454 * gnulib/import/wchar.in.h: Likewise.
3455 * gnulib/import/wctype.in.h: Likewise.
3457 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3459 Support shell wildcards for 'set auto-load safe-path'.
3460 * auto-load.c: Include fnmatch.h.
3461 (filename_is_in_dir): Rename to ...
3462 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3463 it. Update function comment. Rename dir_len to pattern_len. New
3464 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3465 messages. Use gdb_filename_fnmatch.
3466 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3468 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3469 * defs.h (gdb_filename_fnmatch): New declaration.
3470 * utils.c: Include fnmatch.h.
3471 (gdb_filename_fnmatch): New function.
3473 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3475 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3476 `-probe' and `-probe-stap' options.
3478 2012-07-01 Yao Qi <yao@codesourcery.com>
3480 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3481 always_inserted_off, and always_inserted_enums.
3482 Change always_inserted_mode's type to 'enum auto_boolean'.
3483 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3485 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3486 of add_setshow_enum_cmd.
3487 * infrun.c: Remove can_use_displaced_stepping_auto,
3488 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3489 can_use_displaced_stepping_enum.
3490 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3491 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3492 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3493 add_setshow_enum_cmd.
3495 2012-06-30 Doug Evans <dje@google.com>
3497 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3498 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3499 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3501 2012-06-29 Doug Evans <dje@google.com>
3503 * linespec.c: #include "stack.h".
3504 (decode_line_with_current_source): Moved here from symtab.c and
3505 renamed from decode_line_spec. All callers updated.
3506 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3507 renamed from decode_line_spec_1. All callers updated.
3508 * linespec.h (decode_line_with_current_source): Move declaration here
3509 from symtab.h and renamed from decode_line_spec.
3510 (decode_line_with_last_displayed): Move declaration here from symtab.h
3511 and renamed from decode_line_spec_1.
3512 * macrocmd.c: #include "linespec.h".
3513 * symtab.c: Remove #include "linespec.h".
3515 2012-06-28 Doug Evans <dje@google.com>
3517 * dwarf2read.c (get_cu_length): New function.
3518 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3519 (create_debug_types_hash_table): Ditto.
3520 (init_cutu_and_read_dies): Ditto.
3521 (init_cutu_and_read_dies_no_follow): Ditto.
3523 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3525 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3526 (struct abbrev_table): Define.
3527 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3529 (init_cutu_and_read_dies): Update.
3530 (abbrev_table_alloc_abbrev): New function. Replaces
3531 dwarf_alloc_abbrev. All callers updated.
3532 (abbrev_table_add_abbrev): New function.
3533 (abbrev_table_lookup_abbrev): New function. Replaces
3534 dwarf2_lookup_abbrev. All callers updated.
3535 (abbrev_table_read_table): New function. Contents moved here from
3536 dwarf2_read_abbrevs.
3537 (dwarf2_read_abbrevs): Call it.
3538 (abbrev_table_free): New function.
3539 (dwarf2_free_abbrev_table): Call it.
3541 2012-06-28 Stan Shebs <stan@codesourcery.com>
3543 * osdata.c (info_osdata_command): Filter out "Title" columns
3545 * common/linux-osdata.c (struct osdata_type): Add title field.
3546 (osdata_table): Add titles to each entry.
3547 (linux_command_xfer_osdata): Add a column for title data.
3549 2012-06-28 Stan Shebs <stan@codesourcery.com>
3551 Make logging work for MI.
3553 * interps.h (interp_set_logging_ftype): New typedef.
3554 (struct interp_procs): New field set_logging_proc.
3555 (current_interp_set_logging): Declare.
3556 * interps.c (current_interp_set_logging): New function.
3557 * cli/cli-logging.c: Include interps.h.
3558 (set_logging_redirect): Call current_interp_set_logging.
3559 (pop_output_files): Ditto.
3560 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3561 * mi/mi-console.h (mi_console_set_raw): Declare.
3562 * mi/mi-console.c (mi_console_set_raw): New function.
3563 * mi/mi-interp.c (saved_raw_stdout): New global.
3564 (mi_set_logging): New function.
3565 (_initialize_mi_interp): Add it to interp procs.
3567 2012-06-28 Doug Evans <dje@google.com>
3569 * symtab.c (lookup_symbol_aux_objfile): Use
3570 ALL_OBJFILE_PRIMARY_SYMTABS.
3572 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3574 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 * common/buffer.c: Include inttypes.h and stdint.h.
3577 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3579 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3580 Pedro Alves <palves@redhat.com>
3582 * gdbthread.h (ALL_THREADS): New macro.
3583 (thread_list): Declare.
3584 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3585 going, but instead fall through to the stepping handling.
3586 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3587 the passed in signal. Adjust debug output.
3588 (resume_callback): Rename to ...
3589 (linux_nat_resume_callback): ... this. Pass the thread's last
3590 stop signal, if in "pass" state.
3591 (linux_nat_resume): Adjust to rename.
3592 (stop_wait_callback): New assertion. Don't respawn signals;
3593 instead let the LWP remain with SIGNALLED set.
3594 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3595 * remote.c (append_pending_thread_resumptions): New.
3596 (remote_vcont_resume): Call it.
3597 * target.h (target_resume): Extend comment.
3599 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3601 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3603 2012-06-27 Doug Evans <dje@google.com>
3605 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3606 Delete have_addr_base, unused. All uses updated.
3607 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3608 (dwarf2_get_pc_bounds): Add ranges_base.
3609 (dwarf2_record_block_ranges): Ditto.
3611 2012-06-27 Tom Tromey <tromey@redhat.com>
3614 * varobj.c (varobj_create): Update.
3615 (varobj_set_value): Update.
3616 * tracepoint.c (validate_actionline): Update.
3617 (encode_actions_1): Update.
3618 * parse.c (parse_exp_1): Add 'pc' argument.
3619 (parse_exp_in_context): Add 'pc' argument. Change how
3620 expression_context_pc is set.
3621 (parse_expression): Update.
3622 (parse_field_expression): Update.
3623 * expression.h (parse_exp_1): Update.
3624 * eval.c (parse_to_comma_and_eval): Update.
3625 * breakpoint.c (set_breakpoint_condition): Update.
3626 (update_watchpoint): Update.
3627 (init_breakpoint_sal): Update
3628 (find_condition_and_thread): Update.
3629 (watch_command_1): Update.
3630 (update_breakpoint_locations): Update.
3631 * ada-lang.c (ada_read_renaming_var_value): Update.
3632 (create_excep_cond_exprs): Update.
3634 2012-06-27 Doug Evans <dje@google.com>
3636 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3639 2012-06-26 Doug Evans <dje@google.com>
3641 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3643 (error_check_comp_unit_head): New arg abbrev_section. All callers
3645 (read_and_check_comp_unit_head): Ditto.
3646 (read_and_check_type_unit_head): Ditto.
3648 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3650 New attribute 'last' for gdb.Symtab_and_line.
3651 * NEWS (Python Scripting): Add entry about the new attribute.
3652 * python/py-symtab.c (salpy_get_last): New function which
3653 implements the get method for the 'last' attribute of
3654 gdb.Symtab_and_line.
3655 (sal_object_getset): Add entry for the 'last' attribute.
3657 2012-06-26 Doug Evans <dje@google.com>
3659 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3660 (dwo_sections): Add macinfo, macro.
3661 (dwarf2_locate_dwo_sections): Watch for macro sections.
3662 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3663 All callers updated. Handle DWO files.
3665 * NEWS: Mention new options "set debug dwarf2-read" and
3666 "set debug symtab-create".
3667 * dwarf2read.c (dwarf2_read_debug): New static global.
3668 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3669 (process_queue): Ditto.
3670 (process_full_comp_unit): Ditto.
3671 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3672 * elfread.c (elf_symfile_read): Add debugging printf.
3673 * minsyms.c (install_minimal_symbols): Ditto.
3674 * psymtab.c (allocate_psymtab): Ditto.
3675 * symfile.c (allocate_symtab): Ditto.
3676 * symtab.c (symtab_create_debug): New global.
3677 (_initialize_symtab): Add new option "set debug symtab-create".
3678 * symtab.h (symtab_create_debug): Declare.
3680 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3681 (lookup_dwo_type_unit): Ditto.
3683 2012-06-26 Roland McGrath <roland@hack.frob.com>
3684 H.J. Lu <hongjiu.lu@intel.com>
3686 * amd64-linux-nat.c: Include <sys/user.h>.
3687 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3688 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3689 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3691 * configure.ac: Check if the fs_base and gs_base members of
3692 `struct user_regs_struct' exist.
3693 * config.in: Regenerated.
3694 * configure: Likewise.
3696 2012-06-25 Michael Eager <eager@eagercon.com>
3699 * python/python.c (gdbpy_write): Check for interrupted output.
3701 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3703 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3704 register as a stack alignment in ARM mode.
3706 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3708 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3709 * gnulib/config.in: Regenerate.
3710 * gnulib/configure: Likewise.
3711 * gnulib/import/m4/extensions.m4: Update it.
3712 * gnulib/import/m4/gnulib-common.m4: Likewise.
3713 * gnulib/import/m4/memmem.m4: Likewise.
3714 * gnulib/import/m4/mmap-anon.m4: Likewise.
3715 * gnulib/import/m4/multiarch.m4: Likewise.
3716 * gnulib/import/stdint.in.h: Likewise.
3718 2012-06-24 Yao Qi <yao@codesourcery.com>
3720 * corefile.c (write_memory_with_notification): New.
3721 * gdbcore.h: Declare write_memory_with_notification.
3722 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3723 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3724 * valops.c (value_assign): Likewise.
3725 * python/py-inferior.c (infpy_write_memory): Call
3726 'write_memory_with_notification'.
3728 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3730 * cc-with-index.sh: Use also -ex "set auto-load no".
3732 2012-06-23 Doug Evans <dje@google.com>
3735 * NEWS: Document additions to .gdb_index.
3736 * dwarf2read.c: #include "gdb/gdb-index.h".
3737 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3738 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3739 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3740 (dwarf2_read_index): Recognize version 7.
3741 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3742 block_kind, domain): All callers updated.
3743 (dw2_find_symbol_file): Handle new index CU values.
3744 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3745 (add_index_entry): New args is_static, kind. All callers updated.
3746 (offset_type_compare, uniquify_cu_indices): New functions
3747 (symbol_kind): New function.
3748 (write_psymtabs_to_index): Remove duplicate CU values.
3749 (write_psymtabs_to_index): Write .gdb_index version 7.
3751 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3753 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3754 * configure: Regenerate.
3756 2012-06-20 Yao Qi <yao@codesourcery.com>
3758 * python/py-inferior.c: Update comments of infpy_read_memory
3759 and infpy_write_memory.
3761 2012-06-19 Tom Tromey <tromey@redhat.com>
3764 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3765 (push_type_address_space): Remove.
3766 * parse.c (insert_into_type_stack): New function.
3767 (insert_type): Likewise.
3768 (insert_type_address_space): Rename from push_type_address_space.
3769 Insert tp_space_identifier.
3770 * c-exp.y (ptr_operator): New production.
3771 (abs_decl): Use ptr_operator.
3772 (space_identifier): Call insert_type_address_space.
3773 (ptype): Don't use const_or_volatile_or_space_identifier.
3774 (const_or_volatile_noopt): Call insert_type.
3775 (conversion_type_id, conversion_declarator): New productions.
3776 (operator): Use conversion_type_id.
3778 2012-06-18 Doug Evans <dje@google.com>
3780 * symtab.h (minimal_symbol): New member created_by_gdb.
3781 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3783 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3784 (search_symbols): Call it instead of lookup_symbol.
3785 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3787 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3788 Adjust address for DW_OP_GNU_addr_index.
3789 * dwarf2expr.h (dwarf_expr_context): Update comment.
3790 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3791 all callers updated. Handle TLS vars described with
3792 DW_OP_GNU_const_index.
3793 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3794 and DW_OP_GNU_const_index.
3795 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3797 * block.c (find_block_in_blockvector): Make explicit the fact that we
3798 ignore GLOBAL_BLOCK.
3800 2012-06-18 Tom Tromey <tromey@redhat.com>
3802 * c-exp.y (operator): Remove trailing space after "delete" and
3805 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3806 Jan Kratochvil <jan.kratochvil@redhat.com>
3808 Switch i386 and derived targets to ON_STACK.
3809 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3810 (amd64_dicos_init_abi): Remove its installment.
3811 * dicos-tdep.c (dicos_init_abi): Remove the
3812 set_gdbarch_call_dummy_location call. Update the comment here.
3813 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3814 (i386_dicos_init_abi): Remove its installment.
3815 * i386-tdep.c (i386_push_dummy_code): New function.
3816 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3817 i386_push_dummy_code.
3819 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3821 Remove stale dummy frames.
3822 * breakpoint.c: Include dummy-frame.h.
3823 (longjmp_breakpoint_ops): New variable.
3824 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3825 bp_longjmp_call_dummy.
3826 (bpstat_what, bptype_string, print_one_breakpoint_location)
3827 (init_bp_location): Support bp_longjmp_call_dummy.
3828 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3829 (set_longjmp_breakpoint_for_call_dummy)
3830 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3832 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3833 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3834 FIXME comment and extend the other comment for bp_call_dummy.
3835 (set_longjmp_breakpoint_for_call_dummy)
3836 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3837 * dummy-frame.c: Include gdbthread.h.
3838 (pop_dummy_frame_bpt): New function.
3839 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3840 (dummy_frame_discard): New function.
3841 (cleanup_dummy_frames): Update the comment about longjmps.
3842 * dummy-frame.h (dummy_frame_discard): New declaration.
3843 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3844 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3845 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3846 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3847 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3848 keep_going if IS_LONGJMP and there is no other reason to stop.
3850 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3852 * remote-sim.c (sim_command_completer): Initialize
3855 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3857 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3858 * dwarf2loc.c (call_site_parameter_matches): Support
3859 CALL_SITE_PARAMETER_PARAM_OFFSET.
3860 (needs_dwarf_reg_entry_value): Push stub value.
3861 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3862 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3863 * gdbtypes.h (enum call_site_parameter_kind): New item
3864 CALL_SITE_PARAMETER_PARAM_OFFSET.
3865 (struct call_site.parameter.u): New field param_offset.
3867 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3869 Code cleanup: Generalize call_site.parameter key.
3870 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3871 variable dwarf_reg. New variable kind_u. Update parameters to
3872 push_dwarf_reg_entry_value.
3873 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3874 * dwarf2expr.h (enum call_site_parameter_kind)
3875 (union call_site_parameter_u): Forward declarations.
3876 (struct dwarf_expr_context_funcs): Update parameters and their
3877 description for push_dwarf_reg_entry_value.
3878 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3879 * dwarf2loc.c (call_site_parameter_matches): New function.
3880 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3881 description. Use call_site_parameter_matches.
3882 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3883 Update parameters and their description.
3884 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3885 New variable kind_u. Adjust the caller for updated parameters.
3886 (needs_dwarf_reg_entry_value): Update parameters.
3887 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3888 instead of attr. Update for the changed fields of struct
3889 call_site_parameter.
3890 * gdbtypes.h: Include dwarf2expr.h.
3891 (enum call_site_parameter_kind): New.
3892 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3893 fb_offset into new union u.
3895 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3897 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3898 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3901 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3903 * amd64-linux-nat.c (compat_x32_clock_t): New.
3904 (compat_x32_siginfo_t): Likewise.
3905 (compat_x32_siginfo_from_siginfo): Likewise.
3906 (siginfo_from_compat_x32_siginfo): Likewise.
3907 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3908 and siginfo_from_compat_x32_siginfo for x32.
3910 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3912 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3914 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3916 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3917 instead of gdbarch_ptr_bit.
3918 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3919 (amd64_supply_native_gregset): Likewise.
3920 (amd64_collect_native_gregset): Likewise.
3921 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3922 (amd64_supply_xsave): Likewise.
3923 (amd64_collect_fxsave): Likewise.
3924 (amd64_collect_xsave): Likewise.
3926 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3928 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3929 (amd64_linux_read_description): Check DS segment register for
3932 2012-06-15 Tom Tromey <tromey@redhat.com>
3934 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3935 init_cutu_and_read_dies.
3937 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3939 * MAINTAINERS (Write After Approval): Add myself to the list.
3941 2012-06-15 Tom Tromey <tromey@redhat.com>
3943 * valops.c (value_find_oload_method_list): Now static.
3944 * value.h (value_find_oload_method_list): Don't declare.
3946 2012-06-15 Tom Tromey <tromey@redhat.com>
3948 * valops.c (find_overload_match): Use value_ind.
3950 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3952 * infrun.c (handle_inferior_event): Correct indentation.
3954 2012-06-14 Doug Evans <dje@google.com>
3956 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3957 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3959 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3960 updated. Handle DEBUG_LOC_START_LENGTH.
3961 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3962 (loclist_describe_location): Ditto.
3964 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3967 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3968 after hiding inline functions.
3970 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3972 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3973 _initialize_inf_ttrace.
3975 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3977 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3978 _initialize_hppa_hpux_nat.
3980 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3982 * remote-sim.c (sim_command_completer): Change type of return
3983 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3985 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3986 Jan Kratochvil <jan.kratochvil@redhat.com>
3989 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3990 stack on a 16-byte boundary.
3992 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3994 * jit.c (finalize_symtab): Set function's return type to 'void' by
3997 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3998 H.J. Lu <hongjiu.lu@intel.com>
4000 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4001 Move bits common to both the classic LP64 and the new x32 ILP32
4003 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4004 (amd64_x32_linux_init_abi): New function.
4005 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4008 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4009 * i386-tdep.c (i386_pseudo_register_name): Make public.
4010 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4011 * amd64-tdep.c (amd64_dword_names): Add "eip".
4012 (amd64_x32_pseudo_register_type): New function
4013 (amd64_x32_init_abi): New function.
4015 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4018 * inferior.h (struct inferior_suspend_state): Comment out.
4019 (struct inferior): Comment out the field suspend.
4020 * infrun.c (struct infcall_suspend_state): Comment out the field
4022 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4025 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4027 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4028 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4029 function comment. Return ERROR for unresolved cases. Implement
4030 returning proper NAME.
4031 (yylex): Accept also NAME from classify_inner_name.
4032 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4033 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4035 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4037 2012-06-13 Tom Tromey <tromey@redhat.com>
4039 * breakpoint.c (condition_completer): New function.
4040 (_initialize_breakpoint): Use it.
4041 * value.c (complete_internalvar): New function.
4042 * value.h (complete_internalvar): Declare.
4044 2012-06-13 Tom Tromey <tromey@redhat.com>
4046 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4047 * breakpoint.c (catch_syscall_completer): Return a VEC.
4048 * cli/cli-cmds.c (complete_command): Update.
4049 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4050 (complete_on_enum): Likewise.
4051 * command.h: Include gdb_vecs.h.
4052 (completer_ftype): Change return type.
4053 (complete_on_cmdlist, complete_on_enum): Likewise.
4054 * completer.c (noop_completer, filename_completer)
4055 (location_completer): Return a VEC.
4056 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4058 (expression_completer, complete_line_internal, complete_line)
4059 (command_completer): Return a VEC.
4060 (gdb_completion_word_break_characters, line_completion_function):
4062 * completer.h: Include gdb_vecs.h.
4063 (complete_line, noop_completer, filename_completer)
4064 (expression_completer, location_completer, command_completer):
4066 * f-lang.c (f_word_break_characters): Return a VEC.
4067 * interps.c (interpreter_completer): Return a VEC.
4068 * language.h (struct language_defn)
4069 <la_make_symbol_completion_list>: Return a VEC.
4070 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4071 * symtab.c (free_completion_list): Take a VEC.
4072 (return_val_size, return_val_index): Remove.
4073 (return_val): Now a VEC.
4074 (completion_list_add_name): Update.
4075 (default_make_symbol_completion_list_break_on)
4076 (default_make_symbol_completion_list, make_symbol_completion_list)
4077 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4079 (add_filename_to_list): Update.
4080 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4082 (maybe_add_partial_symtab_filename): Update.
4083 (make_source_files_completion_list): Return a VEC.
4084 * symtab.h (default_make_symbol_completion_list_break_on)
4085 (default_make_symbol_completion_list, make_symbol_completion_list)
4086 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4087 (make_source_files_completion_list): Update.
4089 2012-06-13 Tom Tromey <tromey@redhat.com>
4091 * breakpoint.c (add_catch_command): Use completer_ftype.
4092 * breakpoint.h: Include command.h.
4093 (add_catch_command): Use completer_ftype.
4094 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4095 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4096 Use completer_ftype.
4097 * command.h (completer_ftype): New typedef.
4098 (set_cmd_completer): Use it.
4099 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4102 2012-06-13 Pedro Alves <palves@redhat.com>
4104 Partial revert of previous change.
4106 * serial.c (scb_base): New global.
4107 (serial_for_fd): New.
4108 (serial_open, serial_fdopen_ops): Link new serial in open serials
4110 (do_serial_close): Unlink serial from the open serials chain.
4112 2012-06-12 Pedro Alves <palves@redhat.com>
4114 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4116 (prepare_for_detach): No longer context switch here in non-stop
4118 (fetch_inferior_event): Ditto.
4119 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4120 to the event thread before removing breakpoints. Switch to the
4121 event thread before inserting breakpoints and resuming.
4122 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4123 event thread before resuming.
4124 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4125 Switch to the event thread before removing breakpoints.
4127 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4129 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4130 special characters correctly for the Windows shells. See
4131 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4133 [!__MINGW32__]: Remove extra double quote character from special
4136 2012-06-11 Stan Shebs <stan@codesourcery.com>
4138 * ui-out.h: Remove #if 0 declarations.
4139 * ui-out.c: Remove #if 0 functions.
4141 2012-06-11 Pedro Alves <palves@redhat.com>
4143 * ser-base.c (run_async_handler_and_reschedule): New.
4144 (fd_event, push_event): Use it.
4145 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4146 reference count to 1.
4147 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4149 (serial_is_open, serial_ref, serial_unref): New.
4150 * serial.h (serial_open): Adjust comment.
4151 (serial_is_open): Declare.
4152 (serial_close): Adjust comment.
4153 (serial_ref, serial_unref) Declare.
4154 (struct serial): New field 'refcnt'.
4156 2012-06-11 Pedro Alves <palves@redhat.com>
4158 Remove #if 0'd "connect" command, and unnecessary associated
4159 refcounting and serial reuse bits.
4161 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4162 * serial.c (last_serial_opened): Delete.
4164 (serial_open): Adjust.
4165 (serial_for_fd): Delete.
4166 (serial_fdopen_ops, do_serial_close): Adjust.
4167 (serial_fdopen_ops): Adjust.
4169 2012-06-11 Pedro Alves <palves@redhat.com>
4171 * serial.c (do_serial_close): Remove early return when SCB is
4174 2012-06-11 Tom Tromey <tromey@redhat.com>
4176 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4178 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4180 Fix regression by the "ambiguous linespec" series.
4181 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4182 get_last_displayed_symtab and get_last_displayed_line and depending
4185 2012-06-11 Tom Tromey <tromey@redhat.com>
4187 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4188 (dw2_find_symbol_file): Use it.
4190 2012-06-11 Michael Eager <eager@eagercon.com>
4192 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4193 * mips-linux-tdep.h (mips_signals): New
4195 2012-06-11 Tom Tromey <tromey@redhat.com>
4197 * infrun.c (handle_inferior_event)
4198 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4200 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4201 exception logic in all cases. Update comments.
4202 (insert_longjmp_resume_breakpoint): Set the exception resume
4205 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4207 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4209 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4211 * valarith.c (binop_types_user_defined_p): Fix a typo.
4213 2012-06-08 Yao Qi <yao@codesourcery.com>
4214 Chung-Lin Tang <cltang@codesourcery.com>
4216 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4217 * arch-utils.h: Declare.
4218 * gdbarch.sh: Add return_in_first_hidden_param_p.
4219 * gdbarch.c, gdbarch.h: Regenerated.
4220 * infcall.c (call_function_by_hand): Call
4221 gdbarch_return_in_first_hidden_param_p instead of
4222 language_pass_by_reference.
4224 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4225 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4226 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4227 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4228 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4229 `cplus_return_struct_by_reference'.
4230 (tic6x_return_value): Handle language cplusplus.
4231 (tic6x_return_in_first_hidden_param_p): New.
4232 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4234 2012-06-07 Doug Evans <dje@google.com>
4236 * dwarf2read.c (dwarf2_cu): Add comment.
4238 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4240 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4242 (mips_eabi_push_dummy_call): Likewise.
4243 (mips_n32n64_push_dummy_call): Likewise.
4244 (mips_o32_push_dummy_call): Likewise.
4245 (mips_o64_push_dummy_call): Likewise.
4247 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4249 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4251 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4253 * mips-tdep.c (mips_pseudo_register_type): Use
4254 mips_float_register_p.
4256 2012-06-06 Pedro Alves <palves@redhat.com>
4258 * infrun.c (handle_inferior_event): Remove calls to
4259 reinit_frame_cache that follow a context_switch call.
4261 2012-06-06 Pedro Alves <palves@redhat.com>
4263 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4264 context_switch and remove stale comment.
4266 2012-06-06 Pedro Alves <palves@redhat.com>
4268 * infrun.c (struct execution_control_state): Remove
4269 `new_thread_event' field.
4270 (handle_inferior_event): Simplify new threads handling; don't
4271 resume the inferior if we find a new thread.
4273 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4275 * NEWS: Document the deprecation of SH's 'regs' command.
4276 * inferior.h (all_registers_info): Add function declaration.
4277 * sh-tdep.c (sh_show_regs): Remove variable.
4278 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4279 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4280 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4281 (sh_show_regs_command): Remove functions.
4282 (sh_gdbarch_init): Don't set sh_show_regs.
4283 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4284 'info all-registers'.
4285 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4286 (sh64_show_regs): Remove functions.
4287 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4289 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4291 * configure.ac: Move development=true below AC_INIT.
4292 * configure: Regenerate.
4294 2012-06-05 Stan Shebs <stan@codesourcery.com>
4296 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4299 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4301 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4302 argument as ssize_t.
4303 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4304 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4305 * target.c (target_read_stack, target_write_memory)
4306 (target_write_raw_memory): Likewise.
4307 * target.h (target_read_stack, target_write_memory)
4308 (target_write_raw_memory): Likewise.
4310 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4312 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4313 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4314 * target.c (target_read_memory): Change LEN to ssize_t.
4315 * target.h (target_read_memory): Change LEN to ssize_t.
4317 2012-06-05 Pedro Alves <palves@redhat.com>
4321 * breakpoint.c (until_break_command): Only fetch the selected
4322 frame after decode_line_1.
4324 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4326 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4327 event breakpoint at _start, __start or main if a program
4328 interpreter is not found.
4330 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4332 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4334 * windows-tdep.c: #include "objfiles.h".
4335 (windows_iterate_over_objfiles_in_search_order): New function.
4336 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4337 iterate_over_objfiles_in_search_order gdbarch method to
4338 windows_iterate_over_objfiles_in_search_order.
4339 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4341 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4343 * gdbarch.sh: Add generation of
4344 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4345 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4346 (iterate_over_objfiles_in_search_order): New gdbarch method.
4347 * gdbarch.h, gdbarch.c: Regenerate.
4348 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4350 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4352 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4353 out of lookup_symbol_aux_symtabs.
4354 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4355 call to lookup_symbol_aux_objfile.
4356 (struct global_sym_lookup_data): New type.
4357 (lookup_symbol_global_iterator_cb): New function.
4358 (lookup_symbol_global): Search for symbol using
4359 gdbarch_iterate_over_objfiles_in_search_order and
4360 lookup_symbol_global_iterator_cb.
4361 * findvar.c (struct minsym_lookup_data): New type.
4362 (minsym_lookup_iterator_cb): New function.
4363 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4364 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4365 and minsym_lookup_iterator_cb.
4367 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4369 Revert the following patch:
4370 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4371 try locating the symbol in the symbol's own objfile first, before
4372 extending the search to all objfiles.
4373 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4374 out of lookup_symbol_aux_symtabs.
4375 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4376 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4377 Do not search EXCLUDE_OBJFILE.
4378 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4379 (lookup_symbol_global): Search for matches in the block's objfile
4380 first, before searching all other objfiles.
4382 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4384 * breakpoint.c (find_condition_and_thread): Stop parsing
4385 as soon as the first invalid keyword is found.
4387 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4389 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4391 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4393 * config/djgpp/djcheck.sh: Add copyright header.
4395 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4397 * copyright.py (update_files, main): Fix path to update-copyright
4400 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4402 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4403 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4404 for which a reminder to update by hand is printed.
4406 2012-06-04 Doug Evans <dje@google.com>
4408 * buildsym.c (make_blockvector): Add comment.
4410 2012-06-04 Pedro Alves <palves@redhat.com>
4412 * arch-utils.c (default_gdb_signal_from_target): Delete.
4413 * arch-utils.h (default_gdb_signal_from_target): Delete.
4414 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4415 gdbarch_gdb_signal_from_target_p.
4416 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4418 * gdbarch.h: Regenerate.
4419 * gdbarch.c: Regenerate.
4421 2012-06-04 Pedro Alves <palves@redhat.com>
4423 * gdbarch.sh (gdb_signal_from_target): Mention that the
4424 implementation of the method must be host independent.
4425 * gdbarch.h: Regenerate.
4427 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4431 (target_read_memory_bfd): New function.
4432 (symbol_file_add_from_memory): Use it.
4434 2012-06-03 Doug Evans <dje@google.com>
4436 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4438 (basic_lookup_transparent_type): Ditto.
4440 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4441 (ALL_PRIMARY_SYMTABS): Use it.
4442 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4443 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4444 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4445 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4446 (basic_lookup_transparent_type): Ditto.
4448 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4450 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4451 it to optimize resolution of demangled name.
4453 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 * configure.ac (development): Define new variable.
4456 Call AC_CHECK_LIB for mcheck if $development.
4457 (ERROR_ON_WARNING): Enable it by default only if $development.
4458 * config.in: Regenerate.
4459 * configure: Regenerate.
4461 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4463 * target.c (target_read_memory): Make LEN argument as size_t.
4464 * target.h (target_read_memory): Likewise.
4466 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4468 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4470 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4472 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4473 BookE interface for PowerPC server processors if not available
4474 in the Linux Kernel.
4476 2012-05-31 Keith Seitz <keiths@redhat.com>
4478 * linespec.c (decode_objc): Add cleanup to free
4480 (find_linespec_symbols): Add cleanup to free CLASSES.
4481 * symfile.c (find_separate_debug_file_by_debuglink): Add
4482 cleanup to free DEBUGLINK.
4483 * ui-out.c (clear_header_list): No need to check if
4484 HEADER_NEXT.COLHDR is NULL.
4485 Free HEADER_NEXT.COL_NAME.
4487 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4489 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4492 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4494 * configure.host (gdb_host_cpu): Handle tilegx*.
4495 (gdb_host): Handle tilegx-*-linux*.
4496 * tilegx-linux-nat.c: New file.
4497 * config/tilegx/linux.mh: New file.
4499 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4501 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4502 tilegx-linux-tdep.o.
4503 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4504 tilegx-linux-tdep.c.
4505 * configure.tgt: Handle tilegx-*-linux*.
4506 * tilegx-tdep.h: New file.
4507 * tilegx-tdep.c: New file.
4508 * tilegx-linux-tdep.c: New file.
4509 * regformats/reg-tilegx.dat: New file.
4511 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4513 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4514 accounting of hw watchpoints on ppc.
4516 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4518 * source.c (openp): Expand tilde in path entries.
4520 2012-05-29 Doug Evans <dje@google.com>
4522 * buildsym.c (block_compar): Fix comment.
4523 (end_symtab): Fix and clarify some comments.
4525 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4526 cleanup_undefined_types.
4527 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4528 All callers updated.
4530 2012-05-29 Tom Tromey <tromey@redhat.com>
4532 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4534 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4535 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4537 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4540 2012-05-29 Tristan Gingold <gingold@adacore.com>
4542 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4543 (struct darwin_info): ... New struct.
4544 (solib_darwin_pspace_data): New variable.
4545 (darwin_pspace_data_cleanup): New function.
4546 (get_darwin_info): Likewise.
4547 (darwin_dyld_version_ok, darwin_load_image_infos)
4548 (darwin_solib_get_all_image_info_addr_at_init)
4549 (darwin_solib_read_all_image_info_addr): Add info argument.
4551 (darwin_current_sos): Use per pspace structure.
4552 (darwin_solib_create_inferior_hook): Likewise.
4553 (darwin_clear_solib): Likewise.
4554 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4556 2012-05-28 Pedro Alves <palves@redhat.com>
4558 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4559 block that uses them. Clear ecss before handling each event.
4561 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4563 * solib-svr4.c (svr4_current_sos): New comment on
4564 svr4_current_sos_via_xfer_libraries fall back.
4566 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4568 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4569 it as a fallback for TYPE_IS_OPAQUE.
4570 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4571 symbols for lookup_symbol.
4573 2012-05-24 John Steele Scott <toojays@toojays.net>
4575 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4576 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4577 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4578 (check_producer): ... this new function, which also checks for ICC
4579 and caches the result.
4580 (producer_is_icc): New function.
4581 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4584 2012-05-24 Pedro Alves <palves@redhat.com>
4588 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4589 (default_gdb_signal_to_target): ... this. Add comment.
4590 (default_gdb_signal_from_host): Rename to ...
4591 (default_gdb_signal_from_target): ... this. Add comment.
4592 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4593 (default_gdb_signal_to_target): ... this.
4594 (default_gdb_signal_from_host): Rename to ...
4595 (default_gdb_signal_from_target): ... this.
4596 * corelow.c (core_open): Adjust to naming change. Replace comment.
4597 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4598 (gdb_signal_from_target): ... this. Adjust to
4599 default_gdb_signal_from_host naming change. Extend comment.
4600 (gdb_signal_to_host): Rename to ...
4601 (gdb_signal_to_target): ... this. Adjust to
4602 default_gdb_signal_to_host naming change.
4603 * gdbarch.h, gdbarch.c: Renegerate.
4605 2012-05-24 Pedro Alves <palves@redhat.com>
4609 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4611 2012-05-24 Pedro Alves <palves@redhat.com>
4615 Replace target_signal with gdb_signal throughout.
4617 2012-05-24 Pedro Alves <palves@redhat.com>
4621 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4622 string, instead of reusing the va_list argument.
4624 2012-05-24 Tom Tromey <tromey@redhat.com>
4626 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4629 2012-05-23 Doug Evans <dje@google.com>
4631 * symtab.c (search_symbols): Formatting fixes.
4632 (print_symbol_info): Formatting fixes.
4634 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4635 int64_t change to leb128 API.
4636 (read_encoded_value, decode_frame_entry_1): Ditto.
4637 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4638 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4639 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4640 (execute_stack_op): Ditto.
4641 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4642 (safe_read_uleb128, safe_read_sleb128): Ditto.
4643 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4644 (dwarf2_compile_expr_to_ax): Ditto.
4645 (locexpr_describe_location_piece): Ditto.
4646 (disassemble_dwarf_expression): Ditto.
4647 (locexpr_describe_location_1): Ditto.
4649 2012-05-23 Stan Shebs <stan@codesourcery.com>
4650 Kwok Cheung Yeung <kcy@codesourcery.com>
4652 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4653 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4654 (mi-cmd-info.o): New rule.
4655 * osdata.h (info_osdata_command): New declaration.
4656 * osdata.c (info_osdata_command): Change to non-static.
4657 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4658 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4659 * mi/mi-cmd-info.c: New file.
4661 2012-05-23 Doug Evans <dje@google.com>
4663 * symtab.c (search_symbols): Pass NULL for file_matcher to
4664 expand_symtabs_matching if there are no files to match.
4666 * gdbtypes.c (lookup_typename): Simplify.
4668 2012-05-23 Pedro Alves <palves@redhat.com>
4670 * arch-utils.h (default_target_signal_to_host): Delete.
4671 * arch-utils.c (default_target_signal_to_host): Delete.
4672 * gdbarch.sh (target_signal_to_host): Remove.
4673 * gdbarch.h, gdbarch.c: Regenerate.
4675 2012-05-22 Doug Evans <dje@google.com>
4677 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4679 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4680 (execute_cfa_program): Update to match API of leb128 functions.
4681 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4683 (read_unsigned_leb128, read_signed_leb128): Delete.
4684 (read_initial_length): Change type of buf argument to
4686 (read_encoded_value): Update to match API of leb128 functions.
4687 (decode_frame_entry): Change result to "const gdb_byte *", and
4688 similarly for "start" parameter.
4689 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4690 (dwarf2_build_frame_info): Change local frame_ptr to
4692 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4693 read_uleb128, read_sleb128. All callers updated.
4694 (safe_skip_leb128): New function.
4695 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4696 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4697 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4698 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4699 read_uleb128, read_sleb128.
4700 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4701 (execute_stack_op): Update to match API of leb128 functions.
4702 * dwarf2expr.h: #include "leb128.h".
4703 (read_uleb128, read_sleb128): Delete.
4704 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4705 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4706 * dwarf2loc.c (debug_loc_kind): New enum.
4707 (decode_debug_loc_addresses): New function.
4708 (decode_debug_loc_dwo_addresses): New function.
4709 (dwarf2_find_location_expression): Rewrite.
4710 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4711 (locexpr_describe_location_piece): Ditto.
4712 (disassemble_dwarf_expression): Ditto.
4713 (locexpr_describe_location_1): Ditto.
4714 (loclist_describe_location): Rewrite.
4715 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4716 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4717 (dwarf2_section_buffer_overflow_complaint): Renamed from
4718 dwarf2_macros_too_long_complaint. All callers updated.
4719 (skip_leb128): Delete.
4720 (init_cu_die_reader): Initialize reader->buffer_end.
4721 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4722 (skip_form_bytes): New arg buffer_end. All callers updated.
4723 Replace call to skip_leb128 with gdb_skip_leb128.
4724 (skip_unknown_opcode): New arg mac_end. All callers updated.
4725 (fill_in_loclist_baton): Initialize baton->from_dwo.
4727 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4729 * mips-linux-nat.c (mips_linux_read_description): Use a more
4730 verbose error message.
4732 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4734 * NEWS: Add MIPS/Linux DSP support.
4735 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4736 (SIGCONTEXT_DSPCTL): New macro.
4737 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4738 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4739 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4740 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4741 (N64_SIGCONTEXT_HI3): Likewise.
4742 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4743 (N64_SIGCONTEXT_LO3): Likewise.
4744 (N64_SIGCONTEXT_DSPCTL): Likewise.
4745 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4746 (mips_linux_o32_sigframe_init): Handle DSP registers.
4747 (mips_linux_n32n64_sigframe_init): Likewise.
4749 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4751 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4754 2012-05-22 Pedro Alves <palves@redhat.com>
4756 * target.h (store_waitstatus): Move declaration ...
4757 * inf-child.h (store_waitstatus): ... here.
4758 * target.c: Move inclusion of gdb_wait.h, and ...
4759 (store_waitstatus): ... this ...
4760 * inf-child.c: ... here.
4761 * linux-nat.c: Include inf-child.h.
4762 * rs6000-nat.c: Include inf-child.h.
4763 * spu-linux-nat.c: Include inf-child.h.
4765 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4767 * tracepoint.c (start_tracing): Add missing i18n markup.
4768 (stop_tracing, set_trace_user): Ditto.
4769 (set_trace_notes, set_trace_stop_notes): Ditto.
4771 2012-05-21 Tom Tromey <tromey@redhat.com>
4774 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4776 * value.h (value_cast_pointers): Update.
4777 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4778 (value_cast): Update.
4779 (update_search_result): New function.
4780 (do_search_struct_field): New, from search_struct_field. Check
4781 for ambiguous results.
4782 (search_struct_field): Rewrite.
4783 * infcall.c (value_arg_coerce): Update.
4784 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4785 value_cast_pointers.
4786 * ada-lang.c (ada_convert_actual): Update.
4788 2012-05-21 Tom Tromey <tromey@redhat.com>
4790 * macroexp.c (macro_stringify): Terminate the string.
4792 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4794 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4796 * auto-load.c (auto_load_expand_dir_vars): New function.
4797 (auto_load_safe_path_vec_update): Use it, remove the
4798 substitute_path_component call thanks to it.
4799 (auto_load_objfile_script): Remove the debug_file_directory processing.
4800 Use auto_load_expand_dir_vars, remove the substitute_path_component
4802 * configure: Regenerate.
4803 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4804 path. Escape $ also for $debugdir.
4805 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4806 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4808 2012-05-20 Doug Evans <dje@google.com>
4810 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4811 before use. Check for symtab->includes == NULL before scanning it.
4813 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4815 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4817 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4819 * NEWS: Add microMIPS support and "set mips compression",
4820 "show mips compression" commands.
4821 * mips-tdep.h (mips_isa): New enum.
4822 (gdbarch_tdep): Add mips_isa.
4823 (mips_pc_is_mips16): Update prototype.
4824 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4825 * mips-tdep.c (mips_compression_mips16): New variable.
4826 (mips_compression_micromips): Likewise.
4827 (mips_compression_strings): Likewise.
4828 (mips_compression_string): Likewise.
4829 (is_mips16_isa, is_micromips_isa): New functions.
4830 (is_mips16_addr): Rename to...
4831 (is_compact_addr): ... this.
4832 (unmake_mips16_addr): Likewise to...
4833 (unmake_compact_addr): ... this.
4834 (make_mips16_addr): Likewise to...
4835 (make_compact_addr): ... this.
4836 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4838 (mips_elf_make_msymbol_special): Handle microMIPS code.
4839 (msymbol_is_special): Rename to...
4840 (msymbol_is_mips16): ... this.
4841 (mips_make_symbol_special, mips_pc_is_mips16): Update
4843 (msymbol_is_mips, msymbol_is_micromips): New functions.
4844 (mips16_to_32_reg): Rename to...
4845 (mips_reg3_to_reg): ... this.
4846 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4847 (mips_pc_isa): Likewise.
4848 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4850 (mips_fetch_instruction): Pass return status instead of printing
4851 an error message if requested. Handle microMIPS code. Bail out
4853 (micromips_op): New macro.
4854 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4855 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4856 (b6s4_op, b7s3_reg): Likewise.
4857 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4858 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4859 (mips_insn_size): New function.
4860 (mips32_next_pc): Update mips_fetch_instruction call.
4861 (micromips_relative_offset7): New function.
4862 (micromips_relative_offset10): Likewise.
4863 (micromips_relative_offset16): Likewise.
4864 (micromips_pc_insn_size): Likewise.
4865 (micromips_bc1_pc): Likewise.
4866 (micromips_next_pc): Likewise.
4867 (unpack_mips16): Update mips_fetch_instruction call.
4868 (extended_mips16_next_pc): Update according to change to
4870 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4872 (mips16_scan_prologue): Update mips_fetch_instruction call.
4873 Update according to change to mips16_to_32_reg.
4874 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4875 (mips_insn16_frame_base_sniffer): Likewise.
4876 (micromips_decode_imm9): New function.
4877 (micromips_scan_prologue): Likewise.
4878 (mips_micro_frame_cache): Likewise.
4879 (mips_micro_frame_this_id): Likewise.
4880 (mips_micro_frame_prev_register): Likewise.
4881 (mips_micro_frame_sniffer): Likewise.
4882 (mips_micro_frame_unwind): New variable.
4883 (mips_micro_frame_base_address): New function.
4884 (mips_micro_frame_base): New variable.
4885 (mips_micro_frame_base_sniffer): New function.
4886 (mips32_scan_prologue): Update mips_fetch_instruction call.
4887 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4888 rather than for MIPS16.
4889 (mips_insn32_frame_base_sniffer): Likewise.
4890 (mips_addr_bits_remove): Handle microMIPS code.
4891 (deal_with_atomic_sequence): Rename to...
4892 (mips_deal_with_atomic_sequence): ... this. Update the type
4893 of the variable used to hold an instruction. Remove the ISA bit
4894 check. Update mips_fetch_instruction call.
4895 (micromips_deal_with_atomic_sequence): New function.
4896 (deal_with_atomic_sequence): Likewise.
4897 (mips_about_to_return): Handle microMIPS code. Update
4898 mips_fetch_instruction call.
4899 (heuristic_proc_start): Check for the standard MIPS ISA rather
4900 than for MIPS16. Update mips_pc_is_mips16 and
4901 mips_fetch_instruction calls. Handle microMIPS code.
4902 (mips_push_dummy_code): Handle microMIPS code.
4903 (mips_eabi_push_dummy_call): Likewise.
4904 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4905 (mips_o64_push_dummy_call): Handle microMIPS code.
4906 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4907 (is_delayed): Remove function.
4908 (mips_single_step_through_delay): Replace the call to is_delayed
4909 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4910 Handle microMIPS code.
4911 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4913 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4915 (micromips_in_function_epilogue_p): New function.
4916 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4918 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4920 (gdb_print_insn_mips): Likewise.
4921 (mips_breakpoint_from_pc): Likewise.
4922 (mips_remote_breakpoint_from_pc): New function.
4923 (mips32_instruction_has_delay_slot): Simplify making use of the
4924 updated mips_fetch_instruction interface.
4925 (micromips_instruction_has_delay_slot): New function.
4926 (mips16_instruction_has_delay_slot): Simplify making use of the
4927 updated mips_fetch_instruction interface.
4928 (mips_adjust_breakpoint_address): Check for the standard MIPS
4929 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4930 calls. Handle microMIPS code.
4931 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4932 (mips_skip_trampoline_code): Handle microMIPS code.
4933 (global_mips_compression): New function.
4934 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4935 file flags. Register the microMIPS remote breakpoint handler
4936 and heuristic frame unwinder.
4937 (show_mips_compression): New function.
4938 (_initialize_mips_tdep): Add the "set mips compression" and
4939 "show mips compression" commands.
4941 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4946 * amd64-darwin-tdep.c:
4947 * arm-symbian-tdep.c:
4951 * bfin-linux-tdep.c:
4958 * dwarf2-frame-tailcall.c:
4987 * microblaze-tdep.c:
4988 * mips-linux-tdep.c:
4996 * python/py-finishbreakpoint.c:
4997 * python/py-inferior.c:
4998 * python/py-infthread.c:
5002 * remote-m32r-sdi.c:
5006 * rs6000-aix-tdep.c:
5032 * amd64-darwin-tdep.c:
5033 * arm-symbian-tdep.c:
5034 * arm-tdep.c: Delete unused variables.
5036 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5038 Rename $ddir to $datadir.
5039 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5040 * auto-load.c (auto_load_safe_path_vec_update)
5041 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5042 * configure: Regenerate.
5043 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5044 Likewise. Remove the 'use $ddir' help string.
5046 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5048 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5049 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5051 2012-05-18 Tom Tromey <tromey@redhat.com>
5054 * valprint.h (struct value_print_options) <symbol_print>: New
5056 * valprint.c (user_print_options): Add default for symbol_print.
5057 (show_symbol_print): New function.
5058 (generic_val_print): Respect symbol_print.
5059 (_initialize_valprint): Add "print symbol" setting.
5060 * f-valprint.c (f_val_print): Respect symbol_print.
5061 * c-valprint.c (c_val_print): Respect symbol_print.
5063 * printcmd.c (print_address_symbolic): Return int. Ignore some
5065 (print_address_demangle): Return int.
5066 * defs.h: (print_address_symbolic): Return int.
5067 * value.h (print_address_demangle): Return int.
5069 2012-05-18 Tom Tromey <tromey@redhat.com>
5071 * valprint.c (val_print_string): Don't print leading space.
5072 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5073 print space before string or vtbl.
5074 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5076 * jv-valprint.c (java_value_print): Print space before string.
5077 * go-valprint.c (print_go_string): Print space before string.
5078 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5079 space before string.
5080 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5081 space before string or vtbl.
5082 * auxv.c (fprint_target_auxv): Print space after address.
5084 2012-05-18 Tom Tromey <tromey@redhat.com>
5086 * printcmd.c (print_address_demangle): Remove special case for 0.
5088 2012-05-18 Tom Tromey <tromey@redhat.com>
5090 * printcmd.c (print_address_demangle): Add 'opts' argument.
5091 * p-valprint.c (pascal_val_print): Update.
5092 * jv-valprint.c (java_val_print): Update.
5094 * valprint.c (generic_val_print): Update.
5095 (print_function_pointer_address): Add 'options' argument. Remove
5096 'addressprint' argument. Update.
5097 * m2-valprint.c (print_unpacked_pointer): Update.
5098 * gnu-v3-abi.c (print_one_vtable): Update.
5099 (gnuv3_print_method_ptr): Update.
5100 * f-valprint.c (f_val_print): Update.
5101 * cp-valprint.c (cp_print_value_fields): Update.
5102 * valprint.h (print_function_pointer_address): Update.
5103 * c-valprint.c (c_val_print): Update.
5105 2012-05-18 Tom Tromey <tromey@redhat.com>
5107 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5108 directly corresponding to the found psymtab.
5109 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5110 (dw2_find_pc_sect_symtab): Use it.
5111 * block.h (blockvector_contains_pc): Declare.
5112 * block.c (find_block_in_blockvector): New function.
5113 (blockvector_for_pc_sect): Use it.
5114 (blockvector_contains_pc): New function.
5116 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5118 * mips-tdep.h (mips_write_pc): New prototype.
5119 * mips-tdep.c (mips_write_pc): Make external, add description.
5120 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5123 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5125 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5127 (mips_unwind_pc, mips_write_pc): Likewise.
5128 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5131 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5133 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5134 proc_warn, proc_error, proc_get_status, proc_flags,
5135 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5136 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5137 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5138 proc_stop_process, proc_wait_for_stop, proc_run_process,
5139 proc_set_traced_signals, proc_set_traced_faults,
5140 proc_set_traced_sysentry, proc_set_traced_sysexit,
5141 proc_set_held_signals, proc_get_held_signals,
5142 proc_get_traced_signals, proc_get_traced_faults,
5143 proc_get_traced_sysentry, proc_get_traced_sysexit,
5144 proc_clear_current_fault, proc_set_current_signal,
5145 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5146 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5147 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5148 proc_get_current_thread, proc_get_current_thread,
5149 proc_get_current_thread, proc_update_threads,
5150 proc_update_threads, proc_update_threads, proc_update_threads,
5151 proc_iterate_over_threads, procfs_find_new_threads,
5152 procfs_pid_to_str): Make static. Remove advance declaration.
5153 (proc_cursig): Make static. Conditionalized defintion on
5154 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5155 (proc_syscall, proc_set_kill_on_last_close,
5156 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5157 proc_get_pending_signals, proc_get_signal_actions,
5158 proc_trace_signal, proc_ignore_signal): Delete.
5160 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5162 * coffread.c (cs_section_address): Passing proper argument for
5163 `bfd_get_section_vma'.
5164 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5165 `bfd_get_section_flags'.
5166 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5167 `bfd_get_section_vma'.
5169 2012-05-16 Tom Tromey <tromey@redhat.com>
5172 * macrotab.h: (macro_define_special): Declare.
5173 (enum macro_special_kind): New.
5174 (struct macro_definition) <argc, replacement>: Update comments.
5175 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5176 (macro_define_object_internal): New function.
5177 (macro_define_object): Use it.
5178 (macro_define_special): New function.
5179 (fixup_definition): New function.
5180 (macro_lookup_definition, foreach_macro_in_scope)
5181 (foreach_macro): Use fixup_definition.
5182 * macroexp.h (macro_stringify): Declare.
5183 * macroexp.c (free_buffer_return_text): New function.
5184 (stringify): Constify "arg".
5185 (macro_stringify): New function.
5186 * dwarf2read.c (macro_start_file): Call macro_define_special.
5188 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5189 Maciej W. Rozycki <macro@mips.com>
5191 * breakpoint.h (bp_location): Add related_address member.
5192 * inferior.h (get_return_value): Take a pointer to struct value
5193 instead of struct type for the function requested.
5194 * value.h (using_struct_return): Likewise.
5195 * gdbarch.sh (return_value): Take a pointer to struct value
5196 instead of struct type for the function requested.
5197 * breakpoint.c (set_breakpoint_location_function): Initialize
5198 related_address for bp_gnu_ifunc_resolver breakpoints.
5199 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5200 requested function's address to gdbarch_return_value.
5201 * eval.c (evaluate_subexp_standard): Pass the requested
5202 function's address to using_struct_return.
5203 * infcall.c (call_function_by_hand): Pass the requested
5204 function's address to using_struct_return and
5205 gdbarch_return_value.
5206 * infcmd.c (get_return_value): Take a pointer to struct value
5207 instead of struct type for the function requested.
5208 (print_return_value): Update accordingly.
5209 (finish_command_continuation): Likewise.
5210 * stack.c (return_command): Pass the requested function's
5211 address to using_struct_return and gdbarch_return_value.
5212 * value.c (using_struct_return): Take a pointer to struct value
5213 instead of struct type for the function requested. Pass the
5214 requested function's address to gdbarch_return_value.
5215 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5216 New function_value member, replacing function_type.
5217 (bpfinishpy_dealloc): Update accordingly.
5218 (bpfinishpy_pre_stop_hook): Likewise.
5219 (bpfinishpy_init): Likewise. Record the requested function's
5221 * mips-tdep.c (mips_fval_reg): New enum.
5222 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5223 words put in GP registers.
5224 (mips_o64_push_dummy_call): Update a comment.
5225 (mips_o32_return_value): Take a pointer to struct value instead
5226 of struct type for the function requested and use it to check if
5227 using the MIPS16 calling convention. Return the designated
5228 general purpose registers for floating-point values returned in
5230 (mips_o64_return_value): Likewise.
5231 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5232 (ppc_sysv_abi_broken_return_value): Likewise.
5233 (ppc64_sysv_abi_return_value): Likewise.
5234 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5235 value instead of struct type for the function requested.
5236 * amd64-tdep.c (amd64_return_value): Likewise.
5237 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5238 * arm-tdep.c (arm_return_value): Likewise.
5239 * avr-tdep.c (avr_return_value): Likewise.
5240 * bfin-tdep.c (bfin_return_value): Likewise.
5241 * cris-tdep.c (cris_return_value): Likewise.
5242 * frv-tdep.c (frv_return_value): Likewise.
5243 * h8300-tdep.c (h8300_return_value): Likewise.
5244 (h8300h_return_value): Likewise.
5245 * hppa-tdep.c (hppa32_return_value): Likewise.
5246 (hppa64_return_value): Likewise.
5247 * i386-tdep.c (i386_return_value): Likewise.
5248 * ia64-tdep.c (ia64_return_value): Likewise.
5249 * iq2000-tdep.c (iq2000_return_value): Likewise.
5250 * lm32-tdep.c (lm32_return_value): Likewise.
5251 * m32c-tdep.c (m32c_return_value): Likewise.
5252 * m32r-tdep.c (m32r_return_value): Likewise.
5253 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5254 * m68k-tdep.c (m68k_return_value): Likewise.
5255 (m68k_svr4_return_value): Likewise.
5256 * m88k-tdep.c (m88k_return_value): Likewise.
5257 * mep-tdep.c (mep_return_value): Likewise.
5258 * microblaze-tdep.c (microblaze_return_value): Likewise.
5259 * mn10300-tdep.c (mn10300_return_value): Likewise.
5260 * moxie-tdep.c (moxie_return_value): Likewise.
5261 * mt-tdep.c (mt_return_value): Likewise.
5262 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5263 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5264 (ppc_sysv_abi_broken_return_value): Likewise.
5265 (ppc64_sysv_abi_return_value): Likewise.
5266 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5267 * rl78-tdep.c (rl78_return_value): Likewise.
5268 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5269 * rx-tdep.c (rx_return_value): Likewise.
5270 * s390-tdep.c (s390_return_value): Likewise.
5271 * score-tdep.c (score_return_value): Likewise.
5272 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5273 (sh_return_value_fpu): Likewise.
5274 * sh64-tdep.c (sh64_return_value): Likewise.
5275 * sparc-tdep.c (sparc32_return_value): Likewise.
5276 * sparc64-tdep.c (sparc64_return_value): Likewise.
5277 * spu-tdep.c (spu_return_value): Likewise.
5278 * tic6x-tdep.c (tic6x_return_value): Likewise.
5279 * v850-tdep.c (v850_return_value): Likewise.
5280 * vax-tdep.c (vax_return_value): Likewise.
5281 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5282 * xtensa-tdep.c (xtensa_return_value): Likewise.
5283 * gdbarch.c: Regenerate.
5284 * gdbarch.h: Regenerate.
5286 2012-05-15 Tom Tromey <tromey@redhat.com>
5288 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5290 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5292 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5293 of command in two error message.
5295 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5297 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5299 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5301 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5303 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5305 * NEWS (show auto-load scripts-directory): Add forgotten command.
5307 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5309 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5312 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5314 * amd64-tdep.c: Include features/i386/x32.c and
5315 features/i386/x32-avx.c.
5316 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5317 initialize_tdesc_x32_avx.
5319 2012-05-14 Stan Shebs <stan@codesourcery.com>
5322 * breakpoint.h (enum bptype): New type bp_dprintf.
5323 (struct breakpoint): New field extra_string.
5324 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5325 (create_breakpoint): Add extra_string arg.
5326 * breakpoint.c (dprintf_breakpoint_ops): New.
5327 (is_breakpoint): Add bp_dprintf.
5328 (bpstat_what): Add dprintf case.
5329 (bptype_string): Ditto.
5330 (print_one_breakpoint_location): Ditto.
5331 (init_bp_location): Ditto.
5332 (bkpt_print_mention): Ditto.
5333 (dprintf_style_enums): New array.
5334 (dprintf_style): New global.
5335 (dprintf_function): New global.
5336 (dprintf_channel): New global.
5337 (update_dprintf_command_list): New function.
5338 (update_dprintf_commands): New function.
5339 (init_breakpoint_sal): Add extra_string argument, handle it.
5340 (create_breakpoint_sal): Add extra_string argument.
5341 (create_breakpoints_sal): Add extra_string argument, update callers.
5342 (find_condition_and_thread): Add extra argument.
5343 (create_breakpoint): Add extra_string argument, record it.
5344 (dprintf_command): New function.
5345 (break_command_1): Add arg to create_breakpoint call.
5346 (handle_gnu_v3_exceptions): Ditto.
5347 (trace_command): Ditto.
5348 (ftrace_command): Ditto.
5349 (strace_command): Ditto.
5350 (bkpt_print_mention): Add dprintf case.
5351 (create_breakpoint_sal_default): Add extra_string argument.
5352 (_initialize_breakpoint): Add new commands.
5353 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5354 * python/py-breakpoint.c (bppy_init): Ditto.
5355 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5357 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5359 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5361 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5363 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5366 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5368 Add a new function gdb.find_pc_line to the Python API.
5369 * NEWS (Python Scripting): Add entry about the new function.
5370 * python/python.c (gdbpy_find_pc_line): New function which
5371 implements gdb.find_pc_line.
5372 (GdbMethods): Add entry for the new function.
5374 2012-05-12 Pedro Alves <palves@redhat.com>
5376 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5377 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5379 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5381 * inferior.c: Include completer.h
5382 (initialize_inferiors): Set completer of add-inferior to
5385 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5387 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5388 gdbarch_ptr_bit for x32 core dump.
5390 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5392 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5393 and features/i386/x32-avx-linux.c.
5395 2012-05-11 Stan Shebs <stan@codesourcery.com>
5396 Kwok Cheung Yeung <kcy@codesourcery.com>
5398 * NEWS: Describe new info os commands.
5399 * common/linux-osdata.c (PID_T, TIME_T): Define.
5400 (MAX_PID_T_STRLEN): New.
5401 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5403 (command_from_pid): Add comment. Change to use PID_T.
5404 (commandline_from_pid): Change to use PID_T.
5405 (user_from_pid): Add comment.
5406 (get_process_owner): Add comment. Change to use PID_T and
5408 (get_number_of_cpu_cores): Add comment.
5409 (get_cores_used_by_process): Add comment. Change to use PID_T and
5411 (linux_xfer_osdata_processes): Change to use PID_T and
5413 (compare_processes): New function.
5414 (linux_xfer_osdata_processgroups): New function.
5415 (linux_xfer_osdata_threads): Change to use PID_T.
5416 (linux_xfer_osdata_fds): New function.
5417 (format_socket_state, print_sockets): New functions.
5418 (union socket_addr): New union.
5419 (linux_xfer_osdata_isockets): New function.
5420 (time_from_time_t, group_from_gid): New functions.
5421 (linux_xfer_osdata_shm): New function.
5422 (linux_xfer_osdata_sem): New function.
5423 (linux_xfer_osdata_msg): New function.
5424 (linux_xfer_osdata_modules): New function.
5425 (osdata_table): Add new entries.
5426 * common/buffer.c (buffer_xml_printf): Add support for long and
5427 long long format specifiers.
5429 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5431 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5432 (tdesc_x32_avx_linux): Likewise.
5434 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5436 Implement multi-component --with-auto-load-dir.
5437 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5439 (--with-auto-load-safe-path): Update the default value description.
5440 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5442 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5443 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5444 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5445 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5446 "set auto-load scripts-directory".
5447 * config.in: Regenerate.
5448 * configure: Regenerate.
5449 * configure.ac (--with-auto-load-dir): New configure option.
5450 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5452 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5454 Provide $ddir substitution for --with-auto-load-safe-path.
5455 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5457 * auto-load.c: Include observer.h.
5458 (auto_load_safe_path_vec_update): Call substitute_path_component for
5459 each component. New variable ddir_subst.
5460 (auto_load_gdb_datadir_changed): New function.
5461 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5462 AUTO_LOAD_SAFE_PATH. New comment.
5463 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5464 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5465 * config.in: Regenerate.
5466 * configure: Regenerate.
5467 * configure.ac (--auto-load-safe-path): Rename
5468 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5469 GDB_DATADIR/auto-load.
5470 * defs.h (substitute_path_component): New declaration.
5471 * top.c: Include observer.h.
5472 (set_gdb_datadir): New function.
5473 (init_main): Install it for "set data-directory".
5474 * utils.c (substitute_path_component): New function.
5476 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5478 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5479 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5480 DEBUG_FILE_DIRECTORY. Handle multiple components of
5481 DEBUG_FILE_DIRECTORY.
5483 2012-05-10 Tom Tromey <tromey@redhat.com>
5485 * dwarf2read.c (recursively_write_psymbols): New function.
5486 (write_psymtabs_to_index): Use it.
5488 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5490 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5491 (load_partial_comp_unit): Update.
5492 (queue_comp_unit): Add argument 'pretend_language'.
5493 (process_queue): Update.
5494 (psymtab_to_symtab_1): Skip dependencies that have a user.
5495 (load_partial_comp_unit_reader): Give meaning to the 'data'
5497 (load_full_comp_unit): Add 'pretend_language' argument.
5498 (process_full_comp_unit): Add 'pretend_language' argument. Set
5500 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5502 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5503 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5505 (prepare_one_comp_unit): Add 'pretend_language' argument.
5507 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5508 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5509 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5510 (dw2_do_instantiate_symtab): Check whether symtab was read in
5512 (dw2_instantiate_symtab): Add assertion. Call
5513 process_cu_includes.
5514 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5515 (partial_symtab_p): New typedef.
5516 (set_partial_user): New function.
5517 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5518 (scan_partial_symbols): Add imported CU to imported_symtabs.
5519 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5520 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5521 (get_symtab, recursively_compute_inclusions)
5522 (compute_symtab_includes, process_cu_includes)
5523 (process_imported_unit_die): New functions.
5524 (process_die) <DW_TAG_imported_unit>: New case.
5525 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5527 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5529 (struct partial_die_info) <locdesc>: Remove.
5531 (process_psymtab_comp_unit): Add 'read_partial' argument.
5533 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5534 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5535 (add_partial_symbol): Update.
5536 (process_die): Handle DW_TAG_partial_unit.
5537 (read_file_scope): Update comment.
5538 (load_partial_dies): Handle DW_TAG_imported_unit.
5539 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5540 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5542 2012-05-10 Tom Tromey <tromey@redhat.com>
5544 * cc-with-dwz.sh: New file.
5546 2012-05-10 Tom Tromey <tromey@redhat.com>
5548 * symtab.h (struct symtab) <includes, user>: New fields.
5549 * block.h (struct block_iterator) <d, idx, which>: New fields.
5550 * block.c (initialize_block_iterator, find_iterator_symtab)
5551 (block_iterator_step, block_iter_name_step)
5552 (block_iter_match_step): New functions.
5553 (block_iterator_first, block_iterator_next)
5554 (block_iter_name_first, block_iter_name_next)
5555 (block_iter_match_first, block_iter_match_next): Rewrite.
5556 (get_block_symtab): New function.
5558 2012-05-10 Tom Tromey <tromey@redhat.com>
5560 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5562 * jit.c (finalize_symtab): Use allocate_global_block,
5564 * buildsym.c (finish_block_internal): New function, from old
5566 (finish_block): Rewrite.
5567 (end_symtab): Use finish_block_internal, set_block_symtab.
5568 * block.h (struct global_block): New.
5569 (allocate_global_block, set_block_symtab): Declare.
5570 * block.c (allocate_global_block, set_block_symtab): New
5573 2012-05-10 Tom Tromey <tromey@redhat.com>
5575 * psymtab.c (partial_map_expand_apply): Add assertion.
5576 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5577 (psymtab_to_symtab): Find unshared psymtab.
5578 (dump_psymtab): Print including psymtabs.
5579 (recursively_search_psymtabs): New function.
5580 (expand_symtabs_matching_via_partial): Use it.
5581 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5583 (enum psymtab_search_status): New.
5585 2012-05-10 Tom Tromey <tromey@redhat.com>
5587 * tracepoint.c (scope_info): Update.
5588 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5589 (find_pc_sect_symtab, search_symbols)
5590 (default_make_symbol_completion_list_break_on)
5591 (make_file_symbol_completion_list): Update.
5592 * symmisc.c (dump_symtab_1): Update.
5593 * stack.c (print_frame_args, iterate_over_block_locals)
5594 (print_frame_labels, iterate_over_block_arg_vars): Update.
5595 * python/py-block.c (block_object) <dict>: Remove.
5597 <iter>: Change type.
5598 (blpy_iter): Update.
5599 (blpy_block_syms_iternext): Update.
5600 * psymtab.c (map_block): Use block iterators.
5601 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5602 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5603 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5604 * infrun.c (check_exception_resume): Update.
5605 * cp-support.c (make_symbol_overload_list_block): Update.
5606 * coffread.c (patch_opaque_types): Update.
5607 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5608 * block.h (struct block_iterator): New.
5609 (block_iterator_first, block_iterator_next, block_iter_name_first)
5610 (block_iter_name_next, block_iter_match_first)
5611 (block_iter_match_next): Declare.
5612 (ALL_BLOCK_SYMBOLS): Redefine.
5613 * block.c (block_iterator_first, block_iterator_next)
5614 (block_iter_name_first, block_iter_name_next)
5615 (block_iter_match_first, block_iter_match_next): New functions.
5616 * ada-lang.c (ada_add_block_symbols)
5617 (ada_make_symbol_completion_list): Use block iterator.
5619 2012-05-10 Tom Tromey <tromey@redhat.com>
5621 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5622 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5623 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5624 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5625 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5628 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5630 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5631 print-file-var-lib2.c, print-file-var-main.c and
5632 print-file-var.exp (located in gdb/testsuite/gdb.base).
5634 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5636 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5637 try locating the symbol in the symbol's own objfile first, before
5638 extending the search to all objfiles.
5639 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5640 out of lookup_symbol_aux_symtabs.
5641 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5642 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5643 Do not search EXCLUDE_OBJFILE.
5644 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5645 (lookup_symbol_global): Search for matches in the block's objfile
5646 first, before searching all other objfiles.
5648 2012-05-10 Tristan Gingold <gingold@adacore.com>
5650 * printcmd.c (set_command): Add pre/post inc/dec.
5652 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5654 * gdb.1: Document -ex option.
5656 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5658 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5659 * inferior.h (AT_SYMBOL): Delete.
5661 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5663 * mips-tdep.c (mips_push_dummy_code): New function.
5664 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5665 ON_STACK and install mips_push_dummy_code as our gdbarch
5666 push_dummy_code routine.
5668 2012-05-09 Pedro Alves <palves@redhat.com>
5670 * target.c (set_maintenance_target_async_permitted): Rename to ...
5671 (set_target_async_command): ... this.
5672 (show_maintenance_target_async_permitted): Rename to ...
5673 (show_target_async_command): ... this.
5674 (initialize_targets): Adjust.
5676 2012-05-08 Doug Evans <dje@google.com>
5678 * go-exp.y (classify_name): Add missing assignment of fields of
5681 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5683 Display the ">" prompt in interactive mode while reading canned
5684 commands, even when the current interpreter is MI.
5686 * interps.c (interp_set_temp): New function.
5688 * interps.h (interp_set_temp): Add prototype.
5690 * cli/cli-script.c (restore_interp): New cleanup function.
5691 (read_command_lines): Temporarily override the current interpreter
5692 with CLI and arrange for restoring the original one.
5694 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5696 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5698 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5700 * probe.c (parse_probes): Move conditional to check for
5701 debuginfo files from here...
5702 * stap-probe.c (stap_get_probes): ... to here.
5704 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5705 H.J. Lu <hongjiu.lu@intel.com>
5707 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5708 `movl %esp, %ebp' for the X32 ABI.
5710 2012-05-07 Tom Tromey <tromey@redhat.com>
5712 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5714 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5715 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5716 (dwarf_stack_op_name): Remove.
5717 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5718 (decode_locdesc): Use get_DW_OP_name.
5719 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5720 (dwarf2_compile_expr_to_ax): Likewise.
5721 (disassemble_dwarf_expression): Likewise.
5722 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5724 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5726 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5727 (sh_linux_sigtramp_cache): New function.
5728 (sh_linux_sigreturn_init): New function.
5729 (sh_linux_rt_sigreturn_init): New function.
5730 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5732 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5734 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5735 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5736 (sh_linux_init_abi): Add init calls to register new tramp_frame
5737 definitions under 32-bit SH, update comments.
5739 2012-05-07 Pedro Alves <palves@redhat.com>
5743 * amd64-linux-tdep.c: Include glibc-tdep.h.
5744 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5745 gdbarch_skip_solib_resolver callback.
5747 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5749 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5750 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5751 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5752 (add_auto_load_safe_path): Change the error message.
5753 (_initialize_auto_load): Change the "safe-path" help text.
5754 * configure: Regenerate
5755 * configure.ac (--without-auto-load-safe-path): Set
5756 WITH_AUTO_LOAD_SAFE_PATH to /.
5758 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5760 * stap-probe.h: Do not include unecessary `probe.h'.
5762 2012-05-05 Alan Modra <amodra@gmail.com>
5764 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5765 bfd_und_section_ptr.
5766 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5767 and bfd_com_section_ptr.
5769 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5771 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5773 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5775 * windows-nat.h (segment_register_p_ftype): New typedef.
5776 (windows_set_segment_register_p): Add declaration.
5777 * windows-nat.c (segment_register_p): New static global.
5778 (windows_set_segment_register_p): New function.
5779 (do_windows_fetch_inferior_registers): Add special handling
5780 for segment registers.
5781 * amd64-windows-nat.c: #include "amd64-tdep.h".
5782 (amd64_windows_segment_register_p): New function.
5783 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5784 * i386-windows-nat.c: #include "i386-tdep.h".
5785 (i386_windows_segment_register_p): New function.
5786 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5788 2012-05-04 Tristan Gingold <gingold@adacore.com>
5790 * printcmd.c (set_command): Emit a warning if the expression is not
5793 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5795 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5798 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5800 * stap-probe.c (stap_is_operator): Change declaration.
5801 (stap_get_opcode): Change return value.
5802 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5803 `stap_parse_argument_1'.
5805 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5807 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5810 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5812 Add two new methods global_block and static_block to gdb.Symtab
5814 * NEWS (Python scripting): Add entry about the new methods.
5815 * python/py-symtab.c (stpy_global_block): New function which
5816 implements the gdb.Symtab.global_block() method.
5817 (stpy_static_block): New function which implements the
5818 gdb.Symtab.static_block() method.
5819 (symtab_object_methods): Add entries for the two new methods.
5821 2012-05-03 Doug Evans <dje@google.com>
5823 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5826 2012-05-03 Yao Qi <yao@codesourcery.com>
5828 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5830 (i386_process_record): Ditto.
5832 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5834 * infcall.c (unwind_on_signal_p): Make static.
5836 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5838 * sol-thread.c (solaris_pid_to_str): Make static.
5839 (_initialize_sol_thread): Add prototype.
5841 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5843 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5845 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5847 * MAINTAINERS: Remove myself.
5849 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 Fix --without-auto-load-safe-path for MS-Windows host platform.
5852 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5854 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5856 * gdb_curses.h: Undefine KEY_EVENT before including curses
5857 headers. Move "#undef MOUSE_MOVED" before any curses header
5860 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5862 * features/i386/i386-mmx-linux.c: Regenerate.
5863 * features/rs6000/powerpc-32.c: Likewise.
5864 * features/rs6000/powerpc-32l.c: Likewise.
5865 * features/rs6000/powerpc-403.c: Likewise.
5866 * features/rs6000/powerpc-403gc.c: Likewise.
5867 * features/rs6000/powerpc-405.c: Likewise.
5868 * features/rs6000/powerpc-505.c: Likewise.
5869 * features/rs6000/powerpc-601.c: Likewise.
5870 * features/rs6000/powerpc-602.c: Likewise.
5871 * features/rs6000/powerpc-603.c: Likewise.
5872 * features/rs6000/powerpc-604.c: Likewise.
5873 * features/rs6000/powerpc-64.c: Likewise.
5874 * features/rs6000/powerpc-64l.c: Likewise.
5875 * features/rs6000/powerpc-750.c: Likewise.
5876 * features/rs6000/powerpc-860.c: Likewise.
5877 * features/rs6000/powerpc-e500.c: Likewise.
5878 * features/rs6000/powerpc-e500l.c: Likewise.
5879 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5880 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5881 * features/rs6000/rs6000.c: Likewise.
5883 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5885 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5887 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5888 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5889 (stap_parse_argument) <e>: Likewise.
5890 (handle_stap_probe) <byte_order>: Likewise.
5892 2012-04-30 Doug Evans <dje@google.com>
5894 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5895 init_and_read_dies_worker. All callers updated.
5896 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5897 replaced with init_cutu_and_read_dies.
5898 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5899 (find_partial_die): Remove FIXME. Don't free current CU.
5901 2012-04-30 Sterling Augustine <saugustine@google.com>
5903 * contrib: New directory.
5904 * contrib/test_pubnames_and_indexes.py: New file.
5906 2012-04-30 Doug Evans <dje@google.com>
5908 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5909 All callers updated.
5910 (init_cu_die_reader): Verify the section is non-empty.
5911 (dwarf_decode_line_header): Don't dereference section->asection
5912 until we know the section is present.
5914 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5916 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5919 2012-04-29 Yao Qi <yao@codesourcery.com>
5921 * gdb-code-style.el: New hook gdb-markup-hook
5922 and gdb-comment-hook.
5924 2012-04-28 Doug Evans <dje@google.com>
5926 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5927 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5929 * symfile.h (dwarf2_debug_sections): New member addr.
5930 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5931 (ctx_no_get_addr_index): New function.
5932 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5933 (ctx_no_get_addr_index): Declare.
5934 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5935 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5936 (dwarf_expr_ctx_funcs): Update.
5937 (needs_get_addr_index): New function.
5938 (needs_frame_ctx_funcs): Update.
5939 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5940 * dwarf2read.c: #include "gdbcore.h".
5941 (dwarf2_per_objfile): New members addr, dwo_files.
5942 (dwarf2_elf_names): Add entry for addr.
5943 (struct dwo_section_names): New type.
5944 (dwo_section_names): New static global.
5945 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5946 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5947 old debug_types_section member updated to use this.
5948 Rename member debug_types_section to info_or_types_section,
5950 (signatured_type): Rename member type_offset to type_offset_in_tu,
5951 all uses updated. New member type_offset_in_section.
5952 (struct dwo_sections): New type.
5953 (struct dwo_unit): New type.
5954 (struct dwo_file): New type.
5955 (die_reader_specs): New member dwo_file.
5956 (dwarf2_locate_sections): Watch for .debug_addr.
5957 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5958 (dwarf2_read_section): Get bfd of section from bfd's asection,
5960 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5961 (create_signatured_type_table_from_index): Initialize
5962 sig_type->info_or_types_section.
5963 (dw2_get_file_names): Statement lists for type units with DWO files
5964 live in the DWO file.
5965 (create_debug_types_hash_table): New function.
5966 (create_all_type_units): Rewrite.
5967 (init_cu_die_reader): New arg dwo_file, all callers updated.
5968 (init_and_read_dies_worker): Get section from
5969 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5970 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5971 continue reading the CU/TU from there.
5972 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5973 updated. Get section from this_cu->info_or_types_section.
5974 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5975 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5976 DW_FORM_GNU_str_index.
5977 (hash_dwo_file, eq_dwo_file): New functions.
5978 (allocate_dwo_file_hash_table): New function.
5979 (hash_dwo_unit, eq_dwo_unit): New functions.
5980 (allocate_dwo_unit_table): New function.
5981 (dwarf2_locate_dwo_sections): New function.
5982 (struct create_dwo_info_table_data): New type.
5983 (create_debug_info_hash_table_reader): New function.
5984 (create_debug_info_hash_table): New function.
5985 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5986 (lookup_dwo_file): New function.
5987 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5988 (free_dwo_file, free_dwo_file_cleanup): New functions.
5989 (free_dwo_file_from_slot, free_dwo_files): New functions.
5990 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5991 (dwarf2_record_block_ranges): Ditto.
5992 (read_partial_die): Ditto.
5993 (process_enumeration_scope): Update to use type_offset_in_section.
5994 (read_full_die_1): New function.
5995 (read_full_die): Rewrite.
5996 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5997 DW_FORM_GNU_str_index.
5998 (read_addr_index_1, read_addr_index): New functions.
5999 (read_addr_index_from_leb128): New function.
6000 (struct dwarf2_read_addr_index_data): New type.
6001 (dwarf2_read_addr_index_reader): New function.
6002 (dwarf2_read_addr_index): New function.
6003 (read_str_index): New function.
6004 (leb128_size): New function.
6005 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6006 If processing a type unit from a DWO file, get the line section
6008 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6009 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6010 DW_FORM_GNU_str_index.
6011 (lookup_die_type): Check whether section offset of type's die is
6012 known before looking it up. Remove assert. Condition can
6013 legimately happen for inter-cu type references.
6014 (dwarf_attr_name): Handle Fission attributes.
6015 (dwarf_form_name): Handle Fission forms.
6016 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6017 DW_FORM_GNU_str_index.
6018 (follow_die_sig): Update to use type_offset_in_section.
6019 (decode_locdesc): New case DW_OP_GNU_addr_index.
6020 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6021 DW_FORM_GNU_str_index.
6022 (cu_debug_loc_section): New function.
6023 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6024 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6025 Free DWO files if present.
6026 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6028 Refactor DIE reading.
6029 * dwarf2read.c (dwarf2_per_objfile): Replace members
6030 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6031 (die_reader_specs): New member "die_section". Temporarily make
6032 member "buffer" non-const, pending constifying all info_ptr uses.
6033 (die_reader_func_ftype): New typedef.
6034 (dw2_get_file_names_reader): New function.
6035 (dw2_get_file_names): Rewrite.
6036 (read_and_check_type_unit_head): Rename arg type_offset to
6038 (create_all_type_units): Improve debugging message.
6039 Improve dummy type unit check.
6040 (init_cu_die_reader): New arg "section". All callers updated.
6041 (init_and_read_dies_worker): New function.
6042 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6043 (init_cutu_and_read_dies_no_follow): New function.
6044 (init_cutu_and_read_dies_simple): New function.
6045 (process_psymtab_comp_unit_reader): New function.
6046 (process_psymtab_comp_unit): Delete args section,
6047 is_debug_types_section. Rewrite. All callers updated.
6048 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6049 All callers updated. Rewrite.
6050 (load_partial_comp_unit_reader): New function.
6051 (load_partial_comp_unit): Rewrite.
6052 (skip_children): New arg reader. Delete args buffer, cu.
6053 All callers updated.
6054 (skip_one_die): New arg reader. Delete args buffer, cu.
6055 All callers updated.
6056 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6057 All callers updated.
6058 (load_full_comp_unit_reader): New function.
6059 (load_full_comp_unit): Rewrite.
6060 (read_comp_unit): Delete.
6061 (read_die_and_children_1): Delete, contents moved ...
6062 (read_die_and_children): ... here.
6063 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6064 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6065 All callers updated.
6066 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6067 All callers updated.
6068 (find_partial_die): Rewrite load_all_dies support.
6069 (read_attribute_value): New arg reader. Delete args abfd, cu.
6070 All callers updated.
6071 (read_attribute): New arg reader. Delete args abfd, cu.
6072 All callers updated.
6073 (load_full_type_unit): Add assert.
6074 (read_signatured_type_reader): New function.
6075 (read_signatured_type): Rewrite.
6076 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6077 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6078 All callers updated. Set per_cu->cu = NULL after freeing it.
6079 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6080 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6081 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6082 (set_die_type): Update.
6083 (get_die_type_at_offset): Update.
6084 (read_file_scope): Call prepare_one_comp_unit.
6085 (read_type_unit_scope): Ditto.
6086 (prepare_one_comp_unit): Set producer if present.
6088 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6090 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6091 gettext function on `error'.
6093 2012-04-27 Doug Evans <dje@google.com>
6095 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6098 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6099 Tom Tromey <tromey@redhat.com>
6101 * breakpoint.c (struct breakpoint_objfile_data)
6102 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6103 <exception_probes>: New fields.
6104 (free_breakpoint_probes): New function.
6105 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6106 `_Unwind_DebugHook'.
6107 (create_exception_master_breakpoint): Likewise.
6108 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6109 * infrun.c: Including necessary header files for handling SystemTap
6111 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6112 via SystemTap probes.
6113 (check_exception_resume): Remove `func' argument. Handle exception
6114 unwinding breakpoint set via a SystemTap probe.
6115 (insert_exception_resume_from_probe): New function.
6117 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6118 Tom Tromey <tromey@redhat.com>
6119 Jan Kratochvil <jan.kratochvil@redhat.com>
6121 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6122 (COMMON_OBS): Likewise.
6123 (HFILES_NO_SRCDIR): Add `probe'.
6124 * NEWS: Mention support for static and SystemTap probes.
6125 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6126 SystemTap probes' arguments parser.
6127 * arm-linux-tdep.c: Including headers needed to perform the parsing
6128 of SystemTap probes' arguments.
6129 (arm_stap_is_single_operand): New function.
6130 (arm_stap_parse_special_token): Likewise.
6131 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6132 probes' arguments parser.
6133 * ax-gdb.c (require_rvalue): Removing static declaration.
6134 (gen_expr): Likewise.
6135 * ax-gdb.h (gen_expr): Declaring function.
6136 (require_rvalue): Likewise.
6137 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6138 (bkpt_probe_breakpoint_ops): New variable.
6139 (momentary_breakpoint_from_master): Set the `probe' value.
6140 (add_location_to_breakpoint): Likewise.
6141 (break_command_1): Using proper breakpoint_ops according to the
6142 argument passed by the user in the command line.
6143 (bkpt_probe_insert_location): New function.
6144 (bkpt_probe_remove_location): Likewise.
6145 (bkpt_probe_create_sals_from_address): Likewise.
6146 (bkpt_probe_decode_linespec): Likewise.
6147 (tracepoint_probe_create_sals_from_address): Likewise.
6148 (tracepoint_probe_decode_linespec): Likewise.
6149 (tracepoint_probe_breakpoint_ops): New variable.
6150 (trace_command): Using proper breakpoint_ops according to the
6151 argument passed by the user in the command line.
6152 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6153 static probes on breakpoints and tracepoints.
6154 * breakpoint.h (struct bp_location) <probe>: New field.
6155 * cli-utils.c (skip_spaces_const): New function.
6156 (extract_arg): Likewise.
6157 * cli-utils.h (skip_spaces_const): Likewise.
6158 (extract_arg): Likewise.
6159 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6160 * configure.ac: Append `stap-probe.o' to be generated when ELF
6162 * configure: Regenerate.
6163 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6164 * elfread.c: Include `probe.h' and `arch-utils.h'.
6165 (probe_key): New variable.
6166 (elf_get_probes): New function.
6167 (elf_get_probe_argument_count): Likewise.
6168 (elf_evaluate_probe_argument): Likewise.
6169 (elf_compile_to_ax): Likewise.
6170 (elf_symfile_relocate_probe): Likewise.
6171 (stap_probe_key_free): Likewise.
6172 (elf_probe_fns): New variable.
6173 (elf_sym_fns): Add `sym_probe_fns' value.
6174 (elf_sym_fns_lazy_psyms): Likewise.
6175 (elf_sym_fns_gdb_index): Likewise.
6176 (_initialize_elfread): Initialize objfile cache for static
6178 * gdb_vecs.h (struct probe): New forward declaration.
6179 (probe_p): New VEC declaration.
6180 * gdbarch.c: Regenerate.
6181 * gdbarch.h: Regenerate.
6182 * gdbarch.sh (stap_integer_prefix): New variable.
6183 (stap_integer_suffix): Likewise.
6184 (stap_register_prefix): Likewise.
6185 (stap_register_suffix): Likewise.
6186 (stap_register_indirection_prefix): Likewise.
6187 (stap_register_indirection_suffix): Likewise.
6188 (stap_gdb_register_prefix): Likewise.
6189 (stap_gdb_register_suffix): Likewise.
6190 (stap_is_single_operand): New function.
6191 (stap_parse_special_token): Likewise.
6192 (struct stap_parse_info): Forward declaration.
6193 * i386-tdep.c: Including headers needed to perform the parsing
6194 of SystemTap probes' arguments.
6195 (i386_stap_is_single_operand): New function.
6196 (i386_stap_parse_special_token): Likewise.
6197 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6198 probes' arguments parser.
6199 * i386-tdep.h (i386_stap_is_single_operand): New function.
6200 (i386_stap_parse_special_token): Likewise.
6201 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6202 * mipsread.c (ecoff_sym_fns): Likewise.
6203 * objfiles.c (objfile_relocate1): Support relocation for static
6205 * parse.c (prefixify_expression): Remove static declaration.
6206 (initialize_expout): Likewise.
6207 (reallocate_expout): Likewise.
6208 * parser-defs.h (initialize_expout): Declare function.
6209 (reallocate_expout): Likewise.
6210 (prefixify_expression): Likewise.
6211 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6212 of SystemTap probes' arguments.
6213 (ppc_stap_is_single_operand): New function.
6214 (ppc_stap_parse_special_token): Likewise.
6215 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6216 probes' arguments parser.
6217 * probe.c: New file, for generic statically defined probe support.
6218 * probe.h: Likewise.
6219 * s390-tdep.c: Including headers needed to perform the parsing of
6220 SystemTap probes' arguments.
6221 (s390_stap_is_single_operand): New function.
6222 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6223 probes' arguments parser.
6224 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6225 * stap-probe.c: New file, for SystemTap probe support.
6226 * stap-probe.h: Likewise.
6227 * symfile.h: Include `gdb_vecs.h'.
6228 (struct sym_probe_fns): New struct.
6229 (struct sym_fns) <sym_probe_fns>: New field.
6230 * symtab.c (init_sal): Initialize `probe' field.
6231 * symtab.h (struct probe): Forward declaration.
6232 (struct symtab_and_line) <probe>: New field.
6233 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6235 (stop_tracing): Likewise.
6236 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6238 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6239 Tom Tromey <tromey@redhat.com>
6241 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6242 and to compile agent expressions.
6243 * infrun.c (siginfo_make_value): New argument `ignore'.
6244 (siginfo_funcs): New struct.
6245 (_initialize_infrun): New argument when calling
6246 `create_internalvar_type_lazy'.
6247 * thread.c (thread_id_make_value): New argument `ignore'.
6248 (thread_funcs): New struct.
6249 (_initialize_thread): New argument when calling
6250 `create_internalvar_type_lazy'.
6251 * tracepoint.c (sdata_make_value): New argument `ignore'.
6252 (sdata_funcs): New struct.
6253 (_initialize_tracepoint): New argument when calling
6254 `create_internalvar_type_lazy'.
6255 * value.c (make_value): New struct.
6256 (create_internalvar_type_lazy): New argument `data'.
6257 (compile_internalvar_to_ax): New function.
6258 (value_of_internalvar): Properly handling `make_value' case.
6259 (clear_internalvar): Likewise.
6260 (show_convenience): Adding `TRY_CATCH' block.
6261 * value.h (internalvar_make_value): Delete, replace by...
6262 (struct internalvar_funcs): ... this.
6263 (create_internalvar_type_lazy) <fun>: Delete argument.
6264 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6265 (compile_internalvar_to_ax): New function.
6266 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6267 (tlb_funcs): New struct.
6268 (_initialize_windows_tdep): New argument when calling
6269 `create_internalvar_type_lazy'.
6271 2012-04-27 Mark Wielaard <mjw@redhat.com>
6273 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6274 see whether it is an address or a constant offset from DW_AT_low_pc.
6275 (dwarf2_record_block_ranges): Likewise.
6276 (read_partial_die): Likewise.
6278 2012-04-26 Mark Wielaard <mjw@redhat.com>
6280 * MAINTAINERS (Write After Approval): Add myself to the list.
6282 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6284 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6285 (proc_prettyprint_signal): Likewise.
6286 (proc_prettyprint_faultset): Likewise.
6287 (proc_prettyprint_fault): Likewise.
6288 (proc_prettyprint_actionset): Likewise.
6289 (proc_prettyprint_flags): Move to new proc-flags.c section.
6290 (proc_prettyfprint_flags): New prototype.
6291 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6292 (proc_syscall, proc_cursig): Likewise.
6293 (proc_set_kill_on_last_close): Likewise.
6294 (proc_unset_kill_on_last_close): Likewise.
6295 (proc_set_watchpoint): Make static.
6296 (proc_delete_dead_threads): Likewise.
6297 (procfs_set_watchpoint): Likewise.
6298 (_initialize_procfs): Add prototype.
6299 * proc-events.c: Include proc-utils.h.
6300 (init_syscall_table): Make static.
6301 * proc-api.c (_initialize_proc_api): Add prototype.
6302 * proc-flags.c: Include proc-utils.h.
6304 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6306 * configure.ac: Add AC_ARG_PROGRAM.
6307 * configure: Regenerate.
6309 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6311 Fix DW_AT_lower_bound defaults for DWARF-4+.
6312 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6313 high. New variable low_default_is_valid. Implement DWARF-4+
6314 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6315 no default by the DWARF standard.
6317 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6318 Maciej W. Rozycki <macro@codesourcery.com>
6320 * infrun.c (handle_inferior_event): Move the check for return
6321 trampolines ahead of the check for function trampolines.
6322 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6323 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6324 (mips_str_mips16_ret_stub): Likewise.
6325 (mips_str_call_fp_stub): Likewise.
6326 (mips_str_call_stub): Likewise.
6327 (mips_str_fn_stub): Likewise.
6328 (mips_str_pic): Likewise.
6329 (mips_in_frame_stub): New function.
6330 (mips_unwind_pc): Return the return address rather than the PC
6331 if the PC of an intermediate frame is inside a call thunk.
6332 (mips_is_stub_suffix): New function.
6333 (mips_is_stub_mode): Likewise.
6334 (mips_get_mips16_fn_stub_pc): Likewise.
6335 (mips_skip_mips16_trampoline_code): Update to handle all the
6336 currently generated stub types. Don't recurse into __fn_stub
6337 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6338 Use cooked register accesses.
6339 (mips_in_return_stub): Reintroduce function.
6340 (mips_skip_trampoline_code): Traverse trampolines recursively.
6341 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6343 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6347 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6349 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6350 * features/arm-with-m-vfp-d16.xml: New file. Describes
6351 Cortex-M with VFPv4-sp-d16 FPU register layout.
6352 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6353 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6354 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6355 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6356 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6358 2012-04-25 Doug Evans <dje@google.com>
6360 * cli/cli-decode.c (print_doc_line): Use stream instead of
6363 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6365 * features/arm-with-iwmmxt.c: Regenerate.
6366 * features/arm-with-m-fpa-layout.c: Likewise.
6367 * features/arm-with-m.c: Likewise.
6368 * features/arm-with-neon.c: Likewise.
6369 * features/arm-with-vfpv2.c: Likewise.
6370 * features/arm-with-vfpv3.c: Likewise.
6371 * features/mips-dsp-linux.c: Likewise.
6372 * features/mips-linux.c: Likewise.
6373 * features/mips64-dsp-linux.c: Likewise.
6374 * features/mips64-linux.c: Likewise.
6375 * features/s390-linux32.c: Likewise.
6376 * features/s390-linux32v1.c: Likewise.
6377 * features/s390-linux32v2.c: Likewise.
6378 * features/s390-linux64.c: Likewise.
6379 * features/s390-linux64v1.c: Likewise.
6380 * features/s390-linux64v2.c: Likewise.
6381 * features/s390x-linux64.c: Likewise.
6382 * features/s390x-linux64v1.c: Likewise.
6383 * features/s390x-linux64v2.c: Likewise.
6384 * features/tic6x-c62x-linux.c: Likewise.
6385 * features/tic6x-c62x.c: Likewise.
6386 * features/tic6x-c64x-linux.c: Likewise.
6387 * features/tic6x-c64x.c: Likewise.
6388 * features/tic6x-c64xp-linux.c: Likewise.
6389 * features/tic6x-c64xp.c: Likewise.
6390 * target-descriptions.c: Only generate `field_type' and `type'
6391 variables when needed.
6393 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6395 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6397 2012-04-25 Doug Evans <dje@google.com>
6399 Initial pass at Go language support.
6401 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6403 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6404 (YYFILES): Add go-exp.c.
6405 (YYOBJ): Add go-exp.o.
6406 (local-maintainer-clean): Delete go-exp.c.
6407 * defs.h (enum language): Add language_go.
6408 * dwarf2read.c: #include "go-lang.h".
6409 (fixup_go_packaging): New function.
6410 (process_full_comp_unit): Call it when processing Go CUs.
6411 (dwarf2_physname): Add Go support.
6412 (read_file_scope): Handle missing language spec for GNU Go.
6413 (set_cu_language): Handle DW_LANG_Go.
6414 * go-exp.y: New file.
6415 * go-lang.h: New file.
6416 * go-lang.c: New file.
6417 * go-typeprint.c: New file.
6418 * go-valprint.c: New file.
6419 * symtab.c: #include "go-lang.h".
6420 (symbol_set_language): Handle language_go.
6421 (symbol_find_demangled_name, symbol_set_names): Ditto.
6422 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6424 2012-04-24 Jim Meyering <meyering@redhat.com>
6426 avoid a few strncpy-induced buffer overruns
6427 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6428 fname and psargs before trying to concatenate.
6429 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6430 "name" before applying strchr.
6432 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6434 * CONTRIBUTE: Use unified diff instead of context diff when
6437 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6439 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6440 code. Handle JR.HB correctly.
6442 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6445 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6446 with the other MIPS16 helpers.
6448 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6450 * observer.sh: Conditionally declare `args', thus cleaning up
6451 unused instances of this variable.
6453 2012-04-24 Yao Qi <yao@codesourcery.com>
6455 Revert this patch to allow breakpoint always-inserted
6457 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6458 * breakpoint.c: Include record.h.
6459 (breakpoints_always_inserted_mode): Return false when the record
6462 * breakpoint.c (iterate_over_bp_locations): New.
6463 * breakpoint.h: Declare.
6464 New typedef walk_bp_location_callback.
6465 * record.c (record_open): Call record_init_record_breakpoints.
6466 (record_sync_record_breakpoints): New.
6467 (record_init_record_breakpoints): New.
6468 * NEWS: Mention supporting breakpoint always-inserted mode in
6471 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6473 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6476 2012-04-24 Yao Qi <yao@codesourcery.com>
6478 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6479 (is_catchpoint): ... it.
6480 (print_one_breakpoint_location): Caller update.
6481 * breakpoint.h: Update declaration.
6483 2012-04-23 David S. Miller <davem@davemloft.net>
6485 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6487 2012-04-23 Tom Tromey <tromey@redhat.com>
6489 * buildsym.c (add_free_pendings): Remove.
6490 * buildsym.h (add_free_pendings): Remove.
6492 2012-04-23 Doug Evans <dje@google.com>
6494 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6495 attr.u.unsnd instead of attr.u.addr.
6496 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6497 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6499 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6500 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6502 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6504 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6506 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6507 (mips_o32_return_value): Likewise.
6508 (mips_o64_return_value): Likewise.
6510 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6512 * ada-lang.c (ada_evaluate_subexp): Add cases for
6513 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6514 their treatment in eval.c.
6516 2012-04-21 David S. Miller <davem@davemloft.net>
6518 * sparc-tdep.c (X_DISP10): Define.
6519 (sparc_analyze_control_transfer): Handle compare-and-branch.
6521 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6523 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6524 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6526 2012-04-20 Nigel Stephens <nigel@mips.com>
6527 Maciej W. Rozycki <macro@codesourcery.com>
6529 * mips-tdep.c (mips_float_register_p): New function.
6530 (mips_convert_register_float_case_p): Use mips_float_register_p.
6531 (mips_register_type): Likewise.
6532 (mips_print_register): Likewise.
6533 (print_gp_register_row): Likewise.
6534 (mips_print_registers_info): Likewise.
6536 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6538 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6541 2012-04-20 Andrew Pinski <apinski@cavium.com>
6543 * MAINTAINERS (Write After Approval): Add myself to the list.
6545 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6547 * MAINTAINERS: Update my e-mail address.
6549 2012-04-20 Pedro Alves <palves@redhat.com>
6551 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6553 * configure: Regenerate.
6555 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6557 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6559 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6561 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6563 Fix compilation compatibility with python-2.4
6564 * python/py-type.c (convert_field): Cast ADDRSTRING for
6565 PyObject_SetAttrString as non-const. New comment.
6567 2012-04-19 Tom Tromey <tromey@redhat.com>
6569 * top.c (quit_target): Use all_cleanups.
6570 * main.c (captured_command_loop): Use all_cleanups.
6571 * exceptions.c (throw_exception): Use all_cleanups.
6573 2012-04-19 Pedro Alves <palves@redhat.com>
6575 * Makefile.in (GNULIB_BUILDDIR): New.
6576 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6577 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6578 (CLEANDIRS). Remove gnulib/import.
6579 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6581 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6582 (gnulib/import/Makefile): Replace gnulib/import with
6583 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6584 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6585 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6586 acx_configure_dir.m4.
6587 * acinclude.m4: Include acx_configure_dir.m4.
6588 * acx_configure_dir.m4: New file.
6589 * aclocal.m4: Regenerate.
6590 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6591 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6592 (GNULIB): New variable.
6593 (GNULIB_STDINT_H): Adjust.
6594 (AC_OUTPUT): Don't output gnulib/Makefile.
6595 * gdb/defs.h: Include build-gnulib/config.h.
6596 * aclocal.m4: Regenerate.
6597 * config.in: Regenerate.
6598 * configure: Regenerate.
6600 * gnulib/Makefile.in: New file.
6601 * gnulib/configure.ac: New file.
6602 * gnulib/aclocal.m4: New file.
6603 * gnulib/config.in: New file.
6604 * gnulib/configure: New file.
6605 * gnulib/: Re-run gnulib-tool to adjust.
6607 2012-04-19 Doug Evans <dje@google.com>
6609 * cleanups.h (struct cleanup): Move to cleanups.c.
6610 (make_cleanup_dtor_ftype): New typedef.
6611 (make_cleanup_dtor): Use it.
6612 (ALL_CLEANUPS): Replace with ...
6613 (all_cleanups): ... this. Declare. All uses updated.
6614 * cleanups.c: #include "gdb_assert.h".
6615 (sentinel_cleanup): New static global.
6616 (SENTINEL_CLEANUP): Define.
6617 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6618 (make_my_cleanup2): Assert result is non-NULL.
6619 (all_cleanups): New function.
6620 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6623 2012-04-19 Pedro Alves <palves@redhat.com>
6625 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6626 Adjust paths to gnulib imported files.
6628 2012-04-19 Pedro Alves <palves@redhat.com>
6630 * gnulib/: Move whole directory ...
6631 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6632 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6633 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6634 (aclocal_m4_deps): Adjust.
6635 * aclocal.m4: Regenerate.
6636 * configure: Regenerate.
6637 * configure.ac: Adjust AC_OUTPUT output.
6639 2012-04-19 Yao Qi <yao@codesourcery.com>
6641 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6643 * vec.c: Move it ...
6644 * common/vec.c: ... here.
6645 * vec.h: Move it ...
6646 * common/vec.h: ... here.
6648 2012-04-19 Yao Qi <yao@codesourcery.com>
6650 * gdb-code-style.el: New.
6652 2012-04-18 Pedro Alves <palves@redhat.com>
6654 Update gnulib from latest git.
6655 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6657 * gnulib/Makefile.am: Update.
6658 * gnulib/dummy.c: Update.
6659 * gnulib/extra/arg-nonnull.h: Update.
6660 * gnulib/extra/c++defs.h: Update.
6661 * gnulib/extra/update-copyright: Update.
6662 * gnulib/extra/warn-on-use.h: Update.
6663 * gnulib/inttypes.in.h: Update.
6664 * gnulib/m4/00gnulib.m4: Update.
6665 * gnulib/m4/extensions.m4: Update.
6666 * gnulib/m4/gnulib-cache.m4: Update.
6667 * gnulib/m4/gnulib-common.m4: Update.
6668 * gnulib/m4/gnulib-comp.m4: Update.
6669 * gnulib/m4/gnulib-tool.m4: Update.
6670 * gnulib/m4/include_next.m4: Update.
6671 * gnulib/m4/inttypes-pri.m4: Update.
6672 * gnulib/m4/inttypes.m4: Update.
6673 * gnulib/m4/longlong.m4: Update.
6674 * gnulib/m4/memchr.m4: Update.
6675 * gnulib/m4/memmem.m4: Update.
6676 * gnulib/m4/mmap-anon.m4: Update.
6677 * gnulib/m4/multiarch.m4: Update.
6678 * gnulib/m4/onceonly.m4: Update.
6679 * gnulib/m4/stddef_h.m4: Update.
6680 * gnulib/m4/stdint.m4: Update.
6681 * gnulib/m4/string_h.m4: Update.
6682 * gnulib/m4/warn-on-use.m4: Update.
6683 * gnulib/m4/wchar_h.m4: Update.
6684 * gnulib/m4/wchar_t.m4: Update.
6685 * gnulib/m4/wint_t.m4: Update.
6686 * gnulib/memchr.c: Update.
6687 * gnulib/memmem.c: Update.
6688 * gnulib/stddef.in.h: Update.
6689 * gnulib/stdint.in.h: Update.
6690 * gnulib/str-two-way.h: Update.
6691 * gnulib/string.in.h: Update.
6692 * gnulib/wchar.in.h: Update.
6694 * gnulib/extra/arg-nonnull.h: Delete.
6695 * gnulib/extra/c++defs.h: Delete.
6696 * gnulib/extra/warn-on-use.h: Delete.
6697 * gnulib/m4/wchar_h.m4: Delete.
6698 * gnulib/m4/wint_t.m4: Delete.
6699 * gnulib/wchar.in.h: Delete.
6701 * gnulib/extra/snippets/arg-nonnull.h: New.
6702 * gnulib/extra/snippets/c++defs.h: New.
6703 * gnulib/extra/snippets/warn-on-use.h: New.
6705 * aclocal.m4: Regenerate.
6706 * config.in: Regenerate.
6707 * configure: Regenerate.
6708 * gnulib/Makefile.in: Regenerate.
6710 2012-04-18 Pedro Alves <palves@redhat.com>
6712 Reimport the update-copyright module from gnulib
6713 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6715 * configure: Regenerate.
6716 * gnulib/Makefile.am: Update.
6717 * gnulib/Makefile.in: Regenerate.
6718 * gnulib/extra/update-copyright: Update.
6719 * gnulib/m4/gnulib-cache.m4: Update.
6720 * gnulib/m4/gnulib-comp.m4: Update.
6722 2012-04-18 Tristan Gingold <gingold@adacore.com>
6724 * configure.ac (aix): Put -lpthread into libs.
6725 * configure: Regenerate.
6727 2012-04-18 Tom Tromey <tromey@redhat.com>
6729 * linespec.c (convert_linespec_to_sals): Don't use
6731 (compare_msymbols): Arguments are minsym_and_objfile, not
6732 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6734 2012-04-18 Pedro Alves <palves@redhat.com>
6736 Revert gnulib/ part of:
6737 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6738 Copyright year update in most files (performed by copyright.sh).
6740 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6742 Fix 64-bit constants on 32-bit hosts.
6743 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6744 from unsigned long to ULONGEST.
6745 (read_signed_leb128): Change declaration return type from long to
6747 (dwarf2_const_value_attr): Change declaration parameter value from long
6749 (dwarf2_compute_name): Change variable value from long to LONGEST.
6750 (read_unsigned_leb128): Change return type, variable result and some
6751 casts from unsigned long to ULONGEST.
6752 (read_signed_leb128): Change return type, variable result and some
6753 casts from long to LONGEST.
6754 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6755 value from long to LONGEST.
6756 (dwarf2_const_value): Change variable value from long to LONGEST.
6757 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6758 plongest and hex_string.
6759 * symtab.h (struct general_symbol_info): Change ivalue from long to
6760 LONGEST, remove the comment.
6761 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6762 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6764 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6767 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6768 * ada-lang.c (ada_discrete_type_high_bound)
6769 (ada_discrete_type_low_bound): Fix function comment. Use
6770 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6771 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6772 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6773 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6774 Use TYPE_FIELD_ENUMVAL.
6775 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6776 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6777 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6778 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6780 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6781 * dwarf2read.c (process_enumeration_scope): Likewise.
6782 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6784 (class StructMainTypePrettyPrinter): Support also
6785 FIELD_LOC_KIND_ENUMVAL.
6786 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6788 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6789 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6790 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6791 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6793 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6794 accommodate enumval.
6795 (struct call_site): Adjust loc_kind to accommodate enumval.
6796 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6797 (TYPE_FIELD_ENUMVAL): New macros.
6798 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6799 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6801 * p-typeprint.c (pascal_type_print_base): Likewise.
6802 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6804 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6805 * python/py-type.c (convert_field): New variable addrstring. Use
6806 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6807 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6808 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6809 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6811 * valprint.c (generic_val_print): Likewise.
6813 2012-04-17 Doug Evans <dje@google.com>
6815 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6817 * dwarf2read.c: Whitespace fixes.
6818 (lookup_signatured_type): Tweak comment.
6819 (get_die_type_at_offset): Fix comment.
6821 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6823 * xcoffread.c (xcoff_secnum_to_sections): New function.
6824 (secnum_to_section, secnum_to_bfd_section): Reimplement
6825 using xcoff_secnum_to_sections. Rename "secnum" parameter
6827 (RECORD_MINIMAL_SYMBOL): Delete.
6828 (record_minimal_symbol): New function.
6829 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6830 by call to record_minimal_symbol and set misc_func_recorded
6831 to 1. Set last_csect_sec to the XCOFF section index instead
6832 of GDB's section_offset index. Update calls to
6833 prim_record_minimal_symbol_and_info to pass the BFD section
6836 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6838 * xcoffread.c (read_xcoff_symtab): Delete variables
6839 last_csect_val and last_csect_sec and associated code.
6841 2012-04-17 Doug Evans <dje@google.com>
6843 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6844 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6845 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6846 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6848 * cleanups.h: New file.
6849 * cleanups.c: New file.
6850 * Makefile.in (SFILES): Add cleanups.c.
6851 (HFILES_NO_SRCDIR): Add cleanups.h.
6852 (COMMON_OBS): Add cleanups.o.
6853 * defs.h (struct cleanup): Moved to cleanups.h.
6854 (do_cleanups,do_final_cleanups): Ditto.
6855 (discard_cleanups,discard_final_cleanups): Ditto
6856 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6857 (save_cleanups,save_final_cleanups): Ditto.
6858 (restore_cleanups,restore_final_cleanups): Ditto.
6859 (null_cleanup): Ditto.
6860 (make_my_cleanup,make_my_cleanup2): Ditto.
6861 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6862 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6863 (do_cleanups,do_final_cleanups): Ditto.
6864 (discard_cleanups,discard_final_cleanups): Ditto
6865 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6866 (save_cleanups,save_final_cleanups): Ditto.
6867 (restore_cleanups,restore_final_cleanups): Ditto.
6868 (null_cleanup): Ditto.
6869 (make_my_cleanup,make_my_cleanup2): Ditto.
6870 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6872 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6874 (make_cleanup_dyn_string_delete): Ditto.
6875 (make_cleanup_ui_file_delete): Ditto.
6876 (make_cleanup_ui_out_redirect_pop): Ditto.
6877 (make_cleanup_free_section_addr_info): Ditto.
6878 (make_cleanup_restore_integer): Ditto.
6879 (make_cleanup_unpush_target): Ditto.
6880 (make_cleanup_value_free_to_mark): Ditto.
6881 (make_cleanup_value_free): Ditto.
6882 (make_cleanup_free_so): Ditto.
6884 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6886 New option "set debug auto-load".
6887 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6888 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6889 (auto_load_safe_path_vec_update)
6890 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6892 (file_is_auto_load_safe): New parameters debug_fmt and ....
6893 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6894 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6895 caller by explanatory string.
6896 (_initialize_auto_load): Register "set debug auto-load".
6897 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6899 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6900 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6901 by explanatory string.
6902 * main.c (captured_main): Likewise.
6903 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6904 (source_section_scripts): Likewise.
6906 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6908 New option "set auto-load safe-path".
6909 * NEWS: New commands "set auto-load safe-path"
6910 and "show auto-load safe-path".
6911 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6912 (auto_load_safe_path, auto_load_safe_path_vec)
6913 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6914 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6915 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6916 (source_gdb_script_for_objfile): New variable is_safe. Call
6917 file_is_auto_load_safe. Return if it is not.
6918 (struct loaded_script): New field loaded.
6919 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6920 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6921 output "Missing" to "No".
6922 (_initialize_auto_load): New variable cmd. Initialize
6923 auto_load_safe_path. Register "set auto-load safe-path",
6924 "show auto-load safe-path" and "add-auto-load-safe-path".
6925 * auto-load.h (maybe_add_script): Add parameter loaded.
6926 (file_is_auto_load_safe): New declaration.
6927 * config.in: Regenerate.
6928 * configure: Regenerate.
6929 * configure.ac: New parameters --with-auto-load-safe-path
6930 and --without-auto-load-safe-path.
6931 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6932 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6933 * main.c (captured_main): Check file_is_auto_load_safe for
6935 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6936 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6937 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6940 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 auto-load: Implementation.
6943 * NEWS: New descriptions for "info auto-load",
6944 "info auto-load gdb-scripts", "info auto-load python-scripts",
6945 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6946 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6947 and "show auto-load-scripts". New description for "set auto-load",
6948 "show auto-load", "set auto-load gdb-scripts",
6949 "show auto-load gdb-scripts", "set auto-load python-scripts",
6950 "show auto-load python-scripts", "set auto-load local-gdbinit",
6951 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6952 "show auto-load libthread-db".
6953 * auto-load.c: Remove include python/python-internal.h. Add includes
6954 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6956 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6957 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6958 (gdbpy_global_auto_load): Rename to ...
6959 (global_auto_load): ... here.
6960 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6961 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6962 (script_language_gdb, source_gdb_script_for_objfile): New.
6963 (struct loaded_script): New field language.
6964 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6966 (maybe_add_script): Add parameter language. Drop redundant
6967 entry.full_path initialization. Initialize entry.language and
6969 (auto_load_objfile_script): Change parameter suffix to language.
6970 Remove the call of maybe_add_script.
6971 Call language->source_script_for_objfile.
6972 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6974 (collect_matching_scripts): Adjust it for
6975 struct collect_matching_scripts_data.
6976 (auto_load_info_scripts_pattern_nl): New variable.
6977 (info_auto_load_scripts): Rename to ...
6978 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6979 for struct collect_matching_scripts_data.
6980 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6981 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6982 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6983 (auto_load_info_cmdlist_get): New.
6984 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6985 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6986 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6987 "info auto-load local-gdbinit".
6988 * auto-load.h (struct script_language): New.
6989 (gdbpy_global_auto_load): Rename to ...
6990 (global_auto_load): ... here.
6991 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6992 (auto_load_local_gdbinit_loaded): New declarations.
6993 (maybe_add_script): New parameter language.
6994 (auto_load_objfile_script): Change parameter suffix to language.
6995 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6996 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6997 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6999 * linux-thread-db.c: Include auto-load.h and ctype.h.
7000 (auto_load_thread_db, show_auto_load_thread_db): New.
7001 (struct thread_db_info): New field filename.
7002 (delete_thread_db_info): Call xfree for FILENAME.
7003 (try_thread_db_load): Initialize FILENAME.
7004 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7005 if !AUTO_LOAD_THREAD_DB.
7006 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7007 (_initialize_thread_db): Install auto_load_thread_db
7008 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7009 as "info auto-load libthread-db".
7010 * main.c (captured_main): Rename gdbpy_global_auto_load to
7011 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7012 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7013 (print_gdb_help): Extend the help for 'local init file'.
7014 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7015 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7016 (auto_load_scripts): Rename to ...
7017 (auto_load_python_scripts): ... here, update the comment.
7018 (gdbpy_load_auto_script_for_objfile): New declaration.
7019 (show_auto_load_python_scripts, script_language_python)
7020 (gdbpy_load_auto_script_for_objfile): New.
7021 (source_section_scripts): Refactor the code.
7022 (load_auto_scripts_for_objfile): Rename to ...
7023 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7024 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7025 (info_auto_load_python_scripts): New.
7026 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7027 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7028 Register "set auto-load-scripts" as its deprecated alias. Register
7029 "info auto-load python-scripts". Register "info auto-load-scripts" as
7030 its deprecated alias.
7031 (load_auto_scripts_for_objfile): Rename to ...
7032 (gdbpy_load_auto_scripts_for_objfile): ... here.
7033 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7034 (gdbpy_load_auto_scripts_for_objfile): ... here.
7036 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7038 auto-load: Move files.
7039 * Makefile.in (SFILES): Add auto-load.c.
7040 (HFILES_NO_SRCDIR): Add auto-load.h.
7041 (COMMON_OBS): Add auto-load.o.
7042 (distclean): Change .gdbinit for gdb-gdb.gdb.
7043 * auto-load.c: New file, with parts from python/py-auto-load.c.
7044 * auto-load.h: New file, with parts from python/python.h.
7045 * configure: Regenerate.
7046 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7047 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7048 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7049 * main.c: Include auto-load.h.
7050 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7051 command.h, observer.h and progspace.h to auto-load.c. Add include
7053 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7054 (struct loaded_script, auto_load_pspace_data)
7055 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7056 (hash_loaded_script_entry, eq_loaded_script_entry)
7057 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7058 (maybe_add_script): Move to auto-load.c.
7059 (source_section_scripts): Change maybe_add_script parameters passing,
7060 use script_not_found_warning_print.
7061 (clear_section_scripts, auto_load_objfile_script)
7062 (auto_load_new_objfile, loaded_script_ptr)
7063 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7064 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7065 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7066 auto_load_new_objfile and info_auto_load_scripts initizations to
7068 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7070 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7073 * charset.c (find_charset_names): Remove variables ix and elt.
7074 Use free_char_ptr_vec.
7075 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7076 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7077 debugdir_end. New variable debugdir_len.
7078 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7079 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7081 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7082 and elt. Use free_char_ptr_vec.
7083 * source.c (add_path): Remove variables argv, arg and argv_index.
7084 New variables dir_vec, back_to, ix and name.
7085 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7086 make_cleanup_freeargv. Remove variable separator. Simplify the code
7087 no longer expecting DIRNAME_SEPARATOR.
7088 (openp): Remove variable p, p1 and len. New variables dir_vec,
7089 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7090 no longer expecting DIRNAME_SEPARATOR.
7091 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7092 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7094 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7095 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7096 (dirnames_to_char_ptr_vec): New functions.
7098 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7101 * source.c (add_path): Remove always true conditional 'p == 0' and
7102 unindent its code block.
7104 2012-04-17 Pedro Alves <palves@redhat.com>
7106 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7107 (FIELD_BITPOS_LVAL): ... this.
7108 (FIELD_BITPOS): New.
7109 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7110 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7111 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7113 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7115 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7116 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7117 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7120 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7122 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7123 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7124 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7125 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7126 * jv-lang.c (java_link_class_type): Likewise, once.
7127 * stabsread.c (read_enum_type): Likewise.
7129 2012-04-16 Yao Qi <yao@codesourcery.com>
7131 * common/agent.c (agent_run_command): Add one more parameter `len'.
7133 * common/agent.h: Update declaration.
7134 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7136 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7138 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7141 * value.c (value_actual_type): New function.
7142 * value.h (value_actual_type): New declaration.
7143 * varobj.c (update_type_if_necessary): New function.
7144 (varobj_create): Call value_actual_type instead of
7146 (install_dynamic_child): distinct changed and type changed MI variable
7148 (update_dynamic_varobj_children): Updated for install_dynamic_child
7149 change. All callers updated.
7150 (varobj_update): Support for MI variable object type change if
7151 the value changed and RTTI is used to determine the type.
7152 (create_child_with_value): Call value_actual_type instead of
7154 (adjust_value_for_child_access): Extended with a new parameter which
7155 specify whether the given value should be casted to enclosing type.
7156 All callers updated.
7158 2012-04-14 Yao Qi <yao@codesourcery.com>
7160 Import gnulib module inttypes from git
7161 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7162 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7163 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7164 gnulib/m4/inttypes-pri.m4
7165 * aclocal.m4, config.in, configure: Regenerated.
7166 * gnulib/Makefile.am: Update.
7167 * gnulib/Makefile.in: Update.
7168 * gnulib/m4/gnulib-cache.m4: Update.
7169 * gnulib/m4/gnulib-comp.m4: Update.
7170 * gnulib/inttypes.in.h: New.
7171 * gnulib/m4/inttypes-pri.m4: New.
7172 * gnulib/m4/inttypes.m4: New.
7174 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7176 * infrun.c (resume): Update PC address to the real PC after
7177 preparing to do displaced stepping.
7179 2012-04-12 Doug Evans <dje@google.com>
7181 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7182 All callers updated.
7184 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7186 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7188 2012-04-12 Doug Evans <dje@google.com>
7190 * dwarf2read.c (create_all_type_units): Renamed from
7191 create_debug_types_hash_table. All callers updated.
7193 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7194 local type_sig to sig_type, type_offset to type_offset_in_tu.
7195 (hash_signatured_type): Renamed from hash_type_signature,
7196 all callers updated.
7197 (eq_signatured_type): Renamed from eq_type_signature,
7198 all callers updated.
7199 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7200 (process_enumeration_scope): Ditto.
7201 (lookup_signatured_type_at_offset): Ditto.
7202 (load_full_type_unit, read_signatured_type): Ditto.
7204 2012-04-12 Yao Qi <yao@codesourcery.com>
7206 * remote.c (async_remote_interrupt): Correct function name in
7208 (async_remote_interrupt_twice): Ditto.
7210 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7212 * source.c (find_and_open_source): Consistently pass resulting
7213 full path through xfullpath.
7215 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7217 Provide more specific displaced-stepping memory error message.
7218 * infrun.c (displaced_step_prepare): New variable status. Call
7219 target_read_memory instead of read_memory, provide more specific
7222 2012-04-11 Tristan Gingold <gingold@adacore.com>
7225 * darwin-nat.c (darwin_execvp): Revert previous patch.
7227 2012-04-11 Tristan Gingold <gingold@adacore.com>
7230 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7233 2012-04-11 Tristan Gingold <gingold@adacore.com>
7235 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7238 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7240 New command 'explore' which helps explore values and types in
7242 * NEWS: Add an entry about the new 'explore' command.
7243 * data-directory/Makefile.in: Add gdb/command/explore.py
7244 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7245 command using the GDB Python API.
7247 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7249 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7250 extension in jump target calculation.
7252 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7254 * mips-tdep.c (mips32_next_pc): Handle JALX.
7256 2012-04-10 Yao Qi <yao@codesourcery.com>
7258 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7260 2012-04-10 Yao Qi <yao@codesourcery.com>
7262 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7263 and gnulib/m4/gnulib-tool.m4.
7265 2012-04-10 Doug Evans <dje@google.com>
7267 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7268 (load_partial_dies): Clarify comment.
7269 (find_partial_die): Support rereading type units.
7270 Clarify CU handling, if we know offset is in CU, don't search for the
7271 containing CU. Add comment regarding memory waste.
7273 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7275 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7276 i386/x32-avx and i386/x32-avx-linux.
7277 (i386/x32-expedite): New.
7278 (i386/x32-linux-expedite): Likewise.
7279 (i386/x32-avx-expedite): Likewise.
7280 (i386/x32-avx-linux-expedite): Likewise.
7281 ($(outdir)/i386/x32.dat): Likewise.
7282 ($(outdir)/i386/x32-linux.dat): Likewise.
7283 ($(outdir)/i386/x32-avx.dat): Likewise.
7284 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7286 * features/i386/x32-avx-linux.xml: New file.
7287 * features/i386/x32-avx.xml: Likewise.
7288 * features/i386/x32-core.xml: Likewise.
7289 * features/i386/x32-linux.xml: Likewise.
7290 * features/i386/x32.xml: Likewise.
7292 * features/i386/x32-avx-linux.c: New. Generated.
7293 * features/i386/x32-avx.c: Likewise.
7294 * features/i386/x32-linux.c: Likewise.
7295 * features/i386/x32.c: Likewise.
7296 * regformats/i386/x32-avx-linux.dat: Likewise.
7297 * regformats/i386/x32-avx.dat: Likewise.
7298 * regformats/i386/x32-linux.dat: Likewise.
7299 * regformats/i386/x32.dat: Likewise.
7301 2012-04-10 Tristan Gingold <gingold@adacore.com>
7303 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7304 code to kill the inferior.
7306 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7308 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7310 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7312 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7313 (yyvsp): New defines.
7314 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7316 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7318 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7320 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7322 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7325 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7327 * sparc64-tdep.c (sparc64_store_arguments)
7328 (sparc64_store_arguments): Fix coding style.
7330 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7332 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7333 complex floats, adjust some related comments and tighten a related
7335 (sparc64_extract_return_value): Handle complex floats.
7337 2012-04-07 Doug Evans <dje@google.com>
7339 * dwarf2read.c (load_partial_dies): Change condition to assert.
7341 2012-04-06 Doug Evans <dje@google.com>
7343 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7346 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7348 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7350 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7351 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7354 2012-04-05 Keith Seitz <keiths@redhat.com>
7356 * linespec.c (decode_compound): Remove.
7357 (enum offset_relative_sign): New enum.
7358 (struct line_offset): New struct.
7359 (struct linespec): New struct.
7360 (struct linespec_state): Move file_symtabs,
7361 user_filename, and user_function into struct linespec.
7362 Make result an anonymous struct holding vectors of
7363 symbolp and minsym_and_objfile_d.
7364 Add language member.
7365 (enum ls_token_type): New enum.
7366 (linespec_keywords): New array.
7367 (struct ls_token): New struct.
7368 (struct ls_parser): New struct.
7369 (linespec_lexer_lex_number): New function.
7370 (linespec_lexer_lex_keyword): New function.
7371 (is_ada_operator): New function.
7372 (skip_quote_char): New function.
7373 (copy_token_string): New function.
7374 (is_closing_quote_enclosed): New function.
7375 (find_parameter_list_end): New function.
7376 (linespec_lexer_lex_string): New function.
7377 (linespec_lexer_lex_one): New function.
7378 (linespec_lexer_consume_token): New function.
7379 (linespec_lexer_peek_token): New function.
7380 (cplusplus_error): Remove unused function.
7381 (find_methods): Update comment.
7382 (find_toplevel_char): Return const.
7383 (is_objc_method_format): Remove unused function.
7384 (find_toplevel_string): New function.
7385 (is_linespec_boundary): Remove.
7386 (symbol_not_found_error): New function.
7387 (find_method_overload_end): Remove function.
7388 (unexpected_linespec_error): New function.
7389 (keep_name_info): Remove.
7390 (linespec_parse_line_offset): New function.
7391 (linespec_parse_basic): New function.
7392 (canonicalize_linespec): New function.
7393 (decode_line_internal): Remove.
7394 (create_sals_line_offset): New function adapted from
7396 (convert_linespec_to_sals): New function.
7397 (parse_linespec): New function.
7398 (linespec_parser_new): New function.
7399 (linespec_state_destructor): Change parameter type to
7400 struct linespec_state *.
7401 Add language parameter.
7402 Remove freeing of moved members.
7403 (linespec_parser_delete): New function.
7404 (decode_line_full): Use parse_linespec and linespec_parser_new.
7405 (decode_line_1): Likewise.
7406 (decode_indirect): Rename to ...
7407 (linespec_expression_to_pc): ... this and rewrite
7408 to simply find CORE_ADDR, storing this result for later
7410 (locate_first_half): Remove.
7411 (deocde_objc): Add parameter LS.
7412 Initialize new struct collect_info members.
7413 Handle minimal symbols, too.
7414 (decode_compound): Delete.
7415 (lookup_prefix_sym): Rewrite.
7416 (compare_msymbols): New function.
7417 (find_method): Rewrite.
7418 Do not call cplusplus_error.
7419 (symtabs_from_filename): Rewrite.
7420 (collect_function_symbols): Delete.
7421 (find_function_symbols): Rewrite without ARGPTR-style
7423 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7424 (decode_dollar): Adapted and renamed to ...
7425 (linespec_parse_variable): ... this.
7426 (find_linespec_symbols): New function.
7427 (decode_label): Adapted and renamed to ...
7428 (find_label_symbols): ... this.
7429 (decode_digits_list_mode): Add and use LS argument.
7430 (decode_digits_ordinary): Likewise.
7431 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7432 If in list mode, allow any symbol class. Otherwise, only
7433 permit LOC_BLOCK symbols.
7434 (minsym_found): Update comments.
7435 (search_minsyms_for_name): Do not convert the matching symbol
7436 into a SAL. Simply push the symbol and objfile into the
7438 (decode_variable): Delete. Contents adapted into
7439 find_linespec_symbols.
7441 * cp-support.c (SKIP_SPACE): Remove.
7442 (operator_tokens): Remove unused global.
7443 (cp_validate_operator): Remove.
7444 * cp-support.h (cp_validate_operator): Remove declaration.
7446 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7448 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7449 for TYPE_VPTR_FIELDNO.
7450 * valprint.c (valprint_check_validity): Make it global, move the
7451 function comment ...
7452 * value.h (valprint_check_validity): ... to this new declaration.
7454 2012-04-02 Tristan Gingold <gingold@adacore.com>
7456 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7457 the STATE32 api for i386 state.
7458 (i386_darwin_store_inferior_registers): Likewise.
7460 2012-04-02 Tristan Gingold <gingold@adacore.com>
7462 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7464 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7467 2012-04-02 Tristan Gingold <gingold@adacore.com>
7470 * darwin-nat.c (darwin_execvp): Set binary preference.
7472 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7474 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7476 2012-03-30 Tom Tromey <tromey@redhat.com>
7478 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7479 of TRY_CATCH. Fix error handling.
7480 * python/py-value.c (convert_value_from_python): Move 'old'
7481 declaration to innermost scope.
7483 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7484 Andrey Smirnov <andrew.smirnov@gmail.com>
7486 -Wshadow warning fix.
7487 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7488 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7489 Adjust code accordingly.
7491 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7493 * ada-lang.c (symbol_completion_add): Rename parameter
7494 "encoded" into "encoded_p". Ajust code and documentation
7497 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7498 Andrey Smirnov <andrew.smirnov@gmail.com>
7500 -Wshadow warning fix.
7501 * ada-lang.c (symbol_completion_add): Rename parameter
7502 "wild_match" into wild_match_p. Update code and documentation
7505 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7507 * ada-lang.c (symbol_completion_match): Rename parameter
7508 "encoded" into "encoded_p". Ajust code and documentation
7511 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7512 Andrey Smirnov <andrew.smirnov@gmail.com>
7514 -Wshadow warning fix.
7515 * ada-lang.c (symbol_completion_match): Rename parameter
7516 "wild_match" into "wild_match_p". Adjust code and function
7517 documentation accordingly.
7519 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7520 Andrey Smirnov <andrew.smirnov@gmail.com>
7522 -Wshadow warning fix.
7523 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7524 "symbol_info" into "info". Adjust code accordingly.
7525 (ada_lookup_symbol): Likewise.
7527 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7529 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7530 of this function's documentation.
7532 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7533 Andrey Smirnov <andrew.smirnov@gmail.com>
7535 -Wshadow warning fix.
7536 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7537 variable into "wild_match_p". Adjust code accordingly.
7539 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7540 Andrey Smirnov <andrew.smirnov@gmail.com>
7542 -Wshadow warning fix.
7543 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7544 parameter into "wild_match_p". Adjust code accordingly.
7545 Document this parameter in the function description.
7547 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7548 Andrey Smirnov <andrew.smirnov@gmail.com>
7550 -Wshadow warning fix.
7551 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7552 "wild_match" parameter to "wild_match_p" (-Wshadow).
7554 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7556 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7557 in function documentation.
7559 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7560 Andrey Smirnov <andrew.smirnov@gmail.com>
7562 -Wshadow warning fix.
7563 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7564 variable into wild_match_p. Adjust code accordingly.
7566 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7567 Andrey Smirnov <andrew.smirnov@gmail.com>
7569 * ada-valprint.c (ada_val_print_1): Move the code handling
7570 TYPE_CODE_ENUM inside its own lexical block. Declare
7571 variables len and val there, instead of in the function's
7572 top level block. Avoid declaring deref_val again in a way
7573 that shadows another variable of the same name declared
7574 in one of the up-level blocks. Just re-use the up-level
7577 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7579 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7580 Replace block_found argument by symbol_info. Adjust
7581 implementation accordingly. Add function documentation.
7582 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7584 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7585 * ada-exp.y (write_object_renaming): Adjust to new
7586 ada_lookup_encoded_symbol API.
7588 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7590 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7593 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7595 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7596 (v850_register_name): Add the mpu and fpu register names.
7597 (v850e_register_name): Add the mpu and fpu register names.
7598 (v850e2_register_name): New function.
7599 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7602 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7604 * NEWS: Add entry for Ada varobj support.
7606 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7608 * varobj.c (default_value_is_changeable_p): New function,
7609 extracted from varobj_value_is_changeable_p. Add declaration.
7610 (ada_value_is_changeable_p): New function, extracted from
7611 varobj_value_is_changeable_p. Add declaration.
7612 (struct language_specific): New field "value_is_changeable_p".
7613 (languages): Add entries for new field.
7614 (varobj_create): Set language before calling install_new_value.
7615 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7616 "value_is_changeable_p" language callback.
7618 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7620 * ada-varobj.h, ada-varobj.c: New files.
7621 * Makefile.in (SFILES): Add ada-varobj.c.
7622 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7623 (COMMON_OBS): Add ada-varobj.o.
7625 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7627 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7628 (struct language_specific): New field "value_has_mutated".
7629 (languages): Set field "value_has_mutated" in each entry of array.
7630 (varobj_value_has_mutated): New function.
7631 (varobj_udpdate): Add handling of type mutation.
7632 (value_of_root): Add handling of type mutation.
7633 (ada_value_has_mutated): New function.
7635 2012-03-28 Pedro Alves <palves@redhat.com>
7637 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7638 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7640 2012-03-28 Tom Tromey <tromey@redhat.com>
7642 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7643 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7646 2012-03-28 Tom Tromey <tromey@redhat.com>
7648 * .dir-locals.el: New file.
7650 2012-03-28 Pedro Alves <palves@redhat.com>
7652 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7654 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7656 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7659 2012-03-27 Pedro Alves <palves@redhat.com>
7661 Eliminate struct ui_stream.
7663 * ui-out.h (struct ui_stream): Delete.
7664 (ui_out_field_stream): Adjust prototype.
7665 (ui_out_stream_new, ui_out_stream_delete)
7666 (make_cleanup_ui_out_stream_delete): Delete declarations.
7667 * ui-out.c (ui_out_field_stream): Change prototype to take a
7668 ui_file instead of a ui_stream. Adjust.
7669 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7670 (make_cleanup_ui_out_stream_delete): Delete.
7671 * breakpoint.c (print_breakpoint_location)
7672 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7673 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7674 * disasm.c (dump_insns): Ditto.
7675 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7677 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7678 ui_stream/ui_out_stream_new.
7679 * infcmd.c (print_return_value): Ditto.
7680 * osdata.c (info_osdata_command): Don't allocate a local
7682 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7683 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7684 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7685 allocate a local ui_stream.
7686 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7687 instead of ui_stream/ui_out_stream_new.
7688 (list_args_or_locals): Don't allocate a local ui_stream.
7689 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7690 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7691 ui_stream/ui_out_stream_new.
7692 * cli/cli-setshow.c (do_setshow_command): Ditto.
7694 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7696 * arm-linux-tdep.c (arm_linux_init_abi): Call
7697 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7698 * arm-tdep.c (arm_process_record): New function.
7699 (deallocate_reg_mem): New function.
7700 (decode_insn): New function.
7701 (thumb_record_branch): New function.
7702 (thumb_record_ldm_stm_swi(): New function.
7703 (thumb_record_misc): New function.
7704 (thumb_record_ld_st_stack): New function.
7705 (thumb_record_ld_st_imm_offset): New function.
7706 (thumb_record_ld_st_reg_offset(): New function.
7707 (thumb_record_add_sub_cmp_mov): New function.
7708 (thumb_record_shift_add_sub): New function.
7709 (arm_record_coproc_data_proc): New function.
7710 (arm_record_coproc): New function.
7711 (arm_record_b_bl): New function.
7712 (arm_record_ld_st_multiple): New function.
7713 (arm_record_ld_st_reg_offset): New function.
7714 (arm_record_ld_st_imm_offset): New function.
7715 (arm_record_data_proc_imm): New function.
7716 (arm_record_data_proc_misc_ld_str): New function.
7717 (arm_record_extension_space): New function.
7718 (arm_record_strx): New function.
7719 (sbo_sbz): New function.
7720 (struct insn_decode_record): New structure for arm insn record.
7721 (REG_ALLOC): New macro for reg allocations.
7722 (MEM_ALLOC): New macro for memory allocations.
7723 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7725 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7727 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7728 (store_register): Likewise.
7730 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7732 * MAINTAINERS (Write After Approval): Add myself to the list.
7734 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7736 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7737 Describe also the option "auto".
7739 2012-03-22 Richard Henderson <rth@redhat.com>
7741 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7742 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7744 2012-03-22 Richard Henderson <rth@redhat.com>
7746 * jit.c (jit_read_code_entry): Compute alignment and offset of
7747 int64_t member before computing entry_size.
7749 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7751 Python scripting: Add new method Value.referenced_value to
7752 gdb.Value which can dereference pointer as well as reference
7754 * NEWS: Add entry under 'Python scripting' about the new method
7755 Value.referenced_value on gdb.Value objects.
7756 * python/py-value.c (valpy_referenced_value): New function
7757 defining a new method on gdb.Value objects which can dereference
7758 pointer and reference values.
7760 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7762 * MAINTAINERS (Write After Approval): Add myself to the list.
7764 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7766 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7767 in addition to "main".
7769 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7771 * expression.h (op_name): Add declaration.
7772 * expprint.c (op_name): Remove declaration. Make non-static.
7773 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7775 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7777 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7779 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7780 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7781 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7782 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7783 (linux_nat_get_siginfo): Likewise.
7784 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7785 (linux_nat_get_siginfo): Likewise.
7786 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7787 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7788 * procfs.c (gdb_siginfo_t): Likewise.
7790 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7792 * .gitignore: Ignore more files.
7794 2012-03-20 Pedro Alves <palves@redhat.com>
7796 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7799 2012-03-20 Yao Qi <yao@codesourcery.com>
7801 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7804 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7806 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7807 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7808 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7810 * dwarf2expr.h (cu_offset, sect_offset): New types.
7811 (struct dwarf_expr_context_funcs) <dwarf_call>
7812 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7814 (struct dwarf_expr_context) <len>: Improve the comment.
7815 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7816 cu_offset and sect_offset.
7817 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7818 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7819 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7820 * dwarf2loc.h: Include dwarf2expr.h.
7821 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7823 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7824 Improve the comment.
7825 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7826 (struct signatured_type, struct line_header, struct partial_die_info)
7827 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7828 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7829 (get_die_type_at_offset, create_cus_from_index)
7830 (create_signatured_type_table_from_index, dw2_get_file_names)
7831 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7832 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7833 (create_debug_types_hash_table, process_psymtab_comp_unit)
7834 (load_partial_comp_unit, create_all_comp_units)
7835 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7836 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7837 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7838 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7839 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7840 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7841 (find_partial_die, read_attribute_value, lookup_die_type)
7842 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7843 (is_ref_attr): New function comment.
7844 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7845 Use cu_offset and sect_offset.
7846 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7847 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7848 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7849 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7850 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7851 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7852 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7855 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7858 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7859 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7861 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7863 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7865 * NEWS: Describe new options --init-command=FILE, -ix and
7866 --init-eval-command=COMMAND, -iex.
7867 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7868 CMDARG_INIT_COMMAND.
7869 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7870 "init-command", "init-eval-command", "ix" and "iex" to the variable
7871 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7872 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7873 (print_gdb_help): Describe --init-command=FILE, -ix and
7874 --init-eval-command=COMMAND, -iex.
7876 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7879 * main.c (struct cmdarg): Move it here from main. Add more comments.
7880 (cmdarg_s, VEC (cmdarg_s)): New.
7881 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7882 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7883 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7884 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7887 2012-03-19 Tom Tromey <tromey@redhat.com>
7889 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7891 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7894 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7897 2012-03-16 Chris January <chris.january@allinea.com>
7899 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7902 2012-03-16 Chris January <chris.january@allinea.com>
7904 * source.c (add_path): Use memmove instead of strcpy because the
7907 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7909 * value.h (set_value_parent): Add declaration.
7910 * value.c (set_value_parent): New function.
7911 (value_address): If VALUE->PARENT is not NULL, then use it as
7912 the base address instead of VALUE->LOCATION.address.
7913 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7914 the same as OBJ's address. Adjust V's offset accordingly.
7917 2012-03-16 Gary Benson <gbenson@redhat.com>
7919 PR breakpoints/10738
7920 * dwarf2read.c (use_deprecated_index_sections): New global.
7921 (struct partial_die_info): New member may_be_inlined.
7922 (read_partial_die): Set may_be_inlined where appropriate.
7923 (add_partial_subprogram): Add partial symbols for partial
7924 DIEs that may be inlined.
7925 (new_symbol_full): Add inlined subroutines to the current
7927 (write_psymtabs_to_index): Bump version number.
7928 (dwarf2_read_index): Read only version 6 indices unless
7929 use_deprecated_index_sections is set.
7930 * linespec.c (symbol_and_data_callback): New structure.
7931 (iterate_inline_only): New function.
7932 (iterate_over_all_matching_symtabs): New argument
7933 "include_inline". If nonzero, also call the callback for
7934 symbols representing inlined subroutines.
7935 (lookup_prefix_sym): Pass extra argument to the above.
7936 (find_function_symbols): Likewise.
7937 (add_matching_symbols_to_info): Likewise.
7938 * NEWS: Mention that GDB can now set breakpoints on inlined
7941 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7943 * p-typeprint.c (pascal_type_print_method_args):
7944 Fix display of parameter of methods.
7946 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7948 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7949 Add missing prototype.
7951 2012-03-16 Yao Qi <yao@codesourcery.com>
7952 Jan Kratochvil <jan.kratochvil@redhat.com>
7954 Fix false compilation warning.
7955 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7957 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7958 Pedro Alves <pedro@codesourcery.com>
7960 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7961 (arm_register_g_packet_guesses): New function.
7962 (arm_gdbarch_init): Don't force a target description with
7963 registers when the executable is detected as M-profile. Instead
7964 set gdbarch->tdep->is_m. Register `g' packet guesses.
7965 (_initialize_arm_tdep): Initialize the new target description.
7966 * features/arm-with-m-fpa-layout.xml: New description.
7967 * features/arm-with-m-fpa-layout.c: New, generated.
7969 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7971 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7972 Update function description.
7973 (insert_bp_location): Do not wipe bl->target_info out.
7974 * mem-break.c: #include "gdb_string.h".
7975 (default_memory_insert_breakpoint): Do not call target_read_memory
7976 with a pointer to the breakpoint's shadow_contents buffer. Use
7977 a local buffer instead.
7978 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7980 2012-03-15 Tom Tromey <tromey@redhat.com>
7982 * NEWS: Mention "info vtbl", not "info vtable".
7983 * cp-support.c (info_vtbl_command): Fix comment.
7984 (_initialize_cp_support): Fix text.
7986 2012-03-15 Tom Tromey <tromey@redhat.com>
7988 * cp-valprint.c (cp_print_value_fields): Use
7989 print_function_pointer_address for vtable slot.
7991 2012-03-15 Tom Tromey <tromey@redhat.com>
7993 * gnu-v3-abi.c (struct value_and_voffset): New.
7994 (hash_value_and_voffset, eq_value_and_voffset)
7995 (compare_value_and_voffset, compute_vtable_size)
7996 (print_one_vtable, gnuv3_print_vtable): New functions.
7997 (init_gnuv3_ops): Initialize 'print_vtable' field.
7998 * cp-support.c (info_vtbl_command): New function.
7999 (_initialize_cp_support): Add "info vtbl".
8000 * cp-abi.h (cplus_print_vtable): Declare.
8001 (struct cp_abi_ops) <print_vtable>: New field.
8002 * cp-abi.c (cplus_print_vtable): New function.
8005 2012-03-15 Tom Tromey <tromey@redhat.com>
8007 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8008 iterate_over_symbols.
8010 2012-03-14 Doug Evans <dje@google.com>
8012 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8013 DW_OP_GNU_parameter_ref.
8015 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8017 Fix double prompt of 'interpreter-exec mi'.
8018 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8019 (mi_interpreter_resume): use it.
8020 (mi_execute_command_input_handler): New function.
8021 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8022 mi_execute_command_input_handler.
8024 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8026 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8028 (darwin_debug_port_info): Make static.
8029 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8030 * machoread.c (_initialize_machoread): Add prototype.
8031 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8032 (i386_darwin_set_control, i386_darwin_get_control)
8033 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8034 i386_darwin_get_status, i386_darwin_get_control):
8035 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8037 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8039 * ax-gdb.c (gen_usual_unary): Remove special handling of
8040 enum and bool types.
8042 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8044 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8046 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8048 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8050 2012-03-13 Chris January <chris.january@allinea.com>
8052 * aix-thread.c (fill_sprs): Store the floating point registers
8053 at the correct offsets into vals.
8055 2012-03-13 Doug Evans <dje@google.com>
8057 * NEWS: Mention symbol-reloading has been deleted.
8058 * symfile.c (symbol_reloading): Delete.
8059 (show_symbol_reloading): Delete.
8060 (_initialize_symfile): Delete set/show symbol-reloading.
8062 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8063 read_in_chain until we have successfully read it in.
8064 (load_full_comp_unit): Ditto.
8065 (read_signatured_type): Add comment.
8067 2012-03-13 Chris January <chris.january@allinea.com>
8069 * stabsread.c (fix_common_block): Change type of valu argument
8072 2012-03-13 Chris January <chris.january@allinea.com>
8074 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8077 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8079 * common/linux-procfs.c (linux_proc_get_int): New, from
8080 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8082 (linux_proc_get_tgid): Only call linux_proc_get_int.
8083 (linux_proc_get_tracerpid): New.
8084 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8085 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8086 linux_proc_pid_has_state.
8087 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8088 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8089 (linux_ptrace_attach_warnings): New.
8090 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8092 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8093 (linux_nat_attach): New variables ex, buffer, message and message_s.
8094 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8096 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8098 * Makefile.in (linux-ptrace.o): New.
8099 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8101 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8102 * common/linux-ptrace.c: New file.
8103 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8104 * config/arm/linux.mh: Likewise.
8105 * config/i386/linux.mh: Likewise.
8106 * config/i386/linux64.mh: Likewise.
8107 * config/ia64/linux.mh: Likewise.
8108 * config/m32r/linux.mh: Likewise.
8109 * config/m68k/linux.mh: Likewise.
8110 * config/mips/linux.mh: Likewise.
8111 * config/pa/linux.mh: Likewise.
8112 * config/powerpc/linux.mh: Likewise.
8113 * config/powerpc/ppc64-linux.mh: Likewise.
8114 * config/powerpc/spu-linux.mh: Likewise.
8115 * config/s390/s390.mh: Likewise.
8116 * config/sparc/linux.mh: Likewise.
8117 * config/sparc/linux64.mh: Likewise.
8118 * config/xtensa/linux.mh: Likewise.
8119 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8120 common/linux-procfs.c.
8121 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8123 2012-03-13 Hui Zhu <teawater@gmail.com>
8124 Pedro Alves <palves@redhat.com>
8126 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8127 CREATE_BREAKPOINT_FLAGS_INSERTED.
8128 (create_breakpoint_sal, create_breakpoints_sal)
8129 (base_breakpoint_create_breakpoints_sal)
8130 (tracepoint_create_breakpoints_sal)
8131 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8133 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8134 (ftrace_command, strace_command): Adjust.
8135 (create_tracepoint_from_upload): Pass
8136 CREATE_BREAKPOINT_FLAGS_INSERTED.
8137 * breakpoint.h (enum breakpoint_create_flags): New.
8138 (create_breakpoint): New flags parameter.
8139 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8140 * python/py-breakpoint.c (bppy_init): Adjust.
8141 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8142 * spu-tdep.c (spu_catch_start): Adjust.
8144 2012-03-13 Pedro Alves <palves@redhat.com>
8145 Hui Zhu <teawater@gmail.com>
8146 Yao Qi <yao@codesourcery.com>
8148 * remote.c (struct remote_state): New field `starting_up'.
8149 (remote_start_remote): Set and clear it.
8150 (remote_can_download_tracepoint): If starting up, return false.
8152 2012-03-13 Yao Qi <yao@codesourcery.com>
8154 * inferior.h (struct inferior): Remove fields any_syscall_count,
8155 syscalls_counts and total_syscalls_count. Move them to new
8156 struct catch_syscall_inferior_data in breakpoint.c.
8157 * breakpoint.c: Call DEF_VEC_I(int).
8158 (struct catch_syscall_inferior_data): New.
8159 (get_catch_syscall_inferior_data): New.
8160 (catch_syscall_inferior_data_cleanup): New.
8161 (insert_catch_syscall): Update to access data in
8162 struct catch_syscall_inferior_data.
8163 (insert_catch_syscall): Likewise.
8164 (remove_catch_syscall): Likewise.
8165 (remove_catch_syscall): Likewise.
8166 (is_syscall_catchpoint_enabled): Likewise.
8167 (add_catch_command): Likewise.
8168 (_initialize_breakpoint): Register cleanup.
8169 * breakpoint.h: Removed DEF_VEC_I(int).
8170 * dwarf2loc.c: Call DEF_VEC_I(int).
8171 * mi/mi-main.c: Likewise.
8173 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8175 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8177 2012-03-12 Chris January <chris.january@allinea.com>
8179 * aix-thread.c (_initialize_aix_thread): Add prototype.
8180 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8181 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8183 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8185 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8186 include of "amd64-nat.h".
8188 2012-03-12 Tom Tromey <tromey@redhat.com>
8190 * buildsym.c (record_pending_block): Now static.
8191 * buildsym.h: (record_pending_block): Remove.
8193 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8195 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8197 2012-03-09 Tom Tromey <tromey@redhat.com>
8199 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8200 producer_is_gxx_lt_4_6>: New fields.
8201 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8203 2012-03-09 Tom Tromey <tromey@redhat.com>
8205 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8207 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8209 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8212 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8214 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8216 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8218 Fix -Wmissing-prototypes build.
8219 * arm-linux-nat.c (get_thread_id): Make it static.
8220 * xtensa-linux-nat.c (get_thread_id): Likewise.
8222 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8224 * server.c (process_point_options): If a conditional expression
8225 is found, only print a message if remote_debug is nonzero.
8227 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8229 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8230 of internal error for unknown/unsupported types.
8232 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8234 Fix CU relative vs. absolute DIE offsets.
8235 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8236 offset to offset_in_cu.
8237 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8239 (dwarf2_fetch_die_location_block): Rename parameter offset to
8240 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8242 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8244 * libunwind-frame.c: Rename to ...
8245 * ia64-libunwind-tdep.c: ... here.
8246 * libunwind-frame.h: Rename to ...
8247 * ia64-libunwind-tdep.h: ... here.
8248 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8249 ia64-libunwind-tdep.h.
8250 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8251 * README (--with-libunwind): Rename to ...
8252 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8253 * config.in: Regenerate.
8254 * configure: Regenerate.
8255 * configure.ac: New option --with-libunwind-ia64, make the
8256 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8257 Remove AC_DEFINE for HAVE_LIBUNWIND.
8258 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8259 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8260 Rename libunwind-frame in the general comment.
8261 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8262 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8263 Move forward declarations inside #ifndef. Rename libunwind-frame in
8264 the general comment.
8265 * ia64-tdep.c: Rename libunwind-frame.h #include to
8266 ia64-libunwind-tdep.h.
8267 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8268 (ia64_libunwind_descr): Rename libunwind-frame to
8269 ia64-libunwind-tdep in these function comments.
8270 * ia64-tdep.h: Rename libunwind-frame.h #include to
8271 ia64-libunwind-tdep.h.
8272 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8273 ia64-libunwind-tdep in that data comment.
8275 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8277 * libunwind-frame.h (struct frame_unwind): New declaration.
8279 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8281 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8282 "set breakpoint condition-evaluation" command.
8284 2012-03-08 Tristan Gingold <gingold@adacore.com>
8286 * sparc-stub.c: Move to stubs/
8287 * sh-stub.c: Likewise.
8288 * m68k-stub.c: Likewise.
8289 * m32r-stub.c: Likewise.
8290 * i386-stub.c: Likewise.
8292 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8294 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8295 linux_get_siginfo_type.
8297 * m68klinux-nat.c: Include "gdb_proc_service.h".
8298 (PTRACE_GET_THREAD_AREA): Define.
8299 (ps_get_thread_area): New function.
8301 2012-03-08 Yao Qi <yao@codesourcery.com>
8303 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8305 (remote_query_attached): Likewise.
8306 (remote_static_tracepoint_marker_at): Likewise.
8307 (remote_set_permissions): Likewise.
8308 (remote_detach_1, extended_remote_attach_1): Likewise.
8309 (send_g_packet, remote_vkill): Likewise.
8310 (extended_remote_disable_randomization): Likewise.
8311 (remote_add_target_side_condition): Likewise.
8312 (remote_insert_breakpoint): Likewise.
8313 (remote_remove_breakpoint): Likewise.
8314 (remote_insert_watchpoint): Likewise.
8315 (remote_remove_watchpoint): Likewise.
8316 (remote_insert_hw_breakpoint): Likewise.
8317 (remote_insert_hw_breakpoint): Likewise.
8318 (remote_remove_hw_breakpoint): Likewise.
8319 (remote_download_command_source): Likewise.
8320 (remote_download_tracepoint): Likewise.
8321 (remote_download_trace_state_variable): Likewise.
8322 (remote_disable_tracepoint): Likewise.
8323 (remote_trace_set_readonly_regions): Likewise.
8324 (remote_get_tracepoint_status): Likewise.
8325 (remote_trace_find): Likewise.
8326 (remote_get_trace_state_variable_value): Likewise.
8327 (remote_set_disconnected_tracing): Likewise.
8328 (remote_set_circular_trace_buffer): Likewise.
8329 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8330 (remote_use_agent): Likewise.
8331 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8334 2012-03-07 Pedro Alves <palves@redhat.com>
8336 * NEWS: Mention QProgramSignals.
8337 * inferior.h (update_signals_program_target): Declare.
8338 * infrun.c: (update_signals_program_target): New.
8339 (handle_command): Update the target of the new program signals
8341 * remote.c (PACKET_QProgramSignals): New enum.
8342 (last_program_signals_packet): New global.
8343 (remote_program_signals): New.
8344 (remote_start_remote): Update the target with the program signals
8346 (remote_protocol_features): Add entry for QPassSignals.
8347 (remote_open_1): Free anc clear last_program_signals_packet.
8348 (init_remote_ops): Install remote_program_signals.
8349 * target.c (update_current_target): Adjust.
8350 (target_program_signals): New.
8351 * target.h (struct target_ops) <to_program_signals>: New field.
8352 (target_program_signals): Declare.
8354 2012-03-07 Pedro Alves <palves@redhat.com>
8356 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8359 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8361 * m68klinux-nat.c (getregs_supplies): Make static.
8362 (getfpregs_supplies): Likewise.
8363 (have_ptrace_getregs): Likewise.
8365 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8367 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8368 in call to get_die_type_at_offset.
8370 2012-03-06 Stan Shebs <stan@codesourcery.com>
8372 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8373 * mi/mi-cmd-disas.c: Ditto.
8374 * mi/mi-cmd-env.c: Ditto.
8375 * mi/mi-cmd-file.c: Ditto.
8376 * mi/mi-cmd-stack.c: Ditto.
8377 * mi/mi-cmd-target.c: Ditto.
8378 * mi/mi-cmd-var.c: Ditto.
8379 * mi/mi-cmds.c: Ditto.
8380 * mi/mi-cmds.h: Ditto.
8381 * mi/mi-console.c: Ditto.
8382 * mi/mi-getopt.c: Ditto.
8383 * mi/mi-getopt.h: Ditto.
8384 * mi/mi-interp.c: Ditto.
8385 * mi/mi-main.c: Ditto.
8386 * mi/mi-out.c: Ditto.
8387 * mi/mi-parse.c: Ditto.
8388 * mi/mi-parse.h: Ditto.
8389 * mi/mi-symbol-cmds.c: Ditto.
8391 * mi/mi-getopt.h: Move mi_opt struct up.
8392 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8394 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8396 2012-03-06 Tom Tromey <tromey@redhat.com>
8398 * proc-service.c (ps_pglobal_lookup): Set the current program
8401 2012-03-06 Pedro Alves <palves@redhat.com>
8403 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8405 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8407 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8409 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8412 * common/linux-osdata.c (linux_common_core_of_thread): New function
8414 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8415 call by linux_common_core_of_thread.
8416 (linux_nat_core_of_thread_1): Remove.
8417 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8418 * linux-thread-db.c: Include linux-osdata.h.
8419 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8420 linux_common_core_of_thread.
8422 2012-03-05 Tom Tromey <tromey@redhat.com>
8424 * value.c (value_primitive_field): Don't fetch contents for
8427 2012-03-05 Tom Tromey <tromey@redhat.com>
8429 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8431 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8433 * s390-nat.c: Include "gregset.h".
8435 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8437 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8438 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8439 (libunwind_load): New variable so_error, use it for dlerror. Try to
8440 load also LIBUNWIND_SO_7.
8442 2012-03-05 Pedro Alves <palves@redhat.com>
8444 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8445 is not NULL, and remove resulting dead code.
8447 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8449 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8450 prologue to sh_analyze_prologue.
8451 (sh_analyze_prologue): Make better use of such an upper limit, and
8452 generally be more cautious about accessing memory.
8454 2012-03-05 Tom Tromey <tromey@redhat.com>
8456 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8457 _initialize_ia64_hpux_tdep.
8459 2012-03-05 Pedro Alves <palves@redhat.com>
8463 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8464 the register state is clear, supply explicit zero, instead of
8465 marking the register unavailable.
8467 2012-03-05 Tristan Gingold <gingold@adacore.com>
8469 * NEWS: Mention OpenVMS ia64 new target.
8471 2012-03-05 Tristan Gingold <gingold@adacore.com>
8473 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8474 (ia64_unw_accessors, ia64_unw_rse_accessors)
8475 (ia64_libunwind_descr): Declare.
8476 * ia64-vms-tdep.c: New file.
8477 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8478 (ia64_libunwind_descr): Make them public.
8479 * configure.tgt: Add ia64-*-*vms*.
8480 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8481 (ALLDEPFILES): Add ia64-vms-tdep.c
8483 2012-03-05 Tristan Gingold <gingold@adacore.com>
8485 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8486 * remote.c (PACKET_qXfer_uib): New enum value.
8487 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8488 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8489 (_initialize_remote): Call add_packet_config_cmd for
8492 2012-03-05 Tristan Gingold <gingold@adacore.com>
8494 * osabi.c (gdb_osabi_names): Add OpenVMS.
8495 (generic_elf_osabi_sniffer): Likewise.
8496 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8498 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 Removed unused code.
8501 * libunwind-frame.c (libunwind_frame_unwind)
8502 (libunwind_frame_base_address): Remove.
8503 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8505 2012-03-04 Yao Qi <yao@codesourcery.com>
8507 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8508 remove trailing new line.
8509 (agent_run_command, agent_run_command): Add _ markup.
8510 (agent_capability_check): Likewise.
8512 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8514 * breakpoint.c (set_condition_evaluation_mode): Set
8515 CONDITION_EVALUATION_MODE unconditionally.
8517 2012-03-03 Yao Qi <yao@codesourcery.com>
8519 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8520 * common/agent.h: Update declaration.
8521 * inf-child.c (inf_child_use_agent): New.
8522 (inf_child_can_use_agent): New.
8523 (inf_child_target): Initialize fields `to_use_agent'
8524 and `to_can_use_agent'.
8525 * agent.c (agent_new_objfile): New.
8526 (_initialize_agent): Add agent_new_objfile to new_objfile
8529 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8531 (linux_target_install_ops): Initialize field
8532 `to_static_tracepoint_markers_by_strid'.
8533 * remote.c (free_current_marker): Move it to ...
8534 * tracepoint.c (free_current_marker): ... here. New.
8535 (cleanup_target_stop): New.
8536 * tracepoint.h: Declare free_current_marker.
8537 * NEWS: Add one entry about `info static-tracepoint-marker'.
8539 2012-03-03 Yao Qi <yao@codesourcery.com>
8541 * common/agent.c (agent_loaded_p): New.
8542 (agent_look_up_symbols): New global.
8543 * common/agent.h: Declare agent_loaded_p.
8545 2012-03-03 Yao Qi <yao@codesourcery.com>
8547 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8548 (agent_capability_check, agent_capability_invalidate): New.
8549 (symbol_list): New array element.
8550 * common/agent.h (enum agent_capa): New.
8551 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8553 2012-03-03 Yao Qi <yao@codesourcery.com>
8555 * target.h (struct target_ops) <to_use_agent>: New field.
8556 (struct target_ops) <to_can_use_agent>: New field.
8557 (target_use_agent, target_can_use_agent): New macro.
8558 * target.c (update_current_target): Update.
8559 * remote.c: New enum `PACKET_QAgent'.
8560 (remote_protocol_features): Add a new element.
8561 (remote_use_agent, remote_can_use_agent): New.
8562 (init_remote_ops): Initialize field `can_use_agent' with
8563 remote_can_use_agent. Intiailize field `use_agent' with
8565 * common/agent.c (use_agent): New global.
8566 * common/agent.h: Declare it.
8567 * tracepoint.c (info_static_tracepoint_markers_command): Add
8569 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8570 (COMMON_OBS): Add common/agent.o and agent.o
8571 (common-agent.o): New rule.
8574 2012-03-03 Yao Qi <yao@codesourcery.com>
8576 * common/agent.c: New.
8577 * common/agent.h: New.
8578 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8580 * configure, configh.in: Regenerated.
8582 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8584 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8585 unless it exists for this architecture.
8587 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8589 * language.h (struct language_defn): New "method" la_read_var_value.
8590 * findvar.c: #include "language.h".
8591 (default_read_var_value): Renames read_var_value. Rewrite
8592 function description.
8593 (read_var_value): New function.
8594 * value.h (default_read_var_value): Add prototype.
8595 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8597 (ada_language_defn): Add entry for la_read_var_value.
8598 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8599 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8600 language_defn structures to add entry for new la_read_var_value
8603 2012-03-02 Tom Tromey <tromey@redhat.com>
8604 Pedro Alves <palves@redhat.com>
8606 PR breakpoints/13776:
8607 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8609 (delete_longjmp_breakpoint_at_next_stop): New.
8610 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8611 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8612 before deleting the inferior. Add comments.
8613 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8614 breakpoints immediately, but only on next stop. Move that code
8615 next to where we mark other breakpoints for deletion.
8617 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8619 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8621 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8624 2012-03-02 Pedro Alves <palves@redhat.com>
8626 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8628 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8630 Fix -Wmissing-prototypes build.
8631 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8632 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8633 (gdbsim_has_memory): Likewise.
8635 2012-03-02 Yao Qi <yao@codesourcery.com>
8637 Fix -Wmissing-prototypes build.
8638 * charset.c (phony_iconv_open): Make static.
8639 (phony_iconv_close, phony_iconv): Likewise.
8640 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8641 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8643 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8644 * ser-mingw.c (create_select_thread): Make static.
8645 * windows-termcap.c (tgetent): New prototype.
8646 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8648 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8650 Fix -Wmissing-prototypes build.
8651 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8652 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8653 (_initialize_loadable): New prototypes.
8655 2012-03-02 Doug Evans <dje@google.com>
8657 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8658 abbrev table, read_comp_unit will do it.
8660 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8662 Fix -Wmissing-prototypes build.
8663 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8664 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8665 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8666 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8667 (_initialize_arm_symbian_tdep): New prototype.
8668 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8669 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8670 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8672 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8673 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8675 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8676 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8677 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8679 * moxie-tdep.c (moxie_process_record): Likewise.
8680 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8681 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8682 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8683 (_initialize_rl78_tdep): New prototype.
8684 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8685 (_initialize_rx_tdep): New prototype.
8686 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8687 (_initialize_darwin_solib): New prototype.
8688 * solib-spu.c: Include solib-spu.h.
8689 (_initialize_spu_solib): New prototype.
8690 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8691 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8692 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8693 (tic6x_software_single_step): Make it static.
8694 (_initialize_tic6x_tdep): New prototype.
8696 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8698 Fix -Wmissing-prototypes build.
8699 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8700 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8702 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8704 Fix -Wmissing-prototypes build.
8705 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8706 (frv_have_stopped_data_address): Remove.
8708 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8710 Fix -Wmissing-prototypes build.
8711 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8712 * sh-tdep.c: Include sh64-tdep.h.
8713 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8714 * sh64-tdep.c: Include sh64-tdep.h.
8715 * sh64-tdep.h: New file.
8717 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8719 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8721 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8723 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8724 sp_regnum once the gdbarch_init_osabi hook has been called.
8726 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8728 * mips-tdep.c (mips32_bc1_pc): New function.
8729 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8730 BPOSGE32 and BPOSGE64 instructions.
8731 (deal_with_atomic_sequence): Likewise.
8732 (mips32_instruction_has_delay_slot): Likewise.
8734 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8735 Chris Dearman <chris@mips.com>
8736 Maciej W. Rozycki <macro@codesourcery.com>
8737 Joseph Myers <joseph@codesourcery.com>
8739 * features/mips-dsp.xml: New file.
8740 * features/mips64-dsp.xml: New file.
8741 * features/mips-dsp-linux.xml: New file.
8742 * features/mips64-dsp-linux.xml: New file.
8743 * features/Makefile (WHICH): Add mips-dsp-linux and
8745 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8746 * features/mips-dsp-linux.c: New file.
8747 * features/mips64-dsp-linux.c: New file.
8748 * regformats/mips-dsp-linux.dat: New file.
8749 * regformats/mips64-dsp-linux.dat: New file.
8750 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8752 (mips64_linux_register_addr): Likewise.
8753 (mips64_linux_regsets_fetch_registers): Likewise.
8754 (mips64_linux_regsets_store_registers): Likewise.
8755 (mips64_linux_fetch_registers): Update call to
8756 mips64_linux_regsets_fetch_registers.
8757 (mips64_linux_store_registers): Update call to
8758 mips64_linux_regsets_store_registers.
8759 (mips_linux_read_description): Probe for DSP registers.
8760 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8761 and initialize_tdesc_mips64_dsp_linux.
8762 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8763 Remove padding of no longer used embedded register slots.
8764 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8765 (MIPS_RESTART_REGNUM): Redefine enum value.
8766 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8768 (mips_tx39_reg_names): Likewise.
8769 (mips_linux_reg_names): New array of register names for Linux
8771 (mips_register_name): Check for a null pointer in
8772 mips_processor_reg_names and return an empty string.
8773 (mips_register_type): Exclude embedded registers for the IRIX
8775 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8776 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8778 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8779 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8780 (mips_gdbarch_init): Likewise. Initialize internal register
8781 indices for the Linux ABI. Use dynamic numbers to refer to
8782 registers, as applicable, while parsing the target description.
8783 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8785 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8787 * frame.h (read_frame_register_unsigned): Fix typo in function
8790 2012-03-01 Pedro Alves <palves@redhat.com>
8792 * jit-reader.in [!__cplusplus]
8793 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8795 2012-03-01 Pedro Alves <palves@redhat.com>
8797 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8798 * configure: Regenerate.
8800 2012-03-01 Pedro Alves <palves@redhat.com>
8802 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8803 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8804 (ftrace_command, strace_command): Make static.
8805 * d-lang.c (_initialize_d_language): Declare.
8806 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8807 * dwarf2loc.c (_initialize_dwarf2loc):
8808 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8809 * exec.c (exec_get_section_table): Make static.
8810 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8811 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8812 * inferior.c (remove_inferior_command, add_inferior_command)
8813 (clone_inferior_command): Make static.
8814 * linux-nat.c (linux_nat_thread_address_space)
8815 (linux_nat_core_of_thread): Make static.
8816 * linux-tdep.c (_initialize_linux_tdep): Declare.
8817 * objc-lang.c (_initialize_objc_lang): Declare.
8818 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8820 (_initialize_opencl_language): Declare.
8821 * record.c (_initialize_record): Declare.
8822 * remote.c (demand_private_info, remote_get_tib_address)
8823 (remote_supports_cond_tracepoints)
8824 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8826 * skip.c (_initialize_step_skip): Declare.
8827 * symtab.c (skip_prologue_using_lineinfo): Make static.
8828 * tracepoint.c (delete_trace_state_variable)
8829 (trace_variable_command, delete_trace_variable_command)
8830 (get_uploaded_tsv, find_matching_tracepoint_location)
8831 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8833 * value.c (pack_unsigned_long): Make static.
8834 * varobj.c (varobj_ensure_python_env): Make static.
8835 * windows-tdep.c (_initialize_windows_tdep): Declare.
8836 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8838 2012-03-01 Pedro Alves <palves@redhat.com>
8840 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8842 (linux_init_abi): Install it as has_shared_address_space gdbarch
8845 2012-03-01 Pedro Alves <palves@redhat.com>
8847 * observer.c (observer_test_first_notification_function)
8848 (observer_test_second_notification_function)
8849 (observer_test_third_notification_function): Add declarations.
8851 2012-03-01 Pedro Alves <palves@redhat.com>
8853 * common/signals.c (default_target_signal_to_host)
8854 (default_target_signal_from_host): Move ...
8855 * arch-utils.c: ... here.
8856 * arch-utils.h (default_target_signal_to_host)
8857 (default_target_signal_from_host): Declare.
8859 * common/signals.c (target_signal_from_command): Move ...
8860 * infrun.c: ... here.
8861 * inferior.h (target_signal_from_command): Declare.
8862 * target.h (target_signal_from_command)
8863 (default_target_signal_from_host, default_target_signal_to_host):
8864 Delete declarations.
8866 * common/signals.c (_initialize_signals): Delete.
8868 2012-03-01 Pedro Alves <palves@redhat.com>
8870 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8871 both __cplusplus and !__cplusplus.
8873 2012-03-01 Pedro Alves <palves@redhat.com>
8875 * psymtab.c (find_and_open_source): Delete declaration.
8876 * source.c (find_and_open_source): Move comment ...
8877 * source.h (find_and_open_source): ... to this new declaration.
8879 2012-03-01 Pedro Alves <palves@redhat.com>
8881 * inline-frame.c: Include inline-frame.h.
8883 2012-03-01 Pedro Alves <palves@redhat.com>
8885 * tui/tui-data.c (set_gen_win_origin): Delete.
8886 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8887 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8889 2012-03-01 Pedro Alves <palves@redhat.com>
8891 * remote.c (encode_actions): Delete declaration.
8892 * tracepoint.c (encode_actions): Make extern.
8893 * tracepoint.h (encode_actions): Declare.
8895 2012-03-01 Pedro Alves <palves@redhat.com>
8897 * python/py-breakpoint.c: Include python.h.
8898 * python/py-continueevent.c (create_continue_event_object): Make
8900 * python/py-lazy-string.c (stpy_get_type): Make static.
8901 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8903 * python/py-utils.c (unicode_to_target_python_string): Make
8905 * python/py-value.c: Include python.h.
8907 2012-03-01 Pedro Alves <palves@redhat.com>
8909 * inferior.c (delete_threads_of_inferior): Delete.
8911 2012-03-01 Pedro Alves <palves@redhat.com>
8913 Import fallback definitions from glibc.
8915 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8916 ps_prochandle): Forward declare.
8917 (ps_err_e): Use glibc's comments.
8918 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8919 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8920 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8921 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8922 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8923 (struct ps_prochandle): Adjust comment.
8925 2012-03-01 Pedro Alves <palves@redhat.com>
8927 * ada-lang.c (ada_modulus_from_name): Delete.
8928 * ada-lex.l (lexer_init): Make static.
8930 2012-03-01 Pedro Alves <palves@redhat.com>
8934 * frame.c (read_frame_register_unsigned): New.
8935 * frame.h (read_frame_register_unsigned): Declare.
8936 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8938 (print_i387_control_word): New parameter `control_p'. Handle it.
8939 (i387_print_float_info): Handle unavailable float registers.
8941 2012-03-01 Keith Seitz <keiths@redhat.com>
8943 * linespec.c (decode_line_2): Sort the list of methods
8944 alphabetically before presenting the user with a selection
8947 2012-03-01 Doug Evans <dje@google.com>
8949 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8951 (dwarf2_read_abbrevs): Remove corresponding initialization.
8953 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8955 * NEWS: Mention new python command class gdb.COMMAND_USER.
8956 * cli/cli-cmds.c (show_user): Print error when used on a python
8958 (init_cli_cmds): Update documentation strings for "show user" and
8959 "set/show max-user-call-depth" to clarify that it does not apply to
8961 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8963 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8965 * top.c (execute_command): Only execute a user-defined command as a
8966 legacy macro if c->user_commands is set.
8968 2012-03-01 Tom Tromey <tromey@redhat.com>
8970 * valprint.h (struct generic_val_print_decorations): New.
8971 (generic_val_print): Declare.
8972 * valprint.c (generic_val_print): New function.
8973 * p-valprint.c (p_decorations): New global.
8974 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8975 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8976 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8977 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8978 * m2-valprint.c (m2_decorations): New global.
8979 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8980 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8981 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8982 TYPE_CODE_ERROR>: Call generic_val_print.
8983 * f-valprint.c (f_decorations): New global.
8984 (f_val_print): Use print_function_pointer_address.
8985 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8986 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8987 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8989 * c-valprint.c (c_decorations): New global.
8990 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8991 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8992 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8993 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8994 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8995 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8998 2012-03-01 Tom Tromey <tromey@redhat.com>
9000 * valprint.c (val_print): Update.
9001 * p-valprint (pascal_val_print): Return void.
9002 * p-lang.h (pascal_val_print): Return void.
9003 * m2-valprint.c (m2_val_print): Return void.
9004 * m2-lang.h (m2_val_print): Return void.
9005 * language.h (struct language_defn) <la_val_print>: Return void.
9006 * language.c (unk_lang_val_print): Return void.
9007 * jv-valprint.c (java_val_print): Return void.
9008 * jv-lang.h (java_val_print): Return void.
9009 * f-valprint.c (f_val_print): Return void.
9010 * f-lang.h (f_val_print): Return void.
9011 * d-valprint.c (d_val_print): Return void.
9012 (dynamic_array_type): Update.
9013 * d-lang.h (d_val_print): Return void.
9014 * c-valprint.c (c_val_print): Return void.
9015 * c-lang.h (c_val_print): Return void.
9016 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9018 * ada-lang.h (ada_val_print): Return void.
9020 2012-03-01 Tom Tromey <tromey@redhat.com>
9022 * value.h (val_print): Return void.
9023 * valprint.c (val_print): Return void.
9025 2012-03-01 Tom Tromey <tromey@redhat.com>
9027 * value.h (common_val_print): Return void.
9028 * valprint.c (common_val_print): Return void.
9030 2012-03-01 Tom Tromey <tromey@redhat.com>
9032 * value.h (value_print): Return void.
9033 * valprint.c (value_print): Return void.
9034 * p-valprint.c (pascal_value_print): Return void.
9035 * p-lang.h (pascal_value_print): Return void.
9036 * language.h (struct language_defn) <la_value_print>: Return
9038 * language.c (unk_lang_value_print): Return void.
9039 * jv-valprint.c (java_value_print): Return void.
9040 * jv-lang.h (java_value_print): Return void.
9041 * f-valprint.c (c_value_print): Don't declare.
9043 * c-valprint.c (c_value_print): Return void.
9044 * c-lang.h (c_value_print): Return void.
9045 * ada-valprint.c (ada_value_print): Return void.
9046 * ada-lang.h (ada_value_print): Return void.
9048 2012-03-01 Tom Tromey <tromey@redhat.com>
9050 * value.c (value_primitive_field): Handle virtual base classes.
9052 2012-03-01 Tom Tromey <tromey@redhat.com>
9054 * gdbtypes.h (struct vbase): Remove.
9056 2012-03-01 Tom Tromey <tromey@redhat.com>
9058 * c-valprint.c (print_function_pointer_address): Move...
9059 * valprint.c: ... here. Make non-static.
9060 * m2-valprint.c (print_function_pointer_address): Remove.
9061 * valprint.h (print_function_pointer_address): Declare.
9063 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9065 * NEWS: Document the fact that one can provide a condition when
9066 creating an Ada exception catchpoint.
9068 2012-03-01 Tom Tromey <tromey@redhat.com>
9070 * valprint.c (val_print_type_code_flags): Fix placement of
9073 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9075 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9076 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9077 environment variable before calling update-copyright.
9079 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9081 * gnulib/extra/update-copyright: Update to the latest from
9082 gnulib's git repository.
9083 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9084 variable to 2 instead of 1.
9086 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9088 * varobj.c (c_value_of_variable): Remove dead code.
9090 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9092 * ada-lex.p (processId): Do not modify already encoded IDs.
9093 Update function documentation.
9095 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9097 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9098 "name" with "struct symbol *name_sym".
9099 * ada-exp.y (write_var_or_type): Update call to
9100 ada_find_renaming_symbol.
9101 "name" with "struct symbol *name_sym". Adjust Implementation
9102 accordingly. Adjust the function documentation.
9104 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9106 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9107 * ada-lang.c (ada_find_any_type): Add advance declaration.
9108 Make static. Replace ada_find_any_symbol by
9109 ada_find_any_type_symbol.
9110 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9111 Improve function description. Make static.
9112 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9113 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9115 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9117 * ada-lang.c (struct tag_args): Delete.
9118 (ada_get_tsd_type): Function body moved up in source file.
9119 (ada_tag_name_1, ada_tag_name_2): Delete.
9120 (ada_get_tsd_from_tag): New function.
9121 (ada_tag_name_from_tsd): New function.
9122 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9123 to determine the tag name.
9125 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9127 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9129 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9132 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9134 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9136 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9138 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9141 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9143 * ada-lang.c (constrained_packed_array_type): If there is a
9144 parallel XA type, use it to determine the array index type.
9146 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9148 * ada-valprint.c (ada_val_print_1): If our value is a reference
9149 to an array descriptor, dereference it before converting it
9152 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9154 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9155 creating fixed value.
9156 (ada_value_ind, ada_coerce_ref, assign_component)
9157 (ada_evaluate_subexp): Remove call to unwrap_value before
9158 call to ada_to_fixed_value.
9160 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9162 * ada-lang.c (to_fixed_array_type): Set result's type name.
9164 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9166 * ada-lang.c (catch_ada_exception_command_split): Add new
9167 argument cond_string. Add support for condition at end of
9168 "catch exception" commands.
9169 (ada_decode_exception_location): Add new argument cond_string.
9170 Update call to catch_ada_exception_command_split.
9171 (create_ada_exception_catchpoint): Add new argument cond_string.
9172 Set the breakpoint condition if needed.
9173 (catch_ada_exception_command): Update call to
9174 ada_decode_exception_location.
9175 (ada_decode_assert_location): Add function documentation.
9176 Add support for condition at end of "catch assert" command.
9177 (catch_assert_command): Update calls to ada_decode_assert_location
9178 and create_ada_exception_catchpoint.
9180 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9182 Fix disp-step-syscall.exp: fork: single step over fork.
9183 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9184 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9185 comment, change parameters gdbarch and ptid to regcache. Remove
9186 parameter regcache, initialize gdbarch from regcache here.
9187 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9189 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9191 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9192 'syscall'. Make the 'int' check more strict.
9194 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9196 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9197 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9198 (i386_linux_intx80_sysenter_syscall_record): ... here.
9199 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9200 Use the renamed function name.
9202 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9204 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9205 * breakpoint.c (until_break_command): Likewise.
9206 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9207 * infcall.c (call_function_by_hand): Likewise.
9208 * infcmd.c (finish_forward): Likewise.
9209 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9211 2012-02-28 Tristan Gingold <gingold@adacore.com>
9213 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9214 avoid variable assignments inside condition.
9216 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9218 Fix static analysis issue found by cppcheck.
9219 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9220 uninitialized BUF for size 2.
9222 2012-02-27 Chris Dearman <chris@mips.com>
9223 Nathan Froyd <froydnj@codesourcery.com>
9224 Maciej W. Rozycki <macro@codesourcery.com>
9226 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9227 (mips16_instruction_has_delay_slot): Likewise.
9228 (mips_segment_boundary): Likewise.
9229 (mips_adjust_breakpoint_address): Likewise.
9230 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9232 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9233 Maciej W. Rozycki <macro@codesourcery.com>
9235 * infrun.c (handle_inferior_event): Don't proceed through
9236 shared library trampolines if stepping at the machine
9239 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9241 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9244 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9246 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9247 (sh_stub_unwind_sniffer): New functions.
9248 (sh_stub_unwind): New variable.
9249 (sh_gdbarch_init): Wire everything.
9251 2012-02-27 Pedro Alves <palves@redhat.com>
9253 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9254 (linux_nat_post_attach_wait): Adjust to use
9255 linux_proc_pid_is_stopped.
9256 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9257 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9258 based on pid_is_stopped from both linux-nat.c and
9259 gdbserver/linux-low.c, and renamed.
9261 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9263 * remote.c (remote_watchpoint_addr_within_range): New function.
9264 (init_remote_ops): Use it.
9266 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9268 * target.h (target_watchpoint_addr_within_range): Document macro.
9270 2012-02-24 Pedro Alves <palves@redhat.com>
9272 * stack.c (set_last_displayed_sal): Issue internal_error instead
9273 of warning, and issue it after clearing the last displayed sal.
9275 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9276 Pedro Alves <palves@redhat.com>
9278 * breakpoint.c (until_break_command): Install breakpoints after
9279 all frame manipulations.
9281 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9283 * remote.c (remote_supports_cond_breakpoints): New forward
9285 (remote_add_target_side_condition): New function.
9286 (remote_insert_breakpoint): Add target-side breakpoint
9287 conditional if supported.
9288 (remote_insert_hw_breakpoint): Likewise.
9289 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9292 * target.c (update_current_target): Inherit
9293 to_supports_evaluation_of_breakpoint_conditions.
9294 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9296 * target.h (struct target_ops)
9297 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9298 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9300 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9301 (condition_evaluation_both, condition_evaluation_auto,
9302 condition_evaluation_host, condition_evaluation_target,
9303 condition_evaluation_enums, condition_evaluation_mode_1,
9304 condition_evaluation_mode): New static globals.
9305 (translate_condition_evaluation_mode): New function.
9306 (breakpoint_condition_evaluation_mode): New function.
9307 (gdb_evaluates_breakpoint_condition_p): New function.
9308 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9309 (mark_breakpoint_modified): New function.
9310 (mark_breakpoint_location_modified): New function.
9311 (set_condition_evaluation_mode): New function.
9312 (show_condition_evaluation_mode): New function.
9313 (bp_location_compare_addrs): New function.
9314 (get_first_location_gte_addr): New helper function.
9315 (set_breakpoint_condition): Free condition bytecode if locations
9316 has become unconditional. Call mark_breakpoint_modified (...).
9317 (condition_command): Call update_global_location_list (1) for
9319 (breakpoint_xfer_memory): Use is_breakpoint (...).
9320 (is_breakpoint): New function.
9321 (parse_cond_to_aexpr): New function.
9322 (build_target_condition_list): New function.
9323 (insert_bp_location): Handle target-side conditional
9324 breakpoints and call build_target_condition_list (...).
9325 (update_inserted_breakpoint_locations): New function.
9326 (insert_breakpoint_locations): Handle target-side conditional
9328 (bpstat_check_breakpoint_conditions): Add comment.
9329 (bp_condition_evaluator): New function.
9330 (bp_location_condition_evaluator): New function.
9331 (print_breakpoint_location): Print information on where the condition
9333 (print_one_breakpoint_location): Likewise.
9334 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9335 breakpoint location.
9336 (force_breakpoint_reinsertion): New functions.
9337 (update_global_location_list): Handle target-side breakpoint
9339 Reinsert locations that are already inserted if conditions have
9341 (bp_location_dtor): Free agent expression bytecode.
9342 (disable_breakpoint): Call mark_breakpoint_modified (...).
9343 Call update_global_location_list (...) with parameter 1 for breakpoints.
9344 (disable_command): Call mark_breakpoint_location_modified (...).
9345 Call update_global_location_list (...) with parameter 1 for breakpoints.
9346 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9347 (enable_command): mark_breakpoint_location_modified (...).
9348 (_initialize_breakpoint): Update documentation and add
9349 condition-evaluation breakpoint subcommand.
9351 * breakpoint.h: Include ax.h.
9352 (condition_list): New data structure.
9353 (condition_status): New enum.
9354 (bp_target_info) <cond_list>: New field.
9355 (bp_location) <condition_changed, cond_bytecode>: New fields.
9356 (is_breakpoint): New prototype.
9358 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9360 * remote.c (remote_state) <cond_breakpoints>: New field.
9361 (PACKET_ConditionalBreakpoints): New enum.
9362 (remote_cond_breakpoint_feature): New function.
9363 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9364 (remote_supports_cond_breakpoints): New function.
9365 (_initialize_remote): Add new packet configuration for
9366 target-side conditional breakpoints.
9368 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9370 * NEWS: Mention target-side conditional breakpoint support,
9371 new condition-evaluation breakpoint subcommand and remote
9374 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9376 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9379 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9381 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9382 (after_prologue): Remove.
9384 2012-02-23 Tom Tromey <tromey@redhat.com>
9386 * jv-valprint.c (java_val_print): Remove dead code.
9388 2012-02-23 Tristan Gingold <gingold@adacore.com>
9390 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9391 known_tasks_element and known_tasks_length fields.
9392 (read_known_tasks_array): Change argument type. Use pointer type
9393 and number of elements from DATA. Adjust.
9394 (read_known_tasks_list): Likewise.
9395 (get_known_tasks_addr): Remove.
9396 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9397 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9398 type and array length. Merge former get_known_tasks_addr code.
9400 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9403 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9404 it after set_momentary_breakpoint.
9406 2012-02-22 Sterling Augustine <saugustine@google.com>
9409 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9411 2012-02-22 Gary Benson <gbenson@redhat.com>
9413 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9414 (find_slot_in_mapped_hash): Likewise.
9416 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9419 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9420 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9421 * configure: Regenerate.
9423 2012-02-21 Tristan Gingold <gingold@adacore.com>
9424 Pedro Alves <palves@redhat.com>
9426 * ia64-tdep.c: Do not include libunwind-ia64.h.
9427 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9428 Include libunwind-ia64.h instead of libunwind.h.
9429 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9430 for libunwind.h existence.
9431 * configure, config.in: Regenerate.
9433 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9435 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9436 instead of value_rtti_target_type.
9437 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9438 instead of value_rtti_target_type.
9439 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9440 value_rtti_target_type.
9441 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9442 (value_rtti_target_type): Rename to ...
9443 (value_rtti_indirect_type): ... here and make it indirect. Update
9445 * value.c (readjust_indirect_value_type): New function.
9446 (coerce_ref): Support for enclosing type setting for references
9447 with readjust_indirect_value_type.
9448 * value.h (readjust_value_type): New declaration.
9449 (value_rtti_target_type): Rename to ...
9450 (value_rtti_indirect_type): ... here.
9452 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9454 * MAINTAINERS (Write After Approval): Add myself to the list.
9456 2012-02-20 Doug Evans <dje@google.com>
9458 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9459 Rename objfile_p_char parameter to objfilep.
9460 (build_objfile_section_table): Result is now void. All callers
9462 * objfiles.h (struct objfile): Tweak comments, whitespace.
9463 (build_objfile_section_table): Update.
9465 * elfread.c (elf_symfile_segments): Fix warning text.
9467 2012-02-20 Tom Tromey <tromey@redhat.com>
9470 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9471 particular set of file names once.
9472 (dw2_map_symbol_filenames): Likewise.
9474 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9477 * main.c (write_files): Remove the declaration.
9478 (external_editor_command): Move the declaration ...
9479 [GDBTK] (external_editor_command): ... here. Fix the comment.
9481 2012-02-20 Tom Tromey <tromey@redhat.com>
9483 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9486 2012-02-20 Tristan Gingold <gingold@adacore.com>
9488 * darwin-nat.h (enum darwin_msg_state): Add comments.
9490 2012-02-20 Tristan Gingold <gingold@adacore.com>
9492 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9495 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9497 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9498 between function description and implementation.
9500 2012-02-17 Tom Tromey <tromey@redhat.com>
9503 * python/py-event.c (event_object_getset): New global.
9504 (event_object_type): Reference it.
9505 * python/py-type.c (field_object_getset): New global.
9506 (field_object_type): Reference it.
9507 * python/python-internal.h (gdb_py_generic_dict): Declare.
9508 * python/py-utils.c (gdb_py_generic_dict): New function.
9510 2012-02-17 Tristan Gingold <gingold@adacore.com>
9512 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9514 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9516 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9517 TYPE_CALLING_CONVENTION annotation.
9519 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9521 * MAINTAINERS: Add rx to target ISA section.
9522 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9523 (ALLDEPFILES): Add rx-tdep.c.
9525 2012-02-16 Tom Tromey <tromey@redhat.com>
9527 * symfile.c (symbol_file_add_main_1): Use inferior's
9529 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9530 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9532 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9534 (follow_exec): Use inferior's symfile_flags.
9535 * inferior.h (struct inferior) <symfile_flags>: New field.
9537 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9540 * remote-sim.c (gdbsim_create_inferior): Call error() when
9541 sim_create_inferior() fails.
9543 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9545 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9547 2012-02-16 Tom Tromey <tromey@redhat.com>
9550 * thread.c (struct current_thread_cleanup) <was_removable>: New
9552 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9553 (make_cleanup_restore_current_thread): Initialize new field.
9555 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9557 * MAINTAINERS: Add rl78 to target ISA section.
9558 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9559 (ALLDEPFILES): Add rl78-tdep.c.
9560 * NEWS: Mention rl78 as a new target.
9562 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9564 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9566 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9568 2012-02-15 Tom Tromey <tromey@redhat.com>
9571 * infcmd.c (registers_info): Print just the current register's
9574 2012-02-15 Tom Tromey <tromey@redhat.com>
9576 * python/py-symbol.c (sympy_value): Use _().
9578 2012-02-15 Pedro Alves <palves@redhat.com>
9580 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9581 output to be like native targets'.
9582 (remote_pid_to_str): Special case the null ptid.
9584 2012-02-14 Stan Shebs <stan@codesourcery.com>
9586 * NEWS: Mention enable count command.
9587 * breakpoint.h (struct breakpoint): New field enable_count.
9588 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9589 (enable_breakpoint): Add arg to call.
9590 (struct disp_data): New struct.
9591 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9592 (do_map_enable_once_breakpoint): Create a struct and pass it.
9593 (do_map_enable_delete_breakpoint): Ditto.
9594 (do_map_enable_count_breakpoint): New function.
9595 (enable_count_command): New function.
9596 (bpstat_stop_status): Decrement enable_count.
9597 (print_one_breakpoint_location): Report enable count.
9598 (_initialize_breakpoint): Add enable count command.
9600 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9602 * rl78-tdep.c (reggroups.h): Include.
9603 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9604 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9605 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9606 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9607 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9608 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9609 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9610 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9611 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9612 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9613 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9614 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9615 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9616 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9617 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9618 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9619 beginning of register list.
9620 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9621 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9622 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9623 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9624 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9625 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9626 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9627 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9628 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9629 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9630 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9631 the pseudo registers. Rearrange other pseudo registers too so
9632 that the bank registers appear at the end.
9633 (rl78_register_type): Account for the fact that the byte sized
9634 bank registers are now pseudo-registers.
9635 (rl78_register_name): Rearrange the register name array. Make
9636 initial set of raw banked registers inaccessible.
9637 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9638 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9639 case for copying bytes back and forth between raw and pseudo
9640 versions of the banked registers. Update other cases to reflect
9642 (rl78_return_value): Update to account for changed names of
9644 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9645 rl78_register_sim_regno().
9647 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9649 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9650 the name parameter being passed to find_pc_partial_function().
9652 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9654 * MAINTAINERS: Step down from being ia64 target maintainer.
9656 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9658 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9659 compilation warning.
9661 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9663 Fix crash on loaded shlibs without loaded exec_bfd.
9664 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9665 (set_section_command): Replace exec_bfd by p->bfd.
9667 2012-02-10 Tom Tromey <tromey@redhat.com>
9669 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9670 when we have a C++ qualified name.
9672 2012-02-10 Pedro Alves <palves@redhat.com>
9674 * inferior.c (inferior_pid_to_str): New.
9675 (print_inferior, inferior_command): Use it.
9677 2012-02-10 Pedro Alves <palves@redhat.com>
9679 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9681 * configure: Regenerate.
9683 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9685 * linespec.c (decode_line_internal): Fix comment correctness.
9687 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9690 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9691 * amd64bsd-nat.c: Add support for debug registers (adapted from
9693 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9694 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9695 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9696 (amd64bsd_dr_get_control): New functions.
9697 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9698 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9699 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9700 watchpoints initialization.
9701 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9703 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9705 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9707 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9709 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9711 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9713 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9715 * language.h (symbol_name_cmp_ftype): Renames
9716 symbol_name_match_p_ftype.
9717 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9718 la_get_symbol_name_match_p.
9719 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9720 ada_get_symbol_name_match_p. Update comment.
9721 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9722 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9723 Renames symbol_name_match_p. Update field type.
9724 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9725 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9726 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9727 "la_get_symbol_name_cmp" in comments.
9728 * language.c: Likewise.
9730 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9732 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9734 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9735 (amd64_sol2_gregset32_reg_offs): Likewise.
9737 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9739 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9740 of the returned BFD is allocated by GDB.
9742 2012-02-07 Tom Tromey <tromey@redhat.com>
9745 * python/python-internal.h (frame_object_type): Declare.
9746 * python/py-symbol.c (sympy_needs_frame): New function.
9747 (sympy_value): New function.
9748 (symbol_object_getset): Add "needs_frame".
9749 (symbol_object_methods): Add "value".
9750 * python/py-frame.c (frame_object_type): No longer static.
9752 2012-02-07 Tom Tromey <tromey@redhat.com>
9755 * python/py-symbol.c (sympy_line): New function.
9756 (symbol_object_getset): Add "line".
9758 2012-02-07 Tom Tromey <tromey@redhat.com>
9760 * charset.c (find_charset_names): Check 'in' against NULL.
9762 2012-02-06 Doug Evans <dje@google.com>
9764 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9765 and fields.name members from char * to const char *. All uses updated.
9766 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9767 from char * to const char *. All uses updated.
9768 (type_name_no_tag): Update.
9769 (lookup_unsigned_typename, lookup_signed_typename): Update.
9770 * gdbtypes.c (type_name_no_tag): Change result type
9771 from char * to const char *. All callers updated.
9772 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9773 name parameter from char * to const char *.
9774 * symtab.h (struct cplus_specific): Change type of demangled_name
9775 member from char * to const char *. All uses updated.
9776 (struct general_symbol_info): Change type of name and
9777 mangled_lang.demangled_name members from char * to const char *.
9779 (symbol_get_demangled_name, symbol_natural_name): Update.
9780 (symbol_demangled_name, symbol_search_name): Update.
9781 * symtab.c (symbol_get_demangled_name): Change result type
9782 from char * to const char *. All callers updated.
9783 (symbol_natural_name, symbol_demangled_name): Ditto.
9784 (symbol_search_name): Ditto.
9785 (completion_list_add_name): Change type of symname,sym_text,
9786 text,word parameters from char * to const char *.
9787 (completion_list_objc_symbol): Change type of sym_text,
9788 text,word parameters from char * to const char *.
9789 * ada-lang.c (find_struct_field): Change type of name parameter
9790 from char * to const char *.
9791 (encoded_ordered_before): Similarly for N0,N1 parameters.
9792 (old_renaming_is_invisible): Similarly for function_name parameter.
9793 (ada_type_name): Change result type from char * to const char *.
9794 All callers updated.
9795 * ada-lang.h (ada_type_name): Update.
9796 * buildsym.c (hashname): Change type of name parameter
9797 from char * to const char *.
9798 * buildsym.h (hashname): Update.
9799 * dbxread.c (end_psymtab): Change type of include_list parameter
9800 from char ** to const char **.
9801 * dwarf2read.c (determine_prefix): Change result type
9802 from char * to const char *. All callers updated.
9803 * f-lang.c (find_common_for_function): Change type of name, funcname
9804 parameters from char * to const char *.
9805 * f-lang.c (find_common_for_function): Update.
9806 * f-valprint.c (list_all_visible_commons): Change type of funcname
9807 parameters from char * to const char *.
9808 * gdbarch.sh (static_transform_name): Change type of name parameter
9809 and result from char * to const char *.
9810 * gdbarch.c: Regenerate.
9811 * gdbarch.h: Regenerate.
9812 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9813 of name parameter from char * to const char *.
9814 * jv-lang.c (java_primitive_type_from_name): Ditto.
9815 (java_demangled_signature_length): Similarly for signature parameter.
9816 (java_demangled_signature_copy): Ditto.
9817 (java_demangle_type_signature): Ditto.
9818 * jv-lang.h (java_primitive_type_from_name): Update.
9819 (java_demangle_type_signature): Update.
9820 * objc-lang.c (specialcmp): Change type of a,b parameters
9821 from char * to const char *.
9822 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9823 from char * to const char *. All callers updated.
9824 * p-lang.h (is_pascal_string_type): Update.
9825 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9826 of name parameter from char * to const char *.
9827 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9828 * utils.c (fprintf_symbol_filtered): Ditto.
9829 * defs.h (fprintf_symbol_filtered): Update.
9830 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9831 * stabsread.h (end_psymtab): Update.
9832 * stack.c (find_frame_funname): Change type of funname parameter
9833 from char ** to const char **.
9834 * stack.h (find_frame_funname): Update.
9835 * typeprint.c (type_print): Change type of varstring parameter
9836 from char * to const char *.
9837 * value.h (type_print): Update.
9838 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9839 from char * to const char *. All callers updated.
9840 (xcoff_end_psymtab): Change type of include_list parameter
9841 from char ** to const char **. All callers updated.
9842 (swap_sym): Similarly for name parameter. All callers updated.
9843 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9845 (process_coff_symbol): Use xstrdup.
9846 * stabsread.c (stabs_method_name_from_physname): Renamed from
9847 update_method_name_from_physname. Change result type from void
9848 to char *. All callers updated.
9849 (read_member_functions): In has_destructor case, store name in objfile
9850 obstack instead of malloc space. In !has_stub case, fix mem leak.
9852 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9854 * configure: Rebuild.
9855 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9858 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9860 * configure.tgt (rl78-*-elf): New target.
9861 * rl78-tdep.c: New file.
9863 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9865 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9866 and continue the loop. Add QUIT statement.
9868 2012-02-03 Tom Tromey <tromey@redhat.com>
9871 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9872 bfd_lookup_symbol_from_symtab.
9873 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9874 gdb_bfd_lookup_symbol_from_symtab.
9876 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9878 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9879 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9880 symbol. Add assertion that sym2 is never NULL.
9882 2012-02-02 Doug Evans <dje@google.com>
9884 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9885 "name" parameter to const char ** from char **. All callers updated.
9886 (find_pc_partial_function): Ditto.
9887 (cache_pc_function_name): Change type to const char * from char *.
9888 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9889 (find_pc_partial_function): Update.
9890 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9891 type of "name" parameter to const char * from char *.
9893 * arch-utils.c (generic_in_solib_return_trampoline): Change
9894 type of "name" parameter to const char * from char *.
9895 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9896 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9897 type of "name" parameter to const char * from char *.
9898 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9899 * gdbarch.c: Regenerate.
9900 * gdbarch.h: Regenerate.
9901 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9902 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9903 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9904 type of "name" parameter to const char * from char *.
9905 * skip.c (skip_function_pc): Ditto.
9906 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9907 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9908 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9909 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9910 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9911 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9912 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9913 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9914 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9916 2012-02-02 Pedro Alves <palves@redhat.com>
9918 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9919 the current inferior has no execution. Make sure the current
9920 remote process matches gdb's current inferior.
9922 2012-02-02 Tom Tromey <tromey@redhat.com>
9925 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9928 2012-02-02 Tom Tromey <tromey@redhat.com>
9931 * symtab.c (lookup_language_this): Set block_found.
9933 2012-02-01 Tom Tromey <tromey@redhat.com>
9936 * jit.c (struct jit_inferior_data): Rewrite.
9937 (struct jit_objfile_data): New.
9938 (get_jit_objfile_data): New function.
9939 (add_objfile_entry): Update.
9940 (jit_read_descriptor): Return int. Replace descriptor_addr
9941 argument with inf_data. Update. Don't call error.
9942 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9944 (jit_inferior_init): Don't look up descriptor. Don't call error.
9945 (jit_reset_inferior_data_and_breakpoints)
9946 (jit_inferior_created_observer): Remove.
9947 (jit_inferior_exit_hook): Update.
9948 (jit_executable_changed_observer): Remove.
9949 (jit_event_handler): Update.
9950 (free_objfile_data): Reset inferior data if needed.
9951 (_initialize_jit): Update.
9953 2012-02-01 Tom Tromey <tromey@redhat.com>
9955 * jit.c (bfd_open_from_target_memory): Move higher in file.
9957 2012-02-01 Tristan Gingold <gingold@adacore.com>
9959 * libunwind-frame.c (libunwind_load): Display message if dlopen
9962 2012-02-01 Gary Benson <gbenson@redhat.com>
9964 * symtab.h (symbol_found_callback_ftype): New typedef.
9965 (iterate_over_symbols): Use the above.
9966 * symtab.c (iterate_over_symbols): Likewise.
9967 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9968 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9969 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9970 (iterate_name_matcher): Document return values.
9971 (collect_one_symbol): Likewise.
9972 (collect_function_symbols): Likewise.
9973 (collect_symbols): Likewise.
9975 2012-02-01 Tom Tromey <tromey@redhat.com>
9977 * ada-lang.c (resolve_subexp): Update.
9978 (ada_lookup_symbol_list): Add 'full_search' argument.
9979 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9980 ada_lookup_symbol_list.
9981 (ada_lookup_encoded_symbol): Update.
9982 (get_var_value): Update.
9983 * ada-exp.y (block_lookup): Update.
9984 (write_var_or_type): Update.
9985 (write_name_assoc): Update.
9986 * ada-lang.h (ada_lookup_symbol_list): Update.
9988 2012-01-31 Tom Tromey <tromey@redhat.com>
9990 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9993 2012-01-31 Doug Evans <dje@google.com>
9995 * symtab.h: Remove outdated comment.
9996 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9998 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10000 Fix build error in Darwin port.
10001 * i386-darwin-nat.c: Include i386-nat.h.
10003 2012-01-30 Tom Tromey <tromey@redhat.com>
10005 PR breakpoints/13568:
10006 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10007 argument. Check for recursive includes.
10008 (dwarf_decode_macros): Create an include hash.
10010 2012-01-30 Michael Eager <eager@eagercon.com>
10012 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10013 * ppc-linux-tdep.c: Include glibc-tdep.h.
10014 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10015 (powerpc_linux_in_plt_stub): New function.
10016 (powerpc_linux_in_dynsym_resolve_code): New function.
10017 (ppc_skip_trampoline_code): New function.
10018 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10019 Use glibc_skip_solib_resolver.
10021 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10023 Code cleanup: Make 1440 bytes of data segment read-only.
10024 * arch-utils.c (endian_enum): Make it const char *const [].
10025 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10027 * breakpoint.c (always_inserted_enums): Likewise.
10028 * cli/cli-cmds.c (script_ext_enums): Likewise.
10029 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10030 enumlist parameter const char *const *.
10031 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10032 const char *const *.
10033 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10034 parameter const char *const *.
10035 * cris-tdep.c (cris_modes): Make it const char *const [].
10036 * filesystem.c (target_file_system_kinds): Likewise.
10037 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10038 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10039 (can_use_displaced_stepping_enum, scheduler_enums)
10040 (exec_direction_names): Likewise.
10041 * language.c (_initialize_language): Make the type_or_range_names and
10042 case_sensitive_names variables const char *const [].
10043 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10044 * python/python.c (python_excp_enums): Likewise.
10045 * remote.c (interrupt_sequence_modes): Likewise.
10046 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10047 * serial.c (logbase_enums): Likewise.
10048 * sh-tdep.c (sh_cc_enum): Likewise.
10049 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10051 * symtab.c (multiple_symbols_modes): Likewise.
10052 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10054 * utils.c (internal_problem_modes): Likewise.
10056 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10058 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10059 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10062 2012-01-27 Doug Evans <dje@google.com>
10064 * configure.ac (with_python): Fix absolute path handling for win32.
10065 * configure: Regenerate.
10067 2012-01-26 Doug Evans <dje@google.com>
10069 * symtab.c: Whitespace cleanup, no code changes.
10071 * symtab.c (lookup_symbol_in_language): Improve comment.
10072 (lookup_symbol_aux): Fix comment.
10074 * psymtab.c (add_psymbol_to_list): Result is now "void".
10075 * psympriv.h (add_psymbol_to_list): Update.
10077 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10079 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10081 Do not open script filenames twice.
10082 * cli/cli-cmds.c (source_script_from_stream): Pass to
10083 source_python_script also STREAM.
10084 * python/py-auto-load.c (source_section_scripts): Pass to
10085 source_python_script_for_objfile also STREAM.
10086 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10088 * python/python-internal.h (source_python_script_for_objfile): New
10089 parameter file, rename parameter file to filename.
10090 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10091 instead if !_WIN32. Update the function comment.
10092 (source_python_script, source_python_script_for_objfile)
10093 (source_python_script): New parameter file, rename parameter file to
10094 filename. Pass FILENAME to python_run_simple_file.
10095 * python/python.h (source_python_script): New parameter file, rename
10096 parameter file to filename.
10098 2012-01-26 Pedro Alves <palves@redhat.com>
10100 * corelow.c (core_has_fake_pid): Delete.
10101 (core_close): Delete references to `core_has_fake_pid'.
10102 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10103 (core_open): Delete references to `core_has_fake_pid'.
10104 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10105 the removed global.
10107 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10109 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10110 Remove language parameter from name_matcher. Adjust the comment.
10111 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10112 Remove language parameter.
10113 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10114 * linespec.c (iterate_name_matcher): Likewise.
10115 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10116 name_matcher. Adjust call accordingly.
10117 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10118 (maintenance_check_symtabs): Adjust type of parameter "fun".
10119 * psymtab.h (maintenance_check_symtabs): Likewise.
10121 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10123 * language.h (symbol_name_match_p_ftype): New typedef.
10124 (struct language_defn): Replace field la_symbol_name_compare
10125 by la_get_symbol_name_match_p.
10126 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10127 (ada_language_defn): Use it.
10128 * linespec.c (struct symbol_matcher_data): New type.
10129 (iterate_name_matcher): Rewrite.
10130 (iterate_over_all_matching_symtabs): Pass a pointer to
10131 a symbol_matcher_data struct to expand_symtabs_matching
10132 instead of just the lookup name.
10133 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10134 opencl-lang.c, p-lang.c, language.c: Delete field
10135 la_symbol_name_compare, and replace by NULL for new field
10136 la_get_symbol_name_match_p.
10137 * symfile.h (struct quick_symbol_functions): Update comment.
10139 2012-01-25 Tom Tromey <tromey@redhat.com>
10141 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10144 2012-01-24 Tom Tromey <tromey@redhat.com>
10147 * solib.c (update_solib_list): Update the program space's
10148 added_solibs and deleted_solibs fields.
10149 * progspace.h (struct program_space) <added_solibs,
10150 deleted_solibs>: New fields.
10151 (clear_program_space_solib_cache): Declare.
10152 * progspace.c (release_program_space): Call
10153 clear_program_space_solib_cache.
10154 (clear_program_space_solib_cache): New function.
10155 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10156 bpstat_stop_status. Use handle_solib_event.
10157 * breakpoint.c: Include gdb_regex.h.
10158 (print_solib_event): New function.
10159 (bpstat_print): Use print_solib_event.
10160 (bpstat_stop_status): Add special case for bp_shlib_event.
10161 (handle_solib_event): New function.
10162 (bpstat_what): Use handle_solib_event.
10163 (struct solib_catchpoint): New.
10164 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10165 (breakpoint_hit_catch_solib, check_status_catch_solib)
10166 (print_it_catch_solib, print_one_catch_solib)
10167 (print_mention_catch_solib, print_recreate_catch_solib): New
10169 (catch_solib_breakpoint_ops): New global.
10170 (catch_load_or_unload, catch_load_command_1)
10171 (catch_unload_command_1): New functions.
10172 (internal_bkpt_check_status): Add special case for
10174 (internal_bkpt_print_it): Use print_solib_event.
10175 (initialize_breakpoint_ops): Initialize
10176 catch_solib_breakpoint_ops.
10177 (_initialize_breakpoint): Register "catch load" and "catch
10179 * breakpoint.h (handle_solib_event): Declare.
10180 * NEWS: Add entry for "catch load" and "catch unload".
10182 2012-01-24 Tom Tromey <tromey@redhat.com>
10184 * ada-lang.c: Include gdb_vecs.h.
10185 * charset.c: Include gdb_vecs.h.
10186 * tracepoint.h: Include gdb_vecs.h.
10187 * gdb_vecs.h: New file.
10189 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10191 * breakpoint.c (breakpoint_hit_catch_fork)
10192 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10193 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10194 * infrun.c (inferior_has_forked, inferior_has_vforked)
10195 (inferior_has_execd, inferior_has_called_syscall): Delete.
10196 (handle_syscall_event): Get syscall_number from the execution
10197 control state's wait status.
10198 (wait_for_inferior): Don't clear syscall_number.
10200 2012-01-24 Pedro Alves <palves@redhat.com>
10202 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10203 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10204 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10205 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10207 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10208 false for events other than TARGET_SIGNAL_TRAP.
10209 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10210 Add `ws' parameter.
10211 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10212 events other than TARGET_SIGNAL_TRAP.
10213 (tracepoint_breakpoint_hit): Add `ws' parameter.
10214 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10216 (bpstat_stop_status): Same.
10217 (pc_at_non_inline_function): Same.
10218 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10219 to pass the current event's waitstatus to bpstat_stop_status
10220 and pc_at_non_inline_function.
10222 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10225 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10226 Update the function comment for it.
10227 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10228 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10231 2012-01-24 Pedro Alves <palves@redhat.com>
10233 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10234 outside `bs->stop' block.
10235 (bpstat_what): Rework bp_shlib_event handling.
10236 (internal_bkpt_check_status): If the breakpoint is a
10237 bp_shlib_event, then set bs->stop and bs->print if
10238 stop_on_solib_events is set.
10240 2012-01-24 Gary Benson <gbenson@redhat.com>
10242 Delete #if 0'd out code.
10243 * stack.c (print_frame_label_vars): Remove.
10244 (catch_info): Likewise.
10245 (_initialize_stack): Remove "info catch" command.
10246 * NEWS: Mention the above.
10248 2012-01-24 Pedro Alves <palves@redhat.com>
10250 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10252 (remote_notice_new_inferior): If the remote end doesn't support
10253 the multiprocess extensions, then the PID is fake.
10254 (add_current_inferior_and_thread): New.
10255 (remote_start_remote): Use it.
10256 (extended_remote_attach_1): Adjust.
10257 (extended_remote_create_inferior_1): Use
10258 add_current_inferior_and_thread.
10260 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10262 Fix watchpoints to be specific for each inferior.
10263 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10264 current_program_space.
10265 * i386-nat.c (i386_inferior_data_cleanup): New.
10266 (i386_inferior_data_get): Replace variable inf_data_local by an
10267 inferior_data call.
10268 (i386_use_watchpoints): Initialize i386_inferior_data.
10269 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10270 specific iterate_over_lwps.
10272 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10274 Fix watchpoints across inferior fork.
10275 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10276 comment for linux_nat_iterate_watchpoint_lwps.
10277 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10278 linux_nat_iterate_watchpoint_lwps.
10279 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10280 * i386-linux-nat.c (update_debug_registers_callback): Update the
10281 comment for linux_nat_iterate_watchpoint_lwps.
10282 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10283 linux_nat_iterate_watchpoint_lwps.
10284 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10285 * i386-nat.c: Include inferior.h.
10286 (dr_mirror): Remove.
10287 (i386_inferior_data, struct i386_inferior_data)
10288 (i386_inferior_data_get): New.
10289 (i386_debug_reg_state): Use i386_inferior_data_get.
10290 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10291 (i386_insert_watchpoint, i386_remove_watchpoint)
10292 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10293 (i386_remove_hw_breakpoint): New variable state, use
10294 i386_debug_reg_state instead of DR_MIRROR.
10295 * linux-nat.c (delete_lwp): New declaration.
10296 (num_lwps): Move here from downwards.
10297 (delete_lwp_cleanup): New.
10298 (linux_child_follow_fork): Create new child_lp, call
10299 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10301 (num_lwps): Move upwards.
10302 (linux_nat_iterate_watchpoint_lwps): New.
10303 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10304 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10306 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10310 2012-01-23 Pedro Alves <palves@redhat.com>
10312 * top.c (caution): Rename to ...
10313 (confirm): ... this.
10314 (show_caution): Rename to ...
10315 (show_confirm): ... this.
10316 (quit_cover): Adjust.
10317 (init_main): Adjust.
10318 * top.h (caution): Rename to ...
10319 (confirm): ... this.
10320 * utils.c (internal_vproblem, defaulted_query): Adjust.
10322 2012-01-23 Pedro Alves <palves@redhat.com>
10324 * top.c (caution): Update comment.
10325 (execute_command): Don't consider the current value of `caution'.
10327 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10329 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10331 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10333 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10334 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10335 * target.c (target_fileio_pwrite): Remove buffer address from
10337 (target_fileio_pread): Likewise.
10339 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10341 * NEWS: Document remote "info proc" and "generate-core-file".
10343 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10345 * gdbarch.sh (find_memory_regions): New callback.
10346 * gdbarch.c, gdbarch.h: Regenerate.
10348 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10349 callback before falling back to target method.
10351 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10352 (linux_target_install_ops): No longer install it.
10354 * linux-tdep.c (linux_find_memory_regions): New function.
10355 (linux_init_abi): Install it.
10357 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10359 * gdbarch.sh (make_corefile_notes): New architecture callback.
10360 * gdbarch.c: Regenerate.
10361 * gdbarch.h: Likewise.
10363 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10364 before target_make_corefile_notes. If NULL is returned, the
10365 target does not support core file generation.
10367 * linux-nat.c: Include "linux-tdep.h".
10368 (find_signalled_thread, find_stop_signal): Remove.
10369 (linux_nat_do_thread_registers): Likewise.
10370 (struct linux_nat_corefile_thread_data): Likewise.
10371 (linux_nat_corefile_thread_callback): Likewise.
10372 (iterate_over_spus): Likewise.
10373 (struct linux_spu_corefile_data): Likewise.
10374 (linux_spu_corefile_callback): Likewise.
10375 (linux_spu_make_corefile_notes): Likewise.
10376 (linux_nat_collect_thread_registers): New function.
10377 (linux_nat_make_corefile_notes): Replace contents by call to
10378 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10379 as native-only callback.
10381 * linux-tdep.h: Include "bfd.h".
10382 (struct regcache): Add forward declaration.
10383 (linux_collect_thread_registers_ftype): New typedef.
10384 (linux_make_corefile_notes): Add prototype.
10385 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10386 "regset.h", and "elf-bfd.h".
10387 (find_signalled_thread, find_stop_signal): New functions.
10388 (linux_spu_make_corefile_notes): Likewise.
10389 (linux_collect_thread_registers): Likewise.
10390 (struct linux_corefile_thread_data): New data structure.
10391 (linux_corefile_thread_callback): New funcion.
10392 (linux_make_corefile_notes): Likewise.
10393 (linux_make_corefile_notes_1): Likewise.
10394 (linux_init_abi): Install it.
10396 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10398 * gdbarch.sh (info_proc): New callback.
10399 * gdbarch.c, gdbarch.h: Regenerate.
10401 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10402 before falling back to the target info_proc callback.
10404 * linux-nat.c: Do not include "cli/cli-utils.h".
10405 (linux_nat_info_proc): Remove.
10406 (linux_target_install_ops): No longer install it.
10408 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10409 (read_mapping): New function.
10410 (linux_info_proc): Likewise.
10411 (linux_init_abi): Install it.
10413 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10415 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10416 * infcmd.c: (info_proc_cmd_1): New function.
10417 (info_proc_cmd): New function, moved here from equivalent routine
10418 orignally in linux-nat.c.
10419 (info_proc_cmd_mappings): Likewise.
10420 (info_proc_cmd_stat): Likewise.
10421 (info_proc_cmd_status): Likewise.
10422 (info_proc_cmd_cwd): Likewise.
10423 (info_proc_cmd_cmdline): Likewise.
10424 (info_proc_cmd_exe): Likewise.
10425 (info_proc_cmd_all): Likewise.
10426 (_initialize_infcmd): Install "info proc" command and subcommands.
10428 * target.h (struct target_ops): Add to_info_proc.
10429 (target_info_proc): Add prototype.
10430 * target.c (target_info_proc): New function.
10432 * procfs.c (procfs_info_proc): Add prototype.
10433 (info_proc_cmd): Rename into ...
10434 (procfs_info_proc): ... this. Update argument types as appropriate
10435 for a to_info_proc implementation. Handle "what" argument.
10436 (procfs_target): Install procfs_info_proc.
10437 (_initialize_procfs): No longer install "info proc" command.
10439 * linux-nat.c: (enum info_proc_what): Remove.
10440 (linux_nat_info_proc_cmd_1): Rename into ...
10441 (linux_nat_info_proc): ... this. Update argument types as appropriate
10442 for a to_info_proc implementation.
10443 (linux_nat_info_proc_cmd): Remove.
10444 (linux_nat_info_proc_cmd_mappings): Likewise.
10445 (linux_nat_info_proc_cmd_stat): Likewise.
10446 (linux_nat_info_proc_cmd_status): Likewise.
10447 (linux_nat_info_proc_cmd_cwd): Likewise.
10448 (linux_nat_info_proc_cmd_cmdline): Likewise.
10449 (linux_nat_info_proc_cmd_exe): Likewise.
10450 (linux_nat_info_proc_cmd_all): Likewise.
10451 (linux_target_install_ops): Install linux_nat_info_proc.
10452 (_initialize_linux_nat): No longer install "info proc" command
10455 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10457 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10458 * config.in, configure: Regenerate.
10460 * target.h (struct target_ops): Add to_fileio_readlink.
10461 (target_fileio_readlink): Add prototype.
10462 * target.c (target_fileio_readlink): New function.
10464 * inf-child.c: Conditionally include <sys/param.h>.
10465 (inf_child_fileio_readlink): New function.
10466 (inf_child_target): Install it.
10468 * remote.c (PACKET_vFile_readlink): New enum value.
10469 (remote_hostio_readlink): New function.
10470 (init_remote_ops): Install it.
10471 (_initialize_remote): Handle vFile:readlink packet type.
10473 2012-01-20 Pedro Alves <palves@redhat.com>
10474 Ulrich Weigand <ulrich.weigand@linaro.org>
10476 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10477 * config.in, configure: Regenerate.
10479 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10480 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10481 (target_fileio_open): Add prototype.
10482 (target_fileio_pwrite): Likewise.
10483 (target_fileio_pread): Likewise.
10484 (target_fileio_close): Likewise.
10485 (target_fileio_unlink): Likewise.
10486 (target_fileio_read_alloc): Likewise.
10487 (target_fileio_read_stralloc): Likewise.
10489 * target.c: Include "gdb/fileio.h".
10490 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10491 (default_fileio_target): New function.
10492 (target_fileio_open): Likewise.
10493 (target_fileio_pwrite): Likewise.
10494 (target_fileio_pread): Likewise.
10495 (target_fileio_close): Likewise.
10496 (target_fileio_unlink): Likewise.
10497 (target_fileio_close_cleanup): Likewise.
10498 (target_fileio_read_alloc_1): Likewise.
10499 (target_fileio_read_alloc): Likewise.
10500 (target_fileio_read_stralloc): Likewise.
10502 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10503 <fcntl.h>, and <unistd.h>.
10504 (inf_child_fileio_open_flags_to_host): New function.
10505 (inf_child_errno_to_fileio_error): Likewise.
10506 (inf_child_fileio_open): Likewise.
10507 (inf_child_fileio_pwrite): Likewise.
10508 (inf_child_fileio_pread): Likewise.
10509 (inf_child_fileio_close): Likewise.
10510 (inf_child_fileio_unlink): Likewise.
10511 (inf_child_target): Install to_fileio routines.
10513 * remote.c (init_remote_ops): Install to_fileio routines.
10515 2012-01-20 Pedro Alves <palves@redhat.com>
10516 Ulrich Weigand <ulrich.weigand@linaro.org>
10518 * remote.c (remote_multi_process_p): Only check for multi-process
10519 protocol feature, do not check for extended protocol.
10520 (remote_supports_multi_process): Check for extended protocol here.
10521 (set_general_process): Likewise.
10522 (extended_remote_kill): Likewise.
10523 (remote_pid_to_str): Likewise.
10524 (remote_query_supported): Always query multiprocess mode.
10526 2012-01-20 Pedro Alves <palves@redhat.com>
10527 Ulrich Weigand <ulrich.weigand@linaro.org>
10529 * inferior.h (struct inferior): Add fake_pid_p.
10530 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10531 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10532 magic_null_ptid since the remote side doesn't provide a real PID.
10534 2012-01-19 Tom Tromey <tromey@redhat.com>
10536 * NEWS: Combine the two Python sections.
10538 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10540 * target.h (target_close): Update comment on the target's unpush state.
10542 2012-01-19 Pedro Alves <palves@redhat.com>
10544 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10545 linux_nat_async directly instead of going through the target
10547 * target.c (unpush_target): Close target after unpushing it, not
10550 2012-01-19 Gary Benson <gbenson@redhat.com>
10552 * mdebugread.c (sort_blocks): Replace integer constants with ones
10553 derived from FIRST_LOCAL_BLOCK.
10555 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10556 Jan Kratochvil <jan.kratochvil@redhat.com>
10559 * symfile.c (find_separate_debug_file): New function.
10560 (terminate_after_last_dir_separator): Likewise.
10561 (find_separate_debug_file_by_debuglink): Also try realpath.
10562 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10563 * configure: Regenerate.
10564 * config.in: Regenerate.
10566 2012-01-18 Doug Evans <dje@google.com>
10568 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10569 (main.o): Remove rule.
10570 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10571 (--with-sysroot): Rewrite.
10572 * configure: Regenerate.
10573 * config.in: Regenerate.
10575 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10577 * parse.c (initialize_expout): New function.
10578 (reallocate_expout): Likewise.
10579 (parse_exp_in_context): Use `initialize_expout' and
10580 `reallocate_expout' when appropriate.
10582 2012-01-18 Pedro Alves <palves@redhat.com>
10584 * record.c (struct record_breakpoint, record_breakpoint_p)
10585 (record_breakpoints): New.
10586 (record_insert_breakpoint, record_remove_breakpoint): Manage
10587 record breakpoints list. Only remove breakpoints from the
10588 inferior if they had been inserted there in the first place.
10590 2012-01-17 Doug Evans <dje@google.com>
10592 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10593 if we know we don't have a file name to look for.
10595 2012-01-17 Pedro Alves <palves@redhat.com>
10597 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10598 the frame's stop reason is UNWIND_UNAVAILABLE.
10600 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10602 Fix compilation error.
10603 * m2-exp.y (yyerror): Use ANSI C prototype.
10605 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10607 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10608 (growbuf_by_size): Likewise.
10609 (yyerror): Likewise.
10610 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10611 (modblock): Remove variable (was #if 0'ed).
10612 (parse_number): Convert prototype from K&R to ANSI C.
10613 (yyerror): Likewise.
10614 * objc-exp.y (parse_number): Likewise.
10615 (yyerror): Likewise.
10616 (yylex): Remove #if 0'ed code.
10617 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10618 (yyerror): Likewise.
10620 2012-01-16 Tom Tromey <tromey@redhat.com>
10623 * symtab.h (compare_filenames_for_search): Declare.
10624 * symtab.c (compare_filenames_for_search): New function.
10625 (iterate_over_some_symtabs): Use it.
10626 * symfile.h (struct quick_symbol_functions)
10627 <map_symtabs_matching_filename>: Change spec.
10628 * psymtab.c (partial_map_symtabs_matching_filename): Use
10629 compare_filenames_for_search. Update for new spec.
10630 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10631 compare_filenames_for_search. Update for new spec.
10632 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10634 2012-01-16 Tom Tromey <tromey@redhat.com>
10637 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10638 (struct main_type) <flag_flag_enum>: New field.
10639 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10640 * NEWS: Add entries.
10641 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10643 * python/lib/gdb/printing.py (_EnumInstance): New class.
10644 (FlagEnumerationPrinter): Likewise.
10646 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10648 * breakpoint.c (create_sals_from_address_default): New function.
10649 (create_breakpoints_sal_default): Likewise.
10650 (decode_linespec_default): Likewise.
10651 (is_marker_spec): Removed.
10652 (strace_marker_p): New function.
10653 (init_breakpoint_sal): Using `strace_marker_p' instead of
10655 (create_breakpoint): Call method `create_sals_from_address' from
10656 breakpoint_ops, replacing code that created SALs conditionally
10657 on the type of the breakpoint. Call method `create_breakpoints_sal',
10658 replacing code that created breakpoints conditionally on the type
10660 (base_breakpoint_create_sals_from_address): New function.
10661 (base_breakpoint_create_breakpoints_sal): Likewise.
10662 (base_breakpoint_decode_linespec): Likewise.
10663 (base_breakpoint_ops): Add methods
10664 `base_breakpoint_create_sals_from_address',
10665 `base_breakpoint_create_breakpoints_sal' and
10666 `base_breakpoint_decode_linespec'.
10667 (bkpt_create_sals_from_address): New function.
10668 (bkpt_create_breakpoints_sal): Likewise.
10669 (bkpt_decode_linespec): Likewise.
10670 (tracepoint_create_sals_from_address): Likewise.
10671 (tracepoint_create_breakpoints_sal): Likewise.
10672 (tracepoint_decode_linespec): Likewise.
10673 (strace_marker_create_sals_from_address): Likewise.
10674 (strace_marker_create_breakpoints_sal): Likewise.
10675 (strace_marker_decode_linespec): Likewise.
10676 (strace_marker_breakpoint_ops): New variable.
10677 (addr_string_to_sals): Remove `marker_spec'. Call method
10678 `decode_linespec' from breakpoint_ops, replacing code that decoded
10679 an address string into a SAL. Use `strace_marker_p' instead of
10681 (strace_command): Decide whether we are dealing with a static
10682 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10683 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10684 * breakpoint.h (linespec_result, linespec_sals): New forward
10686 (breakpoint_ops) <create_sals_from_address>,
10687 <create_breakpoints_sal>, <decode_linespec>: New methods.
10689 2012-01-14 Doug Evans <dje@google.com>
10691 * NEWS: Update text for "maint set python print-stack".
10692 It is deprecated in gdb 7.4 and deleted in 7.5.
10694 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10696 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10697 including curses.h.
10699 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10701 * configure: Regenerate.
10702 * config.in: Regenerate.
10704 2012-01-12 Keith Seitz <keiths@redhat.com>
10707 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10708 (ANONYMOUS_UNION_NAME): Define.
10709 (is_path_expr_parent): New function.
10710 (get_path_expr_parent): New function.
10711 (is_anonymous_child): New function.
10712 (create_child_with_value): If the child is anonymous and without
10713 a name, assign an object name to it.
10714 (c_describe_child): Use get_path_expr_parent to determine
10715 the parent expression.
10716 If there field represents an anonymous struct or union and
10717 has no name, set an appropriate display name and expression.
10718 (cplus_describe_child): Likewise.
10720 2012-01-12 Pedro Alves <palves@redhat.com>
10722 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10723 available when %ebp is found to be zero (outermost).
10725 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10727 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10728 an internal gdb_static_assert.
10729 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10731 2012-01-11 Tom Tromey <tromey@redhat.com>
10734 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10735 catch" and "catch throw".
10737 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10739 * blockframe.c (block_innermost_frame): Start search from selected
10740 frame, if present, or otherwise the current frame.
10742 * c-exp.y (variable): Update innermost_block for
10743 'block COLONCOLON NAME' clause.
10744 * m2-exp.y (variable): Ditto.
10745 * objc-exp.y (variable): Ditto.
10747 2012-01-10 Tom Tromey <tromey@redhat.com>
10750 * python/python.c (finish_python_initialization): Set sys.argv.
10752 2012-01-10 Doug Evans <dje@google.com>
10754 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10755 "want_line_info". All callers updated.
10756 (dwarf_decode_lines_1): New function.
10757 (handle_DW_AT_stmt_list): Add function comment.
10758 New arg "want_line_info". All callers updated.
10759 (read_file_scope,read_type_unit_scope): Move comment from
10760 handle_DW_AT_stmt_list to here.
10762 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10764 Fix regression after libiberty/ update for GCC PR 6057 and others.
10765 * c-exp.y (operator) <OPERATOR DELETE>
10766 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10767 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10768 (make_builtin_type, make_name): New variable i, add gdb_assert.
10769 (operator) <OPERATOR NEW>: Update ARGS to 3.
10770 (operator) <OPERATOR DELETE>: Add trailing space.
10771 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10772 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10773 * cp-support.c (cp_canonicalize_string): Check NULL from
10774 cp_comp_to_string, call warning and return.
10776 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10778 Fix duplicate .o files after omitting libbfd.a.
10779 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10780 (SFILES): Add corelow.c.
10781 (COMMON_OBS): Add corelow.o.
10782 (ALLDEPFILES): Remove corelow.c.
10783 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10784 * config/alpha/alpha-osf3.mh: Likewise.
10785 * config/alpha/fbsd.mh: Likewise.
10786 * config/arm/nbsdaout.mh: Likewise.
10787 * config/arm/nbsdelf.mh: Likewise.
10788 * config/i386/i386gnu.mh: Likewise.
10789 * config/ia64/hpux.mh: Likewise.
10790 * config/ia64/linux.mh: Likewise.
10791 * config/m32r/linux.mh: Likewise.
10792 * config/m68k/linux.mh: Likewise.
10793 * config/mips/irix5.mh: Likewise.
10794 * config/mips/irix6.mh: Likewise.
10795 * config/pa/hpux.mh: Likewise.
10796 * config/pa/linux.mh: Likewise.
10797 * config/powerpc/aix.mh: Likewise.
10798 * config/sparc/linux.mh: Likewise.
10799 * config/sparc/linux64.mh: Likewise.
10800 * config/sparc/sol2.mh: Likewise.
10801 * config/vax/vax.mh: Likewise.
10802 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10803 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10804 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10805 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10806 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10807 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10808 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10809 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10810 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10811 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10812 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10813 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10814 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10815 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10816 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10817 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10818 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10819 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10820 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10821 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10822 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10823 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10824 corelow.o from gdb_target_obs.
10825 * corefile.c (core_target): Update the comment on NULL value.
10826 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10827 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10828 MATCHES. Drop YUMMY set on NULL.
10829 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10830 reclaim CORE_DATA if it is already NULL.
10832 2012-01-09 Doug Evans <dje@google.com>
10834 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10835 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10837 2012-01-09 Keith Seitz <keiths@redhat.com>
10839 * breakpoint.c (wrapper.h): Don't include.
10841 2012-01-09 Keith Seitz <keiths@redhat.com>
10843 * Makefile.in (SFILES): Remove wrapper.c.
10844 (HFILES_NO_SRCDIR): Remove wrapper.h.
10845 (COMMON_OBS): Remove wrapper.o.
10846 * cli/cli-interp.c: Don't inlude wrapper.h.
10847 * corelow.c: Likewise.
10848 (core_open): Replace gdb_target_find_new_threads with
10849 TRY_CATCH around target_find_new_threads.
10850 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10851 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10852 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10853 evaluate_expression.
10854 (varobj_set_value): Likewise for evaluate_expression and
10856 (install_new_variable): Likewise for value_fetch_lazy.
10857 (adjust_value_for_child_access): Likewise for value_ind.
10858 (c_describe_child): Likewise for value_subscript and
10860 (c_value_of_root): Likewise for evaluate_expression.
10861 * wrapper.c: Remove.
10862 * wrapper.h: Remove.
10864 2012-01-09 Doug Evans <dje@google.com>
10866 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10867 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10868 "abfd" args with "section". All callers updated.
10869 Error checking code moved ...
10870 (error_check_comp_unit_head): ... here. New function.
10871 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10872 Delete arg "abfd". New arg "type_offset". All callers updated.
10873 (create_debug_types_hash_table): Simplify by using
10874 read_and_check_type_unit_head.
10876 * parser-defs.h (namecopy): Delete.
10877 * parse.c (namecopy, namecopy_size): Move into copy_name.
10879 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10881 Partially fix duplicate .o files after omitting libbfd.a.
10882 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10883 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10884 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10885 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10886 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10887 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10888 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10890 2012-01-09 Pedro Alves <palves@redhat.com>
10892 * MAINTAINERS: Update my email address.
10894 2012-01-08 Doug Evans <dje@google.com>
10896 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10897 n_type_units. Rename type_comp_units to all_type_units.
10899 (add_signatured_type_cu_to_table): Renamed from
10900 add_signatured_type_cu_to_list. All callers updated.
10902 * gdbtypes.h (struct cplus_struct_type): Delete member
10903 nfn_fields_total. All uses removed.
10905 2012-01-06 Doug Evans <dje@google.com>
10907 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10909 (dwarf2_find_comp_unit): Delete.
10910 (process_psymtab_comp_unit): Make result "void".
10911 Delete args buffer, info_ptr, buffer_size, and replace with
10912 "section". All callers updated.
10913 (dwarf2_build_psymtabs_hard): Simplify.
10915 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10916 Thiago Jung Bauermann <bauerman@br.ibm.com>
10918 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10919 before `struct gdb_exception'.
10920 * breakpoint.c (update_global_location_list_nothrow)
10921 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10922 * cp-abi.c (value_rtti_type): Likewise.
10923 * cp-support.c (cp_validate_operator): Likewise.
10924 * infrun.c (insert_exception_resume_breakpoint)
10925 (check_exception_resume, keep_going): Likewise.
10926 * mi-interp.c (mi_breakpoint_created)
10927 (mi_breakpoint_modified): Likewise.
10928 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10929 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10930 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10932 2012-01-05 Doug Evans <dje@google.com>
10934 * dwarf2read.c (statement_prologue): Delete, unused.
10936 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10937 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10939 * dwarf2read.c (comp_unit_header): Delete, unused.
10941 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10943 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10944 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10946 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10948 * infrun.c (normal_stop): Don't skip calling the normal_stop
10949 observers if the thread was doing a multi-step, but stopped for
10950 some reason other than stepping.
10952 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10954 * cli/cli-decode.h: Add comments.
10955 (CMD_LIST_AMBIGUOUS): Moved to command.h
10956 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10957 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10958 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10959 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10960 (add_com, add_com_alias, add_info, add_info_alias)
10961 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10963 * command.h: Add and adjust comments.
10964 (CMD_LIST_AMBIGUOUS): Moved here.
10965 (help_cmd, help_cmd_list): Delete declarations.
10967 2012-01-04 Doug Evans <dje@google.com>
10969 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10970 All callers updated.
10971 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10972 Replace all arguments with "per_cu". All callers updated.
10974 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10976 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10977 New arg "per_cu". All callers updated.
10979 Delete #if 0'd out code.
10980 * language.c (binop_result_type): Delete.
10981 (simple_type, ordered_type, same_type, integral_type): Delete.
10982 (numeric_type, character_type, string_type, boolean_type): Delete.
10983 (float_type, structured_type): Delete.
10984 * language.h: Update.
10986 2012-01-04 Tom Tromey <tromey@redhat.com>
10988 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10990 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10992 * corefile.c (close_exec_file): Delete.
10993 (reopen_exec_file): Remove commented out code that seems related
10994 to close_exec_file, which is being deleted here.
10995 * inferior.h (close_exec_file): Delete.
10996 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10998 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11000 * ada-lang.c: #include "cli/cli-utils.h".
11001 (get_selections): Use skip_spaces.
11002 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11003 (catch_ada_exception_command_split): Use skip_spaces.
11004 (ada_decode_assert_location): Likewise.
11006 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11008 * linespec.c (decode_line_internal): Check for C++ or Java
11009 compound constructs only if the current language is C, C++
11012 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11015 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11016 Joel Brobecker <brobecker@adacore.com>
11017 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11018 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11020 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11021 fall through into AT_ENTRY_POINT.
11022 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11023 DUMMY_ADDR with it.
11024 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11025 PPC_INSN_SIZE skip to 3 times.
11027 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11029 * linespec.c (add_minsym): Preserve function descriptors.
11031 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11033 * breakpoint.c (all_locations_are_pending): Consider locations
11034 in program spaces executing during startup pending as well.
11036 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11038 Copyright year update in most files of the GDB Project.
11040 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11042 * copyright.sh: Delete.
11043 * copyright.py: Rewrite.
11045 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11047 * gnulib/extra/update-copyright: New file, imported from gnulib.
11049 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11051 * README (Copyright and License Notices): New section.
11053 2012-01-03 Tom Tromey <tromey@redhat.com>
11056 * python/py-value.c (valpy_dereference, valpy_get_address
11057 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11058 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11059 (valpy_absolute, valpy_richcompare): Free intermediate values.
11061 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11063 * ada-lang.c: Reformat the copyright notice.
11065 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11067 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11068 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11069 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11070 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11071 Revert this part of:
11072 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11073 Build gdb directly from *.o files not using libgdb.a.
11074 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11076 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11078 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11079 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11080 Reformat the copyright header.
11082 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11084 Revert this part of:
11085 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11086 Remove the gdbtui binary.
11087 * gdb.c (main): Remove args.interpreter_p initialization.
11088 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11089 * main.h (struct captured_main_args): Remove interpreter_p.
11091 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11093 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11095 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11097 * top.c (print_gdb_version): Update copyright year.
11099 2012-01-02 Yao Qi <yao@codesourcery.com>
11101 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11103 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11104 Joel Brobecker <brobecker@adacore.com>
11106 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11107 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11109 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11110 fall through into AT_ENTRY_POINT.
11111 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11112 DUMMY_ADDR with it.
11113 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11114 PPC_INSN_SIZE skip to 3 times.
11116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11118 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11120 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11122 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11124 Build gdb directly from *.o files not using libgdb.a.
11125 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11126 (COMMON_OBS): Remove solib-target.o.
11127 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11128 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11129 (LIBGDB_OBS, libgdb.a): Move it above.
11130 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11131 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11132 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11133 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11134 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11135 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11136 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11137 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11138 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11139 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11140 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11141 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11142 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11143 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11144 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11145 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11146 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11147 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11148 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11149 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11150 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11151 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11152 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11153 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11154 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11155 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11156 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11158 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11160 Remove the gdbtui binary.
11161 * .gitignore (/gdbtui): Remove.
11162 * Makefile.in (TUI): Remove.
11163 (SUBDIR_TUI_OBS): Remove tui-main.o.
11164 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11165 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11166 (tui-main.o): Remove.
11167 (all_object_files): Remove tui-main.o.
11168 * NEWS: New note for the gdbtui removal.
11169 * configure: Rebuilt.
11170 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11171 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11172 CONFIG_UNINSTALL respectively.
11173 * gdb.c (main): Remove args.interpreter_p initialization.
11174 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11175 * main.h (struct captured_main_args): Remove interpreter_p.
11176 * tui/tui-main.c: Remove.
11178 2012-01-01 Doug Evans <dje@google.com>
11180 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11181 (dwarf2_physname, read_import_statement): Ditto.
11182 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11183 (process_structure_scope read_subroutine_type): Ditto.
11184 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11185 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11186 (dwarf2_fetch_die_location_block): Ditto.
11187 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11189 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11190 All callers updated.
11191 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11192 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11193 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11195 * dwarf2read.c (load_cu): Move assert to more useful location.
11197 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11198 All callers updated.
11200 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11201 (dwarf2_elf_names): Minor reformat.
11202 (dwarf2_per_cu_data): Tweak comment.
11203 (dwarf2_read_section): Fix comment.
11204 (create_all_comp_units): Fix comment.
11205 (load_full_comp_unit): Fix comment.
11206 (process_full_comp_unit): Fix comment.
11207 (read_signatured_type): Fix comment.
11209 For older changes see ChangeLog-2011.
11215 version-control: never