1 2012-11-09 Yao Qi <yao@codesourcery.com>
3 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
6 2012-11-09 Yao Qi <yao@codesourcery.com>
8 * breakpoint.c: Declare set_tracepoint_count.
9 (install_breakpoint): Call set_tracepoint_count if B is a
11 (trace_command): Don't call set_tracepoint_count. Re-indent.
12 (strace_command, ftrace_command):
13 (create_tracepoint_from_upload): Likewise.
15 2012-11-09 Pedro Alves <palves@redhat.com>
17 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
18 (get_target_gdbarch) <gdbarch.h>: New function.
19 (startup_gdbarch) <gdbarch.h>: Declare.
20 <gdbarch.c> (target_gdbarch): Delete.
21 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
22 current inferior's gdbarch.
23 <gdbarch.c> (get_target_gdbarch): New function.
24 * inferior.c: Include target-descriptions.h.
25 (free_inferior): Free target description info.
26 (add_inferior_with_spaces): Set the inferior's initial
28 (clone_inferior_command): Copy the original inferior's target
29 description if it was user specified.
30 (initialize_inferiors): Add comment.
31 * inferior.h (struct target_desc_info): Forward declare.
32 (struct inferior) <gdbarch>: New field.
33 * linux-nat.c: Include target-descriptions.h.
34 (linux_child_follow_fork): Copy the parent's architecture and
35 target description to the child.
36 * target-descriptions.c: Include inferior.h.
37 (struct target_desc_info): New structure, holding the equivalents
39 (target_desc_fetched, current_target_desc)
40 (target_description_filename): ... these removed globals.
41 (get_tdesc_info, target_desc_info_from_user_p)
42 (copy_inferior_target_desc_info, target_desc_info_free): New.
43 (target_desc_fetched, current_target_desc)
44 (target_description_filename): Reimplemented as convenience
46 (tdesc_filename_cmd_string): New global.
47 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
48 tdescs filename ..." commands to the per-inferior equivalent.
49 (show_tdesc_filename_cmd): Get the value to show from the
50 per-inferior description filename.
51 (_initilize_target_descriptions): Change the "set/show tdesc
52 filename" commands' variable.
53 * target-descriptions.h (struct target_desc, struct target_desc_info)
54 (struct inferior): Forward declare.
55 (target_find_description, target_clear_description)
56 (target_current_description): Adjust comments.
57 (copy_inferior_target_desc_info, target_desc_info_free)
58 (target_desc_info_from_user_p). Declare.
60 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
62 * tui/tui-hooks.c (tui_about_to_proceed): New function.
63 (tui_target_wait_hook): Remove.
64 (tui_install_hooks): Install the about_to_proceed observer.
65 (tui_remove_hooks): And remove it here.
67 2012-11-08 Tom Tromey <tromey@redhat.com>
69 * linux-tdep.c (linux_make_siginfo_note): New function.
70 (linux_make_corefile_notes): Use it.
71 * corelow.c (get_core_siginfo): New function.
72 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
74 2012-11-08 Tom Tromey <tromey@redhat.com>
77 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
78 (zlib_decompress_section): Remove.
79 (gdb_bfd_map_section): Only check for compressed section
80 in mmap case. Use bfd_get_full_section_contents.
81 * osabi.c (check_note): Add 'sectsize' argument. Read
83 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
84 section data. Update for check_note change.
85 * xcoffread.c (xcoff_initial_scan): Use
86 bfd_get_full_section_contents.
87 * py-auto-load.c (auto_load_section_scripts): Use
88 bfd_get_full_section_contents.
89 * contrib/cc-with-tweaks.sh: Add -Z option.
91 2012-11-08 Tom Tromey <tromey@redhat.com>
93 * python/py-bpevent.c: Include defs.h.
94 * python/py-continueevent.c: Include defs.h.
95 * python/py-event.c: Include defs.h.
96 * python/py-event.h: Don't include defs.h.
97 * python/py-events.h: Don't include defs.h.
98 * python/py-evts.c: Include defs.h.
99 * python/py-exitedevent.c: Include defs.h.
100 * python/py-newobjfileevent.c: Include defs.h.
101 * python/py-signalevent.c: Include defs.h.
102 * python/py-stopevent.c: Include defs.h.
103 * python/py-threadevent.c: Include defs.h.
105 2012-11-08 Pierre Muller <muller@sourceware.org>
107 * update-web-ari.sh (print_heading): Add number of files
109 (nb_files): New variable counting the number of sources
110 files found by gdb_find.sh script.
111 (debug_awk): New variable to allow extra debug output.
112 (indexes): Add more information if DEBUG_AWK is set.
114 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
116 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
117 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
118 following the change in PLT call stubs on linker.
120 2012-11-08 Pierre Muller <muller@sourceware.org>
122 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
124 (AWK): Use = instead of == for sh test to avoid warning.
125 (Linux rule): Correct [:digit] into [[:digit:]].
126 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
127 (vasprintf rule): Adapt to common subdirectory moves.
128 (xasprintf rule): Idem.
129 (xvasprintf rule): Idem.
130 (var_boolean rule): Accept occurence in == or != test.
132 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
134 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
136 * tui/tui-hooks.c (tui_inferior_exit): New function.
137 (tui_detach_hook): Remove.
138 (tui_install_hooks): Install the inferior exit observer.
139 (tui_remove_hooks): Remove it.
141 2012-11-08 Yao Qi <yao@codesourcery.com>
144 * source.c (_initialize_source): Call add_com_alias to abbreviate
145 'forward-search' as 'fo'.
147 2012-11-07 Pedro Alves <palves@redhat.com>
149 * arm-tdep.c: Make defs.h be the first include.
150 * coff-pe-read.c: Ditto.
154 * ppcnbsd-nat.c: Ditto.
155 * ada-varobj.h: Don't include defs.h.
156 * i386-darwin-tdep.h: Ditto.
159 2012-11-07 Pedro Alves <palves@redhat.com>
161 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
164 2012-11-07 Pierre Muller <muller@sourceware.org>
166 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
167 File already uses "gdb_dirent.h" header.
169 2012-11-07 Yao Qi <yao@codesourcery.com>
171 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
174 2012-11-06 Tom Tromey <tromey@redhat.com>
176 * target.h (inferior_has_forked, inferior_has_vforked)
177 (inferior_has_execd, inferior_has_called_syscall): Remove
180 2012-11-06 Pierre Muller <muller@sourceware.org>
182 * remote.c (remote_insert_hw_breakpoint): ARI fix,
183 add missing internalization markup.
185 2012-11-06 Pedro Alves <palves@redhat.com>
189 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
191 2012-11-06 Pierre Muller <muller@sourceware.org>
193 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
196 2012-11-05 Joel Brobecker <brobecker@adacore.com>
198 * gnulib/update-gnulib.sh: New script.
200 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
202 * MAINTAINERS: Update my email address.
204 2012-11-05 Tom Tromey <tromey@redhat.com>
206 * frame.c (put_frame_register): Don't use temporary buffer.
208 2012-11-05 Pedro Alves <palves@redhat.com>
210 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
211 child. Clear 'pending_detach'.
212 * infrun.c (handle_vfork_child_exec_or_exit): Clear
213 'pending_detach' in the vfork parent.
215 2012-11-05 Doug Evans <dje@google.com>
217 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
218 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
219 * dwarf2read.c: #include "elf-bfd.h".
220 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
221 (dwop_section_names): Renamed from dwo_section names. All uses
222 updated. Add entries for .debug_cu_index, .debug_tu_index.
223 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
225 (struct dwp_sections): New type.
226 (struct virtual_dwo_sections): New type.
227 (struct dwp_hash_table): New type.
228 (struct dwp_file): New type.
229 (init_cutu_and_read_dies): Ensure DWO info/types section has been
230 read in. Handle DWOs coming from DWP files.
231 (lookup_dwo_file_slot): New function.
232 (dwarf2_locate_dwo_sections): Move definition closer to use.
233 (create_dwo_debug_info_hash_table_reader): Renamed from
234 create_debug_info_hash_table_reader. All callers updated.
235 (create_dwo_debug_info_hash_table): Renamed from
236 create_debug_info_hash_table. All callers updated.
237 (create_dwp_hash_table): New function.
238 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
239 (lookup_dwo_in_dwp): New function.
240 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
241 is_dwp. All callers updated.
242 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
243 (open_and_init_dwo_file): Renamed from init_dwo_file.
245 (lookup_dwo_file): Delete.
246 (dwarf2_locate_dwp_sections): New function.
247 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
248 (allocate_dwp_loaded_cutus_table): New function.
249 (open_and_init_dwp_file): New function.
250 (lookup_dwo_cutu): New function.
251 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
253 2012-11-03 Yao Qi <yao@codesourcery.com>
256 * breakpoint.c (trace_pass_set_count): Call
257 observer_notify_breakpoint_modified instead of
258 observer_notify_tracepoint_modified.
259 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
261 2012-11-02 Tom Tromey <tromey@redhat.com>
263 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
264 argument to complete_on_enum.
266 2012-11-02 Tom Tromey <tromey@redhat.com>
268 * configure: Rebuild.
269 * configure.ac (build_warnings): Add -Wempty-body.
270 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
271 * remote.c (handle_notification): Use braces for empty 'else' body.
272 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
274 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
276 * solib-som.c (som_relocate_section_addresses): Use braces
277 for empty 'else' body.
278 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
279 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
281 2012-11-02 Pedro Alves <palves@redhat.com>
285 * infrun.c (handle_inferior_event)
286 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
287 null_ptid before handling a vfork child exec or exit. Switch to
288 the event ptid afterwards.
290 2012-11-02 Yao Qi <yao@codesourcery.com>
292 * std-operator.def: Remove OP_LABELED.
293 * eval.c: Remove the declaration of 'get_label'.
295 (evaluate_struct_tuple): Remove code handling OP_LABELED.
297 Remove local variable 'variantno' and related code.
298 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
300 * expprint.c (print_subexp_standard): Likewise.
301 (dump_subexp_body_standard): Likewise.
302 * parse.c (operator_length_standard): Likewise.
304 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
306 Incorporate ARI web page generator into GDB sources.
307 * contrib/ari/create-web-ari-in-src.sh: New file.
308 * contrib/ari/gdb_ari.sh: New file.
309 * contrib/ari/gdb_find.sh: New file.
310 * contrib/ari/update-web-ari.sh: New file.
312 2012-10-31 Tom Tromey <tromey@redhat.com>
314 * gdbarch.c: Rebuild.
315 * gdbarch.sh: Remove references to gdbarch_swap.
316 * corelow.c (core_open): Remove obsolete comment.
318 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
321 * c-typeprint.c (c_print_type): Don't print a space for vector
322 types, this is handled within the suffix.
323 (c_type_print_varspec_suffix): Add a space to vector suffix.
325 2012-10-26 Pedro Alves <palves@redhat.com>
327 * amd64-tdep.c (amd64_relocate_instruction): Use
328 store_unsigned_integer instead of memcpy.
329 * i386-tdep.c (i386_relocate_instruction): Ditto.
331 2012-10-26 Pedro Alves <palves@redhat.com>
333 * infrun.c (handle_inferior_event): Merge handling of
334 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
337 2012-10-26 Pedro Alves <palves@redhat.com>
339 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
342 2012-10-26 Pedro Alves <palves@redhat.com>
344 * target.c (target_waitstatus_to_string): Handle
345 TARGET_WAITKIND_VFORK_DONE.
347 2012-10-26 Pedro Alves <palves@redhat.com>
349 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
350 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
352 2012-10-24 Tristan Gingold <gingold@adacore.com>
354 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
357 2012-10-24 Joel Brobecker <brobecker@adacore.com>
359 * ravenscar-thread.c (ravenscar_wait): Only update the list
360 of threads and inferior_ptid if the inferior is still alive.
362 2012-10-24 Joel Brobecker <brobecker@adacore.com>
364 * ada-lang.c (is_known_support_routine): Use lbasename when
365 matching the symtab's filename against
366 known_runtime_file_name_patterns.
368 2012-10-24 Joel Brobecker <brobecker@adacore.com>
370 * ada-lang.c (ada_same_array_size_p): New function.
371 (ada_promote_array_of_integrals): New function.
372 (coerce_for_assign): Add handling of arrays where the elements
373 are integrals of a smaller size than the size of the target
376 2012-10-24 Joel Brobecker <brobecker@adacore.com>
378 * doublest.c (convert_doublest_to_floatformat): Fix comparison
379 against maximum exponent value.
381 2012-10-24 Joel Brobecker <brobecker@adacore.com>
383 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
386 2012-10-24 Joel Brobecker <brobecker@adacore.com>
388 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
389 strip typedef layer when computing the fixed type's field type,
390 only when computing its size.
392 2012-10-24 Mark Kettenis <kettenis@gnu.org>
395 * i386-tdep.c (i386_return_value): Handle complex double and long
398 2012-10-24 Joel Brobecker <brobecker@adacore.com>
400 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
401 New local variable args_len.
402 Quote the name of the executable when computing the command line.
404 2012-10-23 Mark Kettenis <kettenis@gnu.org>
409 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
411 * amd64-tdep.c (amd64_classify): Classify complex types.
412 (amd64_return_value): Handle the COMPLEX_X87 class.
414 2012-10-23 Joel Brobecker <brobecker@adacore.com>
416 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
417 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
419 2012-10-23 Joel Brobecker <brobecker@adacore.com>
421 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
423 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
424 to amd64_windows_auto_wide_charset.
426 2012-10-23 Yao Qi <yao@codesourcery.com>
428 * event-top.c (mark_async_signal_handler_wrapper): Remove.
429 * event-top.h: Remove its declaration.
430 (async_request_quit): Call mark_async_signal_handler instead of
431 mark_async_signal_handler_wrapper.
432 (async_do_nothing, async_disconnect): Likewise.
433 (async_stop_sig): Likewise.
434 * remote.c (handle_remote_sigint): Likewise.
435 (handle_remote_sigint_twice): Likewise.
437 2012-10-23 Yao Qi <yao@codesourcery.com>
439 * event-top.c (sigint_token, sighup_token): Replace 'void *'
440 with 'static struct async_signal_handler *'.
441 (sighup_token, sigquit_token, sigstp_token): Likewise.
443 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
445 * gdbarch.sh (function_list): Use 'pstring' when printing
446 a variable which could return NULL.
447 * gdbarch.c: Regenerate.
449 2012-10-10 Joel Brobecker <brobecker@adacore.com>
450 Tom Tromey <tromey@redhat.com>
452 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
453 inneffective if condition by gdb assertion. Add function
456 2012-10-19 Joel Brobecker <brobecker@adacore.com>
458 * parser-defs.h (struct exp_descriptor): Document constraint
459 on return value for "op_name" callbacks.
461 2012-10-18 Tom Tromey <tromey@redhat.com>
463 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
464 * symtab.c (iterate_over_some_symtabs): Constify.
465 * source.h (symtab_to_fullname): Return 'const char *'.
466 * source.c (symtab_to_fullname): Return 'const char *'.
467 * python/py-symtab.c (stpy_fullname): Constify.
468 * cli/cli-cmds.c (edit_command): Constify.
469 * breakpoint.c (print_breakpoint_location)
470 (update_static_tracepoint): Constify.
472 2012-10-18 Tom Tromey <tromey@redhat.com>
474 * breakpoint.c (compare_breakpoints): Fix comparison.
476 2012-10-18 Tom Tromey <tromey@redhat.com>
478 * valprint.c (generic_emit_char, generic_printstr): Pass size of
479 gdb_wchar_t to convert_between_encodings.
481 2012-10-17 Yao Qi <yao@codesourcery.com>
483 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
484 more parameter 'inferior'.
485 * corefile.c (write_memory_with_notification): Caller update.
487 * mi/mi-cmd-var.c: Include "mi-main.h".
488 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
489 to 1 and restore it later.
490 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
491 and "data-write-memory-bytes.
492 * mi/mi-interp.c: Include objfiles.h.
493 (mi_interpreter_init): Call observer_attach_memory_changed.
494 (mi_memory_changed): New.
495 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
498 * NEWS: Mention new MI notification "memory-changed".
500 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
502 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
504 2012-10-15 Doug Evans <dje@google.com>
506 New option -nh: inhibit loading of ~/.gdbinit.
508 * main.c (captured_main): Recognize and process -nh.
509 (print_gdb_help): Mention -nh.
510 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
512 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
516 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
518 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
519 nor pc_regnum_from_eax.
520 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
521 nor pc_regnum_from_eax.
523 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
525 Fix entry values resolving in inlined frames.
526 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
527 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
530 2012-10-15 Joel Brobecker <brobecker@adacore.com>
532 * configure.ac: Build with -DMS_WIN64 if building with Python
533 enabled using GCC on amd64-windows.
534 * configure: Regenerate.
536 2012-10-15 Tom Tromey <tromey@redhat.com>
539 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
542 2012-10-15 Tom Tromey <tromey@redhat.com>
545 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
547 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
549 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
550 reset thread numbering back to 1.
552 2012-10-11 Doug Evans <dje@google.com>
554 PR breakpoints/14643.
555 * linespec.c (struct ls_parser): New member keyword_ok.
556 (linespec_lexer_lex_string): Add comment.
557 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
559 (parse_linespec): Set keyword_ok.
561 2012-10-10 Doug Evans <dje@google.com>
563 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
564 "0x" prefix on address in log message.
566 * dwarf2read.c (read_1_byte): Add const to buf parameter.
567 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
568 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
569 (lookup_dwo_file): Add const to dwo_name parameter.
570 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
572 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
574 Fix crash during stepping on ppc32.
575 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
578 2012-10-03 Doug Evans <dje@google.com>
581 * buildsym.c (buildsym_init): Reset using_directives to NULL.
583 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
585 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
586 output and use uint32_t not long to ensure 4 byte size.
588 2012-10-02 Joel Brobecker <brobecker@adacore.com>
590 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
593 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
595 * target.c (simple_search_memory): Include access length in
598 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
599 Edjunior Machado <emachado@linux.vnet.ibm.com>
602 * solib.c (solib_find): Prevent GDB from loading native libraries when
603 debugging a cross-target corefile.
605 2012-09-28 selven <pcthegreat@gmail.com>
607 Make definition match declaration.
609 * regcache.c (regcache_register_status): Change return type to
610 enum register_status.
612 2012-09-28 Yao Qi <yao@codesourcery.com>
614 * mi/mi-main.c (mi_cmd_data_write_memory): Call
615 write_memory_with_notification instead of write_memory.
616 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
617 instead of target_write_memory.
619 2012-09-28 Yao Qi <yao@codesourcery.com>
621 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
622 when the length of content is not an even number.
624 2012-09-27 Tom Tromey <tromey@redhat.com>
626 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
627 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
629 2012-09-27 Joel Brobecker <brobecker@adacore.com>
631 * sol-thread.c (sol_thread_fetch_registers)
632 (sol_thread_store_registers): Delete commented out code.
634 2012-09-27 Joel Brobecker <brobecker@adacore.com>
636 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
637 Move these functions to sparc-sol-thread.c.
638 * sparc-sol-thread.c: New file.
639 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
640 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
642 * configure: Regenerate.
644 2012-09-27 Joel Brobecker <brobecker@adacore.com>
646 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
647 Remove commented-out code.
649 2012-09-27 Joel Brobecker <brobecker@adacore.com>
651 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
652 Enable this code for sparc hosts only.
654 2012-09-27 Joel Brobecker <brobecker@adacore.com>
656 * procfs.h (procfs_find_LDT_entry): Add declaration.
657 * sol-thread.c (ps_lgetLDT): Delete local declaration of
658 function procfs_find_LDT_entry.
660 2012-09-27 Joel Brobecker <brobecker@adacore.com>
662 * procfs.c (proc_get_LDT_entry): Make static.
664 2012-09-27 Joel Brobecker <brobecker@adacore.com>
666 * procfs.c (proc_find_memory_regions): Fix declaration.
668 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
670 * amd64-tdep.c (amd64_return_value): Revert previous change
671 that used TYPE_LENGTH directly.
672 * bfin-tdep.c (bfin_extract_return_value): Likewise.
673 (bfin_store_return_value): Likewise.
674 * cris-tdep.c (cris_store_return_value): Likewise.
675 (cris_extract_return_value): Likewise.
676 * h8300-tdep.c (h8300_extract_return_value): Likewise.
677 * hppa-tdep.c (hppa64_return_value): Likewise.
678 * lm32-tdep.c (lm32_store_return_value): Likewise.
679 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
680 * spu-tdep.c (spu_value_from_register): Likewise.
681 * vax-tdep.c (vax_return_value): Likewise.
683 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
685 * gdbtypes.c (lookup_array_range_type): Expand parameters
686 LOW_BOUND and HIGH_BOUND to LONGEST.
687 (lookup_string_range_type): Likewise.
688 * gdbtypes.h (lookup_array_range_type): Likewise.
689 (lookup_string_range_type): Likewise.
690 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
691 Expand HIGHBOUND to ssize_t.
692 (value_string): Likewise.
693 * value.h (value_cstring): Expand parameter LEN to ssize_t.
694 (value_string): Likewise.
696 2012-09-27 Yao Qi <yao@codesourcery.com>
699 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
700 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
703 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
705 * procfs.c: Add gdb_bfd header.
706 * rs6000-nat.c: Likewise.
707 * solib-pa64.c: Likewise.
708 * spu-linux-nat.c: Likewise.
709 * windows-nat.c: Likewise.
711 2012-09-26 Tom Tromey <tromey@redhat.com>
713 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
715 2012-09-26 Tom Tromey <tromey@redhat.com>
717 * dwarf2read.c (mark_common_block_symbol_computed): New function.
718 (read_common_block): Handle child DIEs with
719 DW_AT_data_member_location.
720 (new_symbol_full): Add special case for common blocks.
722 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
723 Tom Tromey <tromey@redhat.com>
725 * dwarf2read.c (read_common_block): Rewrite.
726 (new_symbol_full): Handle DW_TAG_common_block.
727 * f-lang.c (head_common_list, find_common_for_function):
729 * f-lang.h (struct common_entry, struct saved_f77_common,
730 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
731 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
732 BLANK_COMMON_NAME_LOCAL): Remove.
733 (struct common_block): New.
734 * f-valprint.c (list_all_visible_commons): Remove.
735 (info_common_command_for_block): New function.
736 (info_common_command): Use it.
737 * stack.c (iterate_over_block_locals): Special case for
739 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
741 (struct general_symbol_info) <value.common_block>: New field.
742 (SYMBOL_VALUE_COMMON_BLOCK): New define.
744 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
745 Tom Tromey <tromey@redhat.com>
747 * f-lang.c (allocate_saved_bf_node,
748 allocate_saved_function_node, allocate_saved_f77_common_node,
749 allocate_common_entry_node, tail_common_list, current_common,
750 saved_bf_list, saved_bf_list_end, current_head_bf_list,
751 tmp_bf_ptr, add_common_block, add_common_entry,
752 find_first_common_named, patch_common_entries,
753 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
754 global_remote_debug, get_bf_for_fcn, saved_function_list,
755 saved_function_list_end, clear_function_list, struct saved_fcn,
756 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
757 SAVED_BF, SAVED_BF_PTR): Remove.
758 * f-lang.h (tail_common_list, current_common,
759 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
760 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
761 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
762 real_main_c_value): Remove.
763 * f-valprint.c (there_is_a_visible_common_named): Remove.
765 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
767 * breakpoint.c (update_global_location_list): Ignore previous
768 duplicate status of a breakpoint when starting a new scan for
769 duplicate breakpoints.
771 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
773 * arm-tdep.c (arm_skip_prologue): Extending producer check to
774 support LLVM compiler.
776 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
778 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
779 * bfin-tdep.c (bfin_extract_return_value): Likewise.
780 (bfin_store_return_value): Likewise.
781 * cris-tdep.c (cris_store_return_value): Likewise.
782 (cris_extract_return_value): Likewise.
783 * h8300-tdep.c (h8300_extract_return_value): Likewise.
784 * hppa-tdep.c (hppa64_return_value): Likewise.
785 * lm32-tdep.c (lm32_store_return_value): Likewise.
786 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
787 * spu-tdep.c (spu_value_from_register): Likewise.
788 * vax-tdep.c (vax_return_value): Likewise.
790 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
792 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
793 parameter LEN to ssize_t.
795 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
797 * ada-valprint.c (ada_val_print_1): Eliminate single-use
799 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
801 (alpha_store_return_value): Likewise.
802 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
803 (amd64_push_arguments): Likewise.
804 * ax-gdb.c (gen_trace_static_fields): Likewise.
805 (gen_traced_pop): Likewise.
806 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
807 * breakpoint.c (update_watchpoint): Likewise.
808 * findcmd.c (parse_find_args): Use local variable for type
810 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
811 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
812 (h8300_store_return_value): Likewise.
813 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
814 Use i386_darwin_arg_type_alignment directly.
815 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
816 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
817 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
818 (m68hc11_extract_return_value): Likewise.
819 * mep-tdep.c (mep_push_dummy_call): Likewise.
820 * printcmd.c (float_type_from_length): Likewise.
821 * s390-tdep.c (s390_value_from_register): Likewise.
822 * stack.c (read_frame_arg): Likewise.
823 * tracepoint.c (encode_actions_1): Likewise.
824 * valops.c (value_fetch_lazy): Use local variable for type
825 instead of length. Use TYPE_LENGTH directly.
826 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
828 2012-09-25 Joel Brobecker <brobecker@adacore.com>
830 * symtab.c (skip_prologue_sal): Fix typo in comment.
832 2012-09-25 Joel Brobecker <brobecker@adacore.com>
834 * linespec.c (create_sals_line_offset): Fix typo in comment.
836 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
838 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
839 use plongest to print the array size.
841 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
843 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
844 * p-valprint.c (pascal_type_print_base): Likewise.
846 2012-09-22 Yao Qi <yao@codesourcery.com>
848 * remote.c (remote_get_trace_status): Remove setting default
849 values of fields of 'ts'.
851 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
853 Fix internal error on canonicalization of clang types.
854 * cp-name-parser.y (operator): New comment at make_operator call for
855 new, delete, new[] and delete[].
856 (exp): Use "sizeof ". Add new comment at make_operator call.
858 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
860 Fix disassemble without parameters in tailcall frame.
861 * cli/cli-cmds.c (disassemble_current_function): Use
862 get_frame_address_in_block.
864 2012-09-21 Tom Tromey <tromey@redhat.com>
866 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
867 TYPE_CODE_UNION>: Unify, removing a goto.
869 2012-09-21 Tom Tromey <tromey@redhat.com>
871 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
873 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
875 * findvar.c (read_frame_register_value): Mark the result value as
876 optimized out if any of the input registers have been optimized out.
878 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
880 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
882 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
884 * eval.c (evaluate_subexp_standard): Eliminate single-use
887 2012-09-21 Yao Qi <yao@codesourcery.com>
889 * mi/mi-interp.c: Declare mi_record_changed.
890 (mi_interpreter_init): Call observer_attach_record_changed.
891 (mi_record_changed): New.
892 * record.c (record_open): Call observer_notify_record_changed.
893 (cmd_record_stop): Call observer_notify_record_changed.
896 2012-09-20 Tom Tromey <tromey@redhat.com>
899 * python/python.c (finalize_python): New function.
900 (_initialize_python): Make a final cleanup.
902 2012-09-19 Doug Evans <dje@google.com>
904 * buildsym.h (param_symbols): Delete, unused.
905 (context_stack): Delete member "params", unused.
906 * buildsym.c (push_context): Update.
907 * dwarf2read.c (read_func_scope): Update.
909 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
911 * sh-tdep.c (sh_register_convert_to_virtual)
912 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
913 all callers. Just do a memcpy if not the little-endian case.
915 * h8300-tdep.c (h8300_gdbarch_init): Invoke
916 set_gdbarch_double_format and set_gdbarch_long_double_format.
917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
918 set_gdbarch_double_format.
919 * sh-tdep.c (sh_gdbarch_init): Likewise.
921 * NEWS: Document the removal of SH's 'regs' command.
922 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
925 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
927 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
930 2012-09-18 Joel Brobecker <brobecker@adacore.com>
932 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
933 language when iterating over symbols.
935 2012-09-18 Yao Qi <yao@codesourcery.com>
937 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
938 (mi_interpreter_init): Call observer_attach_tsv_created and
939 observer_attach_tsv_deleted.
940 (mi_tsv_created, mi_tsv_deleted): New.
941 * tracepoint.c (delete_trace_state_variable): Call
942 observer_notify_tsv_deleted.
943 (trace_variable_command): Call observer_notify_tsv_created.
944 (delete_trace_variable_command): Call
945 observer_notify_tsv_deleted.
946 (create_tsv_from_upload): Call observer_notify_tsv_created.
949 2012-09-18 Yao Qi <yao@codesourcery.com>
951 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
952 if traceframe changed.
953 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
955 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
956 (mi_interpreter_init): Hook mi_traceframe_changed to observer
957 'traceframe_changed'.
958 (mi_traceframe_changed): New.
959 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
961 * NEWS: Mention the new MI notification.
963 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
965 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
967 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
969 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
970 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
971 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
972 Extend code also for PaX support. Convert all gdb_assert to warning
975 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
977 Implement auto-load user conveniences suggested by Doug Evans.
978 * auto-load.c: Include top.h.
979 (file_is_auto_load_safe): New variable advice_printed. Print advice.
980 (_initialize_auto_load): New variable scripts_directory_help. Mention
981 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
982 scripts-directory. Document in online help one can use also files for
983 set auto-load safe-path.
984 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
985 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
987 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
989 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
992 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
994 * m2-valprint.c (m2_print_array_contents): Eliminate variable
995 ELTLEN and use TYPE_LENGTH directly.
996 (m2_val_print): Likewise.
997 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
998 variable LEN and use TYPE_LENGTH directly.
999 (m68k_svr4_store_return_value): Likewise.
1000 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1001 ARGLEN and use TYPE_LENGTH directly.
1002 (mips_o64_push_dummy_call): Likewise.
1003 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1004 variable LENGTH and use TYPE_LENGTH directly.
1005 (s390_function_arg_float): Likewise.
1006 (s390_function_arg_integer): Likewise.
1007 (s390_push_dummy_call): Likewise.
1008 (s390_return_value_convention): Likewise.
1009 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1010 TYPE_LENGTH directly.
1012 2012-09-17 Yao Qi <yao@codesourcery.com>
1014 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1015 Update comment to add_setshow_integer_cmd.
1016 * cli/cli-setshow.c (do_set_command): Handle case
1017 'var_zuinteger_unlimited'.
1018 (do_show_command): Likewise.
1019 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1020 for command 'remotetimeout'.
1021 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1023 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1024 for command 'set listsize'.
1026 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1028 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1031 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1035 (frame_pop): Drop also TAILCALL_FRAME frames.
1036 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1038 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1039 Pedro Alves <palves@redhat.com>
1042 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1043 function start if we are already at function start. Both for
1044 reverse-next and for reverse-step into function without line number
1047 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1049 Code cleanup - rename 'inline' depth to 'artificial' depth.
1050 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1051 frame_id_artificial_p, extend the comment.
1052 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1053 * frame.c (fprint_frame_id): Rename at a user, change debug output
1054 text to "artificial=".
1055 (skip_inlined_frames): Rename to ...
1056 (skip_artificial_frames): ... here. Extend the comment.
1057 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1058 (frame_id_inlined_p): Rename to ...
1059 (frame_id_artificial_p): ... here. Rename at a user.
1060 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1061 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1063 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1065 (frame_id_inlined_p): Rename to ...
1066 (frame_id_artificial_p): ... here.
1067 * inline-frame.c (inline_frame_this_id): Rename at a user.
1069 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1071 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1072 vector variables using vector_size syntax rather than array
1075 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1077 * valarith.c (value_concat): Replace unsafe ALLOCA with
1080 2012-09-14 Pedro Alves <palves@redhat.com>
1082 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1084 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1086 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1087 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1088 data-directory as appropriate.
1090 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1092 * printcmd.c (ui_printf): Eliminate single-use variable
1095 2012-09-14 Yao Qi <yao@codesourcery.com>
1096 Pedro Alves <palves@redhat.com>
1098 * valops.c (value_assign): Move observer_notify_target_changed
1099 below to replace reinit_frame_cache.
1101 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1103 Refactor Python "gdb" module into a proper Python package, by
1104 introducing a new "_gdb" module for code implemented in C, and
1105 using reload/__import__ instead of exec.
1106 * python/lib/gdb/__init__.py: Import * from _gdb.
1107 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1108 prompt_hook, sys.argv): Moved from finish_python_initialization.
1109 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1110 (packages, auto_load_packages): New list and function replacing
1111 module_dict and auto-loading code, using __file__ instead of
1112 gdb.PYTHONDIR and reload/__import__ instead of exec.
1113 (GdbSetPythonDirectory): Replacing function of the same name
1114 from finish_python_initialization, using reload/__import__ instead
1115 of exec, as well as call auto_load_packages.
1116 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1117 gdb_python_module and not gdb_module.
1118 * python/python-internal.h (gdb_python_module): Declare.
1119 * python/python.c (gdb_python_module): New global.
1120 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1121 (_initialize_python): Rename gdb module to _gdb.
1122 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1123 (finish_python_initialization): Move Python code to
1124 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1127 2012-09-13 Pedro Alves <palves@redhat.com>
1129 * Makefile.in (COMMON_OBS): Add registry.o.
1130 * registry.c: New file.
1131 * registry.h (struct registry_container): Declare.
1132 (registry_data_callback): New typedef.
1133 (struct registry_data, struct registry_data_registration, struct
1134 registry_data_registry): New type.
1135 (register_data_with_cleanup, registry_alloc_data)
1136 (registry_callback_adaptor, registry_clear_data)
1137 (registry_container_free_data, registry_set_data, registry_data):
1139 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1140 the new common structures and functions.
1141 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1144 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1146 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1147 there is an error inserting hardware breakpoints and use the
1148 error message from the target.
1150 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1151 Catch this exception and print the error message contained within. Do not
1152 print the default hardware error breakpoint message in this case.
1154 2012-09-12 Doug Evans <dje@google.com>
1156 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1159 2012-09-11 Doug Evans <dje@google.com>
1161 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1162 .gdb_index symbol attributes if there are none.
1164 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1166 * symtab.h (struct minimal_symbol) [has_size]: New field.
1167 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1168 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1169 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1170 minimal symbols if the symbol's size is actually known.
1171 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1172 of msymbol's size field. Add comment.
1173 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1174 SET_MSYMBOL_SIZE to set the minimal symbol size.
1176 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1178 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1179 minimal_symbol struct object, rather than setting some of its
1182 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1184 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1185 passed_a_ptr flag when displaying typedef types.
1187 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1189 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1190 the optimized_out flag is preserved.
1192 2012-09-10 Anthony Green <green@moxielogic.com>
1194 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1195 prologue changes in GCC.
1197 2012-09-10 Keith Seitz <keiths@redhat.com>
1200 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1201 (BOOL_CONVERSION_BADNESS): ... this.
1202 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1203 (rank_one_type): Allow all boolean conversions
1204 permitted by the standard.
1206 2012-09-06 Tom Tromey <tromey@redhat.com>
1208 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1209 Don't decref py_objfile.
1211 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1213 Do not enable -lmcheck by default when Python is enabled with
1215 * configure.ac: (python_has_threads) New variable, by testing
1216 if WITH_THREAD is defined in Python.h.
1217 Move --enable-lmcheck after --with-python.
1218 Do not enable -lmcheck by default if python_has_threads=yes.
1219 Warn if --enable-lmcheck and python_has_threads=yes.
1220 * configure: Regenerate.
1222 2012-08-31 Yao Qi <yao@codesourcery.com>
1224 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1225 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1226 Update some commands.
1227 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1228 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1231 2012-08-31 Yao Qi <yao@codesourcery.com>
1233 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1235 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1237 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1239 2012-08-29 Doug Evans <dje@google.com>
1241 * main.c (print_gdb_help): Remove reference to
1242 --use-deprecated-index-sections.
1244 2012-08-28 Yao Qi <yao@codesourcery.com>
1246 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1247 (init_cmds): Call add_setshow_uinteger_cmd for command
1248 'max-user-call-depth'.
1249 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1250 declaration of 'max_user_call_depth'.
1251 * frame.c (backtrace_limit): Add 'unsigned'.
1252 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1254 * remote.c (remoteaddresssize): Add 'unsigned'.
1255 (remote_address_masked): Change local var 'address_size' to
1257 (_initialize_remote): Call add_setshow_uinteger_cmd for
1258 'remoteaddresssize'.
1259 * top.c (history_size): Add 'unsigned'.
1260 (show_commands): Change local variables to 'unsigned'.
1261 (set_history_size_command): Don't check history_size is negative.
1262 Adjust the condition to call unstifle_history and set history_size
1265 2012-08-28 Pedro Alves <palves@redhat.com>
1269 * infcmd.c (default_print_one_register_info): New, factored out
1270 from default_print_registers_info.
1271 (default_print_registers_info): Use it. Mark value unavailable if
1273 (registers_info): Print user registers with
1274 default_print_one_register_info.
1276 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1279 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1280 is not NULL before referencing it.
1282 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1284 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1285 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1288 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1289 Jan Kratochvil <jan.kratochvil@redhat.com>
1291 * auto-load.c (auto_load_objfile_script): Rename to ...
1292 (auto_load_objfile_script_1): ... here, change variable realname to
1293 parameter realname, document it, add return value, add variable retval.
1294 (auto_load_objfile_script): New function.
1296 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1298 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1299 followed by a whitespace.
1301 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1305 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1306 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1309 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1311 * memattr.c (create_mem_region): Fix memory region overlapping
1314 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1316 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1317 with xmalloc/cleanup.
1318 * mt-tdep.c (mt_push_dummy_call): Likewise.
1319 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1320 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1322 2012-08-24 Yao Qi <yao@codesourcery.com>
1324 * jv-exp.y (push_expression_name): Add "." at the end of error
1327 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1329 Document how to return from "python-interactive" to GDB.
1330 * python/python.c (_initialize_python): Update documentation.
1332 2012-08-23 Pedro Alves <palves@redhat.com>
1334 * infrun.c (_initialize_infrun) <handle command help text>:
1335 Mention that multiple signals are supported.
1337 2012-08-23 Pedro Alves <palves@redhat.com>
1339 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1342 2012-08-23 Yao Qi <yao@codesourcery.com>
1344 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1345 (tfind_1): Don't call registers_changed, set_traceframe_num,
1346 and clear_traceframe_info.
1347 Call set_current_traceframe.
1348 (set_current_traceframe): call set_traceframe_num.
1350 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1352 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1353 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1355 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1357 Enable readline in Python in a GDB-specific way and block the
1358 standard Python readline module to prevent conflicts with GDB.
1359 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1360 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1361 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1362 * python/py-gdb-readline.c: New file.
1363 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1365 * python/python.c (_initialize_python): Call
1366 gdbpy_initialize_gdb_readline.
1368 2012-08-22 Keith Seitz <keiths@redhat.com>
1370 * defs.h: Include build-gnulib/config.h
1372 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1374 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1377 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1379 Add a new "python-interactive" command that starts a standard
1380 Python interactive prompt with "pi" as alias, and add "py" as
1381 an alias to "python".
1382 * NEWS: Mention the new commands.
1383 * python/python.c (eval_python_command): New function.
1384 (python_interactive_command): For "python-interactive" with
1385 arguments, call eval_python_command. For "python-interactive"
1386 without arguments, call PyRun_InteractiveLoop.
1387 (_initialize_python): Add "python-interactive" command with
1388 "pi" as alias, and add "py" as an alias to "python".
1390 2012-08-22 Tom Tromey <tromey@redhat.com>
1392 * defs.h (quit_flag): Don't declare.
1393 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1394 (QUIT): Use new functions.
1395 * event-top.c (command_handler): Use clear_quit_flag.
1396 (handle_sigint): Use set_quit_flag.
1397 (async_request_quit): Use check_quit_flag. Don't check
1399 * exceptions.c (throw_exception): Use clear_quit_flag.
1400 * main.c (captured_main): Use clear_quit_flag.
1401 * python/python.c (clear_quit_flag, set_quit_flag)
1402 (check_quit_flag): New functions.
1403 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1405 * remote.c (remote_wait_as): Use check_quit_flag,
1407 (remote_start_remote): Call QUIT.
1408 * symfile.c (load_progress): Use check_quit_flag.
1409 * top.c (command_loop): Use clear_quit_flag.
1410 (command_line_input): Call QUIT.
1411 * utils.c (quit_flag): Conditionally define.
1412 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1414 (prompt_for_continue): Call QUIT. Use quit, not
1416 * remote-mips.c (mips_expect_timeout): Call QUIT.
1417 * monitor.c (monitor_expect): Call QUIT.
1419 2012-08-22 Tom Tromey <tromey@redhat.com>
1421 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1422 (async_init_signals): Update.
1423 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1424 (SIGWINCH_HANDLER_BODY): Remove.
1426 2012-08-22 Tom Tromey <tromey@redhat.com>
1428 * jit.c (jit_object_close_impl): Don't malloc the objfile
1430 * objfiles.c (allocate_objfile): Don't malloc the objfile
1432 (free_objfile): Don't free the objfile name.
1433 * objfiles.h (struct objfile) <name>: Update comment.
1434 * symfile.c (reread_symbols): Fix reference counting. Don't
1435 malloc objfile name.
1437 2012-08-22 Tom Tromey <tromey@redhat.com>
1439 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1440 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1441 (symfile_bfd_open): Likewise.
1442 (generic_load): Likewise.
1443 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1444 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1446 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1448 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1449 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1450 (pmon_load_fast): Likewise.
1451 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1452 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1453 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1454 (macho_check_dsym): Likewise.
1455 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1456 (m32r_upload_command): Likewise.
1457 * gdb_bfd.h (gdb_bfd_cache): Declare.
1458 * gdb_bfd.c (struct gdb_bfd_data): New.
1459 (gdb_bfd_cache): New global.
1460 (struct gdb_bfd_cache_search): New.
1461 (hash_bfd): New function.
1463 (gdb_bfd_open): Likewise.
1464 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1465 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1467 * exec.c (exec_file_attach): Use gdb_bfd_open.
1468 * dsrec.c (load_srec): Use gdb_bfd_open.
1470 2012-08-22 Tom Tromey <tromey@redhat.com>
1472 * dwarf2read.c (macro_start_file): Update.
1473 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1474 (free_objfile_per_bfd_storage): Destroy macro_cache.
1475 (allocate_objfile, free_objfile): Update.
1476 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1478 (struct objfile) <macro_cache>: Remove.
1479 * symfile.c (reread_symbols): Update.
1480 * symmisc.c (print_symbol_bcache_statistics): Update.
1481 (print_objfile_statistics): Update.
1483 2012-08-22 Tom Tromey <tromey@redhat.com>
1485 * elfread.c (elf_symtab_read): Update.
1486 * objfiles.c (objfiles_bfd_data): New global.
1487 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1488 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1489 (allocate_objfile, free_objfile): Update.
1490 (_initialize_objfiles): Initialize objfiles_bfd_data.
1491 * objfiles.h (struct objfile_per_bfd_storage): New.
1492 (struct objfile) <per_bfd>: New field.
1493 <filename_cache>: Remove.
1494 (set_objfile_per_bfd): Declare.
1495 * symfile.c (reread_symbols): Update. Call
1496 set_objfile_per_bfd.
1497 (allocate_symtab): Update.
1498 * symmisc.c (print_symbol_bcache_statistics): Update.
1499 (print_objfile_statistics): Print the size of the BFD obstack.
1501 2012-08-22 Tom Tromey <tromey@redhat.com>
1503 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1504 * gdb_bfd.c: Use DEFINE_REGISTRY.
1505 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1506 (gdb_bfd_ref): Call bfd_alloc_data.
1507 (gdb_bfd_unref): Call bfd_free_data.
1509 2012-08-22 Tom Tromey <tromey@redhat.com>
1511 * registry.h (struct registry_fields): New.
1512 (REGISTRY_FIELDS): Redefine.
1513 (REGISTRY_ACCESS_FIELD): New macro.
1514 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1517 2012-08-22 Tom Tromey <tromey@redhat.com>
1519 * auto-load.c (_initialize_auto_load): Update.
1520 * solib-svr4.c (_initialize_svr4_solib): Update
1521 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1522 * solib-darwin.c (_initialize_darwin_solib): Update.
1523 * registry.h: New file.
1524 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1525 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1526 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1527 (register_program_space_data_with_cleanup)
1528 (register_program_space_data, program_space_alloc_data)
1529 (clear_program_space_data, set_program_space_data)
1530 (program_space_data): Don't declare.
1531 * progspace.c: Use DEFINE_REGISTRY.
1532 (struct program_space_data, struct
1533 program_space_data_registration, struct
1534 program_space_data_registry, program_space_data_registry)
1535 (register_program_space_data_with_cleanup)
1536 (register_program_space_data, program_space_alloc_data)
1537 (program_space_free_data, clear_program_space_data)
1538 (set_program_space_data, program_space_data): Remove.
1539 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1540 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1541 (register_objfile_data_with_cleanup, register_objfile_data)
1542 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1544 * objfiles.c: Use DEFINE_REGISTRY.
1545 (struct objfile_data, struct objfile_data_registration, struct
1546 objfile_data_registry, objfile_data_registry)
1547 (register_objfile_data_with_cleanup, register_objfile_data)
1548 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1549 (set_objfile_data, objfile_data): Remove.
1550 (_initialize_objfiles): Update.
1551 * jit.c (_initialize_jit): Update.
1552 * inflow.c (_initialize_inflow): Update.
1553 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1554 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1555 (register_inferior_data_with_cleanup, register_inferior_data)
1556 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1558 * inferior.c: Use DEFINE_REGISTRY.
1559 (struct inferior_data, struct inferior_data_registration, struct
1560 inferior_data_registry, inferior_data_registry)
1561 (register_inferior_data_with_cleanup, register_inferior_data)
1562 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1563 (set_inferior_data, inferior_data): Remove.
1564 * auxv.c (_initialize_auxv): Update.
1565 * ada-lang.c (_initialize_ada_language): Update.
1566 * breakpoint.c (_initialize_breakpoint): Update.
1567 * i386-nat.c (i386_use_watchpoints): Update.
1569 2012-08-22 Tom Tromey <tromey@redhat.com>
1571 * exec.c (exec_close, exec_file_attach): Update.
1572 (add_to_section_table): Initialize 'key' field.
1573 (add_target_sections, remove_target_sections): Add 'key' argument.
1574 * exec.h (add_target_sections, remove_target_sections): Add
1576 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1577 (reload_shared_libraries_1): Update.
1578 * target.h (struct target_section) <key>: New field.
1580 2012-08-22 Tom Tromey <tromey@redhat.com>
1582 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1584 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1586 * symfile.c (allocate_symtab): Use host_address_to_string
1587 function instead of cast of pointer to long which is not
1588 compatible with x86_64-w64-mingw32 build.
1590 2012-08-19 Andrew Pinski <apinski@cavium.com>
1592 * mips-tdep.c (is_octeon): New function.
1593 (is_octeon_bbit_op): New function.
1594 (mips32_next_pc): Handle Octeon's bbit instructions.
1595 (mips32_instruction_has_delay_slot): Likewise.
1597 2012-08-19 Andrew Pinski <apinski@cavium.com>
1599 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1600 before the function.
1602 2012-08-19 Andrew Pinski <apinski@cavium.com>
1604 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1606 2012-08-19 Keith Seitz <keiths@redhat.com>
1609 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1610 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1612 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1614 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1615 The typo broke "make TAGS".
1617 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1621 2012-08-17 Keith Seitz <keiths@redhat.com>
1624 * gdbtypes.c (strict_type_checking): New variable.
1625 (show_strict_type_checking): New function.
1626 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1627 if strict type checking is disabled.
1628 (_initialize_gdbtypes): Add "check type" subcommand.
1629 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1631 2012-08-17 Keith Seitz <keiths@redhat.com>
1633 * language.h (type_mode): Remove.
1634 (type_check): Remove.
1635 (struct language_defn): Remove la_type_check.
1636 (STRICT_TYPE): Remove unused macro.
1637 (type_error): Remove.
1638 * language.c (set_type_range_case): Renamed to ...
1639 (set_range_case): ... this. Update all callers.
1640 Remove type_mode/type_check.
1641 (type_mode): Remove.
1642 (type_check): Remove.
1643 (show_type_command): Remove.
1644 (set_type_command): Remove.
1645 (language_info): Remove type checking output.
1646 (type_error): Remove unused function.
1647 (range_error): Update comment.
1648 (unknown_language_defn): Remove la_type_check.
1649 (auto_language_defn): Likewise.
1650 (local_language_defn): Likewise.
1651 (_initialize_language): Remove "check type" subcommand.
1652 * ada-lang.c (ada_language_defn): Remove la_type_check.
1653 * c-lang.c (c_language_defn): Likewise.
1654 (cplus_language_defn): Likewise.
1655 (asm_language_defn): Likewise.
1656 (minimal_language_defn): Likewise.
1657 * d-lang.c (d_language_defn): Likewise.
1658 * f-lang.c (f_language_defn): Likewise.
1659 * go-lang.c (go_language_defn): Likewise.
1660 * jv-lang.c (java_language_defn): Likewise.
1661 * m2-lang.c (m2_language_defn): Likewise.
1662 * objc-lang.c (objc_language_defn): Likewise.
1663 * opencl-lang.c (opencl_language_defn): Likewise.
1664 * p-lang.c (pascal_language_defn): Likewise.
1666 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1668 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1670 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1672 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1674 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1675 using the regache. Use ia64_hpux_get_register_from_save_state_t
1676 to access the bsp and bspstore registers if not.
1678 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1680 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1681 * breakpoint.c (detach_breakpoints): Change pid parameter into
1682 a ptid. Adjust code accordingly.
1683 * infrun.c (handle_inferior_event): Delete variable child_pid.
1684 Update call to detach_breakpoints to pass the child ptid for
1686 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1687 assert that inferior_ptid's lwp is zero.
1688 (linux_handle_extended_wait): Update call to detach_breakpoints.
1689 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1692 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1694 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1695 parent, only call detach_breakpoints if tts.tts_event ==
1698 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1700 * dwarf2-frame.c (dwarf2_frame_cache): Use
1701 get_frame_address_in_block instead of get_frame_pc as
1702 the bound for executing the frame's FDE.
1704 2012-08-16 Yao Qi <yao@codesourcery.com>
1706 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1707 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1708 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1709 (c_type_print_varspec_suffix): Likewise.
1710 * eval.c (evaluate_subexp_standard): Likewise.
1711 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1712 (f_type_print_varspec_suffix): Likewise.
1713 * gdbtypes.c (is_scalar_type): Likewise.
1714 (recursive_dump_type): Likewise.
1715 * infcall.c (value_arg_coerce): Likewise.
1716 * m2-valprint.c (m2_val_print): Likewise.
1717 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1718 (pascal_type_print_varspec_suffix): Likewise.
1719 (pascal_type_print_base): Likewise.
1720 * p-valprint.c (pascal_val_print): Likewise.
1721 (pascal_val_print): Likewise.
1722 * valops.c (value_slice): Likewise.
1723 * valprint.c (scalar_type_p): Likewise.
1724 * valarith.c (value_bitstring_subscript): Remove.
1725 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1726 Remove comment on TYPE_CODE_BITSTRING.
1728 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1729 TYPE_CODE_BITSTRING.
1731 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1734 2012-08-16 Yao Qi <yao@codesourcery.com>
1736 * tracepoint.c (trace_find_none_command): Remove.
1737 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1739 2012-08-16 Yao Qi <yao@codesourcery.com>
1741 * remote.c (handle_notification): Remove parameter 'length'.
1742 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1744 2012-08-15 Keith Seitz <keiths@redhat.com>
1746 * gdbtypes.c (opaque_type_resolution): Make static.
1747 Add missing comment.
1748 (overload_debug): Add missing comment.
1749 (show_opaque_type_resolution): Likewise.
1750 (show_overload_debug): Likewise.
1751 (print_bit_vector): Remove unnecessary forward declaration.
1752 (print_arg_types): Likewise.
1753 (dump_fn_fieldlists): Likewise.
1754 (print_cplus_stuff): Likewise.
1756 2012-08-15 Tom Tromey <tromey@redhat.com>
1758 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1759 (gdb_bfd_ref): Initialize new field.
1760 (gdb_bfd_unref): Unref the archive BFD.
1761 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1764 2012-08-15 Tom Tromey <tromey@redhat.com>
1767 * python/py-bpevent.c (create_breakpoint_event_object): Update
1769 * python/py-event.c (evpy_add_attribute): Update comment.
1770 * python/py-exitedevent.c (create_exited_event_object): Fix
1771 reference counting and error handling.
1772 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1773 Fix reference counting.
1774 * python/py-signalevent.c (create_signal_event_object): Fix
1775 reference counting and error handling.
1776 * python/py-stopevent.c (emit_stop_event): Fix reference
1778 * python/py-threadevent.c (get_event_thread): Return a
1780 * python/py-type.c (convert_field): Fix reference counting.
1782 2012-08-15 Tom Tromey <tromey@redhat.com>
1784 * dwarf2read.c (dwarf_decode_macro_bytes)
1785 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1788 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1790 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1791 stepi, nexti, finish, next, step, jump, and continue commands.
1792 * infrun.c (_initialize_infrun): Update help text for the handle
1795 2012-08-14 Doug Evans <dje@google.com>
1797 * gdbtypes.c (struct extra): Delete, unused.
1799 * gdbtypes.c: Whitespace cleanup.
1800 (address_space_name_to_int): Remove "extern" from definition.
1801 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1803 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1804 TYPE_POINTER_TYPE (type).
1806 2012-08-14 Gary Benson <gbenson@redhat.com>
1808 * solib-svr4.c (svr4_free_library_list): Use free_so.
1810 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1812 * .gitignore: Add go-exp.c.
1814 2012-08-13 Doug Evans <dje@google.com>
1816 * value.c (show_convenience): Tweak comment.
1817 (_initialize_values): Mention convenience functions in the help text
1818 for "show convenience".
1820 2012-08-13 Yao Qi <yao@codesourcery.com>
1822 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1823 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1825 * eval.c (evaluate_subexp_standard): Likewise.
1826 * expprint.c (print_subexp_standard): Likewise.
1827 (dump_subexp_body_standard): Likewise.
1828 * parse.c (operator_length_standard): Likewise.
1830 2012-08-13 Yao Qi <yao@codesourcery.com>
1832 * std-operator.def: Remove OP_BITSTRING.
1833 * breakpoint.c (watchpoint_exp_is_const): Update.
1834 * eval.c (evaluate_subexp_standard): Remove handling to
1836 * expprint.c (print_subexp_standard): Likewise.
1837 (dump_subexp_body_standard): Likewise.
1838 * parse.c (operator_length_standard): Likewise.
1839 * valops.c (value_bitstring): Remove.
1840 * value.h: Remove the declaration of 'value_bitstring'.
1842 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1844 * linespec.c (find_methods): Remove unused variables `i1' and
1846 (decode_line_full): Likewise for `arg_start'.
1848 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1850 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1851 (zlib_decompress_section): Likewise for `section_data'.
1852 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1854 2012-08-10 Doug Evans <dje@google.com>
1856 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1857 * NEWS: Document them.
1858 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1860 * python/py-type.c (typy_array_1): New function.
1861 (typy_array): Call it.
1862 (typy_vector): New function.
1863 (type_object_methods): Add "vector".
1864 * python/lib/gdb/function/__init__.py: New file.
1865 * python/lib/gdb/function/strfns.py: New file.
1867 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1869 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1870 for TYPE_FIELD_BITPOS.
1871 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1873 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1876 * common/vec.h (VEC_merge): Define.
1877 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1878 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1879 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1880 * completer.c: Include gdb_signals.h.
1881 (signal_completer): Define.
1882 * completer.h (signal_completer): Add prototype.
1883 * infcmd.c (_initialize_infcmd): Assign the command
1884 completer for "signal" to handle_completer.
1885 * infrun.c: Include completer.h.
1886 (handle_completer): Define.
1887 (_initialize_infrun): Declare a new local variable c. Store the
1888 result of add_com("handle") to it. Assign the command
1889 completer for "handle" to handle_completer.
1891 2012-08-09 Yao Qi <yao@codesourcery.com>
1893 * cli/cli-decode.c (set_cmd_prefix): New.
1894 (lookup_cmd_for_prefixlist): New.
1895 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1896 of each cmd_list_element in *prefixlist.
1897 (add_setshow_cmd_full): set_cmd_prefix.
1898 (add_alias_cmd): Likewise.
1899 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1900 Declare 'auto_boolean_enums'.
1901 * cli/cli-setshow.c: Include "observer.h".
1902 (notify_command_param_changed_p): New.
1903 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1905 (do_setshow_command): Split it to ...
1906 (do_set_command, do_show_command): ... them. New.
1907 (do_set_command): Call observer_notify_command_param_changed if
1908 notify_command_param_changed_p returns true.
1909 (cmd_show_list): Caller update.
1910 * auto-load.c (set_auto_load_cmd): Likewise.
1911 * remote.c (show_remote_cmd): Likewise.
1912 * cli/cli-setshow.h: Update declarations.
1913 * top.c (execute_command): Call do_set_command and do_show_command.
1915 * NEWS: Mention new MI notification.
1916 * mi/mi-interp.c: Declare mi_command_param_changed.
1917 (mi_interpreter_init): Attach mi_command_param_changed to
1918 observer command_param_changed.
1919 (mi_command_param_changed): New.
1920 Remove mi_suppress_breakpoint_notifications.
1921 Define global variable mi_suppress_notification.
1922 (mi_breakpoint_created): Update.
1923 (mi_breakpoint_deleted): Likewise.
1924 (mi_breakpoint_modified): Likewise.
1925 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1926 'gdb-set' and set mi_suppress_notification.
1927 * mi/mi-main.h: (mi_suppress_notification): New struct.
1929 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1930 Jan Kratochvil <jan.kratochvil@redhat.com>
1932 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1934 2012-08-09 Yao Qi <yao@codesourcery.com>
1936 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1937 (skiplist): Move it to skip.c.
1938 (init_cmd_lists): Remove code setting enablebreaklist and
1940 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1941 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1943 * gdbcmd.h: Likewise.
1944 * skip.c (_initialize_step_skip): Move 'skiplist' from
1947 2012-08-09 Yao Qi <yao@codesourcery.com>
1949 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1950 * gnu-nat.c, symfile.c: Likewise.
1952 2012-08-08 Aaron Gamble <agamble@google.com>
1954 * utils.c (prompt_for_continue_wait_time): New static global.
1955 (make_command_stats_cleanup): Initialize it.
1956 (report_command_stats): Subtract time waiting for user.
1957 (prompt_for_continue): Track time waiting for user.
1958 (defaulted_query): Track time waiting for user.
1960 2012-08-08 Doug Evans <dje@google.com>
1962 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1964 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1965 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1966 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1967 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1968 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1969 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1971 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1972 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1973 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1974 (dump_prefix_expression): Handle OP_TYPE.
1976 2012-08-08 Keith Seitz <keiths@redhat.com>
1978 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1981 2012-08-08 Doug Evans <dje@google.com>
1983 * linux-thread-db.c: #include "gdb_vecs.h".
1984 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1986 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1987 (thread_db_load_search): Use a vector to iterate over path elements.
1988 Handle text appearing after "$pdir".
1990 * gdb_string.h: Moved to ...
1991 * common/gdb_string.h: ... here.
1992 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1993 gdb_string.h and gdb_assert.h.
1995 2012-08-08 Yao Qi <yao@codesourcery.com>
1997 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1998 (tic6x_value_to_register): Likewise.
1999 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2000 and set_gdbarch_value_to_register.
2002 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 Jean-Marc Saffroy <saffroy@gmail.com>
2006 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2007 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2008 * gcore.c (gcore_create_callback): New function comment. Add modified
2009 parameter. Only write modified regions. Set SEC_READONLY exactly
2010 according to MODIFIED.
2011 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2012 the passed modified value to FUNC.
2013 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2014 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2015 first. New variables modified and has_anonymous. Parse the lines of
2016 smaps file. Add the passed MODIFIED value to FUNC.
2017 * procfs.c (find_memory_regions_callback): Add the passed modified
2020 2012-08-06 Tom Tromey <tromey@redhat.com>
2022 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2023 (dwarf2_frame_cache): Use it.
2024 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2025 cache initialization constraint.
2027 2012-08-06 Tom Tromey <tromey@redhat.com>
2030 * varobj.c (update_dynamic_varobj_children): Don't call
2033 2012-08-06 Tom Tromey <tromey@redhat.com>
2036 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2038 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2040 * NEWS: New entry for 'cd' default parameters.
2041 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2043 2012-08-03 Tom Tromey <tromey@redhat.com>
2045 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2048 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2050 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2051 to attempting lseek/write.
2052 (inf_child_fileio_pread): Likewise for pread.
2054 2012-08-02 Yao Qi <yao@codesourcery.com>
2056 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2057 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2058 add_setshow_zinteger_cmd.
2059 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2060 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2061 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2062 instead of add_setshow_zinteger_cmd.
2063 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2064 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2065 instead of add_setshow_zinteger_cmd.
2066 * frame.c (frame_debug): Add 'unsigned'.
2067 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2068 add_setshow_zinteger_cmd.
2069 * frame.h: Update the declaration of 'frame_debug'.
2070 * gdbtypes.c (overload_debug): Add 'unsigned'.
2071 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2072 add_setshow_zinteger_cmd.
2073 * inferior.h: Update declaration of 'debug_infrun'.
2074 * infrun.c (debug_infrun): Add 'unsigned'.
2075 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2076 add_setshow_zinteger_cmd.
2077 * jit.c (jit_debug): Add 'unsigned'.
2078 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2079 add_setshow_zinteger_cmd.
2080 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2081 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2082 instead of add_setshow_zinteger_cmd.
2083 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2084 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2085 add_setshow_zinteger_cmd.
2086 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2087 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2088 instead of add_setshow_zinteger_cmd.
2089 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2090 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2091 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2092 intead of add_setshow_zinteger_cmd.
2093 * mips-tdep.c (mips_debug): Add 'unsigned'.
2094 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2095 instead of add_setshow_zinteger_cmd.
2096 * monitor.c (monitor_debug): Add 'unsigned'.
2097 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2098 add_setshow_zinteger_cmd.
2099 * observer.c (observer_debug): Add 'unsigned'.
2100 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2101 add_setshow_zinteger_cmd.
2102 * parse.c (expressiondebug): Add 'unsigned'.
2103 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2104 add_setshow_zinteger_cmd.
2105 * record.c (record_debug): Add 'unsigned'.
2106 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2107 add_setshow_zinteger_cmd.
2108 * record.h: Update the declaration of 'record_debug'.
2109 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2110 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2111 add_setshow_zinteger_cmd.
2112 * serial.c (global_serial_debug_p): Add 'unsigned'.
2113 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2114 add_setshow_zinteger_cmd.
2115 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2116 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2117 add_setshow_zinteger_cmd.
2118 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2119 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2120 add_setshow_zinteger_cmd.
2121 * target.c (targetdebug): Add 'unsigned'.
2122 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2123 add_setshow_zinteger_cmd.
2124 * valops.c (overload_debug): Add 'unsigned'.
2125 * varobj.c (varobjdebug): Add 'unsigned'.
2126 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2127 add_setshow_zinteger_cmd.
2128 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2129 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2130 instead of add_setshow_zinteger_cmd.
2132 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2133 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2134 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2135 instead of add_setshow_zinteger_cmd.
2136 * gdbarch.c, gdbarch.h: Re-generated.
2138 2012-08-02 Yao Qi <yao@codesourcery.com>
2140 * nto-tdep.c: Don't include cli/cli-decode.h and
2142 (_initialize_nto_tdep): Remove.
2143 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2145 Remove macro nto_internal_debugging.
2147 2012-08-01 Richard Henderson <rth@redhat.com>
2149 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2150 (mep-*-*) [gdb_target_obs]: Likewise.
2152 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2154 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2155 linux_get_siginfo_type.
2157 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2159 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2161 (call_function_by_hand) <ON_STACK>: Call write_memory with
2162 gdbarch_breakpoint_from_pc, if possible.
2163 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2166 2012-07-31 Yao Qi <yao@codesourcery.com>
2168 * tracepoint.c: Add 'static' for some variables.
2170 2012-07-31 Yao Qi <yao@codesourcery.com>
2172 * go32-nat.c: Declare _initialize_go32_nat.
2173 * ser-go32.c: Declare _initialize_ser_dos.
2174 * top.c (do_chdir_cleanup): Add 'static'.
2176 2012-07-30 Keith Seitz <keiths@redhat.com>
2178 * linespec.c (linespec_lex_number): A number followed
2179 by quotes is a valid number, too.
2181 2012-07-30 Tom Tromey <tromey@redhat.com>
2183 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2185 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2187 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2188 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2190 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2192 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2193 invalid or reevaluated to prevent prevent references to possibly
2194 delete'd type objects being left in the varobj.
2196 2012-07-27 Tom Tromey <tromey@redhat.com>
2197 Jan Kratochvil <jan.kratochvil@redhat.com>
2199 * copying.awk: Print buffer-read-only and vi ro markers.
2200 * copying.c: Rebuild.
2201 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2202 * gdbarch.c, gdbarch.h: Rebuild.
2203 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2204 buffer-read-only and vi ro markers.
2205 * features/arm-with-iwmmxt.c: Rebuild.
2206 * features/arm-with-m-fpa-layout.c: Rebuild.
2207 * features/arm-with-m-vfp-d16.c: Rebuild.
2208 * features/arm-with-m.c: Rebuild.
2209 * features/arm-with-neon.c: Rebuild.
2210 * features/arm-with-vfpv2.c: Rebuild.
2211 * features/arm-with-vfpv3.c: Rebuild.
2212 * features/i386/amd64-avx-linux.c: Rebuild.
2213 * features/i386/amd64-avx.c: Rebuild.
2214 * features/i386/amd64-linux.c: Rebuild.
2215 * features/i386/amd64.c: Rebuild.
2216 * features/i386/i386-avx-linux.c: Rebuild.
2217 * features/i386/i386-avx.c: Rebuild.
2218 * features/i386/i386-linux.c: Rebuild.
2219 * features/i386/i386-mmx-linux.c: Rebuild.
2220 * features/i386/i386-mmx.c: Rebuild.
2221 * features/i386/i386.c: Rebuild.
2222 * features/i386/x32-avx-linux.c: Rebuild.
2223 * features/i386/x32-avx.c: Rebuild.
2224 * features/i386/x32-linux.c: Rebuild.
2225 * features/i386/x32.c: Rebuild.
2226 * features/mips-dsp-linux.c: Rebuild.
2227 * features/mips-linux.c: Rebuild.
2228 * features/mips64-dsp-linux.c: Rebuild.
2229 * features/mips64-linux.c: Rebuild.
2230 * features/rs6000/powerpc-32.c: Rebuild.
2231 * features/rs6000/powerpc-32l.c: Rebuild.
2232 * features/rs6000/powerpc-403.c: Rebuild.
2233 * features/rs6000/powerpc-403gc.c: Rebuild.
2234 * features/rs6000/powerpc-405.c: Rebuild.
2235 * features/rs6000/powerpc-505.c: Rebuild.
2236 * features/rs6000/powerpc-601.c: Rebuild.
2237 * features/rs6000/powerpc-602.c: Rebuild.
2238 * features/rs6000/powerpc-603.c: Rebuild.
2239 * features/rs6000/powerpc-604.c: Rebuild.
2240 * features/rs6000/powerpc-64.c: Rebuild.
2241 * features/rs6000/powerpc-64l.c: Rebuild.
2242 * features/rs6000/powerpc-7400.c: Rebuild.
2243 * features/rs6000/powerpc-750.c: Rebuild.
2244 * features/rs6000/powerpc-860.c: Rebuild.
2245 * features/rs6000/powerpc-altivec32.c: Rebuild.
2246 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2247 * features/rs6000/powerpc-altivec64.c: Rebuild.
2248 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2249 * features/rs6000/powerpc-cell32l.c: Rebuild.
2250 * features/rs6000/powerpc-cell64l.c: Rebuild.
2251 * features/rs6000/powerpc-e500.c: Rebuild.
2252 * features/rs6000/powerpc-e500l.c: Rebuild.
2253 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2254 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2255 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2256 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2257 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2258 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2259 * features/rs6000/powerpc-vsx32.c: Rebuild.
2260 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2261 * features/rs6000/powerpc-vsx64.c: Rebuild.
2262 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2263 * features/rs6000/rs6000.c: Rebuild.
2264 * features/s390-linux32.c: Rebuild.
2265 * features/s390-linux32v1.c: Rebuild.
2266 * features/s390-linux32v2.c: Rebuild.
2267 * features/s390-linux64.c: Rebuild.
2268 * features/s390-linux64v1.c: Rebuild.
2269 * features/s390-linux64v2.c: Rebuild.
2270 * features/s390x-linux64.c: Rebuild.
2271 * features/s390x-linux64v1.c: Rebuild.
2272 * features/s390x-linux64v2.c: Rebuild.
2273 * features/tic6x-c62x-linux.c: Rebuild.
2274 * features/tic6x-c62x.c: Rebuild.
2275 * features/tic6x-c64x-linux.c: Rebuild.
2276 * features/tic6x-c64x.c: Rebuild.
2277 * features/tic6x-c64xp-linux.c: Rebuild.
2278 * features/tic6x-c64xp.c: Rebuild.
2280 2012-07-27 Tom Tromey <tromey@redhat.com>
2282 * c-exp.y (classify_name): Avoid assignment in condition.
2284 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2286 * amd64-windows-tdep.c: Include "frame.h".
2287 (amd64_windows_skip_trampoline_code): New function.
2288 (amd64_windows_init_abi): Add trampoline registration.
2290 2012-07-27 Yao Qi <yao@codesourcery.com>
2292 * tracepoint.c (cur_traceframe_number): Remove.
2293 (set_tfile_traceframe): Remove.
2294 (tfile_trace_find, tfile_fetch_registers): Update callers.
2295 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2296 (tfile_open, tfile_trace_find): Likewise.
2298 2012-07-27 Yao Qi <yao@codesourcery.com>
2300 * thread.c (switch_to_thread): Don't call registers_changed.
2302 2012-07-26 Tom Tromey <tromey@redhat.com>
2304 * Makefile.in (SFILES): Remove objc-exp.y.
2305 (YYFILES): Remove objc-exp.c.
2306 (YYOBJ): Remove objc-exp.o.
2307 (local-maintainer-clean): Don't mention objc-exp.c.
2308 * c-exp.y: Include objc-lang.h.
2309 (%union) <class>: New field.
2310 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2311 (exp): Clone subscript production for OBJC_LBRAC. Add various
2312 Objective C productions.
2313 (msglist, msgarglist, msgarg): New productions.
2314 (array_mod, func_mod, operator): Clone productions for
2316 (parse_string_or_char): Handle '@' strings.
2317 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2318 (classify_name): Check la_name_of_this. Recognize ObjC class
2320 * objc-exp.y: Remove.
2321 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2322 * objc-lang.h (objc_parse, objc_error): Don't declare.
2324 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2326 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2328 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2333 2012-07-26 Tom Tromey <tromey@redhat.com>
2335 * copying.c: Rebuild.
2336 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2339 2012-07-26 Tom Tromey <tromey@redhat.com>
2341 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2343 (print_objfile_statistics): Likewise.
2344 (maintenance_print_symbols): Likewise.
2345 (maintenance_print_msymbols): Likewise.
2346 (maintenance_print_objfiles): Likewise.
2347 * psymtab.c (print_partial_symbols): Call QUIT.
2348 (maintenance_print_psymbols): Likewise. Don't modify
2350 * copying.c (show_copying_command): Don't modify immediate_quit.
2351 (show_warranty_command): Likewise.
2352 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2354 2012-07-26 Keith Seitz <keiths@redhat.com>
2356 * linespec.c (linespec_lexer_lex_number): The input
2357 is also a valid number if the next character is a comma
2360 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2362 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2365 2012-07-26 Tristan Gingold <gingold@adacore.com>
2367 * machoread.c: Include gdb_bfd.h.
2369 2012-07-26 Tristan Gingold <gingold@adacore.com>
2371 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2374 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2376 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2378 (dwarf2_evaluate_loc_desc): Likewise.
2379 (dwarf2_loc_desc_needs_frame): Likewise.
2380 (locexpr_describe_location_1): Likewise.
2381 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2383 (struct dwarf2_loclist_baton): Likewise.
2384 * dwarf2read.c (struct dwarf_block): Likewise.
2385 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2386 (decode_locdesc): Expand SIZE and I to size_t.
2388 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2392 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2394 * doublest.c (convert_doublest_to_floatformat): If the exponent
2395 is too small, treat the value as zero. If the exponent is too
2396 large, treat the value as infinity.
2398 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2400 * configure.ac: Add --enable-lmcheck configure option.
2401 * configure: Regenerate.
2403 2012-07-25 Tom Tromey <tromey@redhat.com>
2405 * NEWS: Mention maint info bfds.
2406 * gdb_bfd.c (all_bfds): New global.
2407 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2408 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2411 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2413 * configure.tgt: Add v850*-*-rtems*.
2415 2012-07-25 Tom Tromey <tromey@redhat.com>
2417 * macrotab.c (macro_bcache_str): Remove cast.
2419 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2421 * linespec.c (linespec_lexer_lex_number): Update comments,
2422 change the return and add check to make sure the input is
2423 the decimal numbers.
2424 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2425 false, call linespec_lexer_lex_string.
2427 2012-07-24 Tom Tromey <tromey@redhat.com>
2429 * symfile.c (symbol_file_add): Don't open BFD twice.
2431 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2433 * breakpoint.c (create_breakpoint): Store condition for pending
2436 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2438 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2439 (m68k_return_value): Handle complex types like structures.
2440 (m68k_svr4_return_value): Likewise.
2442 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2444 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2445 parameters to bfd_get_section_name.
2447 2012-07-24 Yao Qi <yao@codesourcery.com>
2449 * cli/cli-setshow.c: Handle case 'var_uinteger'
2450 and 'var_zuninteger' together. Handle case 'var_integer' and
2451 'var_zinteger' together.
2453 2012-07-23 Keith Seitz <keiths@redhat.com>
2455 * linespec.c (convert_linespec_to_sal): Don't add
2456 any symbols to the result vector if symbol_to_sal
2459 2012-07-23 Keith Seitz <keiths@redhat.com>
2461 * linespec.c (decode_objc): Record the function name
2464 2012-07-23 Tom Tromey <tromey@redhat.com>
2466 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2468 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2469 (map_vmap): Acquire a reference to the BFD.
2471 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2473 * p-valprint.c (pascal_object_print_value): Replace potentially
2474 unsafe alloca with xmalloc/xfree.
2475 * valops.c (search_struct_method): Likewise.
2477 2012-07-23 Tom Tromey <tromey@redhat.com>
2479 * solib-svr4.c (enable_break): Update.
2480 * bfd-target.h (target_bfd_reopen): Update documentation.
2482 2012-07-23 Tom Tromey <tromey@redhat.com>
2484 * symfile.c (separate_debug_file_exists): Update.
2485 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2486 (reread_symbols): Update.
2487 * elfread.c (build_id_verify): Update.
2488 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2489 bfd_open_maybe_remote.
2491 2012-07-23 Tom Tromey <tromey@redhat.com>
2493 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2495 2012-07-23 Tom Tromey <tromey@redhat.com>
2497 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2499 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2501 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2502 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2504 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2505 * objfiles.c (allocate_objfile): Acquire a new reference.
2506 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2507 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2508 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2509 a cleanup for 'nbfd'.
2510 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2512 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2513 make a cleanup for 'abfd'.
2514 (symbol_file_add): Make a BFD cleanup.
2516 2012-07-23 Tom Tromey <tromey@redhat.com>
2518 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2519 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2520 * corelow.c (core_open): Use gdb_bfd_fopen.
2521 * dsrec.c (load_srec): Use gdb_bfd_openr.
2522 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2523 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2524 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2525 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2526 (gdb_bfd_fdopenr): New functions.
2527 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2528 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2529 (gdb_bfd_fdopenr): Declare.
2530 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2531 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2532 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2533 gdb_bfd_openr_next_archived_file.
2534 (macho_check_dsym): Use gdb_bfd_openr.
2535 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2536 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2537 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2538 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2540 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2541 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2542 gdb_bfd_openr_next_archived_file.
2543 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2545 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2547 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2548 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2549 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2550 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2551 (symfile_bfd_open): Use gdb_bfd_fopen.
2552 (generic_load): Use gdb_bfd_openr.
2553 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2555 2012-07-23 Tom Tromey <tromey@redhat.com>
2557 * bfd-target.c (target_bfd_reopen): Update.
2558 * cli/cli-dump.c (bfd_openr_with_cleanup)
2559 (bfd_openw_with_cleanup): Update.
2560 * corelow.c (core_open): Update.
2561 * dsrec.c (load_srec): Update.
2562 * exec.c (exec_file_attach): Update.
2563 * gcore.c (create_gcore_bfd): Update.
2564 * gdb_bfd.c (gdb_bfd_ref): Return void.
2565 (gdb_bfd_open): Update.
2566 * gdb_bfd.h (gdb_bfd_ref): Return void.
2568 * jit.c (jit_bfd_try_read_symtab): Update.
2569 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2570 * machoread.c (macho_symfile_read_all_oso): Update.
2571 (macho_check_dsym): Update.
2572 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2573 * remote-m32r-sdi.c (m32r_load): Update.
2574 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2575 * rs6000-nat.c (add_vmap): Update.
2576 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2578 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2579 * solib-spu.c (spu_bfd_open): Update.
2580 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2581 * spu-linux-nat.c (spu_bfd_open): Update.
2582 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2583 (generic_load): Update.
2584 * windows-nat.c (windows_make_so): Update.
2586 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2588 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2590 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2592 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2593 SIGTRAMP_FRAME unwinding.
2595 2012-07-20 Doug Evans <dje@google.com>
2597 * NEWS: Document new options "set/show use-deprecated-index-sections",
2598 and delete reference to --use-deprecated-index-sections.
2599 * symfile.h (use_deprecated_index_sections): Delete.
2600 * dwarf2read.c (use_deprecated_index_sections): Make static.
2601 (read_index_from_section): Update wording of how to load
2602 deprecated index sections.
2603 (_initialize_dwarf2_read): New options
2604 "set/show use-deprecated-index-sections".
2605 * main.c (captured_main): Delete --use-deprecated-index-sections.
2607 2012-07-20 Pedro Alves <palves@redhat.com>
2612 * infrun.c (handle_inferior_event) <new thread>: Don't special
2613 case minus_one_ptid.
2614 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2615 * linux-thread-db.c (thread_get_info_callback): Don't return early
2616 if the thread is zombie.
2617 (thread_from_lwp): Change return type to void. Rewrite stale
2619 (attach_thread): Don't return early if the thread is zombie,
2620 instead set its "dying" flag.
2621 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2622 (find_new_threads_callback): Don't return early if the thread is
2625 2012-07-20 Pedro Alves <palves@redhat.com>
2627 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2628 * target.c (target_wait): Likewise.
2629 (str_comma_list_concat_elem, do_option, target_options_to_string):
2631 * target.h (target_options_to_string): Declare.
2633 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2634 Tom Tromey <tromey@redhat.com>
2636 * dwarf2read.c (dwarf_decode_macros)
2637 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2638 DW_MACRO_GNU_transparent_include_alt>: New cases.
2639 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2640 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2642 2012-07-20 Tom Tromey <tromey@redhat.com>
2644 * dwarf2read.c (try_open_dwo_file): Don't call
2645 gdb_bfd_stash_filename.
2647 2012-07-20 Pedro Alves <palves@redhat.com>
2649 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2650 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2651 (i386_process_record): Tweak description comments.
2653 2012-07-20 Pedro Alves <palves@redhat.com>
2655 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2656 (i386_process_record): Use record_read_memory.
2657 * record.c (record_read_memory): New function.
2658 (record_arch_list_add_mem, record_exec_insn): Use
2660 * record.h (record_read_memory): Declare.
2662 2012-07-20 Yao Qi <yao@codesourcery.com>
2664 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2667 2012-07-19 Pedro Alves <palves@redhat.com>
2669 * record.c (record_resume): Ask the target beneath to report all
2672 2012-07-19 Doug Evans <dje@google.com>
2674 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2675 there's no section at address zero.
2676 (dwarf2_record_block_ranges): Ditto.
2678 2012-07-19 Yao Qi <yao@codesourcery.com>
2680 * command.h, remote.c: Fix a typo in comment.
2682 2012-07-19 Tom Tromey <tromey@redhat.com>
2685 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2686 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2687 OP_DECLTYPE>: New cases.
2688 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2689 (type_exp): Add new productions.
2690 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2692 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2694 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2695 OP_DECLTYPE>: New case.
2696 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2698 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2699 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2701 2012-07-19 Tom Tromey <tromey@redhat.com>
2703 * c-exp.y (enum token_flags): New.
2704 (struct token) <cxx_only>: Remove.
2706 (tokentab3, tokentab2, ident_tokens): Update.
2707 (lex_one_token): Update. Handle FLAG_SHADOW.
2709 2012-07-19 Tom Tromey <tromey@redhat.com>
2711 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2712 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2713 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2714 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2715 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2716 type_exp production where appropriate.
2717 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2718 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2719 <UNOP_MEMVAL_TYPE>: New case.
2720 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2721 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2722 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2723 <UNOP_MEMVAL_TYPE>: New case.
2724 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2725 UNOP_REINTERPRET_CAST>: Update.
2726 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2727 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2728 UNOP_REINTERPRET_CAST>: Update.
2729 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2730 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2731 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2734 2012-07-19 Yao Qi <yao@codesourcery.com>
2735 Jan Kratochvil <jan.kratochvil@redhat.com>
2737 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2738 and case 'var_optional_filename' together.
2739 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2740 instead of add_setshow_optional_filename_cmd for setshow command
2741 'args'. Set completer for 'set args'.
2743 2012-07-18 Doug Evans <dje@google.com>
2745 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2746 * common/gdb_vecs.c: New file, contents from utils.c.
2747 * common/host-defs.h: New file, contents from defs.h.
2748 * utils.h: New file, contents from defs.h.
2749 * defs.h: Move all declarations of objects defined in utils.c
2750 to utils.h (except QUIT() and related).
2751 #include "utils.h", "host-defs.h".
2752 * probe.h (probe_p): Move here from gdb_vecs.h.
2753 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2754 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2755 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2756 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2757 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2758 (COMMON_OBS): Add gdb_vecs.o.
2759 (gdb_vecs.o): New rule.
2761 2012-07-18 Keith Seitz <keiths@redhat.com>
2763 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2764 parameter. If non-zero, use SYMNAME as the canonical name
2767 (convert_linespec_to_sals): Use add_sal_to_sals for
2769 (decode_line_full): No need to "fill in missing canonical names"
2770 anymore. Simply make cleanups for the allocated names.
2772 2012-07-18 Keith Seitz <keiths@redhat.com>
2774 * linespec.c (struct linespec): Constify expression,
2775 source_filename, function_name, and label_name.
2776 (symbol_not_found_error): Make all parameters const.
2777 (linespec_parser_delete): No need to check for NULL
2778 when using xfree. Cast const char * to char * for xfree.
2780 2012-07-18 Keith Seitz <keiths@redhat.com>
2782 * breakpoint.c (invalid_thread_id_error): New function.
2783 (find_condition_and_thread): Use invalid_thread_id_error.
2784 (watch_command_1): Likewise.
2786 2012-07-18 Tom Tromey <tromey@redhat.com>
2788 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2789 * contrib/cc-with-tweaks.sh: New file.
2791 2012-07-18 Tom Tromey <tromey@redhat.com>
2793 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2794 (locate_dwz_sections): Recognize .gdb_index.
2795 (create_cus_from_index_list): New function.
2796 (create_cus_from_index): Use it. Handle .dwz data.
2797 (read_index_from_section): New function, extracted from
2799 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2802 2012-07-18 Tom Tromey <tromey@redhat.com>
2804 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2805 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2806 <is_dwz>: New field.
2807 (struct dwz_file): New.
2808 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2809 (locate_dwz_sections, dwarf2_get_dwz_file)
2810 (get_abbrev_section_for_cu): New functions.
2811 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2812 (read_and_check_type_unit_head): Add abbrev_section argument.
2813 (create_debug_types_hash_table): Update.
2814 (init_cutu_and_read_dies): Use proper abbrev section.
2815 (init_cutu_and_read_dies_no_follow): Likewise.
2816 (set_partial_user): Do nothing if PST==NULL.
2817 (read_comp_units_from_section): New function.
2818 (create_all_comp_units): Use it.
2819 (scan_partial_symbols, partial_die_parent_scope): Update.
2820 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2821 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2822 (find_partial_die): Add offset_in_dwz argument. Update.
2823 (guess_partial_die_structure_name, fixup_partial_die): Update.
2824 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2825 DW_FORM_GNU_strp_alt.
2826 (read_indirect_string_from_dwz): New function.
2827 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2828 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2829 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2830 (follow_die_offset): Add offset_in_dwz argument.
2831 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2832 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2833 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2834 Handle new macro forms.
2835 (dwarf_decode_macros): Update.
2836 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2837 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2838 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2839 (create_debug_types_hash_table): Use correct abbrev section.
2840 (get_debug_line_section): New function.
2841 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2842 (process_full_comp_unit): Pass 'required' argument to
2843 end_symtab_get_static_block.
2844 * buildsym.h (end_symtab_get_static_block): Update.
2845 * buildsym.c (end_symtab_get_static_block): Add 'required'
2847 (end_symtab, end_expandable_symtab): Update.
2849 2012-07-18 Tom Tromey <tromey@redhat.com>
2851 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2853 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2854 (zlib_decompress_section): Remove.
2855 (dwarf2_read_section): Use gdb_bfd_map_section.
2856 (munmap_section_buffer): Remove.
2857 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2858 munmap_section_buffer.
2859 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2860 (struct gdb_bfd_section_data): New.
2861 (free_one_bfd_section): New function.
2862 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2863 (get_section_descriptor, zlib_decompress_section)
2864 (gdb_bfd_map_section): New functions.
2865 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2867 2012-07-18 Tom Tromey <tromey@redhat.com>
2869 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2871 2012-07-18 Tom Tromey <tromey@redhat.com>
2873 * gdb_bfd.c (struct gdb_bfd_data): New.
2874 (gdb_bfd_cache): New global.
2875 (struct gdb_bfd_cache_search): New.
2876 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2877 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2878 * gdb_bfd.h (gdb_bfd_open): Declare.
2880 2012-07-18 Tom Tromey <tromey@redhat.com>
2882 * utils.c (make_cleanup_bfd_unref): Rename from
2883 make_cleanup_bfd_close.
2884 * defs.h (make_cleanup_bfd_unref): Rename from
2885 make_cleanup_bfd_close.
2886 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2887 (bfd_openw_with_cleanup): Update.
2888 * corelow.c (core_open): Update.
2889 * dsrec.c (load_srec): Update.
2890 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2891 * remote-m32r-sdi.c (m32r_load): Update.
2892 * remote-mips.c (mips_load_srec): Update.
2893 (pmon_load_fast): Update.
2894 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2896 (darwin_bfd_open): Update.
2897 * solib.c (solib_bfd_fopen): Update.
2898 * symfile-mem.c (symbol_file_add_from_memory): Update.
2899 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2900 (symfile_bfd_open): Update.
2901 (generic_load): Update.
2903 2012-07-18 Tom Tromey <tromey@redhat.com>
2905 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2906 (pmon_load_fast): Likewise.
2907 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2908 (m32r_upload_command): Likewise.
2909 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2910 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2911 Use make_cleanup_bfd_close.
2913 2012-07-18 Tom Tromey <tromey@redhat.com>
2915 * symfile.c (symfile_bfd_open): Don't copy name. Call
2916 gdb_bfd_stash_filename.
2917 (load_command): Open the new BFD before freeing the old.
2918 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2919 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2920 Call gdb_bfd_stash_filename.
2921 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2922 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2923 gdb_bfd_stash_filename.
2924 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2925 Free found_pathname.
2926 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2927 gdb_bfd_stash_filename.
2928 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2929 * machoread.c (macho_add_oso_symfile): Call
2930 gdb_bfd_stash_filename.
2931 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2932 gdb_bfd_stash_filename.
2933 (macho_check_dsym): Don't copy filename. Call
2934 gdb_bfd_stash_filename.
2935 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2936 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2937 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2938 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2939 * exec.c (exec_close): Don't free the BFD's filename.
2940 (exec_file_attach): Don't copy the filename. Call
2941 gdb_bfd_stash_filename.
2942 * corelow.c (core_close): Don't free the BFD's filename.
2943 (core_open): Call gdb_bfd_stash_filename.
2944 * corefile.c (reopen_exec_file): Remove #if 0 code.
2945 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2947 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2949 2012-07-18 Tom Tromey <tromey@redhat.com>
2951 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2953 (free_dwo_file): Use gdb_bfd_unref.
2954 * cli/cli-dump.c: Include gdb_bfd.h.
2955 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2956 (bfd_openr_with_cleanup): Likewise.
2957 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2959 * utils.c: Include gdb_bfd.h.
2960 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2961 * symfile.c: Include gdb_bfd.h.
2962 (separate_debug_file_exists): Use gdb_bfd_unref.
2963 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2964 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2965 (generic_load): Use gdb_bfd_ref.
2966 (reread_symbols): Use gdb_bfd_unref.
2967 * symfile-mem.c: Include gdb_bfd.h.
2968 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2969 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2970 * solib.c: Include gdb_bfd.h.
2971 (solib_bfd_fopen): Use gdb_bfd_ref.
2972 (solib_bfd_open): Use gdb_bfd_unref.
2973 (free_so_symbols): Use gdb_bfd_unref.
2974 (reload_shared_libraries_1): Use gdb_bfd_unref.
2975 * solib-spu.c: Include gdb_bfd.h.
2976 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2977 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2979 * solib-frv.c: Include gdb_bfd.h.
2980 (enable_break2): Use gdb_bfd_unref.
2981 * solib-dsbt.c: Include gdb_bfd.h.
2982 (enable_break2): Use gdb_bfd_unref.
2983 * solib-darwin.c: Include gdb_bfd.h.
2984 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2986 (darwin_bfd_open): Use gdb_bfd_unref.
2987 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2988 * remote-mips.c: Include gdb_bfd.h.
2989 (mips_load_srec): Use gdb_bfd_ref.
2990 (pmon_load_fast): Use gdb_bfd_ref.
2991 * remote-m32r-sdi.c: Include gdb_bfd.h.
2992 (m32r_load): Use gdb_bfd_ref.
2993 * record.c: Include gdb_bfd.h.
2994 (record_save_cleanups): Use gdb_bfd_unref.
2995 (cmd_record_save): Use gdb_bfd_unref.
2996 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2998 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2999 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3000 * objfiles.c: Include gdb_bfd.h.
3001 (free_objfile): Use gdb_bfd_unref.
3002 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3004 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3005 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3006 (macho_check_dsym): Likewise.
3007 * m32r-rom.c: Include gdb_bfd.h.
3008 (m32r_load): Use gdb_bfd_ref.
3009 (m32r_upload_command): Use gdb_bfd_ref.
3010 * jit.c: Include gdb_bfd.h.
3011 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3012 * gdb_bfd.h: New file.
3013 * gdb_bfd.c: New file.
3014 * gcore.c: Include gdb_bfd.h.
3015 (create_gcore_bfd): Use gdb_bfd_ref.
3016 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3017 (gcore_command): Use gdb_bfd_unref.
3018 * exec.c: Include gdb_bfd.h.
3019 (exec_close): Use gdb_bfd_unref.
3020 (exec_close_1): Use gdb_bfd_unref.
3021 (exec_file_attach): Use gdb_bfd_ref.
3022 * elfread.c: Include gdb_bfd.h.
3023 (build_id_verify): Use gdb_bfd_unref.
3024 * dsrec.c: Include gdb_bfd.h.
3025 (load_srec): Use gdb_bfd_ref.
3026 * corelow.c: Include gdb_bfd.h.
3027 (core_close): Use gdb_bfd_unref.
3028 (core_open): Use gdb_bfd_ref.
3029 * bfd-target.c: Include gdb_bfd.h.
3030 (target_bfd_xclose): Use gdb_bfd_unref.
3031 (target_bfd_reopen): Use gdb_bfd_ref.
3032 * Makefile.in (SFILES): Add gdb_bfd.c.
3033 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3034 (COMMON_OBS): Add gdb_bfd.o.
3036 2012-07-18 Keith Seitz <keiths@redhat.com>
3038 * breakpoint.c (find_condition_and_thread): Initialize
3040 (create_breakpiont): find_condition_and_thread will now
3041 initialize COND_STRING, THREAD, and REST (and TASK).
3042 (addr_string_to_sals): Likewise.
3044 2012-07-18 Pedro Alves <palves@redhat.com>
3046 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3047 Pull the single step breakpoints out of the target.
3049 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3051 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3052 * stap-probe.c (compile_probe_arg): Likewise.
3054 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3056 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3057 (elf_compile_to_ax): Likewise.
3058 * infrun.c (insert_exception_resume_from_probe): Likewise.
3059 (check_exception_resume): Remove `objfile' variable.
3060 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3061 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3062 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3063 (compare_entries): Rename to...
3064 (compare_probes): ...this. Adjust function to work with
3065 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3067 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3069 (print_ui_out_info): Adjust argument to be `struct probe *'.
3070 (info_probes_for_ops): Adjust internal computations to use
3072 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3073 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3074 gen_info_probes_table_values>: Remove `objfile' argument.
3075 (struct probe) <objfile>: New field.
3076 (find_probe_by_pc): Remove `objfile' argument.
3077 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3078 (stap_get_probe_argument_count): Likewise.
3079 (stap_get_arg): Likewise.
3080 (stap_evaluate_probe_argument): Likewise.
3081 (stap_compile_to_ax): Likewise.
3082 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3083 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3084 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3085 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3086 sym_compile_to_ax>: Likewise.
3088 2012-07-18 Terry Guo <terry.guo@arm.com>
3091 * defs.h (GDB_MI_MSG_WIDTH): New.
3092 * ser_base (ser_base_read_error_fd): New function.
3093 (do_ser_base_readchar): Poll error file descriptor as well as
3095 (generic_readchar): Refactor error handling.
3097 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3099 * NEWS: Create a new section for the next release branch.
3100 Rename the section of the current branch, now that it has
3103 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3105 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3106 * version.in: Bump version to 7.5.50.20120718-cvs.
3108 2012-07-17 Keith Seitz <keiths@redhat.com>
3110 * linespec.c (linespec_parse_line_offset): Make parameter
3113 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3116 * f-valprint.c (info_common_command): New variable frame_id.
3117 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3118 * printcmd.c (print_variable_and_value): Extend function comment.
3119 Add comment for invalidated FRAME.
3120 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3121 FI form FRAME_ID after each print_frame_local_vars.
3122 (struct print_variable_and_value_data): Change frame to frame_id.
3123 (do_print_variable_and_value): New variable frame, initialize it from
3124 p->frame_id. Add comment for invalidated FRAME.
3125 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3126 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3127 for invalidated FRAME.
3129 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3130 Pedro Alves <palves@redhat.com>
3132 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3135 2012-07-16 Tom Tromey <tromey@redhat.com>
3137 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3139 2012-07-15 Doug Evans <dje@google.com>
3141 * dwarf2read.c (stmt_list_hash): New struct.
3142 (type_unit_group): Embed "per_cu" member, remove pointer.
3143 New union member "t", move member "tus" into it, all uses updated.
3144 New member "hash", replaces member "line_offset, all uses updated.
3145 (quick_file_names): Replace member "offset" with "hash", all uses
3147 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3148 (hash_file_name_entry, eq_file_name_entry): Call them.
3149 (hash_type_unit_group, eq_type_unit_group): Ditto.
3150 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3151 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3152 (dw2_get_file_names): Update.
3153 (create_type_unit_group): Replace "per_cu" arg with "cu".
3154 All callers updated. Fix "quick" (.gdb_index) handling.
3155 (get_type_unit_group): Replace "per_cu" arg with "cu".
3156 All callers updated.
3157 (build_type_unit_groups): Don't reset tu_stats.
3159 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3160 "tab_cur_size". Change member "tab" to be a htab_t.
3161 (create_filename_seen_cache): Update.
3162 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3163 (filename_seen): Update.
3165 2012-07-13 Doug Evans <dje@google.com>
3167 * symtab.c (filename_seen): Update comment.
3169 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3170 Doug Evans <dje@google.com>
3172 * buildsym.c (end_symtab_1): Split it to ...
3173 (end_symtab_get_static_block): ... this ...
3174 (end_symtab_from_static_block): ... and this function.
3175 (end_symtab, end_expandable_symtab): Call them.
3176 * buildsym.h (end_symtab_get_static_block)
3177 (end_symtab_from_static_block): New declarations.
3178 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3179 Set its valid CU ranges.
3181 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3184 DW_OP_GNU_parameter_ref.
3186 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3188 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3189 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3191 2012-07-13 Doug Evans <dje@google.com>
3193 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3194 (filename_seen_cache): New struct.
3195 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3196 (create_filename_seen_cache): New function.
3197 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3198 (filename_seen): Delete arg "first". New arg "cache". All callers
3200 (output_source_filename_data): New struct.
3201 (output_source_filename): Delete arg "first". New arg "data".
3202 All callers updated.
3203 (sources_info): Delete local "first". New locals "data", "cleanups".
3204 Rewrite to use filename_seen_cache.
3205 (add_partial_filename_data): Delete member "first". New member
3206 "filename_seen_cache". All uses updated.
3207 (make_source_files_completion_list): Rewrite to use
3208 filename_seen_cache.
3210 2012-07-12 Doug Evans <dje@google.com>
3212 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3214 2012-07-10 Doug Evans <dje@google.com>
3217 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3218 all_type_unit_groups, type_unit_groups, tu_stats.
3219 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3220 All uses updated. Add type_unit_group to union "s".
3221 (type_unit_group): New struct.
3222 (IS_TYPE_UNIT_GROUP): New macro.
3223 (abbrev_table): Delete unused member "section".
3224 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3225 (dw2_get_cu): Assert not used with type_unit_group.
3226 (dw2_get_primary_cu): New function.
3227 (dw2_build_type_unit_groups_reader): New function.
3228 (dw2_build_type_unit_groups): New function.
3229 (dw2_get_file_names): Assert not called on type units.
3230 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3231 Redo loop to iterate over type unit groups instead of type units.
3232 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3233 (read_abbrev_offset): New function.
3234 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3236 (create_partial_symtab): New function.
3237 (process_psymtab_comp_unit_reader): Assert not used with type units.
3238 Call create_partial_symtab.
3239 (process_psymtab_type_unit): Delete.
3240 (hash_type_unit_group, eq_type_unit_group): New functions.
3241 (allocate_type_unit_groups_table): New function.
3242 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3243 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3244 (create_type_unit_group, get_type_unit_group): New functions.
3245 (tu_abbrev_offset): New struct.
3246 (sort_tu_by_abbrev_offset): New function.
3247 (add_type_unit_group_to_table): New function.
3248 (build_type_unit_groups): New function.
3249 (build_type_psymtabs_reader): New function.
3250 (build_type_psymtab_dependencies): New function.
3251 (build_type_psymtabs): Rewrite.
3252 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3253 is seen in a type unit.
3254 (process_queue): Move symtab expansion debugging printfs here.
3255 Call process_full_type_unit for type units.
3256 (compute_symtab_includes): Assert not called for type units.
3257 (process_cu_includes): Don't call compute_symtab_includes for
3259 (process_full_type_unit): New function.
3260 (process_imported_unit_die): Flag an error if called for type units.
3261 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3262 updated. Assert not called for type units.
3263 (read_file_scope): Call dwarf2_start_symtab.
3264 (setup_type_unit_groups): New function.
3265 (read_type_unit_scope): Rewrite.
3266 (abbrev_table_read_table): Initialize abbrev_table->offset.
3267 (abbrev_table_free_cleanup): New function.
3268 (dwarf2_start_symtab): New function.
3269 (load_full_type_unit): Assert not called for type unit groups.
3270 * buildsym.c (finish_block_internal): New arg "expandable".
3271 All callers updated.
3272 (start_symtab): Move most contents to ...
3273 (restart_symtab): ... here. New function.
3274 (reset_symtab_globals): New function.
3275 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3276 Call reset_symtab_globals.
3277 (end_symtab, end_expandable_symtab): New functions.
3278 (set_missing_symtab, augment_type_symtab): New functions.
3279 * buildsym.h (end_expandable_symtab): Declare.
3280 (augment_type_symtab, restart_symtab): Declare.
3281 * psympriv.h (struct partial_symtab): New member "anonymous".
3282 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3284 (read_psymtabs_with_filename): Ditto.
3285 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3286 (expand_symtabs_matching_via_partial): Ditto.
3287 (dump_psymtab): Update.
3288 * dictionary.c (dict_add_pending): New function.
3289 * dictionary.h (dict_add_pending): Declare.
3291 2012-07-09 Doug Evans <dje@google.com>
3293 * buildsym.c (start_subfile): Remove unnecessary check for
3296 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3298 * dwarf2read.c (load_full_type_unit): Simplify.
3300 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3301 to struct signatured_type **. All uses updated.
3303 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3304 All callers updated.
3306 2012-07-09 Tom Tromey <tromey@redhat.com>
3308 * c-exp.y (check_parameter_typelist): New function.
3309 (parameter_typelist): Call it.
3310 * eval.c (make_params): Handle '(void)' case.
3311 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3314 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3316 * common/linux-ptrace.c: Include gdb_assert.h.
3317 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3318 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3320 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3322 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3323 * linux-nat.c (linux_child_post_attach)
3324 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3326 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3329 nptl <2.7 bug workaround for core files.
3331 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3333 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3335 (save_siginfo): Remove.
3336 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3338 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3339 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3340 * linux-nat.h (struct lwp_info): Remove field siginfo.
3342 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3344 Code cleanup for the next patch.
3345 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3346 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3348 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3349 (ia64_linux_stopped_data_address):
3350 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3352 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3353 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3354 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3357 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3360 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3361 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3363 2012-07-06 Tom Tromey <tromey@redhat.com>
3365 * c-exp.y (DOTDOTDOT): New token.
3366 (func_mod, exp): Use parameter_typelist.
3367 (parameter_typelist): New production.
3368 (tokentab3): Add "..." token.
3369 * eval.c (make_params): Handle varargs.
3370 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3373 2012-07-06 Tom Tromey <tromey@redhat.com>
3376 * c-exp.y (%union) <tvec>: Change type.
3377 (func_mod): Now uses <tvec> type.
3378 (exp): Update for tvec change.
3379 (direct_abs_decl): Push the typelist.
3380 (func_mod): Return a typelist.
3381 (nonempty_typelist): Update for tvec change.
3382 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3383 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3384 * parse.c (pop_type_list): New function.
3385 (push_typelist): New function.
3386 (follow_types): Handle tp_function_with_arguments.
3387 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3388 (enum type_pieces) <tp_function_with_arguments>: New constant.
3389 (union type_stack_elt) <typelist_val>: New field.
3390 (push_typelist): Declare.
3392 2012-07-06 Tom Tromey <tromey@redhat.com>
3394 * c-exp.y (%union) <type_stack>: New field.
3395 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3396 (ptr_operator_ts): New production.
3398 * parse.c (type_stack_reserve): New function.
3399 (check_type_stack_depth): Use it.
3400 (pop_type_stack, append_type_stack, push_type_stack)
3401 (get_type_stack, type_stack_cleanup): New functions.
3402 (follow_types): Handle tp_type_stack.
3403 (_initialize_parse): Simplify initialization.
3404 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3406 (union type_stack_elt) <stack_val>: New field.
3407 (get_type_stack, append_type_stack, push_type_stack)
3408 (type_stack_cleanup): Declare.
3410 2012-07-06 Tom Tromey <tromey@redhat.com>
3412 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3414 (struct type_stack): New.
3415 * parse.c (type_stack, type_stack_size, type_stack_depth):
3417 (type_stack): New global.
3418 (parse_exp_in_context, check_type_stack_depth)
3419 (insert_into_type_stack, insert_type, push_type, push_type_int)
3420 (insert_type_address_space, pop_type, pop_type_int)
3421 (_initialize_parse): Update.
3423 2012-07-06 Tom Tromey <tromey@redhat.com>
3425 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3428 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3430 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3432 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3433 Jan Kratochvil <jan.kratochvil@redhat.com>
3435 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3436 alloca with xmalloc/xfree.
3438 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3440 * MAINTAINERS (Write After Approval): Add myself to the list.
3442 2012-07-05 Doug Evans <dje@google.com>
3444 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3446 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3448 * ax-gdb.c (cli/cli-utils.h): New include.
3449 (linespec.h): Ditto.
3450 (agent_eval_command_one): New function.
3451 (agent_command_1): Ditto.
3452 (agent_command): Call function agent_command_1.
3453 (agent_eval_command): Ditto.
3454 (_initialize_ax_gdb): Change help for "maint agent"
3455 and "maint agent-eval".
3457 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3459 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3460 * cli/cli-utils.c (check_for_argument): New function.
3461 * cli/cli-utils.h (check_for_argument): Ditto.
3463 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3465 * NEWS: Mention x32 ABI support.
3467 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3469 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3470 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3472 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3473 and pc_regnum_from_eax to -1. Update SP regnum from
3474 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3477 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3480 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3482 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3483 * dwarf2expr.h: Include gdbtypes.h.
3484 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3485 these forward declarations.
3486 (cu_offset, sect_offset): Move these ...
3487 * gdbtypes.h: Remove include dwarf2expr.h.
3488 (cu_offset, sect_offset): ... here.
3490 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3492 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3493 (amd64_linux_sigtramp_code): This.
3494 (amd64_x32_linux_sigtramp_code): New.
3495 (LINUX_SIGTRAMP_LEN): Updated.
3496 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3498 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3500 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3502 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3504 * config.in: Regenerate.
3505 * configure: Regenerate.
3506 * configure.ac: Remove check for gnu/libc-version.h.
3507 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3509 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3510 variables libc_version, libc_major and libc_minor. Replace sscanf by
3511 inferior_has_bug. Extend the comment.
3513 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 * linux-thread-db.c (inferior_has_bug): New function.
3516 (thread_db_find_new_threads_silently): Return boolean as checked by
3517 inferior_has_bug, describe it in the comments.
3518 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3519 earlier. Abort the initialization if it returned non-zero.
3520 (thread_db_new_objfile): Exclude debug files.
3521 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3524 2012-07-02 Doug Evans <dje@google.com>
3526 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3527 related to queue management.
3529 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3530 instead of "debug dwarf2-die" in debugging printfs.
3531 (create_debug_info_hash_table_reader): Ditto.
3532 (create_debug_info_hash_table): Ditto.
3533 (init_dwo_file): Ditto.
3534 (init_cutu_and_read_dies): Add debugging printf.
3535 (init_cutu_and_read_dies_no_follow): Ditto.
3536 (process_psymtab_comp_unit_reader): Ditto.
3538 2012-07-02 Stan Shebs <stan@codesourcery.com>
3540 Add target-side support for dynamic printf.
3541 * NEWS: Mention the additional style.
3542 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3543 (struct bp_location): New field cmd_bytecode.
3544 * breakpoint.c: Include format.h.
3545 (disconnected_dprintf): New global.
3546 (parse_cmd_to_aexpr): New function.
3547 (build_target_command_list): New function.
3548 (insert_bp_location): Call it.
3549 (remove_breakpoints_pid): Skip dprintf breakpoints.
3550 (print_one_breakpoint_location): Ditto.
3551 (dprintf_style_agent): New global.
3552 (dprintf_style_enums): Add dprintf_style_agent.
3553 (update_dprintf_command_list): Add agent case.
3554 (agent_printf_command): New function.
3555 (_initialize_breakpoint): Add new commands.
3556 * common/ax.def (printf): New bytecode.
3557 * ax.h (ax_string): Declare.
3558 * ax-gdb.h (gen_printf): Declare.
3559 * ax-gdb.c: Include cli-utils.h, format.h.
3560 (gen_printf): New function.
3561 (maint_agent_print_command): New function.
3562 (_initialize_ax_gdb): Add maint agent-printf command.
3563 * ax-general.c (ax_string): New function.
3564 (ax_print): Add printf disassembly.
3565 * Makefile.in (SFILES): Add format.c
3566 (COMMON_OBS): Add format.o.
3567 * common/format.h: New file.
3568 * common/format.c: New file.
3569 * printcmd.c: Include format.h.
3570 (ui_printf): Call parse_format_string.
3571 * remote.c (remote_state): New field breakpoint_commands.
3572 (PACKET_BreakpointCommands): New enum.
3573 (remote_breakpoint_commands_feature): New function.
3574 (remote_protocol_features): Add new BreakpointCommands entry.
3575 (remote_can_run_breakpoint_commands): New function.
3576 (remote_add_target_side_commands): New function.
3577 (remote_insert_breakpoint): Call it.
3578 (remote_insert_hw_breakpoint): Ditto.
3579 (_initialize_remote): Add new packet configuration for
3580 target-side breakpoint commands.
3581 * target.h (struct target_ops): New field
3582 to_can_run_breakpoint_commands.
3583 (target_can_run_breakpoint_commands): New macro.
3584 * target.c (update_current_target): Handle
3585 to_can_run_breakpoint_commands.
3587 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3589 Execute -ix and -iex only after system and user gdbinit files.
3590 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3591 processing down after gdbinit files.
3593 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3595 Add fnmatch-gnu module.
3596 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3597 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3598 * gnulib/aclocal.m4: Regenerate.
3599 * gnulib/config.in: Regenerate.
3600 * gnulib/configure: Regenerate.
3601 * gnulib/import/dummy.c: Remove.
3602 * gnulib/import/Makefile.am: Regenerate.
3603 * gnulib/import/Makefile.in: Likewise.
3604 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3605 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3606 * gnulib/import/alloca.c: New file.
3607 * gnulib/import/alloca.in.h: Likewise.
3608 * gnulib/import/config.charset: Likewise.
3609 * gnulib/import/fnmatch.c: Likewise.
3610 * gnulib/import/fnmatch.in.h: Likewise.
3611 * gnulib/import/fnmatch_loop.c: Likewise.
3612 * gnulib/import/localcharset.c: Likewise.
3613 * gnulib/import/localcharset.h: Likewise.
3614 * gnulib/import/m4/alloca.m4: Likewise.
3615 * gnulib/import/m4/codeset.m4: Likewise.
3616 * gnulib/import/m4/configmake.m4: Likewise.
3617 * gnulib/import/m4/fcntl-o.m4: Likewise.
3618 * gnulib/import/m4/fnmatch.m4: Likewise.
3619 * gnulib/import/m4/glibc21.m4: Likewise.
3620 * gnulib/import/m4/localcharset.m4: Likewise.
3621 * gnulib/import/m4/locale-fr.m4: Likewise.
3622 * gnulib/import/m4/locale-ja.m4: Likewise.
3623 * gnulib/import/m4/locale-zh.m4: Likewise.
3624 * gnulib/import/m4/mbrtowc.m4: Likewise.
3625 * gnulib/import/m4/mbsinit.m4: Likewise.
3626 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3627 * gnulib/import/m4/mbstate_t.m4: Likewise.
3628 * gnulib/import/m4/stdbool.m4: Likewise.
3629 * gnulib/import/m4/wchar_h.m4: Likewise.
3630 * gnulib/import/m4/wctype_h.m4: Likewise.
3631 * gnulib/import/m4/wint_t.m4: Likewise.
3632 * gnulib/import/mbrtowc.c: Likewise.
3633 * gnulib/import/mbsinit.c: Likewise.
3634 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3635 * gnulib/import/mbsrtowcs-state.c: Likewise.
3636 * gnulib/import/mbsrtowcs.c: Likewise.
3637 * gnulib/import/ref-add.sin: Likewise.
3638 * gnulib/import/ref-del.sin: Likewise.
3639 * gnulib/import/stdbool.in.h: Likewise.
3640 * gnulib/import/streq.h: Likewise.
3641 * gnulib/import/strnlen1.c: Likewise.
3642 * gnulib/import/strnlen1.h: Likewise.
3643 * gnulib/import/verify.h: Likewise.
3644 * gnulib/import/wchar.in.h: Likewise.
3645 * gnulib/import/wctype.in.h: Likewise.
3647 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Support shell wildcards for 'set auto-load safe-path'.
3650 * auto-load.c: Include fnmatch.h.
3651 (filename_is_in_dir): Rename to ...
3652 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3653 it. Update function comment. Rename dir_len to pattern_len. New
3654 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3655 messages. Use gdb_filename_fnmatch.
3656 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3658 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3659 * defs.h (gdb_filename_fnmatch): New declaration.
3660 * utils.c: Include fnmatch.h.
3661 (gdb_filename_fnmatch): New function.
3663 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3665 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3666 `-probe' and `-probe-stap' options.
3668 2012-07-01 Yao Qi <yao@codesourcery.com>
3670 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3671 always_inserted_off, and always_inserted_enums.
3672 Change always_inserted_mode's type to 'enum auto_boolean'.
3673 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3675 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3676 of add_setshow_enum_cmd.
3677 * infrun.c: Remove can_use_displaced_stepping_auto,
3678 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3679 can_use_displaced_stepping_enum.
3680 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3681 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3682 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3683 add_setshow_enum_cmd.
3685 2012-06-30 Doug Evans <dje@google.com>
3687 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3688 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3689 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3691 2012-06-29 Doug Evans <dje@google.com>
3693 * linespec.c: #include "stack.h".
3694 (decode_line_with_current_source): Moved here from symtab.c and
3695 renamed from decode_line_spec. All callers updated.
3696 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3697 renamed from decode_line_spec_1. All callers updated.
3698 * linespec.h (decode_line_with_current_source): Move declaration here
3699 from symtab.h and renamed from decode_line_spec.
3700 (decode_line_with_last_displayed): Move declaration here from symtab.h
3701 and renamed from decode_line_spec_1.
3702 * macrocmd.c: #include "linespec.h".
3703 * symtab.c: Remove #include "linespec.h".
3705 2012-06-28 Doug Evans <dje@google.com>
3707 * dwarf2read.c (get_cu_length): New function.
3708 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3709 (create_debug_types_hash_table): Ditto.
3710 (init_cutu_and_read_dies): Ditto.
3711 (init_cutu_and_read_dies_no_follow): Ditto.
3713 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3715 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3716 (struct abbrev_table): Define.
3717 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3719 (init_cutu_and_read_dies): Update.
3720 (abbrev_table_alloc_abbrev): New function. Replaces
3721 dwarf_alloc_abbrev. All callers updated.
3722 (abbrev_table_add_abbrev): New function.
3723 (abbrev_table_lookup_abbrev): New function. Replaces
3724 dwarf2_lookup_abbrev. All callers updated.
3725 (abbrev_table_read_table): New function. Contents moved here from
3726 dwarf2_read_abbrevs.
3727 (dwarf2_read_abbrevs): Call it.
3728 (abbrev_table_free): New function.
3729 (dwarf2_free_abbrev_table): Call it.
3731 2012-06-28 Stan Shebs <stan@codesourcery.com>
3733 * osdata.c (info_osdata_command): Filter out "Title" columns
3735 * common/linux-osdata.c (struct osdata_type): Add title field.
3736 (osdata_table): Add titles to each entry.
3737 (linux_command_xfer_osdata): Add a column for title data.
3739 2012-06-28 Stan Shebs <stan@codesourcery.com>
3741 Make logging work for MI.
3743 * interps.h (interp_set_logging_ftype): New typedef.
3744 (struct interp_procs): New field set_logging_proc.
3745 (current_interp_set_logging): Declare.
3746 * interps.c (current_interp_set_logging): New function.
3747 * cli/cli-logging.c: Include interps.h.
3748 (set_logging_redirect): Call current_interp_set_logging.
3749 (pop_output_files): Ditto.
3750 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3751 * mi/mi-console.h (mi_console_set_raw): Declare.
3752 * mi/mi-console.c (mi_console_set_raw): New function.
3753 * mi/mi-interp.c (saved_raw_stdout): New global.
3754 (mi_set_logging): New function.
3755 (_initialize_mi_interp): Add it to interp procs.
3757 2012-06-28 Doug Evans <dje@google.com>
3759 * symtab.c (lookup_symbol_aux_objfile): Use
3760 ALL_OBJFILE_PRIMARY_SYMTABS.
3762 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3764 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3766 * common/buffer.c: Include inttypes.h and stdint.h.
3767 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3769 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 Pedro Alves <palves@redhat.com>
3772 * gdbthread.h (ALL_THREADS): New macro.
3773 (thread_list): Declare.
3774 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3775 going, but instead fall through to the stepping handling.
3776 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3777 the passed in signal. Adjust debug output.
3778 (resume_callback): Rename to ...
3779 (linux_nat_resume_callback): ... this. Pass the thread's last
3780 stop signal, if in "pass" state.
3781 (linux_nat_resume): Adjust to rename.
3782 (stop_wait_callback): New assertion. Don't respawn signals;
3783 instead let the LWP remain with SIGNALLED set.
3784 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3785 * remote.c (append_pending_thread_resumptions): New.
3786 (remote_vcont_resume): Call it.
3787 * target.h (target_resume): Extend comment.
3789 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3791 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3793 2012-06-27 Doug Evans <dje@google.com>
3795 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3796 Delete have_addr_base, unused. All uses updated.
3797 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3798 (dwarf2_get_pc_bounds): Add ranges_base.
3799 (dwarf2_record_block_ranges): Ditto.
3801 2012-06-27 Tom Tromey <tromey@redhat.com>
3804 * varobj.c (varobj_create): Update.
3805 (varobj_set_value): Update.
3806 * tracepoint.c (validate_actionline): Update.
3807 (encode_actions_1): Update.
3808 * parse.c (parse_exp_1): Add 'pc' argument.
3809 (parse_exp_in_context): Add 'pc' argument. Change how
3810 expression_context_pc is set.
3811 (parse_expression): Update.
3812 (parse_field_expression): Update.
3813 * expression.h (parse_exp_1): Update.
3814 * eval.c (parse_to_comma_and_eval): Update.
3815 * breakpoint.c (set_breakpoint_condition): Update.
3816 (update_watchpoint): Update.
3817 (init_breakpoint_sal): Update
3818 (find_condition_and_thread): Update.
3819 (watch_command_1): Update.
3820 (update_breakpoint_locations): Update.
3821 * ada-lang.c (ada_read_renaming_var_value): Update.
3822 (create_excep_cond_exprs): Update.
3824 2012-06-27 Doug Evans <dje@google.com>
3826 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3829 2012-06-26 Doug Evans <dje@google.com>
3831 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3833 (error_check_comp_unit_head): New arg abbrev_section. All callers
3835 (read_and_check_comp_unit_head): Ditto.
3836 (read_and_check_type_unit_head): Ditto.
3838 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3840 New attribute 'last' for gdb.Symtab_and_line.
3841 * NEWS (Python Scripting): Add entry about the new attribute.
3842 * python/py-symtab.c (salpy_get_last): New function which
3843 implements the get method for the 'last' attribute of
3844 gdb.Symtab_and_line.
3845 (sal_object_getset): Add entry for the 'last' attribute.
3847 2012-06-26 Doug Evans <dje@google.com>
3849 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3850 (dwo_sections): Add macinfo, macro.
3851 (dwarf2_locate_dwo_sections): Watch for macro sections.
3852 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3853 All callers updated. Handle DWO files.
3855 * NEWS: Mention new options "set debug dwarf2-read" and
3856 "set debug symtab-create".
3857 * dwarf2read.c (dwarf2_read_debug): New static global.
3858 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3859 (process_queue): Ditto.
3860 (process_full_comp_unit): Ditto.
3861 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3862 * elfread.c (elf_symfile_read): Add debugging printf.
3863 * minsyms.c (install_minimal_symbols): Ditto.
3864 * psymtab.c (allocate_psymtab): Ditto.
3865 * symfile.c (allocate_symtab): Ditto.
3866 * symtab.c (symtab_create_debug): New global.
3867 (_initialize_symtab): Add new option "set debug symtab-create".
3868 * symtab.h (symtab_create_debug): Declare.
3870 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3871 (lookup_dwo_type_unit): Ditto.
3873 2012-06-26 Roland McGrath <roland@hack.frob.com>
3874 H.J. Lu <hongjiu.lu@intel.com>
3876 * amd64-linux-nat.c: Include <sys/user.h>.
3877 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3878 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3879 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3881 * configure.ac: Check if the fs_base and gs_base members of
3882 `struct user_regs_struct' exist.
3883 * config.in: Regenerated.
3884 * configure: Likewise.
3886 2012-06-25 Michael Eager <eager@eagercon.com>
3889 * python/python.c (gdbpy_write): Check for interrupted output.
3891 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3893 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3894 register as a stack alignment in ARM mode.
3896 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3898 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3899 * gnulib/config.in: Regenerate.
3900 * gnulib/configure: Likewise.
3901 * gnulib/import/m4/extensions.m4: Update it.
3902 * gnulib/import/m4/gnulib-common.m4: Likewise.
3903 * gnulib/import/m4/memmem.m4: Likewise.
3904 * gnulib/import/m4/mmap-anon.m4: Likewise.
3905 * gnulib/import/m4/multiarch.m4: Likewise.
3906 * gnulib/import/stdint.in.h: Likewise.
3908 2012-06-24 Yao Qi <yao@codesourcery.com>
3910 * corefile.c (write_memory_with_notification): New.
3911 * gdbcore.h: Declare write_memory_with_notification.
3912 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3913 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3914 * valops.c (value_assign): Likewise.
3915 * python/py-inferior.c (infpy_write_memory): Call
3916 'write_memory_with_notification'.
3918 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3920 * cc-with-index.sh: Use also -ex "set auto-load no".
3922 2012-06-23 Doug Evans <dje@google.com>
3925 * NEWS: Document additions to .gdb_index.
3926 * dwarf2read.c: #include "gdb/gdb-index.h".
3927 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3928 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3929 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3930 (dwarf2_read_index): Recognize version 7.
3931 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3932 block_kind, domain): All callers updated.
3933 (dw2_find_symbol_file): Handle new index CU values.
3934 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3935 (add_index_entry): New args is_static, kind. All callers updated.
3936 (offset_type_compare, uniquify_cu_indices): New functions
3937 (symbol_kind): New function.
3938 (write_psymtabs_to_index): Remove duplicate CU values.
3939 (write_psymtabs_to_index): Write .gdb_index version 7.
3941 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3943 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3944 * configure: Regenerate.
3946 2012-06-20 Yao Qi <yao@codesourcery.com>
3948 * python/py-inferior.c: Update comments of infpy_read_memory
3949 and infpy_write_memory.
3951 2012-06-19 Tom Tromey <tromey@redhat.com>
3954 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3955 (push_type_address_space): Remove.
3956 * parse.c (insert_into_type_stack): New function.
3957 (insert_type): Likewise.
3958 (insert_type_address_space): Rename from push_type_address_space.
3959 Insert tp_space_identifier.
3960 * c-exp.y (ptr_operator): New production.
3961 (abs_decl): Use ptr_operator.
3962 (space_identifier): Call insert_type_address_space.
3963 (ptype): Don't use const_or_volatile_or_space_identifier.
3964 (const_or_volatile_noopt): Call insert_type.
3965 (conversion_type_id, conversion_declarator): New productions.
3966 (operator): Use conversion_type_id.
3968 2012-06-18 Doug Evans <dje@google.com>
3970 * symtab.h (minimal_symbol): New member created_by_gdb.
3971 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3973 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3974 (search_symbols): Call it instead of lookup_symbol.
3975 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3977 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3978 Adjust address for DW_OP_GNU_addr_index.
3979 * dwarf2expr.h (dwarf_expr_context): Update comment.
3980 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3981 all callers updated. Handle TLS vars described with
3982 DW_OP_GNU_const_index.
3983 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3984 and DW_OP_GNU_const_index.
3985 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3987 * block.c (find_block_in_blockvector): Make explicit the fact that we
3988 ignore GLOBAL_BLOCK.
3990 2012-06-18 Tom Tromey <tromey@redhat.com>
3992 * c-exp.y (operator): Remove trailing space after "delete" and
3995 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3996 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 Switch i386 and derived targets to ON_STACK.
3999 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4000 (amd64_dicos_init_abi): Remove its installment.
4001 * dicos-tdep.c (dicos_init_abi): Remove the
4002 set_gdbarch_call_dummy_location call. Update the comment here.
4003 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4004 (i386_dicos_init_abi): Remove its installment.
4005 * i386-tdep.c (i386_push_dummy_code): New function.
4006 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4007 i386_push_dummy_code.
4009 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4011 Remove stale dummy frames.
4012 * breakpoint.c: Include dummy-frame.h.
4013 (longjmp_breakpoint_ops): New variable.
4014 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4015 bp_longjmp_call_dummy.
4016 (bpstat_what, bptype_string, print_one_breakpoint_location)
4017 (init_bp_location): Support bp_longjmp_call_dummy.
4018 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4019 (set_longjmp_breakpoint_for_call_dummy)
4020 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4022 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4023 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4024 FIXME comment and extend the other comment for bp_call_dummy.
4025 (set_longjmp_breakpoint_for_call_dummy)
4026 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4027 * dummy-frame.c: Include gdbthread.h.
4028 (pop_dummy_frame_bpt): New function.
4029 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4030 (dummy_frame_discard): New function.
4031 (cleanup_dummy_frames): Update the comment about longjmps.
4032 * dummy-frame.h (dummy_frame_discard): New declaration.
4033 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4034 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4035 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4036 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4037 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4038 keep_going if IS_LONGJMP and there is no other reason to stop.
4040 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4042 * remote-sim.c (sim_command_completer): Initialize
4045 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4047 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4048 * dwarf2loc.c (call_site_parameter_matches): Support
4049 CALL_SITE_PARAMETER_PARAM_OFFSET.
4050 (needs_dwarf_reg_entry_value): Push stub value.
4051 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4052 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4053 * gdbtypes.h (enum call_site_parameter_kind): New item
4054 CALL_SITE_PARAMETER_PARAM_OFFSET.
4055 (struct call_site.parameter.u): New field param_offset.
4057 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4059 Code cleanup: Generalize call_site.parameter key.
4060 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4061 variable dwarf_reg. New variable kind_u. Update parameters to
4062 push_dwarf_reg_entry_value.
4063 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4064 * dwarf2expr.h (enum call_site_parameter_kind)
4065 (union call_site_parameter_u): Forward declarations.
4066 (struct dwarf_expr_context_funcs): Update parameters and their
4067 description for push_dwarf_reg_entry_value.
4068 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4069 * dwarf2loc.c (call_site_parameter_matches): New function.
4070 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4071 description. Use call_site_parameter_matches.
4072 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4073 Update parameters and their description.
4074 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4075 New variable kind_u. Adjust the caller for updated parameters.
4076 (needs_dwarf_reg_entry_value): Update parameters.
4077 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4078 instead of attr. Update for the changed fields of struct
4079 call_site_parameter.
4080 * gdbtypes.h: Include dwarf2expr.h.
4081 (enum call_site_parameter_kind): New.
4082 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4083 fb_offset into new union u.
4085 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4087 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4088 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4091 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4093 * amd64-linux-nat.c (compat_x32_clock_t): New.
4094 (compat_x32_siginfo_t): Likewise.
4095 (compat_x32_siginfo_from_siginfo): Likewise.
4096 (siginfo_from_compat_x32_siginfo): Likewise.
4097 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4098 and siginfo_from_compat_x32_siginfo for x32.
4100 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4102 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4104 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4106 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4107 instead of gdbarch_ptr_bit.
4108 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4109 (amd64_supply_native_gregset): Likewise.
4110 (amd64_collect_native_gregset): Likewise.
4111 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4112 (amd64_supply_xsave): Likewise.
4113 (amd64_collect_fxsave): Likewise.
4114 (amd64_collect_xsave): Likewise.
4116 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4118 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4119 (amd64_linux_read_description): Check DS segment register for
4122 2012-06-15 Tom Tromey <tromey@redhat.com>
4124 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4125 init_cutu_and_read_dies.
4127 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4129 * MAINTAINERS (Write After Approval): Add myself to the list.
4131 2012-06-15 Tom Tromey <tromey@redhat.com>
4133 * valops.c (value_find_oload_method_list): Now static.
4134 * value.h (value_find_oload_method_list): Don't declare.
4136 2012-06-15 Tom Tromey <tromey@redhat.com>
4138 * valops.c (find_overload_match): Use value_ind.
4140 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4142 * infrun.c (handle_inferior_event): Correct indentation.
4144 2012-06-14 Doug Evans <dje@google.com>
4146 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4147 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4149 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4150 updated. Handle DEBUG_LOC_START_LENGTH.
4151 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4152 (loclist_describe_location): Ditto.
4154 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4157 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4158 after hiding inline functions.
4160 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4162 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4163 _initialize_inf_ttrace.
4165 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4167 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4168 _initialize_hppa_hpux_nat.
4170 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4172 * remote-sim.c (sim_command_completer): Change type of return
4173 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4175 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4176 Jan Kratochvil <jan.kratochvil@redhat.com>
4179 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4180 stack on a 16-byte boundary.
4182 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4184 * jit.c (finalize_symtab): Set function's return type to 'void' by
4187 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4188 H.J. Lu <hongjiu.lu@intel.com>
4190 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4191 Move bits common to both the classic LP64 and the new x32 ILP32
4193 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4194 (amd64_x32_linux_init_abi): New function.
4195 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4198 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4199 * i386-tdep.c (i386_pseudo_register_name): Make public.
4200 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4201 * amd64-tdep.c (amd64_dword_names): Add "eip".
4202 (amd64_x32_pseudo_register_type): New function
4203 (amd64_x32_init_abi): New function.
4205 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4208 * inferior.h (struct inferior_suspend_state): Comment out.
4209 (struct inferior): Comment out the field suspend.
4210 * infrun.c (struct infcall_suspend_state): Comment out the field
4212 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4215 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4217 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4218 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4219 function comment. Return ERROR for unresolved cases. Implement
4220 returning proper NAME.
4221 (yylex): Accept also NAME from classify_inner_name.
4222 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4223 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4225 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4227 2012-06-13 Tom Tromey <tromey@redhat.com>
4229 * breakpoint.c (condition_completer): New function.
4230 (_initialize_breakpoint): Use it.
4231 * value.c (complete_internalvar): New function.
4232 * value.h (complete_internalvar): Declare.
4234 2012-06-13 Tom Tromey <tromey@redhat.com>
4236 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4237 * breakpoint.c (catch_syscall_completer): Return a VEC.
4238 * cli/cli-cmds.c (complete_command): Update.
4239 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4240 (complete_on_enum): Likewise.
4241 * command.h: Include gdb_vecs.h.
4242 (completer_ftype): Change return type.
4243 (complete_on_cmdlist, complete_on_enum): Likewise.
4244 * completer.c (noop_completer, filename_completer)
4245 (location_completer): Return a VEC.
4246 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4248 (expression_completer, complete_line_internal, complete_line)
4249 (command_completer): Return a VEC.
4250 (gdb_completion_word_break_characters, line_completion_function):
4252 * completer.h: Include gdb_vecs.h.
4253 (complete_line, noop_completer, filename_completer)
4254 (expression_completer, location_completer, command_completer):
4256 * f-lang.c (f_word_break_characters): Return a VEC.
4257 * interps.c (interpreter_completer): Return a VEC.
4258 * language.h (struct language_defn)
4259 <la_make_symbol_completion_list>: Return a VEC.
4260 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4261 * symtab.c (free_completion_list): Take a VEC.
4262 (return_val_size, return_val_index): Remove.
4263 (return_val): Now a VEC.
4264 (completion_list_add_name): Update.
4265 (default_make_symbol_completion_list_break_on)
4266 (default_make_symbol_completion_list, make_symbol_completion_list)
4267 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4269 (add_filename_to_list): Update.
4270 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4272 (maybe_add_partial_symtab_filename): Update.
4273 (make_source_files_completion_list): Return a VEC.
4274 * symtab.h (default_make_symbol_completion_list_break_on)
4275 (default_make_symbol_completion_list, make_symbol_completion_list)
4276 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4277 (make_source_files_completion_list): Update.
4279 2012-06-13 Tom Tromey <tromey@redhat.com>
4281 * breakpoint.c (add_catch_command): Use completer_ftype.
4282 * breakpoint.h: Include command.h.
4283 (add_catch_command): Use completer_ftype.
4284 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4285 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4286 Use completer_ftype.
4287 * command.h (completer_ftype): New typedef.
4288 (set_cmd_completer): Use it.
4289 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4292 2012-06-13 Pedro Alves <palves@redhat.com>
4294 Partial revert of previous change.
4296 * serial.c (scb_base): New global.
4297 (serial_for_fd): New.
4298 (serial_open, serial_fdopen_ops): Link new serial in open serials
4300 (do_serial_close): Unlink serial from the open serials chain.
4302 2012-06-12 Pedro Alves <palves@redhat.com>
4304 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4306 (prepare_for_detach): No longer context switch here in non-stop
4308 (fetch_inferior_event): Ditto.
4309 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4310 to the event thread before removing breakpoints. Switch to the
4311 event thread before inserting breakpoints and resuming.
4312 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4313 event thread before resuming.
4314 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4315 Switch to the event thread before removing breakpoints.
4317 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4319 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4320 special characters correctly for the Windows shells. See
4321 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4323 [!__MINGW32__]: Remove extra double quote character from special
4326 2012-06-11 Stan Shebs <stan@codesourcery.com>
4328 * ui-out.h: Remove #if 0 declarations.
4329 * ui-out.c: Remove #if 0 functions.
4331 2012-06-11 Pedro Alves <palves@redhat.com>
4333 * ser-base.c (run_async_handler_and_reschedule): New.
4334 (fd_event, push_event): Use it.
4335 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4336 reference count to 1.
4337 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4339 (serial_is_open, serial_ref, serial_unref): New.
4340 * serial.h (serial_open): Adjust comment.
4341 (serial_is_open): Declare.
4342 (serial_close): Adjust comment.
4343 (serial_ref, serial_unref) Declare.
4344 (struct serial): New field 'refcnt'.
4346 2012-06-11 Pedro Alves <palves@redhat.com>
4348 Remove #if 0'd "connect" command, and unnecessary associated
4349 refcounting and serial reuse bits.
4351 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4352 * serial.c (last_serial_opened): Delete.
4354 (serial_open): Adjust.
4355 (serial_for_fd): Delete.
4356 (serial_fdopen_ops, do_serial_close): Adjust.
4357 (serial_fdopen_ops): Adjust.
4359 2012-06-11 Pedro Alves <palves@redhat.com>
4361 * serial.c (do_serial_close): Remove early return when SCB is
4364 2012-06-11 Tom Tromey <tromey@redhat.com>
4366 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4368 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4370 Fix regression by the "ambiguous linespec" series.
4371 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4372 get_last_displayed_symtab and get_last_displayed_line and depending
4375 2012-06-11 Tom Tromey <tromey@redhat.com>
4377 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4378 (dw2_find_symbol_file): Use it.
4380 2012-06-11 Michael Eager <eager@eagercon.com>
4382 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4383 * mips-linux-tdep.h (mips_signals): New
4385 2012-06-11 Tom Tromey <tromey@redhat.com>
4387 * infrun.c (handle_inferior_event)
4388 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4390 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4391 exception logic in all cases. Update comments.
4392 (insert_longjmp_resume_breakpoint): Set the exception resume
4395 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4397 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4399 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4401 * valarith.c (binop_types_user_defined_p): Fix a typo.
4403 2012-06-08 Yao Qi <yao@codesourcery.com>
4404 Chung-Lin Tang <cltang@codesourcery.com>
4406 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4407 * arch-utils.h: Declare.
4408 * gdbarch.sh: Add return_in_first_hidden_param_p.
4409 * gdbarch.c, gdbarch.h: Regenerated.
4410 * infcall.c (call_function_by_hand): Call
4411 gdbarch_return_in_first_hidden_param_p instead of
4412 language_pass_by_reference.
4414 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4415 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4416 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4417 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4418 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4419 `cplus_return_struct_by_reference'.
4420 (tic6x_return_value): Handle language cplusplus.
4421 (tic6x_return_in_first_hidden_param_p): New.
4422 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4424 2012-06-07 Doug Evans <dje@google.com>
4426 * dwarf2read.c (dwarf2_cu): Add comment.
4428 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4430 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4432 (mips_eabi_push_dummy_call): Likewise.
4433 (mips_n32n64_push_dummy_call): Likewise.
4434 (mips_o32_push_dummy_call): Likewise.
4435 (mips_o64_push_dummy_call): Likewise.
4437 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4439 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4441 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4443 * mips-tdep.c (mips_pseudo_register_type): Use
4444 mips_float_register_p.
4446 2012-06-06 Pedro Alves <palves@redhat.com>
4448 * infrun.c (handle_inferior_event): Remove calls to
4449 reinit_frame_cache that follow a context_switch call.
4451 2012-06-06 Pedro Alves <palves@redhat.com>
4453 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4454 context_switch and remove stale comment.
4456 2012-06-06 Pedro Alves <palves@redhat.com>
4458 * infrun.c (struct execution_control_state): Remove
4459 `new_thread_event' field.
4460 (handle_inferior_event): Simplify new threads handling; don't
4461 resume the inferior if we find a new thread.
4463 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4465 * NEWS: Document the deprecation of SH's 'regs' command.
4466 * inferior.h (all_registers_info): Add function declaration.
4467 * sh-tdep.c (sh_show_regs): Remove variable.
4468 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4469 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4470 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4471 (sh_show_regs_command): Remove functions.
4472 (sh_gdbarch_init): Don't set sh_show_regs.
4473 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4474 'info all-registers'.
4475 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4476 (sh64_show_regs): Remove functions.
4477 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4479 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4481 * configure.ac: Move development=true below AC_INIT.
4482 * configure: Regenerate.
4484 2012-06-05 Stan Shebs <stan@codesourcery.com>
4486 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4489 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4491 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4492 argument as ssize_t.
4493 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4494 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4495 * target.c (target_read_stack, target_write_memory)
4496 (target_write_raw_memory): Likewise.
4497 * target.h (target_read_stack, target_write_memory)
4498 (target_write_raw_memory): Likewise.
4500 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4502 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4503 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4504 * target.c (target_read_memory): Change LEN to ssize_t.
4505 * target.h (target_read_memory): Change LEN to ssize_t.
4507 2012-06-05 Pedro Alves <palves@redhat.com>
4511 * breakpoint.c (until_break_command): Only fetch the selected
4512 frame after decode_line_1.
4514 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4516 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4517 event breakpoint at _start, __start or main if a program
4518 interpreter is not found.
4520 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4522 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4524 * windows-tdep.c: #include "objfiles.h".
4525 (windows_iterate_over_objfiles_in_search_order): New function.
4526 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4527 iterate_over_objfiles_in_search_order gdbarch method to
4528 windows_iterate_over_objfiles_in_search_order.
4529 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4531 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4533 * gdbarch.sh: Add generation of
4534 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4535 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4536 (iterate_over_objfiles_in_search_order): New gdbarch method.
4537 * gdbarch.h, gdbarch.c: Regenerate.
4538 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4540 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4542 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4543 out of lookup_symbol_aux_symtabs.
4544 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4545 call to lookup_symbol_aux_objfile.
4546 (struct global_sym_lookup_data): New type.
4547 (lookup_symbol_global_iterator_cb): New function.
4548 (lookup_symbol_global): Search for symbol using
4549 gdbarch_iterate_over_objfiles_in_search_order and
4550 lookup_symbol_global_iterator_cb.
4551 * findvar.c (struct minsym_lookup_data): New type.
4552 (minsym_lookup_iterator_cb): New function.
4553 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4554 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4555 and minsym_lookup_iterator_cb.
4557 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4559 Revert the following patch:
4560 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4561 try locating the symbol in the symbol's own objfile first, before
4562 extending the search to all objfiles.
4563 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4564 out of lookup_symbol_aux_symtabs.
4565 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4566 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4567 Do not search EXCLUDE_OBJFILE.
4568 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4569 (lookup_symbol_global): Search for matches in the block's objfile
4570 first, before searching all other objfiles.
4572 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4574 * breakpoint.c (find_condition_and_thread): Stop parsing
4575 as soon as the first invalid keyword is found.
4577 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4579 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4581 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4583 * config/djgpp/djcheck.sh: Add copyright header.
4585 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4587 * copyright.py (update_files, main): Fix path to update-copyright
4590 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4592 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4593 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4594 for which a reminder to update by hand is printed.
4596 2012-06-04 Doug Evans <dje@google.com>
4598 * buildsym.c (make_blockvector): Add comment.
4600 2012-06-04 Pedro Alves <palves@redhat.com>
4602 * arch-utils.c (default_gdb_signal_from_target): Delete.
4603 * arch-utils.h (default_gdb_signal_from_target): Delete.
4604 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4605 gdbarch_gdb_signal_from_target_p.
4606 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4608 * gdbarch.h: Regenerate.
4609 * gdbarch.c: Regenerate.
4611 2012-06-04 Pedro Alves <palves@redhat.com>
4613 * gdbarch.sh (gdb_signal_from_target): Mention that the
4614 implementation of the method must be host independent.
4615 * gdbarch.h: Regenerate.
4617 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4619 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4621 (target_read_memory_bfd): New function.
4622 (symbol_file_add_from_memory): Use it.
4624 2012-06-03 Doug Evans <dje@google.com>
4626 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4628 (basic_lookup_transparent_type): Ditto.
4630 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4631 (ALL_PRIMARY_SYMTABS): Use it.
4632 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4633 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4634 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4635 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4636 (basic_lookup_transparent_type): Ditto.
4638 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4640 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4641 it to optimize resolution of demangled name.
4643 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 * configure.ac (development): Define new variable.
4646 Call AC_CHECK_LIB for mcheck if $development.
4647 (ERROR_ON_WARNING): Enable it by default only if $development.
4648 * config.in: Regenerate.
4649 * configure: Regenerate.
4651 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4653 * target.c (target_read_memory): Make LEN argument as size_t.
4654 * target.h (target_read_memory): Likewise.
4656 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4658 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4660 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4662 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4663 BookE interface for PowerPC server processors if not available
4664 in the Linux Kernel.
4666 2012-05-31 Keith Seitz <keiths@redhat.com>
4668 * linespec.c (decode_objc): Add cleanup to free
4670 (find_linespec_symbols): Add cleanup to free CLASSES.
4671 * symfile.c (find_separate_debug_file_by_debuglink): Add
4672 cleanup to free DEBUGLINK.
4673 * ui-out.c (clear_header_list): No need to check if
4674 HEADER_NEXT.COLHDR is NULL.
4675 Free HEADER_NEXT.COL_NAME.
4677 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4679 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4682 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4684 * configure.host (gdb_host_cpu): Handle tilegx*.
4685 (gdb_host): Handle tilegx-*-linux*.
4686 * tilegx-linux-nat.c: New file.
4687 * config/tilegx/linux.mh: New file.
4689 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4691 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4692 tilegx-linux-tdep.o.
4693 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4694 tilegx-linux-tdep.c.
4695 * configure.tgt: Handle tilegx-*-linux*.
4696 * tilegx-tdep.h: New file.
4697 * tilegx-tdep.c: New file.
4698 * tilegx-linux-tdep.c: New file.
4699 * regformats/reg-tilegx.dat: New file.
4701 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4703 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4704 accounting of hw watchpoints on ppc.
4706 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4708 * source.c (openp): Expand tilde in path entries.
4710 2012-05-29 Doug Evans <dje@google.com>
4712 * buildsym.c (block_compar): Fix comment.
4713 (end_symtab): Fix and clarify some comments.
4715 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4716 cleanup_undefined_types.
4717 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4718 All callers updated.
4720 2012-05-29 Tom Tromey <tromey@redhat.com>
4722 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4724 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4725 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4727 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4730 2012-05-29 Tristan Gingold <gingold@adacore.com>
4732 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4733 (struct darwin_info): ... New struct.
4734 (solib_darwin_pspace_data): New variable.
4735 (darwin_pspace_data_cleanup): New function.
4736 (get_darwin_info): Likewise.
4737 (darwin_dyld_version_ok, darwin_load_image_infos)
4738 (darwin_solib_get_all_image_info_addr_at_init)
4739 (darwin_solib_read_all_image_info_addr): Add info argument.
4741 (darwin_current_sos): Use per pspace structure.
4742 (darwin_solib_create_inferior_hook): Likewise.
4743 (darwin_clear_solib): Likewise.
4744 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4746 2012-05-28 Pedro Alves <palves@redhat.com>
4748 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4749 block that uses them. Clear ecss before handling each event.
4751 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4753 * solib-svr4.c (svr4_current_sos): New comment on
4754 svr4_current_sos_via_xfer_libraries fall back.
4756 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4759 it as a fallback for TYPE_IS_OPAQUE.
4760 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4761 symbols for lookup_symbol.
4763 2012-05-24 John Steele Scott <toojays@toojays.net>
4765 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4766 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4767 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4768 (check_producer): ... this new function, which also checks for ICC
4769 and caches the result.
4770 (producer_is_icc): New function.
4771 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4774 2012-05-24 Pedro Alves <palves@redhat.com>
4778 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4779 (default_gdb_signal_to_target): ... this. Add comment.
4780 (default_gdb_signal_from_host): Rename to ...
4781 (default_gdb_signal_from_target): ... this. Add comment.
4782 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4783 (default_gdb_signal_to_target): ... this.
4784 (default_gdb_signal_from_host): Rename to ...
4785 (default_gdb_signal_from_target): ... this.
4786 * corelow.c (core_open): Adjust to naming change. Replace comment.
4787 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4788 (gdb_signal_from_target): ... this. Adjust to
4789 default_gdb_signal_from_host naming change. Extend comment.
4790 (gdb_signal_to_host): Rename to ...
4791 (gdb_signal_to_target): ... this. Adjust to
4792 default_gdb_signal_to_host naming change.
4793 * gdbarch.h, gdbarch.c: Renegerate.
4795 2012-05-24 Pedro Alves <palves@redhat.com>
4799 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4801 2012-05-24 Pedro Alves <palves@redhat.com>
4805 Replace target_signal with gdb_signal throughout.
4807 2012-05-24 Pedro Alves <palves@redhat.com>
4811 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4812 string, instead of reusing the va_list argument.
4814 2012-05-24 Tom Tromey <tromey@redhat.com>
4816 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4819 2012-05-23 Doug Evans <dje@google.com>
4821 * symtab.c (search_symbols): Formatting fixes.
4822 (print_symbol_info): Formatting fixes.
4824 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4825 int64_t change to leb128 API.
4826 (read_encoded_value, decode_frame_entry_1): Ditto.
4827 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4828 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4829 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4830 (execute_stack_op): Ditto.
4831 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4832 (safe_read_uleb128, safe_read_sleb128): Ditto.
4833 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4834 (dwarf2_compile_expr_to_ax): Ditto.
4835 (locexpr_describe_location_piece): Ditto.
4836 (disassemble_dwarf_expression): Ditto.
4837 (locexpr_describe_location_1): Ditto.
4839 2012-05-23 Stan Shebs <stan@codesourcery.com>
4840 Kwok Cheung Yeung <kcy@codesourcery.com>
4842 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4843 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4844 (mi-cmd-info.o): New rule.
4845 * osdata.h (info_osdata_command): New declaration.
4846 * osdata.c (info_osdata_command): Change to non-static.
4847 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4848 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4849 * mi/mi-cmd-info.c: New file.
4851 2012-05-23 Doug Evans <dje@google.com>
4853 * symtab.c (search_symbols): Pass NULL for file_matcher to
4854 expand_symtabs_matching if there are no files to match.
4856 * gdbtypes.c (lookup_typename): Simplify.
4858 2012-05-23 Pedro Alves <palves@redhat.com>
4860 * arch-utils.h (default_target_signal_to_host): Delete.
4861 * arch-utils.c (default_target_signal_to_host): Delete.
4862 * gdbarch.sh (target_signal_to_host): Remove.
4863 * gdbarch.h, gdbarch.c: Regenerate.
4865 2012-05-22 Doug Evans <dje@google.com>
4867 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4869 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4870 (execute_cfa_program): Update to match API of leb128 functions.
4871 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4873 (read_unsigned_leb128, read_signed_leb128): Delete.
4874 (read_initial_length): Change type of buf argument to
4876 (read_encoded_value): Update to match API of leb128 functions.
4877 (decode_frame_entry): Change result to "const gdb_byte *", and
4878 similarly for "start" parameter.
4879 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4880 (dwarf2_build_frame_info): Change local frame_ptr to
4882 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4883 read_uleb128, read_sleb128. All callers updated.
4884 (safe_skip_leb128): New function.
4885 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4886 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4887 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4888 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4889 read_uleb128, read_sleb128.
4890 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4891 (execute_stack_op): Update to match API of leb128 functions.
4892 * dwarf2expr.h: #include "leb128.h".
4893 (read_uleb128, read_sleb128): Delete.
4894 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4895 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4896 * dwarf2loc.c (debug_loc_kind): New enum.
4897 (decode_debug_loc_addresses): New function.
4898 (decode_debug_loc_dwo_addresses): New function.
4899 (dwarf2_find_location_expression): Rewrite.
4900 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4901 (locexpr_describe_location_piece): Ditto.
4902 (disassemble_dwarf_expression): Ditto.
4903 (locexpr_describe_location_1): Ditto.
4904 (loclist_describe_location): Rewrite.
4905 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4906 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4907 (dwarf2_section_buffer_overflow_complaint): Renamed from
4908 dwarf2_macros_too_long_complaint. All callers updated.
4909 (skip_leb128): Delete.
4910 (init_cu_die_reader): Initialize reader->buffer_end.
4911 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4912 (skip_form_bytes): New arg buffer_end. All callers updated.
4913 Replace call to skip_leb128 with gdb_skip_leb128.
4914 (skip_unknown_opcode): New arg mac_end. All callers updated.
4915 (fill_in_loclist_baton): Initialize baton->from_dwo.
4917 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4919 * mips-linux-nat.c (mips_linux_read_description): Use a more
4920 verbose error message.
4922 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4924 * NEWS: Add MIPS/Linux DSP support.
4925 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4926 (SIGCONTEXT_DSPCTL): New macro.
4927 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4928 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4929 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4930 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4931 (N64_SIGCONTEXT_HI3): Likewise.
4932 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4933 (N64_SIGCONTEXT_LO3): Likewise.
4934 (N64_SIGCONTEXT_DSPCTL): Likewise.
4935 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4936 (mips_linux_o32_sigframe_init): Handle DSP registers.
4937 (mips_linux_n32n64_sigframe_init): Likewise.
4939 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4941 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4944 2012-05-22 Pedro Alves <palves@redhat.com>
4946 * target.h (store_waitstatus): Move declaration ...
4947 * inf-child.h (store_waitstatus): ... here.
4948 * target.c: Move inclusion of gdb_wait.h, and ...
4949 (store_waitstatus): ... this ...
4950 * inf-child.c: ... here.
4951 * linux-nat.c: Include inf-child.h.
4952 * rs6000-nat.c: Include inf-child.h.
4953 * spu-linux-nat.c: Include inf-child.h.
4955 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4957 * tracepoint.c (start_tracing): Add missing i18n markup.
4958 (stop_tracing, set_trace_user): Ditto.
4959 (set_trace_notes, set_trace_stop_notes): Ditto.
4961 2012-05-21 Tom Tromey <tromey@redhat.com>
4964 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4966 * value.h (value_cast_pointers): Update.
4967 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4968 (value_cast): Update.
4969 (update_search_result): New function.
4970 (do_search_struct_field): New, from search_struct_field. Check
4971 for ambiguous results.
4972 (search_struct_field): Rewrite.
4973 * infcall.c (value_arg_coerce): Update.
4974 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4975 value_cast_pointers.
4976 * ada-lang.c (ada_convert_actual): Update.
4978 2012-05-21 Tom Tromey <tromey@redhat.com>
4980 * macroexp.c (macro_stringify): Terminate the string.
4982 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4984 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4986 * auto-load.c (auto_load_expand_dir_vars): New function.
4987 (auto_load_safe_path_vec_update): Use it, remove the
4988 substitute_path_component call thanks to it.
4989 (auto_load_objfile_script): Remove the debug_file_directory processing.
4990 Use auto_load_expand_dir_vars, remove the substitute_path_component
4992 * configure: Regenerate.
4993 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4994 path. Escape $ also for $debugdir.
4995 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4996 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4998 2012-05-20 Doug Evans <dje@google.com>
5000 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5001 before use. Check for symtab->includes == NULL before scanning it.
5003 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5005 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5007 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5009 * NEWS: Add microMIPS support and "set mips compression",
5010 "show mips compression" commands.
5011 * mips-tdep.h (mips_isa): New enum.
5012 (gdbarch_tdep): Add mips_isa.
5013 (mips_pc_is_mips16): Update prototype.
5014 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5015 * mips-tdep.c (mips_compression_mips16): New variable.
5016 (mips_compression_micromips): Likewise.
5017 (mips_compression_strings): Likewise.
5018 (mips_compression_string): Likewise.
5019 (is_mips16_isa, is_micromips_isa): New functions.
5020 (is_mips16_addr): Rename to...
5021 (is_compact_addr): ... this.
5022 (unmake_mips16_addr): Likewise to...
5023 (unmake_compact_addr): ... this.
5024 (make_mips16_addr): Likewise to...
5025 (make_compact_addr): ... this.
5026 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5028 (mips_elf_make_msymbol_special): Handle microMIPS code.
5029 (msymbol_is_special): Rename to...
5030 (msymbol_is_mips16): ... this.
5031 (mips_make_symbol_special, mips_pc_is_mips16): Update
5033 (msymbol_is_mips, msymbol_is_micromips): New functions.
5034 (mips16_to_32_reg): Rename to...
5035 (mips_reg3_to_reg): ... this.
5036 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5037 (mips_pc_isa): Likewise.
5038 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5040 (mips_fetch_instruction): Pass return status instead of printing
5041 an error message if requested. Handle microMIPS code. Bail out
5043 (micromips_op): New macro.
5044 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5045 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5046 (b6s4_op, b7s3_reg): Likewise.
5047 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5048 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5049 (mips_insn_size): New function.
5050 (mips32_next_pc): Update mips_fetch_instruction call.
5051 (micromips_relative_offset7): New function.
5052 (micromips_relative_offset10): Likewise.
5053 (micromips_relative_offset16): Likewise.
5054 (micromips_pc_insn_size): Likewise.
5055 (micromips_bc1_pc): Likewise.
5056 (micromips_next_pc): Likewise.
5057 (unpack_mips16): Update mips_fetch_instruction call.
5058 (extended_mips16_next_pc): Update according to change to
5060 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5062 (mips16_scan_prologue): Update mips_fetch_instruction call.
5063 Update according to change to mips16_to_32_reg.
5064 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5065 (mips_insn16_frame_base_sniffer): Likewise.
5066 (micromips_decode_imm9): New function.
5067 (micromips_scan_prologue): Likewise.
5068 (mips_micro_frame_cache): Likewise.
5069 (mips_micro_frame_this_id): Likewise.
5070 (mips_micro_frame_prev_register): Likewise.
5071 (mips_micro_frame_sniffer): Likewise.
5072 (mips_micro_frame_unwind): New variable.
5073 (mips_micro_frame_base_address): New function.
5074 (mips_micro_frame_base): New variable.
5075 (mips_micro_frame_base_sniffer): New function.
5076 (mips32_scan_prologue): Update mips_fetch_instruction call.
5077 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5078 rather than for MIPS16.
5079 (mips_insn32_frame_base_sniffer): Likewise.
5080 (mips_addr_bits_remove): Handle microMIPS code.
5081 (deal_with_atomic_sequence): Rename to...
5082 (mips_deal_with_atomic_sequence): ... this. Update the type
5083 of the variable used to hold an instruction. Remove the ISA bit
5084 check. Update mips_fetch_instruction call.
5085 (micromips_deal_with_atomic_sequence): New function.
5086 (deal_with_atomic_sequence): Likewise.
5087 (mips_about_to_return): Handle microMIPS code. Update
5088 mips_fetch_instruction call.
5089 (heuristic_proc_start): Check for the standard MIPS ISA rather
5090 than for MIPS16. Update mips_pc_is_mips16 and
5091 mips_fetch_instruction calls. Handle microMIPS code.
5092 (mips_push_dummy_code): Handle microMIPS code.
5093 (mips_eabi_push_dummy_call): Likewise.
5094 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5095 (mips_o64_push_dummy_call): Handle microMIPS code.
5096 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5097 (is_delayed): Remove function.
5098 (mips_single_step_through_delay): Replace the call to is_delayed
5099 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5100 Handle microMIPS code.
5101 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5103 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5105 (micromips_in_function_epilogue_p): New function.
5106 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5108 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5110 (gdb_print_insn_mips): Likewise.
5111 (mips_breakpoint_from_pc): Likewise.
5112 (mips_remote_breakpoint_from_pc): New function.
5113 (mips32_instruction_has_delay_slot): Simplify making use of the
5114 updated mips_fetch_instruction interface.
5115 (micromips_instruction_has_delay_slot): New function.
5116 (mips16_instruction_has_delay_slot): Simplify making use of the
5117 updated mips_fetch_instruction interface.
5118 (mips_adjust_breakpoint_address): Check for the standard MIPS
5119 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5120 calls. Handle microMIPS code.
5121 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5122 (mips_skip_trampoline_code): Handle microMIPS code.
5123 (global_mips_compression): New function.
5124 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5125 file flags. Register the microMIPS remote breakpoint handler
5126 and heuristic frame unwinder.
5127 (show_mips_compression): New function.
5128 (_initialize_mips_tdep): Add the "set mips compression" and
5129 "show mips compression" commands.
5131 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5136 * amd64-darwin-tdep.c:
5137 * arm-symbian-tdep.c:
5141 * bfin-linux-tdep.c:
5148 * dwarf2-frame-tailcall.c:
5177 * microblaze-tdep.c:
5178 * mips-linux-tdep.c:
5186 * python/py-finishbreakpoint.c:
5187 * python/py-inferior.c:
5188 * python/py-infthread.c:
5192 * remote-m32r-sdi.c:
5196 * rs6000-aix-tdep.c:
5222 * amd64-darwin-tdep.c:
5223 * arm-symbian-tdep.c:
5224 * arm-tdep.c: Delete unused variables.
5226 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5228 Rename $ddir to $datadir.
5229 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5230 * auto-load.c (auto_load_safe_path_vec_update)
5231 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5232 * configure: Regenerate.
5233 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5234 Likewise. Remove the 'use $ddir' help string.
5236 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5238 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5239 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5241 2012-05-18 Tom Tromey <tromey@redhat.com>
5244 * valprint.h (struct value_print_options) <symbol_print>: New
5246 * valprint.c (user_print_options): Add default for symbol_print.
5247 (show_symbol_print): New function.
5248 (generic_val_print): Respect symbol_print.
5249 (_initialize_valprint): Add "print symbol" setting.
5250 * f-valprint.c (f_val_print): Respect symbol_print.
5251 * c-valprint.c (c_val_print): Respect symbol_print.
5253 * printcmd.c (print_address_symbolic): Return int. Ignore some
5255 (print_address_demangle): Return int.
5256 * defs.h: (print_address_symbolic): Return int.
5257 * value.h (print_address_demangle): Return int.
5259 2012-05-18 Tom Tromey <tromey@redhat.com>
5261 * valprint.c (val_print_string): Don't print leading space.
5262 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5263 print space before string or vtbl.
5264 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5266 * jv-valprint.c (java_value_print): Print space before string.
5267 * go-valprint.c (print_go_string): Print space before string.
5268 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5269 space before string.
5270 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5271 space before string or vtbl.
5272 * auxv.c (fprint_target_auxv): Print space after address.
5274 2012-05-18 Tom Tromey <tromey@redhat.com>
5276 * printcmd.c (print_address_demangle): Remove special case for 0.
5278 2012-05-18 Tom Tromey <tromey@redhat.com>
5280 * printcmd.c (print_address_demangle): Add 'opts' argument.
5281 * p-valprint.c (pascal_val_print): Update.
5282 * jv-valprint.c (java_val_print): Update.
5284 * valprint.c (generic_val_print): Update.
5285 (print_function_pointer_address): Add 'options' argument. Remove
5286 'addressprint' argument. Update.
5287 * m2-valprint.c (print_unpacked_pointer): Update.
5288 * gnu-v3-abi.c (print_one_vtable): Update.
5289 (gnuv3_print_method_ptr): Update.
5290 * f-valprint.c (f_val_print): Update.
5291 * cp-valprint.c (cp_print_value_fields): Update.
5292 * valprint.h (print_function_pointer_address): Update.
5293 * c-valprint.c (c_val_print): Update.
5295 2012-05-18 Tom Tromey <tromey@redhat.com>
5297 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5298 directly corresponding to the found psymtab.
5299 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5300 (dw2_find_pc_sect_symtab): Use it.
5301 * block.h (blockvector_contains_pc): Declare.
5302 * block.c (find_block_in_blockvector): New function.
5303 (blockvector_for_pc_sect): Use it.
5304 (blockvector_contains_pc): New function.
5306 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5308 * mips-tdep.h (mips_write_pc): New prototype.
5309 * mips-tdep.c (mips_write_pc): Make external, add description.
5310 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5313 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5315 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5317 (mips_unwind_pc, mips_write_pc): Likewise.
5318 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5321 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5323 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5324 proc_warn, proc_error, proc_get_status, proc_flags,
5325 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5326 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5327 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5328 proc_stop_process, proc_wait_for_stop, proc_run_process,
5329 proc_set_traced_signals, proc_set_traced_faults,
5330 proc_set_traced_sysentry, proc_set_traced_sysexit,
5331 proc_set_held_signals, proc_get_held_signals,
5332 proc_get_traced_signals, proc_get_traced_faults,
5333 proc_get_traced_sysentry, proc_get_traced_sysexit,
5334 proc_clear_current_fault, proc_set_current_signal,
5335 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5336 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5337 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5338 proc_get_current_thread, proc_get_current_thread,
5339 proc_get_current_thread, proc_update_threads,
5340 proc_update_threads, proc_update_threads, proc_update_threads,
5341 proc_iterate_over_threads, procfs_find_new_threads,
5342 procfs_pid_to_str): Make static. Remove advance declaration.
5343 (proc_cursig): Make static. Conditionalized defintion on
5344 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5345 (proc_syscall, proc_set_kill_on_last_close,
5346 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5347 proc_get_pending_signals, proc_get_signal_actions,
5348 proc_trace_signal, proc_ignore_signal): Delete.
5350 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5352 * coffread.c (cs_section_address): Passing proper argument for
5353 `bfd_get_section_vma'.
5354 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5355 `bfd_get_section_flags'.
5356 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5357 `bfd_get_section_vma'.
5359 2012-05-16 Tom Tromey <tromey@redhat.com>
5362 * macrotab.h: (macro_define_special): Declare.
5363 (enum macro_special_kind): New.
5364 (struct macro_definition) <argc, replacement>: Update comments.
5365 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5366 (macro_define_object_internal): New function.
5367 (macro_define_object): Use it.
5368 (macro_define_special): New function.
5369 (fixup_definition): New function.
5370 (macro_lookup_definition, foreach_macro_in_scope)
5371 (foreach_macro): Use fixup_definition.
5372 * macroexp.h (macro_stringify): Declare.
5373 * macroexp.c (free_buffer_return_text): New function.
5374 (stringify): Constify "arg".
5375 (macro_stringify): New function.
5376 * dwarf2read.c (macro_start_file): Call macro_define_special.
5378 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5379 Maciej W. Rozycki <macro@mips.com>
5381 * breakpoint.h (bp_location): Add related_address member.
5382 * inferior.h (get_return_value): Take a pointer to struct value
5383 instead of struct type for the function requested.
5384 * value.h (using_struct_return): Likewise.
5385 * gdbarch.sh (return_value): Take a pointer to struct value
5386 instead of struct type for the function requested.
5387 * breakpoint.c (set_breakpoint_location_function): Initialize
5388 related_address for bp_gnu_ifunc_resolver breakpoints.
5389 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5390 requested function's address to gdbarch_return_value.
5391 * eval.c (evaluate_subexp_standard): Pass the requested
5392 function's address to using_struct_return.
5393 * infcall.c (call_function_by_hand): Pass the requested
5394 function's address to using_struct_return and
5395 gdbarch_return_value.
5396 * infcmd.c (get_return_value): Take a pointer to struct value
5397 instead of struct type for the function requested.
5398 (print_return_value): Update accordingly.
5399 (finish_command_continuation): Likewise.
5400 * stack.c (return_command): Pass the requested function's
5401 address to using_struct_return and gdbarch_return_value.
5402 * value.c (using_struct_return): Take a pointer to struct value
5403 instead of struct type for the function requested. Pass the
5404 requested function's address to gdbarch_return_value.
5405 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5406 New function_value member, replacing function_type.
5407 (bpfinishpy_dealloc): Update accordingly.
5408 (bpfinishpy_pre_stop_hook): Likewise.
5409 (bpfinishpy_init): Likewise. Record the requested function's
5411 * mips-tdep.c (mips_fval_reg): New enum.
5412 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5413 words put in GP registers.
5414 (mips_o64_push_dummy_call): Update a comment.
5415 (mips_o32_return_value): Take a pointer to struct value instead
5416 of struct type for the function requested and use it to check if
5417 using the MIPS16 calling convention. Return the designated
5418 general purpose registers for floating-point values returned in
5420 (mips_o64_return_value): Likewise.
5421 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5422 (ppc_sysv_abi_broken_return_value): Likewise.
5423 (ppc64_sysv_abi_return_value): Likewise.
5424 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5425 value instead of struct type for the function requested.
5426 * amd64-tdep.c (amd64_return_value): Likewise.
5427 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5428 * arm-tdep.c (arm_return_value): Likewise.
5429 * avr-tdep.c (avr_return_value): Likewise.
5430 * bfin-tdep.c (bfin_return_value): Likewise.
5431 * cris-tdep.c (cris_return_value): Likewise.
5432 * frv-tdep.c (frv_return_value): Likewise.
5433 * h8300-tdep.c (h8300_return_value): Likewise.
5434 (h8300h_return_value): Likewise.
5435 * hppa-tdep.c (hppa32_return_value): Likewise.
5436 (hppa64_return_value): Likewise.
5437 * i386-tdep.c (i386_return_value): Likewise.
5438 * ia64-tdep.c (ia64_return_value): Likewise.
5439 * iq2000-tdep.c (iq2000_return_value): Likewise.
5440 * lm32-tdep.c (lm32_return_value): Likewise.
5441 * m32c-tdep.c (m32c_return_value): Likewise.
5442 * m32r-tdep.c (m32r_return_value): Likewise.
5443 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5444 * m68k-tdep.c (m68k_return_value): Likewise.
5445 (m68k_svr4_return_value): Likewise.
5446 * m88k-tdep.c (m88k_return_value): Likewise.
5447 * mep-tdep.c (mep_return_value): Likewise.
5448 * microblaze-tdep.c (microblaze_return_value): Likewise.
5449 * mn10300-tdep.c (mn10300_return_value): Likewise.
5450 * moxie-tdep.c (moxie_return_value): Likewise.
5451 * mt-tdep.c (mt_return_value): Likewise.
5452 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5453 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5454 (ppc_sysv_abi_broken_return_value): Likewise.
5455 (ppc64_sysv_abi_return_value): Likewise.
5456 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5457 * rl78-tdep.c (rl78_return_value): Likewise.
5458 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5459 * rx-tdep.c (rx_return_value): Likewise.
5460 * s390-tdep.c (s390_return_value): Likewise.
5461 * score-tdep.c (score_return_value): Likewise.
5462 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5463 (sh_return_value_fpu): Likewise.
5464 * sh64-tdep.c (sh64_return_value): Likewise.
5465 * sparc-tdep.c (sparc32_return_value): Likewise.
5466 * sparc64-tdep.c (sparc64_return_value): Likewise.
5467 * spu-tdep.c (spu_return_value): Likewise.
5468 * tic6x-tdep.c (tic6x_return_value): Likewise.
5469 * v850-tdep.c (v850_return_value): Likewise.
5470 * vax-tdep.c (vax_return_value): Likewise.
5471 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5472 * xtensa-tdep.c (xtensa_return_value): Likewise.
5473 * gdbarch.c: Regenerate.
5474 * gdbarch.h: Regenerate.
5476 2012-05-15 Tom Tromey <tromey@redhat.com>
5478 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5480 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5482 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5483 of command in two error message.
5485 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5487 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5489 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5491 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5493 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 * NEWS (show auto-load scripts-directory): Add forgotten command.
5497 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5499 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5502 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5504 * amd64-tdep.c: Include features/i386/x32.c and
5505 features/i386/x32-avx.c.
5506 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5507 initialize_tdesc_x32_avx.
5509 2012-05-14 Stan Shebs <stan@codesourcery.com>
5512 * breakpoint.h (enum bptype): New type bp_dprintf.
5513 (struct breakpoint): New field extra_string.
5514 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5515 (create_breakpoint): Add extra_string arg.
5516 * breakpoint.c (dprintf_breakpoint_ops): New.
5517 (is_breakpoint): Add bp_dprintf.
5518 (bpstat_what): Add dprintf case.
5519 (bptype_string): Ditto.
5520 (print_one_breakpoint_location): Ditto.
5521 (init_bp_location): Ditto.
5522 (bkpt_print_mention): Ditto.
5523 (dprintf_style_enums): New array.
5524 (dprintf_style): New global.
5525 (dprintf_function): New global.
5526 (dprintf_channel): New global.
5527 (update_dprintf_command_list): New function.
5528 (update_dprintf_commands): New function.
5529 (init_breakpoint_sal): Add extra_string argument, handle it.
5530 (create_breakpoint_sal): Add extra_string argument.
5531 (create_breakpoints_sal): Add extra_string argument, update callers.
5532 (find_condition_and_thread): Add extra argument.
5533 (create_breakpoint): Add extra_string argument, record it.
5534 (dprintf_command): New function.
5535 (break_command_1): Add arg to create_breakpoint call.
5536 (handle_gnu_v3_exceptions): Ditto.
5537 (trace_command): Ditto.
5538 (ftrace_command): Ditto.
5539 (strace_command): Ditto.
5540 (bkpt_print_mention): Add dprintf case.
5541 (create_breakpoint_sal_default): Add extra_string argument.
5542 (_initialize_breakpoint): Add new commands.
5543 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5544 * python/py-breakpoint.c (bppy_init): Ditto.
5545 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5547 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5549 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5551 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5553 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5556 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5558 Add a new function gdb.find_pc_line to the Python API.
5559 * NEWS (Python Scripting): Add entry about the new function.
5560 * python/python.c (gdbpy_find_pc_line): New function which
5561 implements gdb.find_pc_line.
5562 (GdbMethods): Add entry for the new function.
5564 2012-05-12 Pedro Alves <palves@redhat.com>
5566 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5567 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5569 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5571 * inferior.c: Include completer.h
5572 (initialize_inferiors): Set completer of add-inferior to
5575 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5577 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5578 gdbarch_ptr_bit for x32 core dump.
5580 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5582 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5583 and features/i386/x32-avx-linux.c.
5585 2012-05-11 Stan Shebs <stan@codesourcery.com>
5586 Kwok Cheung Yeung <kcy@codesourcery.com>
5588 * NEWS: Describe new info os commands.
5589 * common/linux-osdata.c (PID_T, TIME_T): Define.
5590 (MAX_PID_T_STRLEN): New.
5591 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5593 (command_from_pid): Add comment. Change to use PID_T.
5594 (commandline_from_pid): Change to use PID_T.
5595 (user_from_pid): Add comment.
5596 (get_process_owner): Add comment. Change to use PID_T and
5598 (get_number_of_cpu_cores): Add comment.
5599 (get_cores_used_by_process): Add comment. Change to use PID_T and
5601 (linux_xfer_osdata_processes): Change to use PID_T and
5603 (compare_processes): New function.
5604 (linux_xfer_osdata_processgroups): New function.
5605 (linux_xfer_osdata_threads): Change to use PID_T.
5606 (linux_xfer_osdata_fds): New function.
5607 (format_socket_state, print_sockets): New functions.
5608 (union socket_addr): New union.
5609 (linux_xfer_osdata_isockets): New function.
5610 (time_from_time_t, group_from_gid): New functions.
5611 (linux_xfer_osdata_shm): New function.
5612 (linux_xfer_osdata_sem): New function.
5613 (linux_xfer_osdata_msg): New function.
5614 (linux_xfer_osdata_modules): New function.
5615 (osdata_table): Add new entries.
5616 * common/buffer.c (buffer_xml_printf): Add support for long and
5617 long long format specifiers.
5619 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5621 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5622 (tdesc_x32_avx_linux): Likewise.
5624 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5626 Implement multi-component --with-auto-load-dir.
5627 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5629 (--with-auto-load-safe-path): Update the default value description.
5630 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5632 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5633 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5634 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5635 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5636 "set auto-load scripts-directory".
5637 * config.in: Regenerate.
5638 * configure: Regenerate.
5639 * configure.ac (--with-auto-load-dir): New configure option.
5640 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5642 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5644 Provide $ddir substitution for --with-auto-load-safe-path.
5645 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5647 * auto-load.c: Include observer.h.
5648 (auto_load_safe_path_vec_update): Call substitute_path_component for
5649 each component. New variable ddir_subst.
5650 (auto_load_gdb_datadir_changed): New function.
5651 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5652 AUTO_LOAD_SAFE_PATH. New comment.
5653 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5654 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5655 * config.in: Regenerate.
5656 * configure: Regenerate.
5657 * configure.ac (--auto-load-safe-path): Rename
5658 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5659 GDB_DATADIR/auto-load.
5660 * defs.h (substitute_path_component): New declaration.
5661 * top.c: Include observer.h.
5662 (set_gdb_datadir): New function.
5663 (init_main): Install it for "set data-directory".
5664 * utils.c (substitute_path_component): New function.
5666 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5668 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5669 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5670 DEBUG_FILE_DIRECTORY. Handle multiple components of
5671 DEBUG_FILE_DIRECTORY.
5673 2012-05-10 Tom Tromey <tromey@redhat.com>
5675 * dwarf2read.c (recursively_write_psymbols): New function.
5676 (write_psymtabs_to_index): Use it.
5678 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5680 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5681 (load_partial_comp_unit): Update.
5682 (queue_comp_unit): Add argument 'pretend_language'.
5683 (process_queue): Update.
5684 (psymtab_to_symtab_1): Skip dependencies that have a user.
5685 (load_partial_comp_unit_reader): Give meaning to the 'data'
5687 (load_full_comp_unit): Add 'pretend_language' argument.
5688 (process_full_comp_unit): Add 'pretend_language' argument. Set
5690 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5692 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5693 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5695 (prepare_one_comp_unit): Add 'pretend_language' argument.
5697 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5698 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5699 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5700 (dw2_do_instantiate_symtab): Check whether symtab was read in
5702 (dw2_instantiate_symtab): Add assertion. Call
5703 process_cu_includes.
5704 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5705 (partial_symtab_p): New typedef.
5706 (set_partial_user): New function.
5707 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5708 (scan_partial_symbols): Add imported CU to imported_symtabs.
5709 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5710 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5711 (get_symtab, recursively_compute_inclusions)
5712 (compute_symtab_includes, process_cu_includes)
5713 (process_imported_unit_die): New functions.
5714 (process_die) <DW_TAG_imported_unit>: New case.
5715 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5717 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5719 (struct partial_die_info) <locdesc>: Remove.
5721 (process_psymtab_comp_unit): Add 'read_partial' argument.
5723 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5724 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5725 (add_partial_symbol): Update.
5726 (process_die): Handle DW_TAG_partial_unit.
5727 (read_file_scope): Update comment.
5728 (load_partial_dies): Handle DW_TAG_imported_unit.
5729 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5730 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5732 2012-05-10 Tom Tromey <tromey@redhat.com>
5734 * cc-with-dwz.sh: New file.
5736 2012-05-10 Tom Tromey <tromey@redhat.com>
5738 * symtab.h (struct symtab) <includes, user>: New fields.
5739 * block.h (struct block_iterator) <d, idx, which>: New fields.
5740 * block.c (initialize_block_iterator, find_iterator_symtab)
5741 (block_iterator_step, block_iter_name_step)
5742 (block_iter_match_step): New functions.
5743 (block_iterator_first, block_iterator_next)
5744 (block_iter_name_first, block_iter_name_next)
5745 (block_iter_match_first, block_iter_match_next): Rewrite.
5746 (get_block_symtab): New function.
5748 2012-05-10 Tom Tromey <tromey@redhat.com>
5750 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5752 * jit.c (finalize_symtab): Use allocate_global_block,
5754 * buildsym.c (finish_block_internal): New function, from old
5756 (finish_block): Rewrite.
5757 (end_symtab): Use finish_block_internal, set_block_symtab.
5758 * block.h (struct global_block): New.
5759 (allocate_global_block, set_block_symtab): Declare.
5760 * block.c (allocate_global_block, set_block_symtab): New
5763 2012-05-10 Tom Tromey <tromey@redhat.com>
5765 * psymtab.c (partial_map_expand_apply): Add assertion.
5766 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5767 (psymtab_to_symtab): Find unshared psymtab.
5768 (dump_psymtab): Print including psymtabs.
5769 (recursively_search_psymtabs): New function.
5770 (expand_symtabs_matching_via_partial): Use it.
5771 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5773 (enum psymtab_search_status): New.
5775 2012-05-10 Tom Tromey <tromey@redhat.com>
5777 * tracepoint.c (scope_info): Update.
5778 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5779 (find_pc_sect_symtab, search_symbols)
5780 (default_make_symbol_completion_list_break_on)
5781 (make_file_symbol_completion_list): Update.
5782 * symmisc.c (dump_symtab_1): Update.
5783 * stack.c (print_frame_args, iterate_over_block_locals)
5784 (print_frame_labels, iterate_over_block_arg_vars): Update.
5785 * python/py-block.c (block_object) <dict>: Remove.
5787 <iter>: Change type.
5788 (blpy_iter): Update.
5789 (blpy_block_syms_iternext): Update.
5790 * psymtab.c (map_block): Use block iterators.
5791 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5792 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5793 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5794 * infrun.c (check_exception_resume): Update.
5795 * cp-support.c (make_symbol_overload_list_block): Update.
5796 * coffread.c (patch_opaque_types): Update.
5797 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5798 * block.h (struct block_iterator): New.
5799 (block_iterator_first, block_iterator_next, block_iter_name_first)
5800 (block_iter_name_next, block_iter_match_first)
5801 (block_iter_match_next): Declare.
5802 (ALL_BLOCK_SYMBOLS): Redefine.
5803 * block.c (block_iterator_first, block_iterator_next)
5804 (block_iter_name_first, block_iter_name_next)
5805 (block_iter_match_first, block_iter_match_next): New functions.
5806 * ada-lang.c (ada_add_block_symbols)
5807 (ada_make_symbol_completion_list): Use block iterator.
5809 2012-05-10 Tom Tromey <tromey@redhat.com>
5811 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5812 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5813 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5814 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5815 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5818 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5820 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5821 print-file-var-lib2.c, print-file-var-main.c and
5822 print-file-var.exp (located in gdb/testsuite/gdb.base).
5824 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5826 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5827 try locating the symbol in the symbol's own objfile first, before
5828 extending the search to all objfiles.
5829 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5830 out of lookup_symbol_aux_symtabs.
5831 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5832 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5833 Do not search EXCLUDE_OBJFILE.
5834 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5835 (lookup_symbol_global): Search for matches in the block's objfile
5836 first, before searching all other objfiles.
5838 2012-05-10 Tristan Gingold <gingold@adacore.com>
5840 * printcmd.c (set_command): Add pre/post inc/dec.
5842 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5844 * gdb.1: Document -ex option.
5846 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5848 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5849 * inferior.h (AT_SYMBOL): Delete.
5851 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5853 * mips-tdep.c (mips_push_dummy_code): New function.
5854 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5855 ON_STACK and install mips_push_dummy_code as our gdbarch
5856 push_dummy_code routine.
5858 2012-05-09 Pedro Alves <palves@redhat.com>
5860 * target.c (set_maintenance_target_async_permitted): Rename to ...
5861 (set_target_async_command): ... this.
5862 (show_maintenance_target_async_permitted): Rename to ...
5863 (show_target_async_command): ... this.
5864 (initialize_targets): Adjust.
5866 2012-05-08 Doug Evans <dje@google.com>
5868 * go-exp.y (classify_name): Add missing assignment of fields of
5871 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5873 Display the ">" prompt in interactive mode while reading canned
5874 commands, even when the current interpreter is MI.
5876 * interps.c (interp_set_temp): New function.
5878 * interps.h (interp_set_temp): Add prototype.
5880 * cli/cli-script.c (restore_interp): New cleanup function.
5881 (read_command_lines): Temporarily override the current interpreter
5882 with CLI and arrange for restoring the original one.
5884 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5886 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5888 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5890 * probe.c (parse_probes): Move conditional to check for
5891 debuginfo files from here...
5892 * stap-probe.c (stap_get_probes): ... to here.
5894 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5895 H.J. Lu <hongjiu.lu@intel.com>
5897 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5898 `movl %esp, %ebp' for the X32 ABI.
5900 2012-05-07 Tom Tromey <tromey@redhat.com>
5902 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5904 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5905 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5906 (dwarf_stack_op_name): Remove.
5907 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5908 (decode_locdesc): Use get_DW_OP_name.
5909 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5910 (dwarf2_compile_expr_to_ax): Likewise.
5911 (disassemble_dwarf_expression): Likewise.
5912 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5914 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5916 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5917 (sh_linux_sigtramp_cache): New function.
5918 (sh_linux_sigreturn_init): New function.
5919 (sh_linux_rt_sigreturn_init): New function.
5920 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5922 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5924 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5925 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5926 (sh_linux_init_abi): Add init calls to register new tramp_frame
5927 definitions under 32-bit SH, update comments.
5929 2012-05-07 Pedro Alves <palves@redhat.com>
5933 * amd64-linux-tdep.c: Include glibc-tdep.h.
5934 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5935 gdbarch_skip_solib_resolver callback.
5937 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5939 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5940 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5941 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5942 (add_auto_load_safe_path): Change the error message.
5943 (_initialize_auto_load): Change the "safe-path" help text.
5944 * configure: Regenerate
5945 * configure.ac (--without-auto-load-safe-path): Set
5946 WITH_AUTO_LOAD_SAFE_PATH to /.
5948 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5950 * stap-probe.h: Do not include unecessary `probe.h'.
5952 2012-05-05 Alan Modra <amodra@gmail.com>
5954 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5955 bfd_und_section_ptr.
5956 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5957 and bfd_com_section_ptr.
5959 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5961 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5963 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5965 * windows-nat.h (segment_register_p_ftype): New typedef.
5966 (windows_set_segment_register_p): Add declaration.
5967 * windows-nat.c (segment_register_p): New static global.
5968 (windows_set_segment_register_p): New function.
5969 (do_windows_fetch_inferior_registers): Add special handling
5970 for segment registers.
5971 * amd64-windows-nat.c: #include "amd64-tdep.h".
5972 (amd64_windows_segment_register_p): New function.
5973 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5974 * i386-windows-nat.c: #include "i386-tdep.h".
5975 (i386_windows_segment_register_p): New function.
5976 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5978 2012-05-04 Tristan Gingold <gingold@adacore.com>
5980 * printcmd.c (set_command): Emit a warning if the expression is not
5983 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5985 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5988 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5990 * stap-probe.c (stap_is_operator): Change declaration.
5991 (stap_get_opcode): Change return value.
5992 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5993 `stap_parse_argument_1'.
5995 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5997 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6000 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6002 Add two new methods global_block and static_block to gdb.Symtab
6004 * NEWS (Python scripting): Add entry about the new methods.
6005 * python/py-symtab.c (stpy_global_block): New function which
6006 implements the gdb.Symtab.global_block() method.
6007 (stpy_static_block): New function which implements the
6008 gdb.Symtab.static_block() method.
6009 (symtab_object_methods): Add entries for the two new methods.
6011 2012-05-03 Doug Evans <dje@google.com>
6013 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6016 2012-05-03 Yao Qi <yao@codesourcery.com>
6018 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6020 (i386_process_record): Ditto.
6022 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6024 * infcall.c (unwind_on_signal_p): Make static.
6026 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6028 * sol-thread.c (solaris_pid_to_str): Make static.
6029 (_initialize_sol_thread): Add prototype.
6031 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6033 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6035 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6037 * MAINTAINERS: Remove myself.
6039 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6041 Fix --without-auto-load-safe-path for MS-Windows host platform.
6042 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6044 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6046 * gdb_curses.h: Undefine KEY_EVENT before including curses
6047 headers. Move "#undef MOUSE_MOVED" before any curses header
6050 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6052 * features/i386/i386-mmx-linux.c: Regenerate.
6053 * features/rs6000/powerpc-32.c: Likewise.
6054 * features/rs6000/powerpc-32l.c: Likewise.
6055 * features/rs6000/powerpc-403.c: Likewise.
6056 * features/rs6000/powerpc-403gc.c: Likewise.
6057 * features/rs6000/powerpc-405.c: Likewise.
6058 * features/rs6000/powerpc-505.c: Likewise.
6059 * features/rs6000/powerpc-601.c: Likewise.
6060 * features/rs6000/powerpc-602.c: Likewise.
6061 * features/rs6000/powerpc-603.c: Likewise.
6062 * features/rs6000/powerpc-604.c: Likewise.
6063 * features/rs6000/powerpc-64.c: Likewise.
6064 * features/rs6000/powerpc-64l.c: Likewise.
6065 * features/rs6000/powerpc-750.c: Likewise.
6066 * features/rs6000/powerpc-860.c: Likewise.
6067 * features/rs6000/powerpc-e500.c: Likewise.
6068 * features/rs6000/powerpc-e500l.c: Likewise.
6069 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6070 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6071 * features/rs6000/rs6000.c: Likewise.
6073 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6075 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6077 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6078 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6079 (stap_parse_argument) <e>: Likewise.
6080 (handle_stap_probe) <byte_order>: Likewise.
6082 2012-04-30 Doug Evans <dje@google.com>
6084 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6085 init_and_read_dies_worker. All callers updated.
6086 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6087 replaced with init_cutu_and_read_dies.
6088 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6089 (find_partial_die): Remove FIXME. Don't free current CU.
6091 2012-04-30 Sterling Augustine <saugustine@google.com>
6093 * contrib: New directory.
6094 * contrib/test_pubnames_and_indexes.py: New file.
6096 2012-04-30 Doug Evans <dje@google.com>
6098 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6099 All callers updated.
6100 (init_cu_die_reader): Verify the section is non-empty.
6101 (dwarf_decode_line_header): Don't dereference section->asection
6102 until we know the section is present.
6104 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6106 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6109 2012-04-29 Yao Qi <yao@codesourcery.com>
6111 * gdb-code-style.el: New hook gdb-markup-hook
6112 and gdb-comment-hook.
6114 2012-04-28 Doug Evans <dje@google.com>
6116 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6117 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6119 * symfile.h (dwarf2_debug_sections): New member addr.
6120 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6121 (ctx_no_get_addr_index): New function.
6122 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6123 (ctx_no_get_addr_index): Declare.
6124 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6125 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6126 (dwarf_expr_ctx_funcs): Update.
6127 (needs_get_addr_index): New function.
6128 (needs_frame_ctx_funcs): Update.
6129 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6130 * dwarf2read.c: #include "gdbcore.h".
6131 (dwarf2_per_objfile): New members addr, dwo_files.
6132 (dwarf2_elf_names): Add entry for addr.
6133 (struct dwo_section_names): New type.
6134 (dwo_section_names): New static global.
6135 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6136 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6137 old debug_types_section member updated to use this.
6138 Rename member debug_types_section to info_or_types_section,
6140 (signatured_type): Rename member type_offset to type_offset_in_tu,
6141 all uses updated. New member type_offset_in_section.
6142 (struct dwo_sections): New type.
6143 (struct dwo_unit): New type.
6144 (struct dwo_file): New type.
6145 (die_reader_specs): New member dwo_file.
6146 (dwarf2_locate_sections): Watch for .debug_addr.
6147 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6148 (dwarf2_read_section): Get bfd of section from bfd's asection,
6150 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6151 (create_signatured_type_table_from_index): Initialize
6152 sig_type->info_or_types_section.
6153 (dw2_get_file_names): Statement lists for type units with DWO files
6154 live in the DWO file.
6155 (create_debug_types_hash_table): New function.
6156 (create_all_type_units): Rewrite.
6157 (init_cu_die_reader): New arg dwo_file, all callers updated.
6158 (init_and_read_dies_worker): Get section from
6159 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6160 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6161 continue reading the CU/TU from there.
6162 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6163 updated. Get section from this_cu->info_or_types_section.
6164 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6165 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6166 DW_FORM_GNU_str_index.
6167 (hash_dwo_file, eq_dwo_file): New functions.
6168 (allocate_dwo_file_hash_table): New function.
6169 (hash_dwo_unit, eq_dwo_unit): New functions.
6170 (allocate_dwo_unit_table): New function.
6171 (dwarf2_locate_dwo_sections): New function.
6172 (struct create_dwo_info_table_data): New type.
6173 (create_debug_info_hash_table_reader): New function.
6174 (create_debug_info_hash_table): New function.
6175 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6176 (lookup_dwo_file): New function.
6177 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6178 (free_dwo_file, free_dwo_file_cleanup): New functions.
6179 (free_dwo_file_from_slot, free_dwo_files): New functions.
6180 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6181 (dwarf2_record_block_ranges): Ditto.
6182 (read_partial_die): Ditto.
6183 (process_enumeration_scope): Update to use type_offset_in_section.
6184 (read_full_die_1): New function.
6185 (read_full_die): Rewrite.
6186 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6187 DW_FORM_GNU_str_index.
6188 (read_addr_index_1, read_addr_index): New functions.
6189 (read_addr_index_from_leb128): New function.
6190 (struct dwarf2_read_addr_index_data): New type.
6191 (dwarf2_read_addr_index_reader): New function.
6192 (dwarf2_read_addr_index): New function.
6193 (read_str_index): New function.
6194 (leb128_size): New function.
6195 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6196 If processing a type unit from a DWO file, get the line section
6198 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6199 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6200 DW_FORM_GNU_str_index.
6201 (lookup_die_type): Check whether section offset of type's die is
6202 known before looking it up. Remove assert. Condition can
6203 legimately happen for inter-cu type references.
6204 (dwarf_attr_name): Handle Fission attributes.
6205 (dwarf_form_name): Handle Fission forms.
6206 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6207 DW_FORM_GNU_str_index.
6208 (follow_die_sig): Update to use type_offset_in_section.
6209 (decode_locdesc): New case DW_OP_GNU_addr_index.
6210 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6211 DW_FORM_GNU_str_index.
6212 (cu_debug_loc_section): New function.
6213 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6214 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6215 Free DWO files if present.
6216 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6218 Refactor DIE reading.
6219 * dwarf2read.c (dwarf2_per_objfile): Replace members
6220 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6221 (die_reader_specs): New member "die_section". Temporarily make
6222 member "buffer" non-const, pending constifying all info_ptr uses.
6223 (die_reader_func_ftype): New typedef.
6224 (dw2_get_file_names_reader): New function.
6225 (dw2_get_file_names): Rewrite.
6226 (read_and_check_type_unit_head): Rename arg type_offset to
6228 (create_all_type_units): Improve debugging message.
6229 Improve dummy type unit check.
6230 (init_cu_die_reader): New arg "section". All callers updated.
6231 (init_and_read_dies_worker): New function.
6232 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6233 (init_cutu_and_read_dies_no_follow): New function.
6234 (init_cutu_and_read_dies_simple): New function.
6235 (process_psymtab_comp_unit_reader): New function.
6236 (process_psymtab_comp_unit): Delete args section,
6237 is_debug_types_section. Rewrite. All callers updated.
6238 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6239 All callers updated. Rewrite.
6240 (load_partial_comp_unit_reader): New function.
6241 (load_partial_comp_unit): Rewrite.
6242 (skip_children): New arg reader. Delete args buffer, cu.
6243 All callers updated.
6244 (skip_one_die): New arg reader. Delete args buffer, cu.
6245 All callers updated.
6246 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6247 All callers updated.
6248 (load_full_comp_unit_reader): New function.
6249 (load_full_comp_unit): Rewrite.
6250 (read_comp_unit): Delete.
6251 (read_die_and_children_1): Delete, contents moved ...
6252 (read_die_and_children): ... here.
6253 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6254 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6255 All callers updated.
6256 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6257 All callers updated.
6258 (find_partial_die): Rewrite load_all_dies support.
6259 (read_attribute_value): New arg reader. Delete args abfd, cu.
6260 All callers updated.
6261 (read_attribute): New arg reader. Delete args abfd, cu.
6262 All callers updated.
6263 (load_full_type_unit): Add assert.
6264 (read_signatured_type_reader): New function.
6265 (read_signatured_type): Rewrite.
6266 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6267 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6268 All callers updated. Set per_cu->cu = NULL after freeing it.
6269 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6270 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6271 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6272 (set_die_type): Update.
6273 (get_die_type_at_offset): Update.
6274 (read_file_scope): Call prepare_one_comp_unit.
6275 (read_type_unit_scope): Ditto.
6276 (prepare_one_comp_unit): Set producer if present.
6278 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6280 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6281 gettext function on `error'.
6283 2012-04-27 Doug Evans <dje@google.com>
6285 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6288 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6289 Tom Tromey <tromey@redhat.com>
6291 * breakpoint.c (struct breakpoint_objfile_data)
6292 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6293 <exception_probes>: New fields.
6294 (free_breakpoint_probes): New function.
6295 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6296 `_Unwind_DebugHook'.
6297 (create_exception_master_breakpoint): Likewise.
6298 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6299 * infrun.c: Including necessary header files for handling SystemTap
6301 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6302 via SystemTap probes.
6303 (check_exception_resume): Remove `func' argument. Handle exception
6304 unwinding breakpoint set via a SystemTap probe.
6305 (insert_exception_resume_from_probe): New function.
6307 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6308 Tom Tromey <tromey@redhat.com>
6309 Jan Kratochvil <jan.kratochvil@redhat.com>
6311 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6312 (COMMON_OBS): Likewise.
6313 (HFILES_NO_SRCDIR): Add `probe'.
6314 * NEWS: Mention support for static and SystemTap probes.
6315 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6316 SystemTap probes' arguments parser.
6317 * arm-linux-tdep.c: Including headers needed to perform the parsing
6318 of SystemTap probes' arguments.
6319 (arm_stap_is_single_operand): New function.
6320 (arm_stap_parse_special_token): Likewise.
6321 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6322 probes' arguments parser.
6323 * ax-gdb.c (require_rvalue): Removing static declaration.
6324 (gen_expr): Likewise.
6325 * ax-gdb.h (gen_expr): Declaring function.
6326 (require_rvalue): Likewise.
6327 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6328 (bkpt_probe_breakpoint_ops): New variable.
6329 (momentary_breakpoint_from_master): Set the `probe' value.
6330 (add_location_to_breakpoint): Likewise.
6331 (break_command_1): Using proper breakpoint_ops according to the
6332 argument passed by the user in the command line.
6333 (bkpt_probe_insert_location): New function.
6334 (bkpt_probe_remove_location): Likewise.
6335 (bkpt_probe_create_sals_from_address): Likewise.
6336 (bkpt_probe_decode_linespec): Likewise.
6337 (tracepoint_probe_create_sals_from_address): Likewise.
6338 (tracepoint_probe_decode_linespec): Likewise.
6339 (tracepoint_probe_breakpoint_ops): New variable.
6340 (trace_command): Using proper breakpoint_ops according to the
6341 argument passed by the user in the command line.
6342 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6343 static probes on breakpoints and tracepoints.
6344 * breakpoint.h (struct bp_location) <probe>: New field.
6345 * cli-utils.c (skip_spaces_const): New function.
6346 (extract_arg): Likewise.
6347 * cli-utils.h (skip_spaces_const): Likewise.
6348 (extract_arg): Likewise.
6349 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6350 * configure.ac: Append `stap-probe.o' to be generated when ELF
6352 * configure: Regenerate.
6353 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6354 * elfread.c: Include `probe.h' and `arch-utils.h'.
6355 (probe_key): New variable.
6356 (elf_get_probes): New function.
6357 (elf_get_probe_argument_count): Likewise.
6358 (elf_evaluate_probe_argument): Likewise.
6359 (elf_compile_to_ax): Likewise.
6360 (elf_symfile_relocate_probe): Likewise.
6361 (stap_probe_key_free): Likewise.
6362 (elf_probe_fns): New variable.
6363 (elf_sym_fns): Add `sym_probe_fns' value.
6364 (elf_sym_fns_lazy_psyms): Likewise.
6365 (elf_sym_fns_gdb_index): Likewise.
6366 (_initialize_elfread): Initialize objfile cache for static
6368 * gdb_vecs.h (struct probe): New forward declaration.
6369 (probe_p): New VEC declaration.
6370 * gdbarch.c: Regenerate.
6371 * gdbarch.h: Regenerate.
6372 * gdbarch.sh (stap_integer_prefix): New variable.
6373 (stap_integer_suffix): Likewise.
6374 (stap_register_prefix): Likewise.
6375 (stap_register_suffix): Likewise.
6376 (stap_register_indirection_prefix): Likewise.
6377 (stap_register_indirection_suffix): Likewise.
6378 (stap_gdb_register_prefix): Likewise.
6379 (stap_gdb_register_suffix): Likewise.
6380 (stap_is_single_operand): New function.
6381 (stap_parse_special_token): Likewise.
6382 (struct stap_parse_info): Forward declaration.
6383 * i386-tdep.c: Including headers needed to perform the parsing
6384 of SystemTap probes' arguments.
6385 (i386_stap_is_single_operand): New function.
6386 (i386_stap_parse_special_token): Likewise.
6387 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6388 probes' arguments parser.
6389 * i386-tdep.h (i386_stap_is_single_operand): New function.
6390 (i386_stap_parse_special_token): Likewise.
6391 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6392 * mipsread.c (ecoff_sym_fns): Likewise.
6393 * objfiles.c (objfile_relocate1): Support relocation for static
6395 * parse.c (prefixify_expression): Remove static declaration.
6396 (initialize_expout): Likewise.
6397 (reallocate_expout): Likewise.
6398 * parser-defs.h (initialize_expout): Declare function.
6399 (reallocate_expout): Likewise.
6400 (prefixify_expression): Likewise.
6401 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6402 of SystemTap probes' arguments.
6403 (ppc_stap_is_single_operand): New function.
6404 (ppc_stap_parse_special_token): Likewise.
6405 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6406 probes' arguments parser.
6407 * probe.c: New file, for generic statically defined probe support.
6408 * probe.h: Likewise.
6409 * s390-tdep.c: Including headers needed to perform the parsing of
6410 SystemTap probes' arguments.
6411 (s390_stap_is_single_operand): New function.
6412 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6413 probes' arguments parser.
6414 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6415 * stap-probe.c: New file, for SystemTap probe support.
6416 * stap-probe.h: Likewise.
6417 * symfile.h: Include `gdb_vecs.h'.
6418 (struct sym_probe_fns): New struct.
6419 (struct sym_fns) <sym_probe_fns>: New field.
6420 * symtab.c (init_sal): Initialize `probe' field.
6421 * symtab.h (struct probe): Forward declaration.
6422 (struct symtab_and_line) <probe>: New field.
6423 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6425 (stop_tracing): Likewise.
6426 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6428 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6429 Tom Tromey <tromey@redhat.com>
6431 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6432 and to compile agent expressions.
6433 * infrun.c (siginfo_make_value): New argument `ignore'.
6434 (siginfo_funcs): New struct.
6435 (_initialize_infrun): New argument when calling
6436 `create_internalvar_type_lazy'.
6437 * thread.c (thread_id_make_value): New argument `ignore'.
6438 (thread_funcs): New struct.
6439 (_initialize_thread): New argument when calling
6440 `create_internalvar_type_lazy'.
6441 * tracepoint.c (sdata_make_value): New argument `ignore'.
6442 (sdata_funcs): New struct.
6443 (_initialize_tracepoint): New argument when calling
6444 `create_internalvar_type_lazy'.
6445 * value.c (make_value): New struct.
6446 (create_internalvar_type_lazy): New argument `data'.
6447 (compile_internalvar_to_ax): New function.
6448 (value_of_internalvar): Properly handling `make_value' case.
6449 (clear_internalvar): Likewise.
6450 (show_convenience): Adding `TRY_CATCH' block.
6451 * value.h (internalvar_make_value): Delete, replace by...
6452 (struct internalvar_funcs): ... this.
6453 (create_internalvar_type_lazy) <fun>: Delete argument.
6454 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6455 (compile_internalvar_to_ax): New function.
6456 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6457 (tlb_funcs): New struct.
6458 (_initialize_windows_tdep): New argument when calling
6459 `create_internalvar_type_lazy'.
6461 2012-04-27 Mark Wielaard <mjw@redhat.com>
6463 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6464 see whether it is an address or a constant offset from DW_AT_low_pc.
6465 (dwarf2_record_block_ranges): Likewise.
6466 (read_partial_die): Likewise.
6468 2012-04-26 Mark Wielaard <mjw@redhat.com>
6470 * MAINTAINERS (Write After Approval): Add myself to the list.
6472 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6474 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6475 (proc_prettyprint_signal): Likewise.
6476 (proc_prettyprint_faultset): Likewise.
6477 (proc_prettyprint_fault): Likewise.
6478 (proc_prettyprint_actionset): Likewise.
6479 (proc_prettyprint_flags): Move to new proc-flags.c section.
6480 (proc_prettyfprint_flags): New prototype.
6481 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6482 (proc_syscall, proc_cursig): Likewise.
6483 (proc_set_kill_on_last_close): Likewise.
6484 (proc_unset_kill_on_last_close): Likewise.
6485 (proc_set_watchpoint): Make static.
6486 (proc_delete_dead_threads): Likewise.
6487 (procfs_set_watchpoint): Likewise.
6488 (_initialize_procfs): Add prototype.
6489 * proc-events.c: Include proc-utils.h.
6490 (init_syscall_table): Make static.
6491 * proc-api.c (_initialize_proc_api): Add prototype.
6492 * proc-flags.c: Include proc-utils.h.
6494 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6496 * configure.ac: Add AC_ARG_PROGRAM.
6497 * configure: Regenerate.
6499 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6501 Fix DW_AT_lower_bound defaults for DWARF-4+.
6502 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6503 high. New variable low_default_is_valid. Implement DWARF-4+
6504 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6505 no default by the DWARF standard.
6507 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6508 Maciej W. Rozycki <macro@codesourcery.com>
6510 * infrun.c (handle_inferior_event): Move the check for return
6511 trampolines ahead of the check for function trampolines.
6512 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6513 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6514 (mips_str_mips16_ret_stub): Likewise.
6515 (mips_str_call_fp_stub): Likewise.
6516 (mips_str_call_stub): Likewise.
6517 (mips_str_fn_stub): Likewise.
6518 (mips_str_pic): Likewise.
6519 (mips_in_frame_stub): New function.
6520 (mips_unwind_pc): Return the return address rather than the PC
6521 if the PC of an intermediate frame is inside a call thunk.
6522 (mips_is_stub_suffix): New function.
6523 (mips_is_stub_mode): Likewise.
6524 (mips_get_mips16_fn_stub_pc): Likewise.
6525 (mips_skip_mips16_trampoline_code): Update to handle all the
6526 currently generated stub types. Don't recurse into __fn_stub
6527 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6528 Use cooked register accesses.
6529 (mips_in_return_stub): Reintroduce function.
6530 (mips_skip_trampoline_code): Traverse trampolines recursively.
6531 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6533 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6537 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6539 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6540 * features/arm-with-m-vfp-d16.xml: New file. Describes
6541 Cortex-M with VFPv4-sp-d16 FPU register layout.
6542 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6543 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6544 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6545 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6546 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6548 2012-04-25 Doug Evans <dje@google.com>
6550 * cli/cli-decode.c (print_doc_line): Use stream instead of
6553 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6555 * features/arm-with-iwmmxt.c: Regenerate.
6556 * features/arm-with-m-fpa-layout.c: Likewise.
6557 * features/arm-with-m.c: Likewise.
6558 * features/arm-with-neon.c: Likewise.
6559 * features/arm-with-vfpv2.c: Likewise.
6560 * features/arm-with-vfpv3.c: Likewise.
6561 * features/mips-dsp-linux.c: Likewise.
6562 * features/mips-linux.c: Likewise.
6563 * features/mips64-dsp-linux.c: Likewise.
6564 * features/mips64-linux.c: Likewise.
6565 * features/s390-linux32.c: Likewise.
6566 * features/s390-linux32v1.c: Likewise.
6567 * features/s390-linux32v2.c: Likewise.
6568 * features/s390-linux64.c: Likewise.
6569 * features/s390-linux64v1.c: Likewise.
6570 * features/s390-linux64v2.c: Likewise.
6571 * features/s390x-linux64.c: Likewise.
6572 * features/s390x-linux64v1.c: Likewise.
6573 * features/s390x-linux64v2.c: Likewise.
6574 * features/tic6x-c62x-linux.c: Likewise.
6575 * features/tic6x-c62x.c: Likewise.
6576 * features/tic6x-c64x-linux.c: Likewise.
6577 * features/tic6x-c64x.c: Likewise.
6578 * features/tic6x-c64xp-linux.c: Likewise.
6579 * features/tic6x-c64xp.c: Likewise.
6580 * target-descriptions.c: Only generate `field_type' and `type'
6581 variables when needed.
6583 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6585 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6587 2012-04-25 Doug Evans <dje@google.com>
6589 Initial pass at Go language support.
6591 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6593 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6594 (YYFILES): Add go-exp.c.
6595 (YYOBJ): Add go-exp.o.
6596 (local-maintainer-clean): Delete go-exp.c.
6597 * defs.h (enum language): Add language_go.
6598 * dwarf2read.c: #include "go-lang.h".
6599 (fixup_go_packaging): New function.
6600 (process_full_comp_unit): Call it when processing Go CUs.
6601 (dwarf2_physname): Add Go support.
6602 (read_file_scope): Handle missing language spec for GNU Go.
6603 (set_cu_language): Handle DW_LANG_Go.
6604 * go-exp.y: New file.
6605 * go-lang.h: New file.
6606 * go-lang.c: New file.
6607 * go-typeprint.c: New file.
6608 * go-valprint.c: New file.
6609 * symtab.c: #include "go-lang.h".
6610 (symbol_set_language): Handle language_go.
6611 (symbol_find_demangled_name, symbol_set_names): Ditto.
6612 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6614 2012-04-24 Jim Meyering <meyering@redhat.com>
6616 avoid a few strncpy-induced buffer overruns
6617 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6618 fname and psargs before trying to concatenate.
6619 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6620 "name" before applying strchr.
6622 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6624 * CONTRIBUTE: Use unified diff instead of context diff when
6627 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6629 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6630 code. Handle JR.HB correctly.
6632 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6635 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6636 with the other MIPS16 helpers.
6638 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6640 * observer.sh: Conditionally declare `args', thus cleaning up
6641 unused instances of this variable.
6643 2012-04-24 Yao Qi <yao@codesourcery.com>
6645 Revert this patch to allow breakpoint always-inserted
6647 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6648 * breakpoint.c: Include record.h.
6649 (breakpoints_always_inserted_mode): Return false when the record
6652 * breakpoint.c (iterate_over_bp_locations): New.
6653 * breakpoint.h: Declare.
6654 New typedef walk_bp_location_callback.
6655 * record.c (record_open): Call record_init_record_breakpoints.
6656 (record_sync_record_breakpoints): New.
6657 (record_init_record_breakpoints): New.
6658 * NEWS: Mention supporting breakpoint always-inserted mode in
6661 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6663 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6666 2012-04-24 Yao Qi <yao@codesourcery.com>
6668 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6669 (is_catchpoint): ... it.
6670 (print_one_breakpoint_location): Caller update.
6671 * breakpoint.h: Update declaration.
6673 2012-04-23 David S. Miller <davem@davemloft.net>
6675 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6677 2012-04-23 Tom Tromey <tromey@redhat.com>
6679 * buildsym.c (add_free_pendings): Remove.
6680 * buildsym.h (add_free_pendings): Remove.
6682 2012-04-23 Doug Evans <dje@google.com>
6684 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6685 attr.u.unsnd instead of attr.u.addr.
6686 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6687 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6689 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6690 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6692 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6694 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6696 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6697 (mips_o32_return_value): Likewise.
6698 (mips_o64_return_value): Likewise.
6700 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6702 * ada-lang.c (ada_evaluate_subexp): Add cases for
6703 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6704 their treatment in eval.c.
6706 2012-04-21 David S. Miller <davem@davemloft.net>
6708 * sparc-tdep.c (X_DISP10): Define.
6709 (sparc_analyze_control_transfer): Handle compare-and-branch.
6711 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6713 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6714 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6716 2012-04-20 Nigel Stephens <nigel@mips.com>
6717 Maciej W. Rozycki <macro@codesourcery.com>
6719 * mips-tdep.c (mips_float_register_p): New function.
6720 (mips_convert_register_float_case_p): Use mips_float_register_p.
6721 (mips_register_type): Likewise.
6722 (mips_print_register): Likewise.
6723 (print_gp_register_row): Likewise.
6724 (mips_print_registers_info): Likewise.
6726 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6728 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6731 2012-04-20 Andrew Pinski <apinski@cavium.com>
6733 * MAINTAINERS (Write After Approval): Add myself to the list.
6735 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6737 * MAINTAINERS: Update my e-mail address.
6739 2012-04-20 Pedro Alves <palves@redhat.com>
6741 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6743 * configure: Regenerate.
6745 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6747 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6749 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6751 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6753 Fix compilation compatibility with python-2.4
6754 * python/py-type.c (convert_field): Cast ADDRSTRING for
6755 PyObject_SetAttrString as non-const. New comment.
6757 2012-04-19 Tom Tromey <tromey@redhat.com>
6759 * top.c (quit_target): Use all_cleanups.
6760 * main.c (captured_command_loop): Use all_cleanups.
6761 * exceptions.c (throw_exception): Use all_cleanups.
6763 2012-04-19 Pedro Alves <palves@redhat.com>
6765 * Makefile.in (GNULIB_BUILDDIR): New.
6766 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6767 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6768 (CLEANDIRS). Remove gnulib/import.
6769 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6771 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6772 (gnulib/import/Makefile): Replace gnulib/import with
6773 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6774 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6775 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6776 acx_configure_dir.m4.
6777 * acinclude.m4: Include acx_configure_dir.m4.
6778 * acx_configure_dir.m4: New file.
6779 * aclocal.m4: Regenerate.
6780 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6781 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6782 (GNULIB): New variable.
6783 (GNULIB_STDINT_H): Adjust.
6784 (AC_OUTPUT): Don't output gnulib/Makefile.
6785 * gdb/defs.h: Include build-gnulib/config.h.
6786 * aclocal.m4: Regenerate.
6787 * config.in: Regenerate.
6788 * configure: Regenerate.
6790 * gnulib/Makefile.in: New file.
6791 * gnulib/configure.ac: New file.
6792 * gnulib/aclocal.m4: New file.
6793 * gnulib/config.in: New file.
6794 * gnulib/configure: New file.
6795 * gnulib/: Re-run gnulib-tool to adjust.
6797 2012-04-19 Doug Evans <dje@google.com>
6799 * cleanups.h (struct cleanup): Move to cleanups.c.
6800 (make_cleanup_dtor_ftype): New typedef.
6801 (make_cleanup_dtor): Use it.
6802 (ALL_CLEANUPS): Replace with ...
6803 (all_cleanups): ... this. Declare. All uses updated.
6804 * cleanups.c: #include "gdb_assert.h".
6805 (sentinel_cleanup): New static global.
6806 (SENTINEL_CLEANUP): Define.
6807 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6808 (make_my_cleanup2): Assert result is non-NULL.
6809 (all_cleanups): New function.
6810 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6813 2012-04-19 Pedro Alves <palves@redhat.com>
6815 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6816 Adjust paths to gnulib imported files.
6818 2012-04-19 Pedro Alves <palves@redhat.com>
6820 * gnulib/: Move whole directory ...
6821 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6822 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6823 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6824 (aclocal_m4_deps): Adjust.
6825 * aclocal.m4: Regenerate.
6826 * configure: Regenerate.
6827 * configure.ac: Adjust AC_OUTPUT output.
6829 2012-04-19 Yao Qi <yao@codesourcery.com>
6831 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6833 * vec.c: Move it ...
6834 * common/vec.c: ... here.
6835 * vec.h: Move it ...
6836 * common/vec.h: ... here.
6838 2012-04-19 Yao Qi <yao@codesourcery.com>
6840 * gdb-code-style.el: New.
6842 2012-04-18 Pedro Alves <palves@redhat.com>
6844 Update gnulib from latest git.
6845 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6847 * gnulib/Makefile.am: Update.
6848 * gnulib/dummy.c: Update.
6849 * gnulib/extra/arg-nonnull.h: Update.
6850 * gnulib/extra/c++defs.h: Update.
6851 * gnulib/extra/update-copyright: Update.
6852 * gnulib/extra/warn-on-use.h: Update.
6853 * gnulib/inttypes.in.h: Update.
6854 * gnulib/m4/00gnulib.m4: Update.
6855 * gnulib/m4/extensions.m4: Update.
6856 * gnulib/m4/gnulib-cache.m4: Update.
6857 * gnulib/m4/gnulib-common.m4: Update.
6858 * gnulib/m4/gnulib-comp.m4: Update.
6859 * gnulib/m4/gnulib-tool.m4: Update.
6860 * gnulib/m4/include_next.m4: Update.
6861 * gnulib/m4/inttypes-pri.m4: Update.
6862 * gnulib/m4/inttypes.m4: Update.
6863 * gnulib/m4/longlong.m4: Update.
6864 * gnulib/m4/memchr.m4: Update.
6865 * gnulib/m4/memmem.m4: Update.
6866 * gnulib/m4/mmap-anon.m4: Update.
6867 * gnulib/m4/multiarch.m4: Update.
6868 * gnulib/m4/onceonly.m4: Update.
6869 * gnulib/m4/stddef_h.m4: Update.
6870 * gnulib/m4/stdint.m4: Update.
6871 * gnulib/m4/string_h.m4: Update.
6872 * gnulib/m4/warn-on-use.m4: Update.
6873 * gnulib/m4/wchar_h.m4: Update.
6874 * gnulib/m4/wchar_t.m4: Update.
6875 * gnulib/m4/wint_t.m4: Update.
6876 * gnulib/memchr.c: Update.
6877 * gnulib/memmem.c: Update.
6878 * gnulib/stddef.in.h: Update.
6879 * gnulib/stdint.in.h: Update.
6880 * gnulib/str-two-way.h: Update.
6881 * gnulib/string.in.h: Update.
6882 * gnulib/wchar.in.h: Update.
6884 * gnulib/extra/arg-nonnull.h: Delete.
6885 * gnulib/extra/c++defs.h: Delete.
6886 * gnulib/extra/warn-on-use.h: Delete.
6887 * gnulib/m4/wchar_h.m4: Delete.
6888 * gnulib/m4/wint_t.m4: Delete.
6889 * gnulib/wchar.in.h: Delete.
6891 * gnulib/extra/snippets/arg-nonnull.h: New.
6892 * gnulib/extra/snippets/c++defs.h: New.
6893 * gnulib/extra/snippets/warn-on-use.h: New.
6895 * aclocal.m4: Regenerate.
6896 * config.in: Regenerate.
6897 * configure: Regenerate.
6898 * gnulib/Makefile.in: Regenerate.
6900 2012-04-18 Pedro Alves <palves@redhat.com>
6902 Reimport the update-copyright module from gnulib
6903 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6905 * configure: Regenerate.
6906 * gnulib/Makefile.am: Update.
6907 * gnulib/Makefile.in: Regenerate.
6908 * gnulib/extra/update-copyright: Update.
6909 * gnulib/m4/gnulib-cache.m4: Update.
6910 * gnulib/m4/gnulib-comp.m4: Update.
6912 2012-04-18 Tristan Gingold <gingold@adacore.com>
6914 * configure.ac (aix): Put -lpthread into libs.
6915 * configure: Regenerate.
6917 2012-04-18 Tom Tromey <tromey@redhat.com>
6919 * linespec.c (convert_linespec_to_sals): Don't use
6921 (compare_msymbols): Arguments are minsym_and_objfile, not
6922 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6924 2012-04-18 Pedro Alves <palves@redhat.com>
6926 Revert gnulib/ part of:
6927 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6928 Copyright year update in most files (performed by copyright.sh).
6930 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6932 Fix 64-bit constants on 32-bit hosts.
6933 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6934 from unsigned long to ULONGEST.
6935 (read_signed_leb128): Change declaration return type from long to
6937 (dwarf2_const_value_attr): Change declaration parameter value from long
6939 (dwarf2_compute_name): Change variable value from long to LONGEST.
6940 (read_unsigned_leb128): Change return type, variable result and some
6941 casts from unsigned long to ULONGEST.
6942 (read_signed_leb128): Change return type, variable result and some
6943 casts from long to LONGEST.
6944 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6945 value from long to LONGEST.
6946 (dwarf2_const_value): Change variable value from long to LONGEST.
6947 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6948 plongest and hex_string.
6949 * symtab.h (struct general_symbol_info): Change ivalue from long to
6950 LONGEST, remove the comment.
6951 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6952 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6954 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6957 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6958 * ada-lang.c (ada_discrete_type_high_bound)
6959 (ada_discrete_type_low_bound): Fix function comment. Use
6960 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6961 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6962 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6963 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6964 Use TYPE_FIELD_ENUMVAL.
6965 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6966 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6967 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6968 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6970 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6971 * dwarf2read.c (process_enumeration_scope): Likewise.
6972 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6974 (class StructMainTypePrettyPrinter): Support also
6975 FIELD_LOC_KIND_ENUMVAL.
6976 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6978 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6979 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6980 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6981 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6983 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6984 accommodate enumval.
6985 (struct call_site): Adjust loc_kind to accommodate enumval.
6986 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6987 (TYPE_FIELD_ENUMVAL): New macros.
6988 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6989 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6991 * p-typeprint.c (pascal_type_print_base): Likewise.
6992 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6994 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6995 * python/py-type.c (convert_field): New variable addrstring. Use
6996 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6997 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6998 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6999 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7001 * valprint.c (generic_val_print): Likewise.
7003 2012-04-17 Doug Evans <dje@google.com>
7005 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7007 * dwarf2read.c: Whitespace fixes.
7008 (lookup_signatured_type): Tweak comment.
7009 (get_die_type_at_offset): Fix comment.
7011 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7013 * xcoffread.c (xcoff_secnum_to_sections): New function.
7014 (secnum_to_section, secnum_to_bfd_section): Reimplement
7015 using xcoff_secnum_to_sections. Rename "secnum" parameter
7017 (RECORD_MINIMAL_SYMBOL): Delete.
7018 (record_minimal_symbol): New function.
7019 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7020 by call to record_minimal_symbol and set misc_func_recorded
7021 to 1. Set last_csect_sec to the XCOFF section index instead
7022 of GDB's section_offset index. Update calls to
7023 prim_record_minimal_symbol_and_info to pass the BFD section
7026 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7028 * xcoffread.c (read_xcoff_symtab): Delete variables
7029 last_csect_val and last_csect_sec and associated code.
7031 2012-04-17 Doug Evans <dje@google.com>
7033 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7034 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7035 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7036 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7038 * cleanups.h: New file.
7039 * cleanups.c: New file.
7040 * Makefile.in (SFILES): Add cleanups.c.
7041 (HFILES_NO_SRCDIR): Add cleanups.h.
7042 (COMMON_OBS): Add cleanups.o.
7043 * defs.h (struct cleanup): Moved to cleanups.h.
7044 (do_cleanups,do_final_cleanups): Ditto.
7045 (discard_cleanups,discard_final_cleanups): Ditto
7046 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7047 (save_cleanups,save_final_cleanups): Ditto.
7048 (restore_cleanups,restore_final_cleanups): Ditto.
7049 (null_cleanup): Ditto.
7050 (make_my_cleanup,make_my_cleanup2): Ditto.
7051 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7052 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7053 (do_cleanups,do_final_cleanups): Ditto.
7054 (discard_cleanups,discard_final_cleanups): Ditto
7055 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7056 (save_cleanups,save_final_cleanups): Ditto.
7057 (restore_cleanups,restore_final_cleanups): Ditto.
7058 (null_cleanup): Ditto.
7059 (make_my_cleanup,make_my_cleanup2): Ditto.
7060 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7062 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7064 (make_cleanup_dyn_string_delete): Ditto.
7065 (make_cleanup_ui_file_delete): Ditto.
7066 (make_cleanup_ui_out_redirect_pop): Ditto.
7067 (make_cleanup_free_section_addr_info): Ditto.
7068 (make_cleanup_restore_integer): Ditto.
7069 (make_cleanup_unpush_target): Ditto.
7070 (make_cleanup_value_free_to_mark): Ditto.
7071 (make_cleanup_value_free): Ditto.
7072 (make_cleanup_free_so): Ditto.
7074 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7076 New option "set debug auto-load".
7077 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7078 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7079 (auto_load_safe_path_vec_update)
7080 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7082 (file_is_auto_load_safe): New parameters debug_fmt and ....
7083 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7084 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7085 caller by explanatory string.
7086 (_initialize_auto_load): Register "set debug auto-load".
7087 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7089 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7090 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7091 by explanatory string.
7092 * main.c (captured_main): Likewise.
7093 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7094 (source_section_scripts): Likewise.
7096 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7098 New option "set auto-load safe-path".
7099 * NEWS: New commands "set auto-load safe-path"
7100 and "show auto-load safe-path".
7101 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7102 (auto_load_safe_path, auto_load_safe_path_vec)
7103 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7104 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7105 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7106 (source_gdb_script_for_objfile): New variable is_safe. Call
7107 file_is_auto_load_safe. Return if it is not.
7108 (struct loaded_script): New field loaded.
7109 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7110 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7111 output "Missing" to "No".
7112 (_initialize_auto_load): New variable cmd. Initialize
7113 auto_load_safe_path. Register "set auto-load safe-path",
7114 "show auto-load safe-path" and "add-auto-load-safe-path".
7115 * auto-load.h (maybe_add_script): Add parameter loaded.
7116 (file_is_auto_load_safe): New declaration.
7117 * config.in: Regenerate.
7118 * configure: Regenerate.
7119 * configure.ac: New parameters --with-auto-load-safe-path
7120 and --without-auto-load-safe-path.
7121 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7122 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7123 * main.c (captured_main): Check file_is_auto_load_safe for
7125 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7126 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7127 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7130 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7132 auto-load: Implementation.
7133 * NEWS: New descriptions for "info auto-load",
7134 "info auto-load gdb-scripts", "info auto-load python-scripts",
7135 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7136 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7137 and "show auto-load-scripts". New description for "set auto-load",
7138 "show auto-load", "set auto-load gdb-scripts",
7139 "show auto-load gdb-scripts", "set auto-load python-scripts",
7140 "show auto-load python-scripts", "set auto-load local-gdbinit",
7141 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7142 "show auto-load libthread-db".
7143 * auto-load.c: Remove include python/python-internal.h. Add includes
7144 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7146 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7147 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7148 (gdbpy_global_auto_load): Rename to ...
7149 (global_auto_load): ... here.
7150 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7151 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7152 (script_language_gdb, source_gdb_script_for_objfile): New.
7153 (struct loaded_script): New field language.
7154 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7156 (maybe_add_script): Add parameter language. Drop redundant
7157 entry.full_path initialization. Initialize entry.language and
7159 (auto_load_objfile_script): Change parameter suffix to language.
7160 Remove the call of maybe_add_script.
7161 Call language->source_script_for_objfile.
7162 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7164 (collect_matching_scripts): Adjust it for
7165 struct collect_matching_scripts_data.
7166 (auto_load_info_scripts_pattern_nl): New variable.
7167 (info_auto_load_scripts): Rename to ...
7168 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7169 for struct collect_matching_scripts_data.
7170 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7171 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7172 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7173 (auto_load_info_cmdlist_get): New.
7174 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7175 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7176 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7177 "info auto-load local-gdbinit".
7178 * auto-load.h (struct script_language): New.
7179 (gdbpy_global_auto_load): Rename to ...
7180 (global_auto_load): ... here.
7181 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7182 (auto_load_local_gdbinit_loaded): New declarations.
7183 (maybe_add_script): New parameter language.
7184 (auto_load_objfile_script): Change parameter suffix to language.
7185 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7186 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7187 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7189 * linux-thread-db.c: Include auto-load.h and ctype.h.
7190 (auto_load_thread_db, show_auto_load_thread_db): New.
7191 (struct thread_db_info): New field filename.
7192 (delete_thread_db_info): Call xfree for FILENAME.
7193 (try_thread_db_load): Initialize FILENAME.
7194 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7195 if !AUTO_LOAD_THREAD_DB.
7196 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7197 (_initialize_thread_db): Install auto_load_thread_db
7198 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7199 as "info auto-load libthread-db".
7200 * main.c (captured_main): Rename gdbpy_global_auto_load to
7201 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7202 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7203 (print_gdb_help): Extend the help for 'local init file'.
7204 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7205 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7206 (auto_load_scripts): Rename to ...
7207 (auto_load_python_scripts): ... here, update the comment.
7208 (gdbpy_load_auto_script_for_objfile): New declaration.
7209 (show_auto_load_python_scripts, script_language_python)
7210 (gdbpy_load_auto_script_for_objfile): New.
7211 (source_section_scripts): Refactor the code.
7212 (load_auto_scripts_for_objfile): Rename to ...
7213 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7214 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7215 (info_auto_load_python_scripts): New.
7216 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7217 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7218 Register "set auto-load-scripts" as its deprecated alias. Register
7219 "info auto-load python-scripts". Register "info auto-load-scripts" as
7220 its deprecated alias.
7221 (load_auto_scripts_for_objfile): Rename to ...
7222 (gdbpy_load_auto_scripts_for_objfile): ... here.
7223 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7224 (gdbpy_load_auto_scripts_for_objfile): ... here.
7226 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7228 auto-load: Move files.
7229 * Makefile.in (SFILES): Add auto-load.c.
7230 (HFILES_NO_SRCDIR): Add auto-load.h.
7231 (COMMON_OBS): Add auto-load.o.
7232 (distclean): Change .gdbinit for gdb-gdb.gdb.
7233 * auto-load.c: New file, with parts from python/py-auto-load.c.
7234 * auto-load.h: New file, with parts from python/python.h.
7235 * configure: Regenerate.
7236 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7237 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7238 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7239 * main.c: Include auto-load.h.
7240 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7241 command.h, observer.h and progspace.h to auto-load.c. Add include
7243 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7244 (struct loaded_script, auto_load_pspace_data)
7245 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7246 (hash_loaded_script_entry, eq_loaded_script_entry)
7247 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7248 (maybe_add_script): Move to auto-load.c.
7249 (source_section_scripts): Change maybe_add_script parameters passing,
7250 use script_not_found_warning_print.
7251 (clear_section_scripts, auto_load_objfile_script)
7252 (auto_load_new_objfile, loaded_script_ptr)
7253 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7254 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7255 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7256 auto_load_new_objfile and info_auto_load_scripts initizations to
7258 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7260 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7263 * charset.c (find_charset_names): Remove variables ix and elt.
7264 Use free_char_ptr_vec.
7265 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7266 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7267 debugdir_end. New variable debugdir_len.
7268 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7269 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7271 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7272 and elt. Use free_char_ptr_vec.
7273 * source.c (add_path): Remove variables argv, arg and argv_index.
7274 New variables dir_vec, back_to, ix and name.
7275 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7276 make_cleanup_freeargv. Remove variable separator. Simplify the code
7277 no longer expecting DIRNAME_SEPARATOR.
7278 (openp): Remove variable p, p1 and len. New variables dir_vec,
7279 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7280 no longer expecting DIRNAME_SEPARATOR.
7281 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7282 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7284 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7285 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7286 (dirnames_to_char_ptr_vec): New functions.
7288 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7291 * source.c (add_path): Remove always true conditional 'p == 0' and
7292 unindent its code block.
7294 2012-04-17 Pedro Alves <palves@redhat.com>
7296 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7297 (FIELD_BITPOS_LVAL): ... this.
7298 (FIELD_BITPOS): New.
7299 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7300 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7301 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7303 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7305 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7306 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7307 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7310 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7312 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7313 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7314 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7315 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7316 * jv-lang.c (java_link_class_type): Likewise, once.
7317 * stabsread.c (read_enum_type): Likewise.
7319 2012-04-16 Yao Qi <yao@codesourcery.com>
7321 * common/agent.c (agent_run_command): Add one more parameter `len'.
7323 * common/agent.h: Update declaration.
7324 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7326 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7328 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7331 * value.c (value_actual_type): New function.
7332 * value.h (value_actual_type): New declaration.
7333 * varobj.c (update_type_if_necessary): New function.
7334 (varobj_create): Call value_actual_type instead of
7336 (install_dynamic_child): distinct changed and type changed MI variable
7338 (update_dynamic_varobj_children): Updated for install_dynamic_child
7339 change. All callers updated.
7340 (varobj_update): Support for MI variable object type change if
7341 the value changed and RTTI is used to determine the type.
7342 (create_child_with_value): Call value_actual_type instead of
7344 (adjust_value_for_child_access): Extended with a new parameter which
7345 specify whether the given value should be casted to enclosing type.
7346 All callers updated.
7348 2012-04-14 Yao Qi <yao@codesourcery.com>
7350 Import gnulib module inttypes from git
7351 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7352 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7353 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7354 gnulib/m4/inttypes-pri.m4
7355 * aclocal.m4, config.in, configure: Regenerated.
7356 * gnulib/Makefile.am: Update.
7357 * gnulib/Makefile.in: Update.
7358 * gnulib/m4/gnulib-cache.m4: Update.
7359 * gnulib/m4/gnulib-comp.m4: Update.
7360 * gnulib/inttypes.in.h: New.
7361 * gnulib/m4/inttypes-pri.m4: New.
7362 * gnulib/m4/inttypes.m4: New.
7364 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7366 * infrun.c (resume): Update PC address to the real PC after
7367 preparing to do displaced stepping.
7369 2012-04-12 Doug Evans <dje@google.com>
7371 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7372 All callers updated.
7374 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7376 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7378 2012-04-12 Doug Evans <dje@google.com>
7380 * dwarf2read.c (create_all_type_units): Renamed from
7381 create_debug_types_hash_table. All callers updated.
7383 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7384 local type_sig to sig_type, type_offset to type_offset_in_tu.
7385 (hash_signatured_type): Renamed from hash_type_signature,
7386 all callers updated.
7387 (eq_signatured_type): Renamed from eq_type_signature,
7388 all callers updated.
7389 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7390 (process_enumeration_scope): Ditto.
7391 (lookup_signatured_type_at_offset): Ditto.
7392 (load_full_type_unit, read_signatured_type): Ditto.
7394 2012-04-12 Yao Qi <yao@codesourcery.com>
7396 * remote.c (async_remote_interrupt): Correct function name in
7398 (async_remote_interrupt_twice): Ditto.
7400 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7402 * source.c (find_and_open_source): Consistently pass resulting
7403 full path through xfullpath.
7405 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 Provide more specific displaced-stepping memory error message.
7408 * infrun.c (displaced_step_prepare): New variable status. Call
7409 target_read_memory instead of read_memory, provide more specific
7412 2012-04-11 Tristan Gingold <gingold@adacore.com>
7415 * darwin-nat.c (darwin_execvp): Revert previous patch.
7417 2012-04-11 Tristan Gingold <gingold@adacore.com>
7420 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7423 2012-04-11 Tristan Gingold <gingold@adacore.com>
7425 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7428 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7430 New command 'explore' which helps explore values and types in
7432 * NEWS: Add an entry about the new 'explore' command.
7433 * data-directory/Makefile.in: Add gdb/command/explore.py
7434 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7435 command using the GDB Python API.
7437 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7439 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7440 extension in jump target calculation.
7442 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7444 * mips-tdep.c (mips32_next_pc): Handle JALX.
7446 2012-04-10 Yao Qi <yao@codesourcery.com>
7448 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7450 2012-04-10 Yao Qi <yao@codesourcery.com>
7452 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7453 and gnulib/m4/gnulib-tool.m4.
7455 2012-04-10 Doug Evans <dje@google.com>
7457 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7458 (load_partial_dies): Clarify comment.
7459 (find_partial_die): Support rereading type units.
7460 Clarify CU handling, if we know offset is in CU, don't search for the
7461 containing CU. Add comment regarding memory waste.
7463 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7465 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7466 i386/x32-avx and i386/x32-avx-linux.
7467 (i386/x32-expedite): New.
7468 (i386/x32-linux-expedite): Likewise.
7469 (i386/x32-avx-expedite): Likewise.
7470 (i386/x32-avx-linux-expedite): Likewise.
7471 ($(outdir)/i386/x32.dat): Likewise.
7472 ($(outdir)/i386/x32-linux.dat): Likewise.
7473 ($(outdir)/i386/x32-avx.dat): Likewise.
7474 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7476 * features/i386/x32-avx-linux.xml: New file.
7477 * features/i386/x32-avx.xml: Likewise.
7478 * features/i386/x32-core.xml: Likewise.
7479 * features/i386/x32-linux.xml: Likewise.
7480 * features/i386/x32.xml: Likewise.
7482 * features/i386/x32-avx-linux.c: New. Generated.
7483 * features/i386/x32-avx.c: Likewise.
7484 * features/i386/x32-linux.c: Likewise.
7485 * features/i386/x32.c: Likewise.
7486 * regformats/i386/x32-avx-linux.dat: Likewise.
7487 * regformats/i386/x32-avx.dat: Likewise.
7488 * regformats/i386/x32-linux.dat: Likewise.
7489 * regformats/i386/x32.dat: Likewise.
7491 2012-04-10 Tristan Gingold <gingold@adacore.com>
7493 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7494 code to kill the inferior.
7496 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7498 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7500 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7502 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7503 (yyvsp): New defines.
7504 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7506 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7508 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7510 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7512 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7515 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7517 * sparc64-tdep.c (sparc64_store_arguments)
7518 (sparc64_store_arguments): Fix coding style.
7520 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7522 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7523 complex floats, adjust some related comments and tighten a related
7525 (sparc64_extract_return_value): Handle complex floats.
7527 2012-04-07 Doug Evans <dje@google.com>
7529 * dwarf2read.c (load_partial_dies): Change condition to assert.
7531 2012-04-06 Doug Evans <dje@google.com>
7533 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7536 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7538 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7540 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7541 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7544 2012-04-05 Keith Seitz <keiths@redhat.com>
7546 * linespec.c (decode_compound): Remove.
7547 (enum offset_relative_sign): New enum.
7548 (struct line_offset): New struct.
7549 (struct linespec): New struct.
7550 (struct linespec_state): Move file_symtabs,
7551 user_filename, and user_function into struct linespec.
7552 Make result an anonymous struct holding vectors of
7553 symbolp and minsym_and_objfile_d.
7554 Add language member.
7555 (enum ls_token_type): New enum.
7556 (linespec_keywords): New array.
7557 (struct ls_token): New struct.
7558 (struct ls_parser): New struct.
7559 (linespec_lexer_lex_number): New function.
7560 (linespec_lexer_lex_keyword): New function.
7561 (is_ada_operator): New function.
7562 (skip_quote_char): New function.
7563 (copy_token_string): New function.
7564 (is_closing_quote_enclosed): New function.
7565 (find_parameter_list_end): New function.
7566 (linespec_lexer_lex_string): New function.
7567 (linespec_lexer_lex_one): New function.
7568 (linespec_lexer_consume_token): New function.
7569 (linespec_lexer_peek_token): New function.
7570 (cplusplus_error): Remove unused function.
7571 (find_methods): Update comment.
7572 (find_toplevel_char): Return const.
7573 (is_objc_method_format): Remove unused function.
7574 (find_toplevel_string): New function.
7575 (is_linespec_boundary): Remove.
7576 (symbol_not_found_error): New function.
7577 (find_method_overload_end): Remove function.
7578 (unexpected_linespec_error): New function.
7579 (keep_name_info): Remove.
7580 (linespec_parse_line_offset): New function.
7581 (linespec_parse_basic): New function.
7582 (canonicalize_linespec): New function.
7583 (decode_line_internal): Remove.
7584 (create_sals_line_offset): New function adapted from
7586 (convert_linespec_to_sals): New function.
7587 (parse_linespec): New function.
7588 (linespec_parser_new): New function.
7589 (linespec_state_destructor): Change parameter type to
7590 struct linespec_state *.
7591 Add language parameter.
7592 Remove freeing of moved members.
7593 (linespec_parser_delete): New function.
7594 (decode_line_full): Use parse_linespec and linespec_parser_new.
7595 (decode_line_1): Likewise.
7596 (decode_indirect): Rename to ...
7597 (linespec_expression_to_pc): ... this and rewrite
7598 to simply find CORE_ADDR, storing this result for later
7600 (locate_first_half): Remove.
7601 (deocde_objc): Add parameter LS.
7602 Initialize new struct collect_info members.
7603 Handle minimal symbols, too.
7604 (decode_compound): Delete.
7605 (lookup_prefix_sym): Rewrite.
7606 (compare_msymbols): New function.
7607 (find_method): Rewrite.
7608 Do not call cplusplus_error.
7609 (symtabs_from_filename): Rewrite.
7610 (collect_function_symbols): Delete.
7611 (find_function_symbols): Rewrite without ARGPTR-style
7613 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7614 (decode_dollar): Adapted and renamed to ...
7615 (linespec_parse_variable): ... this.
7616 (find_linespec_symbols): New function.
7617 (decode_label): Adapted and renamed to ...
7618 (find_label_symbols): ... this.
7619 (decode_digits_list_mode): Add and use LS argument.
7620 (decode_digits_ordinary): Likewise.
7621 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7622 If in list mode, allow any symbol class. Otherwise, only
7623 permit LOC_BLOCK symbols.
7624 (minsym_found): Update comments.
7625 (search_minsyms_for_name): Do not convert the matching symbol
7626 into a SAL. Simply push the symbol and objfile into the
7628 (decode_variable): Delete. Contents adapted into
7629 find_linespec_symbols.
7631 * cp-support.c (SKIP_SPACE): Remove.
7632 (operator_tokens): Remove unused global.
7633 (cp_validate_operator): Remove.
7634 * cp-support.h (cp_validate_operator): Remove declaration.
7636 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7638 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7639 for TYPE_VPTR_FIELDNO.
7640 * valprint.c (valprint_check_validity): Make it global, move the
7641 function comment ...
7642 * value.h (valprint_check_validity): ... to this new declaration.
7644 2012-04-02 Tristan Gingold <gingold@adacore.com>
7646 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7647 the STATE32 api for i386 state.
7648 (i386_darwin_store_inferior_registers): Likewise.
7650 2012-04-02 Tristan Gingold <gingold@adacore.com>
7652 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7654 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7657 2012-04-02 Tristan Gingold <gingold@adacore.com>
7660 * darwin-nat.c (darwin_execvp): Set binary preference.
7662 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7664 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7666 2012-03-30 Tom Tromey <tromey@redhat.com>
7668 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7669 of TRY_CATCH. Fix error handling.
7670 * python/py-value.c (convert_value_from_python): Move 'old'
7671 declaration to innermost scope.
7673 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7674 Andrey Smirnov <andrew.smirnov@gmail.com>
7676 -Wshadow warning fix.
7677 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7678 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7679 Adjust code accordingly.
7681 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7683 * ada-lang.c (symbol_completion_add): Rename parameter
7684 "encoded" into "encoded_p". Ajust code and documentation
7687 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7688 Andrey Smirnov <andrew.smirnov@gmail.com>
7690 -Wshadow warning fix.
7691 * ada-lang.c (symbol_completion_add): Rename parameter
7692 "wild_match" into wild_match_p. Update code and documentation
7695 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7697 * ada-lang.c (symbol_completion_match): Rename parameter
7698 "encoded" into "encoded_p". Ajust code and documentation
7701 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7702 Andrey Smirnov <andrew.smirnov@gmail.com>
7704 -Wshadow warning fix.
7705 * ada-lang.c (symbol_completion_match): Rename parameter
7706 "wild_match" into "wild_match_p". Adjust code and function
7707 documentation accordingly.
7709 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7710 Andrey Smirnov <andrew.smirnov@gmail.com>
7712 -Wshadow warning fix.
7713 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7714 "symbol_info" into "info". Adjust code accordingly.
7715 (ada_lookup_symbol): Likewise.
7717 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7719 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7720 of this function's documentation.
7722 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7723 Andrey Smirnov <andrew.smirnov@gmail.com>
7725 -Wshadow warning fix.
7726 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7727 variable into "wild_match_p". Adjust code accordingly.
7729 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7730 Andrey Smirnov <andrew.smirnov@gmail.com>
7732 -Wshadow warning fix.
7733 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7734 parameter into "wild_match_p". Adjust code accordingly.
7735 Document this parameter in the function description.
7737 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7738 Andrey Smirnov <andrew.smirnov@gmail.com>
7740 -Wshadow warning fix.
7741 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7742 "wild_match" parameter to "wild_match_p" (-Wshadow).
7744 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7746 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7747 in function documentation.
7749 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7750 Andrey Smirnov <andrew.smirnov@gmail.com>
7752 -Wshadow warning fix.
7753 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7754 variable into wild_match_p. Adjust code accordingly.
7756 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7757 Andrey Smirnov <andrew.smirnov@gmail.com>
7759 * ada-valprint.c (ada_val_print_1): Move the code handling
7760 TYPE_CODE_ENUM inside its own lexical block. Declare
7761 variables len and val there, instead of in the function's
7762 top level block. Avoid declaring deref_val again in a way
7763 that shadows another variable of the same name declared
7764 in one of the up-level blocks. Just re-use the up-level
7767 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7769 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7770 Replace block_found argument by symbol_info. Adjust
7771 implementation accordingly. Add function documentation.
7772 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7774 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7775 * ada-exp.y (write_object_renaming): Adjust to new
7776 ada_lookup_encoded_symbol API.
7778 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7780 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7783 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7785 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7786 (v850_register_name): Add the mpu and fpu register names.
7787 (v850e_register_name): Add the mpu and fpu register names.
7788 (v850e2_register_name): New function.
7789 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7792 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7794 * NEWS: Add entry for Ada varobj support.
7796 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7798 * varobj.c (default_value_is_changeable_p): New function,
7799 extracted from varobj_value_is_changeable_p. Add declaration.
7800 (ada_value_is_changeable_p): New function, extracted from
7801 varobj_value_is_changeable_p. Add declaration.
7802 (struct language_specific): New field "value_is_changeable_p".
7803 (languages): Add entries for new field.
7804 (varobj_create): Set language before calling install_new_value.
7805 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7806 "value_is_changeable_p" language callback.
7808 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7810 * ada-varobj.h, ada-varobj.c: New files.
7811 * Makefile.in (SFILES): Add ada-varobj.c.
7812 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7813 (COMMON_OBS): Add ada-varobj.o.
7815 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7817 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7818 (struct language_specific): New field "value_has_mutated".
7819 (languages): Set field "value_has_mutated" in each entry of array.
7820 (varobj_value_has_mutated): New function.
7821 (varobj_udpdate): Add handling of type mutation.
7822 (value_of_root): Add handling of type mutation.
7823 (ada_value_has_mutated): New function.
7825 2012-03-28 Pedro Alves <palves@redhat.com>
7827 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7828 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7830 2012-03-28 Tom Tromey <tromey@redhat.com>
7832 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7833 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7836 2012-03-28 Tom Tromey <tromey@redhat.com>
7838 * .dir-locals.el: New file.
7840 2012-03-28 Pedro Alves <palves@redhat.com>
7842 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7844 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7846 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7849 2012-03-27 Pedro Alves <palves@redhat.com>
7851 Eliminate struct ui_stream.
7853 * ui-out.h (struct ui_stream): Delete.
7854 (ui_out_field_stream): Adjust prototype.
7855 (ui_out_stream_new, ui_out_stream_delete)
7856 (make_cleanup_ui_out_stream_delete): Delete declarations.
7857 * ui-out.c (ui_out_field_stream): Change prototype to take a
7858 ui_file instead of a ui_stream. Adjust.
7859 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7860 (make_cleanup_ui_out_stream_delete): Delete.
7861 * breakpoint.c (print_breakpoint_location)
7862 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7863 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7864 * disasm.c (dump_insns): Ditto.
7865 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7867 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7868 ui_stream/ui_out_stream_new.
7869 * infcmd.c (print_return_value): Ditto.
7870 * osdata.c (info_osdata_command): Don't allocate a local
7872 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7873 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7874 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7875 allocate a local ui_stream.
7876 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7877 instead of ui_stream/ui_out_stream_new.
7878 (list_args_or_locals): Don't allocate a local ui_stream.
7879 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7880 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7881 ui_stream/ui_out_stream_new.
7882 * cli/cli-setshow.c (do_setshow_command): Ditto.
7884 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7886 * arm-linux-tdep.c (arm_linux_init_abi): Call
7887 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7888 * arm-tdep.c (arm_process_record): New function.
7889 (deallocate_reg_mem): New function.
7890 (decode_insn): New function.
7891 (thumb_record_branch): New function.
7892 (thumb_record_ldm_stm_swi(): New function.
7893 (thumb_record_misc): New function.
7894 (thumb_record_ld_st_stack): New function.
7895 (thumb_record_ld_st_imm_offset): New function.
7896 (thumb_record_ld_st_reg_offset(): New function.
7897 (thumb_record_add_sub_cmp_mov): New function.
7898 (thumb_record_shift_add_sub): New function.
7899 (arm_record_coproc_data_proc): New function.
7900 (arm_record_coproc): New function.
7901 (arm_record_b_bl): New function.
7902 (arm_record_ld_st_multiple): New function.
7903 (arm_record_ld_st_reg_offset): New function.
7904 (arm_record_ld_st_imm_offset): New function.
7905 (arm_record_data_proc_imm): New function.
7906 (arm_record_data_proc_misc_ld_str): New function.
7907 (arm_record_extension_space): New function.
7908 (arm_record_strx): New function.
7909 (sbo_sbz): New function.
7910 (struct insn_decode_record): New structure for arm insn record.
7911 (REG_ALLOC): New macro for reg allocations.
7912 (MEM_ALLOC): New macro for memory allocations.
7913 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7915 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7917 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7918 (store_register): Likewise.
7920 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7922 * MAINTAINERS (Write After Approval): Add myself to the list.
7924 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7926 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7927 Describe also the option "auto".
7929 2012-03-22 Richard Henderson <rth@redhat.com>
7931 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7932 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7934 2012-03-22 Richard Henderson <rth@redhat.com>
7936 * jit.c (jit_read_code_entry): Compute alignment and offset of
7937 int64_t member before computing entry_size.
7939 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7941 Python scripting: Add new method Value.referenced_value to
7942 gdb.Value which can dereference pointer as well as reference
7944 * NEWS: Add entry under 'Python scripting' about the new method
7945 Value.referenced_value on gdb.Value objects.
7946 * python/py-value.c (valpy_referenced_value): New function
7947 defining a new method on gdb.Value objects which can dereference
7948 pointer and reference values.
7950 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7952 * MAINTAINERS (Write After Approval): Add myself to the list.
7954 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7956 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7957 in addition to "main".
7959 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7961 * expression.h (op_name): Add declaration.
7962 * expprint.c (op_name): Remove declaration. Make non-static.
7963 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7965 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7967 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7969 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7970 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7971 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7972 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7973 (linux_nat_get_siginfo): Likewise.
7974 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7975 (linux_nat_get_siginfo): Likewise.
7976 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7977 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7978 * procfs.c (gdb_siginfo_t): Likewise.
7980 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7982 * .gitignore: Ignore more files.
7984 2012-03-20 Pedro Alves <palves@redhat.com>
7986 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7989 2012-03-20 Yao Qi <yao@codesourcery.com>
7991 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7994 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7997 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7998 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8000 * dwarf2expr.h (cu_offset, sect_offset): New types.
8001 (struct dwarf_expr_context_funcs) <dwarf_call>
8002 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8004 (struct dwarf_expr_context) <len>: Improve the comment.
8005 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8006 cu_offset and sect_offset.
8007 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8008 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8009 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8010 * dwarf2loc.h: Include dwarf2expr.h.
8011 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8013 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8014 Improve the comment.
8015 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8016 (struct signatured_type, struct line_header, struct partial_die_info)
8017 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8018 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8019 (get_die_type_at_offset, create_cus_from_index)
8020 (create_signatured_type_table_from_index, dw2_get_file_names)
8021 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8022 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8023 (create_debug_types_hash_table, process_psymtab_comp_unit)
8024 (load_partial_comp_unit, create_all_comp_units)
8025 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8026 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8027 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8028 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8029 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8030 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8031 (find_partial_die, read_attribute_value, lookup_die_type)
8032 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8033 (is_ref_attr): New function comment.
8034 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8035 Use cu_offset and sect_offset.
8036 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8037 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8038 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8039 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8040 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8041 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8042 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8045 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8048 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8049 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8051 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8053 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8055 * NEWS: Describe new options --init-command=FILE, -ix and
8056 --init-eval-command=COMMAND, -iex.
8057 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8058 CMDARG_INIT_COMMAND.
8059 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8060 "init-command", "init-eval-command", "ix" and "iex" to the variable
8061 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8062 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8063 (print_gdb_help): Describe --init-command=FILE, -ix and
8064 --init-eval-command=COMMAND, -iex.
8066 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8069 * main.c (struct cmdarg): Move it here from main. Add more comments.
8070 (cmdarg_s, VEC (cmdarg_s)): New.
8071 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8072 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8073 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8074 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8077 2012-03-19 Tom Tromey <tromey@redhat.com>
8079 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8081 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8084 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8087 2012-03-16 Chris January <chris.january@allinea.com>
8089 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8092 2012-03-16 Chris January <chris.january@allinea.com>
8094 * source.c (add_path): Use memmove instead of strcpy because the
8097 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8099 * value.h (set_value_parent): Add declaration.
8100 * value.c (set_value_parent): New function.
8101 (value_address): If VALUE->PARENT is not NULL, then use it as
8102 the base address instead of VALUE->LOCATION.address.
8103 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8104 the same as OBJ's address. Adjust V's offset accordingly.
8107 2012-03-16 Gary Benson <gbenson@redhat.com>
8109 PR breakpoints/10738
8110 * dwarf2read.c (use_deprecated_index_sections): New global.
8111 (struct partial_die_info): New member may_be_inlined.
8112 (read_partial_die): Set may_be_inlined where appropriate.
8113 (add_partial_subprogram): Add partial symbols for partial
8114 DIEs that may be inlined.
8115 (new_symbol_full): Add inlined subroutines to the current
8117 (write_psymtabs_to_index): Bump version number.
8118 (dwarf2_read_index): Read only version 6 indices unless
8119 use_deprecated_index_sections is set.
8120 * linespec.c (symbol_and_data_callback): New structure.
8121 (iterate_inline_only): New function.
8122 (iterate_over_all_matching_symtabs): New argument
8123 "include_inline". If nonzero, also call the callback for
8124 symbols representing inlined subroutines.
8125 (lookup_prefix_sym): Pass extra argument to the above.
8126 (find_function_symbols): Likewise.
8127 (add_matching_symbols_to_info): Likewise.
8128 * NEWS: Mention that GDB can now set breakpoints on inlined
8131 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8133 * p-typeprint.c (pascal_type_print_method_args):
8134 Fix display of parameter of methods.
8136 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8138 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8139 Add missing prototype.
8141 2012-03-16 Yao Qi <yao@codesourcery.com>
8142 Jan Kratochvil <jan.kratochvil@redhat.com>
8144 Fix false compilation warning.
8145 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8147 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8148 Pedro Alves <pedro@codesourcery.com>
8150 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8151 (arm_register_g_packet_guesses): New function.
8152 (arm_gdbarch_init): Don't force a target description with
8153 registers when the executable is detected as M-profile. Instead
8154 set gdbarch->tdep->is_m. Register `g' packet guesses.
8155 (_initialize_arm_tdep): Initialize the new target description.
8156 * features/arm-with-m-fpa-layout.xml: New description.
8157 * features/arm-with-m-fpa-layout.c: New, generated.
8159 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8161 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8162 Update function description.
8163 (insert_bp_location): Do not wipe bl->target_info out.
8164 * mem-break.c: #include "gdb_string.h".
8165 (default_memory_insert_breakpoint): Do not call target_read_memory
8166 with a pointer to the breakpoint's shadow_contents buffer. Use
8167 a local buffer instead.
8168 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8170 2012-03-15 Tom Tromey <tromey@redhat.com>
8172 * NEWS: Mention "info vtbl", not "info vtable".
8173 * cp-support.c (info_vtbl_command): Fix comment.
8174 (_initialize_cp_support): Fix text.
8176 2012-03-15 Tom Tromey <tromey@redhat.com>
8178 * cp-valprint.c (cp_print_value_fields): Use
8179 print_function_pointer_address for vtable slot.
8181 2012-03-15 Tom Tromey <tromey@redhat.com>
8183 * gnu-v3-abi.c (struct value_and_voffset): New.
8184 (hash_value_and_voffset, eq_value_and_voffset)
8185 (compare_value_and_voffset, compute_vtable_size)
8186 (print_one_vtable, gnuv3_print_vtable): New functions.
8187 (init_gnuv3_ops): Initialize 'print_vtable' field.
8188 * cp-support.c (info_vtbl_command): New function.
8189 (_initialize_cp_support): Add "info vtbl".
8190 * cp-abi.h (cplus_print_vtable): Declare.
8191 (struct cp_abi_ops) <print_vtable>: New field.
8192 * cp-abi.c (cplus_print_vtable): New function.
8195 2012-03-15 Tom Tromey <tromey@redhat.com>
8197 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8198 iterate_over_symbols.
8200 2012-03-14 Doug Evans <dje@google.com>
8202 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8203 DW_OP_GNU_parameter_ref.
8205 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8207 Fix double prompt of 'interpreter-exec mi'.
8208 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8209 (mi_interpreter_resume): use it.
8210 (mi_execute_command_input_handler): New function.
8211 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8212 mi_execute_command_input_handler.
8214 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8216 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8218 (darwin_debug_port_info): Make static.
8219 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8220 * machoread.c (_initialize_machoread): Add prototype.
8221 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8222 (i386_darwin_set_control, i386_darwin_get_control)
8223 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8224 i386_darwin_get_status, i386_darwin_get_control):
8225 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8227 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8229 * ax-gdb.c (gen_usual_unary): Remove special handling of
8230 enum and bool types.
8232 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8234 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8236 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8238 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8240 2012-03-13 Chris January <chris.january@allinea.com>
8242 * aix-thread.c (fill_sprs): Store the floating point registers
8243 at the correct offsets into vals.
8245 2012-03-13 Doug Evans <dje@google.com>
8247 * NEWS: Mention symbol-reloading has been deleted.
8248 * symfile.c (symbol_reloading): Delete.
8249 (show_symbol_reloading): Delete.
8250 (_initialize_symfile): Delete set/show symbol-reloading.
8252 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8253 read_in_chain until we have successfully read it in.
8254 (load_full_comp_unit): Ditto.
8255 (read_signatured_type): Add comment.
8257 2012-03-13 Chris January <chris.january@allinea.com>
8259 * stabsread.c (fix_common_block): Change type of valu argument
8262 2012-03-13 Chris January <chris.january@allinea.com>
8264 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8267 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8269 * common/linux-procfs.c (linux_proc_get_int): New, from
8270 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8272 (linux_proc_get_tgid): Only call linux_proc_get_int.
8273 (linux_proc_get_tracerpid): New.
8274 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8275 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8276 linux_proc_pid_has_state.
8277 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8278 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8279 (linux_ptrace_attach_warnings): New.
8280 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8282 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8283 (linux_nat_attach): New variables ex, buffer, message and message_s.
8284 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8286 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8288 * Makefile.in (linux-ptrace.o): New.
8289 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8291 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8292 * common/linux-ptrace.c: New file.
8293 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8294 * config/arm/linux.mh: Likewise.
8295 * config/i386/linux.mh: Likewise.
8296 * config/i386/linux64.mh: Likewise.
8297 * config/ia64/linux.mh: Likewise.
8298 * config/m32r/linux.mh: Likewise.
8299 * config/m68k/linux.mh: Likewise.
8300 * config/mips/linux.mh: Likewise.
8301 * config/pa/linux.mh: Likewise.
8302 * config/powerpc/linux.mh: Likewise.
8303 * config/powerpc/ppc64-linux.mh: Likewise.
8304 * config/powerpc/spu-linux.mh: Likewise.
8305 * config/s390/s390.mh: Likewise.
8306 * config/sparc/linux.mh: Likewise.
8307 * config/sparc/linux64.mh: Likewise.
8308 * config/xtensa/linux.mh: Likewise.
8309 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8310 common/linux-procfs.c.
8311 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8313 2012-03-13 Hui Zhu <teawater@gmail.com>
8314 Pedro Alves <palves@redhat.com>
8316 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8317 CREATE_BREAKPOINT_FLAGS_INSERTED.
8318 (create_breakpoint_sal, create_breakpoints_sal)
8319 (base_breakpoint_create_breakpoints_sal)
8320 (tracepoint_create_breakpoints_sal)
8321 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8323 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8324 (ftrace_command, strace_command): Adjust.
8325 (create_tracepoint_from_upload): Pass
8326 CREATE_BREAKPOINT_FLAGS_INSERTED.
8327 * breakpoint.h (enum breakpoint_create_flags): New.
8328 (create_breakpoint): New flags parameter.
8329 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8330 * python/py-breakpoint.c (bppy_init): Adjust.
8331 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8332 * spu-tdep.c (spu_catch_start): Adjust.
8334 2012-03-13 Pedro Alves <palves@redhat.com>
8335 Hui Zhu <teawater@gmail.com>
8336 Yao Qi <yao@codesourcery.com>
8338 * remote.c (struct remote_state): New field `starting_up'.
8339 (remote_start_remote): Set and clear it.
8340 (remote_can_download_tracepoint): If starting up, return false.
8342 2012-03-13 Yao Qi <yao@codesourcery.com>
8344 * inferior.h (struct inferior): Remove fields any_syscall_count,
8345 syscalls_counts and total_syscalls_count. Move them to new
8346 struct catch_syscall_inferior_data in breakpoint.c.
8347 * breakpoint.c: Call DEF_VEC_I(int).
8348 (struct catch_syscall_inferior_data): New.
8349 (get_catch_syscall_inferior_data): New.
8350 (catch_syscall_inferior_data_cleanup): New.
8351 (insert_catch_syscall): Update to access data in
8352 struct catch_syscall_inferior_data.
8353 (insert_catch_syscall): Likewise.
8354 (remove_catch_syscall): Likewise.
8355 (remove_catch_syscall): Likewise.
8356 (is_syscall_catchpoint_enabled): Likewise.
8357 (add_catch_command): Likewise.
8358 (_initialize_breakpoint): Register cleanup.
8359 * breakpoint.h: Removed DEF_VEC_I(int).
8360 * dwarf2loc.c: Call DEF_VEC_I(int).
8361 * mi/mi-main.c: Likewise.
8363 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8365 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8367 2012-03-12 Chris January <chris.january@allinea.com>
8369 * aix-thread.c (_initialize_aix_thread): Add prototype.
8370 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8371 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8373 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8375 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8376 include of "amd64-nat.h".
8378 2012-03-12 Tom Tromey <tromey@redhat.com>
8380 * buildsym.c (record_pending_block): Now static.
8381 * buildsym.h: (record_pending_block): Remove.
8383 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8385 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8387 2012-03-09 Tom Tromey <tromey@redhat.com>
8389 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8390 producer_is_gxx_lt_4_6>: New fields.
8391 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8393 2012-03-09 Tom Tromey <tromey@redhat.com>
8395 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8397 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8399 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8402 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8404 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8406 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8408 Fix -Wmissing-prototypes build.
8409 * arm-linux-nat.c (get_thread_id): Make it static.
8410 * xtensa-linux-nat.c (get_thread_id): Likewise.
8412 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8414 * server.c (process_point_options): If a conditional expression
8415 is found, only print a message if remote_debug is nonzero.
8417 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8419 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8420 of internal error for unknown/unsupported types.
8422 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8424 Fix CU relative vs. absolute DIE offsets.
8425 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8426 offset to offset_in_cu.
8427 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8429 (dwarf2_fetch_die_location_block): Rename parameter offset to
8430 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8432 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8434 * libunwind-frame.c: Rename to ...
8435 * ia64-libunwind-tdep.c: ... here.
8436 * libunwind-frame.h: Rename to ...
8437 * ia64-libunwind-tdep.h: ... here.
8438 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8439 ia64-libunwind-tdep.h.
8440 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8441 * README (--with-libunwind): Rename to ...
8442 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8443 * config.in: Regenerate.
8444 * configure: Regenerate.
8445 * configure.ac: New option --with-libunwind-ia64, make the
8446 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8447 Remove AC_DEFINE for HAVE_LIBUNWIND.
8448 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8449 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8450 Rename libunwind-frame in the general comment.
8451 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8452 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8453 Move forward declarations inside #ifndef. Rename libunwind-frame in
8454 the general comment.
8455 * ia64-tdep.c: Rename libunwind-frame.h #include to
8456 ia64-libunwind-tdep.h.
8457 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8458 (ia64_libunwind_descr): Rename libunwind-frame to
8459 ia64-libunwind-tdep in these function comments.
8460 * ia64-tdep.h: Rename libunwind-frame.h #include to
8461 ia64-libunwind-tdep.h.
8462 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8463 ia64-libunwind-tdep in that data comment.
8465 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8467 * libunwind-frame.h (struct frame_unwind): New declaration.
8469 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8471 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8472 "set breakpoint condition-evaluation" command.
8474 2012-03-08 Tristan Gingold <gingold@adacore.com>
8476 * sparc-stub.c: Move to stubs/
8477 * sh-stub.c: Likewise.
8478 * m68k-stub.c: Likewise.
8479 * m32r-stub.c: Likewise.
8480 * i386-stub.c: Likewise.
8482 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8484 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8485 linux_get_siginfo_type.
8487 * m68klinux-nat.c: Include "gdb_proc_service.h".
8488 (PTRACE_GET_THREAD_AREA): Define.
8489 (ps_get_thread_area): New function.
8491 2012-03-08 Yao Qi <yao@codesourcery.com>
8493 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8495 (remote_query_attached): Likewise.
8496 (remote_static_tracepoint_marker_at): Likewise.
8497 (remote_set_permissions): Likewise.
8498 (remote_detach_1, extended_remote_attach_1): Likewise.
8499 (send_g_packet, remote_vkill): Likewise.
8500 (extended_remote_disable_randomization): Likewise.
8501 (remote_add_target_side_condition): Likewise.
8502 (remote_insert_breakpoint): Likewise.
8503 (remote_remove_breakpoint): Likewise.
8504 (remote_insert_watchpoint): Likewise.
8505 (remote_remove_watchpoint): Likewise.
8506 (remote_insert_hw_breakpoint): Likewise.
8507 (remote_insert_hw_breakpoint): Likewise.
8508 (remote_remove_hw_breakpoint): Likewise.
8509 (remote_download_command_source): Likewise.
8510 (remote_download_tracepoint): Likewise.
8511 (remote_download_trace_state_variable): Likewise.
8512 (remote_disable_tracepoint): Likewise.
8513 (remote_trace_set_readonly_regions): Likewise.
8514 (remote_get_tracepoint_status): Likewise.
8515 (remote_trace_find): Likewise.
8516 (remote_get_trace_state_variable_value): Likewise.
8517 (remote_set_disconnected_tracing): Likewise.
8518 (remote_set_circular_trace_buffer): Likewise.
8519 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8520 (remote_use_agent): Likewise.
8521 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8524 2012-03-07 Pedro Alves <palves@redhat.com>
8526 * NEWS: Mention QProgramSignals.
8527 * inferior.h (update_signals_program_target): Declare.
8528 * infrun.c: (update_signals_program_target): New.
8529 (handle_command): Update the target of the new program signals
8531 * remote.c (PACKET_QProgramSignals): New enum.
8532 (last_program_signals_packet): New global.
8533 (remote_program_signals): New.
8534 (remote_start_remote): Update the target with the program signals
8536 (remote_protocol_features): Add entry for QPassSignals.
8537 (remote_open_1): Free anc clear last_program_signals_packet.
8538 (init_remote_ops): Install remote_program_signals.
8539 * target.c (update_current_target): Adjust.
8540 (target_program_signals): New.
8541 * target.h (struct target_ops) <to_program_signals>: New field.
8542 (target_program_signals): Declare.
8544 2012-03-07 Pedro Alves <palves@redhat.com>
8546 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8549 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8551 * m68klinux-nat.c (getregs_supplies): Make static.
8552 (getfpregs_supplies): Likewise.
8553 (have_ptrace_getregs): Likewise.
8555 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8557 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8558 in call to get_die_type_at_offset.
8560 2012-03-06 Stan Shebs <stan@codesourcery.com>
8562 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8563 * mi/mi-cmd-disas.c: Ditto.
8564 * mi/mi-cmd-env.c: Ditto.
8565 * mi/mi-cmd-file.c: Ditto.
8566 * mi/mi-cmd-stack.c: Ditto.
8567 * mi/mi-cmd-target.c: Ditto.
8568 * mi/mi-cmd-var.c: Ditto.
8569 * mi/mi-cmds.c: Ditto.
8570 * mi/mi-cmds.h: Ditto.
8571 * mi/mi-console.c: Ditto.
8572 * mi/mi-getopt.c: Ditto.
8573 * mi/mi-getopt.h: Ditto.
8574 * mi/mi-interp.c: Ditto.
8575 * mi/mi-main.c: Ditto.
8576 * mi/mi-out.c: Ditto.
8577 * mi/mi-parse.c: Ditto.
8578 * mi/mi-parse.h: Ditto.
8579 * mi/mi-symbol-cmds.c: Ditto.
8581 * mi/mi-getopt.h: Move mi_opt struct up.
8582 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8584 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8586 2012-03-06 Tom Tromey <tromey@redhat.com>
8588 * proc-service.c (ps_pglobal_lookup): Set the current program
8591 2012-03-06 Pedro Alves <palves@redhat.com>
8593 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8595 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8597 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8599 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8602 * common/linux-osdata.c (linux_common_core_of_thread): New function
8604 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8605 call by linux_common_core_of_thread.
8606 (linux_nat_core_of_thread_1): Remove.
8607 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8608 * linux-thread-db.c: Include linux-osdata.h.
8609 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8610 linux_common_core_of_thread.
8612 2012-03-05 Tom Tromey <tromey@redhat.com>
8614 * value.c (value_primitive_field): Don't fetch contents for
8617 2012-03-05 Tom Tromey <tromey@redhat.com>
8619 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8621 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8623 * s390-nat.c: Include "gregset.h".
8625 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8627 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8628 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8629 (libunwind_load): New variable so_error, use it for dlerror. Try to
8630 load also LIBUNWIND_SO_7.
8632 2012-03-05 Pedro Alves <palves@redhat.com>
8634 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8635 is not NULL, and remove resulting dead code.
8637 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8639 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8640 prologue to sh_analyze_prologue.
8641 (sh_analyze_prologue): Make better use of such an upper limit, and
8642 generally be more cautious about accessing memory.
8644 2012-03-05 Tom Tromey <tromey@redhat.com>
8646 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8647 _initialize_ia64_hpux_tdep.
8649 2012-03-05 Pedro Alves <palves@redhat.com>
8653 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8654 the register state is clear, supply explicit zero, instead of
8655 marking the register unavailable.
8657 2012-03-05 Tristan Gingold <gingold@adacore.com>
8659 * NEWS: Mention OpenVMS ia64 new target.
8661 2012-03-05 Tristan Gingold <gingold@adacore.com>
8663 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8664 (ia64_unw_accessors, ia64_unw_rse_accessors)
8665 (ia64_libunwind_descr): Declare.
8666 * ia64-vms-tdep.c: New file.
8667 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8668 (ia64_libunwind_descr): Make them public.
8669 * configure.tgt: Add ia64-*-*vms*.
8670 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8671 (ALLDEPFILES): Add ia64-vms-tdep.c
8673 2012-03-05 Tristan Gingold <gingold@adacore.com>
8675 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8676 * remote.c (PACKET_qXfer_uib): New enum value.
8677 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8678 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8679 (_initialize_remote): Call add_packet_config_cmd for
8682 2012-03-05 Tristan Gingold <gingold@adacore.com>
8684 * osabi.c (gdb_osabi_names): Add OpenVMS.
8685 (generic_elf_osabi_sniffer): Likewise.
8686 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8688 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8690 Removed unused code.
8691 * libunwind-frame.c (libunwind_frame_unwind)
8692 (libunwind_frame_base_address): Remove.
8693 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8695 2012-03-04 Yao Qi <yao@codesourcery.com>
8697 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8698 remove trailing new line.
8699 (agent_run_command, agent_run_command): Add _ markup.
8700 (agent_capability_check): Likewise.
8702 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8704 * breakpoint.c (set_condition_evaluation_mode): Set
8705 CONDITION_EVALUATION_MODE unconditionally.
8707 2012-03-03 Yao Qi <yao@codesourcery.com>
8709 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8710 * common/agent.h: Update declaration.
8711 * inf-child.c (inf_child_use_agent): New.
8712 (inf_child_can_use_agent): New.
8713 (inf_child_target): Initialize fields `to_use_agent'
8714 and `to_can_use_agent'.
8715 * agent.c (agent_new_objfile): New.
8716 (_initialize_agent): Add agent_new_objfile to new_objfile
8719 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8721 (linux_target_install_ops): Initialize field
8722 `to_static_tracepoint_markers_by_strid'.
8723 * remote.c (free_current_marker): Move it to ...
8724 * tracepoint.c (free_current_marker): ... here. New.
8725 (cleanup_target_stop): New.
8726 * tracepoint.h: Declare free_current_marker.
8727 * NEWS: Add one entry about `info static-tracepoint-marker'.
8729 2012-03-03 Yao Qi <yao@codesourcery.com>
8731 * common/agent.c (agent_loaded_p): New.
8732 (agent_look_up_symbols): New global.
8733 * common/agent.h: Declare agent_loaded_p.
8735 2012-03-03 Yao Qi <yao@codesourcery.com>
8737 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8738 (agent_capability_check, agent_capability_invalidate): New.
8739 (symbol_list): New array element.
8740 * common/agent.h (enum agent_capa): New.
8741 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8743 2012-03-03 Yao Qi <yao@codesourcery.com>
8745 * target.h (struct target_ops) <to_use_agent>: New field.
8746 (struct target_ops) <to_can_use_agent>: New field.
8747 (target_use_agent, target_can_use_agent): New macro.
8748 * target.c (update_current_target): Update.
8749 * remote.c: New enum `PACKET_QAgent'.
8750 (remote_protocol_features): Add a new element.
8751 (remote_use_agent, remote_can_use_agent): New.
8752 (init_remote_ops): Initialize field `can_use_agent' with
8753 remote_can_use_agent. Intiailize field `use_agent' with
8755 * common/agent.c (use_agent): New global.
8756 * common/agent.h: Declare it.
8757 * tracepoint.c (info_static_tracepoint_markers_command): Add
8759 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8760 (COMMON_OBS): Add common/agent.o and agent.o
8761 (common-agent.o): New rule.
8764 2012-03-03 Yao Qi <yao@codesourcery.com>
8766 * common/agent.c: New.
8767 * common/agent.h: New.
8768 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8770 * configure, configh.in: Regenerated.
8772 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8774 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8775 unless it exists for this architecture.
8777 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8779 * language.h (struct language_defn): New "method" la_read_var_value.
8780 * findvar.c: #include "language.h".
8781 (default_read_var_value): Renames read_var_value. Rewrite
8782 function description.
8783 (read_var_value): New function.
8784 * value.h (default_read_var_value): Add prototype.
8785 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8787 (ada_language_defn): Add entry for la_read_var_value.
8788 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8789 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8790 language_defn structures to add entry for new la_read_var_value
8793 2012-03-02 Tom Tromey <tromey@redhat.com>
8794 Pedro Alves <palves@redhat.com>
8796 PR breakpoints/13776:
8797 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8799 (delete_longjmp_breakpoint_at_next_stop): New.
8800 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8801 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8802 before deleting the inferior. Add comments.
8803 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8804 breakpoints immediately, but only on next stop. Move that code
8805 next to where we mark other breakpoints for deletion.
8807 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8809 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8811 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8814 2012-03-02 Pedro Alves <palves@redhat.com>
8816 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8818 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8820 Fix -Wmissing-prototypes build.
8821 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8822 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8823 (gdbsim_has_memory): Likewise.
8825 2012-03-02 Yao Qi <yao@codesourcery.com>
8827 Fix -Wmissing-prototypes build.
8828 * charset.c (phony_iconv_open): Make static.
8829 (phony_iconv_close, phony_iconv): Likewise.
8830 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8831 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8833 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8834 * ser-mingw.c (create_select_thread): Make static.
8835 * windows-termcap.c (tgetent): New prototype.
8836 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8838 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8840 Fix -Wmissing-prototypes build.
8841 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8842 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8843 (_initialize_loadable): New prototypes.
8845 2012-03-02 Doug Evans <dje@google.com>
8847 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8848 abbrev table, read_comp_unit will do it.
8850 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8852 Fix -Wmissing-prototypes build.
8853 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8854 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8855 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8856 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8857 (_initialize_arm_symbian_tdep): New prototype.
8858 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8859 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8860 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8862 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8863 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8865 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8866 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8867 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8869 * moxie-tdep.c (moxie_process_record): Likewise.
8870 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8871 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8872 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8873 (_initialize_rl78_tdep): New prototype.
8874 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8875 (_initialize_rx_tdep): New prototype.
8876 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8877 (_initialize_darwin_solib): New prototype.
8878 * solib-spu.c: Include solib-spu.h.
8879 (_initialize_spu_solib): New prototype.
8880 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8881 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8882 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8883 (tic6x_software_single_step): Make it static.
8884 (_initialize_tic6x_tdep): New prototype.
8886 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8888 Fix -Wmissing-prototypes build.
8889 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8890 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8892 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8894 Fix -Wmissing-prototypes build.
8895 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8896 (frv_have_stopped_data_address): Remove.
8898 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8900 Fix -Wmissing-prototypes build.
8901 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8902 * sh-tdep.c: Include sh64-tdep.h.
8903 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8904 * sh64-tdep.c: Include sh64-tdep.h.
8905 * sh64-tdep.h: New file.
8907 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8909 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8911 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8913 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8914 sp_regnum once the gdbarch_init_osabi hook has been called.
8916 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8918 * mips-tdep.c (mips32_bc1_pc): New function.
8919 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8920 BPOSGE32 and BPOSGE64 instructions.
8921 (deal_with_atomic_sequence): Likewise.
8922 (mips32_instruction_has_delay_slot): Likewise.
8924 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8925 Chris Dearman <chris@mips.com>
8926 Maciej W. Rozycki <macro@codesourcery.com>
8927 Joseph Myers <joseph@codesourcery.com>
8929 * features/mips-dsp.xml: New file.
8930 * features/mips64-dsp.xml: New file.
8931 * features/mips-dsp-linux.xml: New file.
8932 * features/mips64-dsp-linux.xml: New file.
8933 * features/Makefile (WHICH): Add mips-dsp-linux and
8935 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8936 * features/mips-dsp-linux.c: New file.
8937 * features/mips64-dsp-linux.c: New file.
8938 * regformats/mips-dsp-linux.dat: New file.
8939 * regformats/mips64-dsp-linux.dat: New file.
8940 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8942 (mips64_linux_register_addr): Likewise.
8943 (mips64_linux_regsets_fetch_registers): Likewise.
8944 (mips64_linux_regsets_store_registers): Likewise.
8945 (mips64_linux_fetch_registers): Update call to
8946 mips64_linux_regsets_fetch_registers.
8947 (mips64_linux_store_registers): Update call to
8948 mips64_linux_regsets_store_registers.
8949 (mips_linux_read_description): Probe for DSP registers.
8950 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8951 and initialize_tdesc_mips64_dsp_linux.
8952 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8953 Remove padding of no longer used embedded register slots.
8954 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8955 (MIPS_RESTART_REGNUM): Redefine enum value.
8956 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8958 (mips_tx39_reg_names): Likewise.
8959 (mips_linux_reg_names): New array of register names for Linux
8961 (mips_register_name): Check for a null pointer in
8962 mips_processor_reg_names and return an empty string.
8963 (mips_register_type): Exclude embedded registers for the IRIX
8965 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8966 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8968 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8969 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8970 (mips_gdbarch_init): Likewise. Initialize internal register
8971 indices for the Linux ABI. Use dynamic numbers to refer to
8972 registers, as applicable, while parsing the target description.
8973 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8975 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8977 * frame.h (read_frame_register_unsigned): Fix typo in function
8980 2012-03-01 Pedro Alves <palves@redhat.com>
8982 * jit-reader.in [!__cplusplus]
8983 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8985 2012-03-01 Pedro Alves <palves@redhat.com>
8987 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8988 * configure: Regenerate.
8990 2012-03-01 Pedro Alves <palves@redhat.com>
8992 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8993 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8994 (ftrace_command, strace_command): Make static.
8995 * d-lang.c (_initialize_d_language): Declare.
8996 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8997 * dwarf2loc.c (_initialize_dwarf2loc):
8998 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8999 * exec.c (exec_get_section_table): Make static.
9000 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9001 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9002 * inferior.c (remove_inferior_command, add_inferior_command)
9003 (clone_inferior_command): Make static.
9004 * linux-nat.c (linux_nat_thread_address_space)
9005 (linux_nat_core_of_thread): Make static.
9006 * linux-tdep.c (_initialize_linux_tdep): Declare.
9007 * objc-lang.c (_initialize_objc_lang): Declare.
9008 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9010 (_initialize_opencl_language): Declare.
9011 * record.c (_initialize_record): Declare.
9012 * remote.c (demand_private_info, remote_get_tib_address)
9013 (remote_supports_cond_tracepoints)
9014 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9016 * skip.c (_initialize_step_skip): Declare.
9017 * symtab.c (skip_prologue_using_lineinfo): Make static.
9018 * tracepoint.c (delete_trace_state_variable)
9019 (trace_variable_command, delete_trace_variable_command)
9020 (get_uploaded_tsv, find_matching_tracepoint_location)
9021 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9023 * value.c (pack_unsigned_long): Make static.
9024 * varobj.c (varobj_ensure_python_env): Make static.
9025 * windows-tdep.c (_initialize_windows_tdep): Declare.
9026 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9028 2012-03-01 Pedro Alves <palves@redhat.com>
9030 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9032 (linux_init_abi): Install it as has_shared_address_space gdbarch
9035 2012-03-01 Pedro Alves <palves@redhat.com>
9037 * observer.c (observer_test_first_notification_function)
9038 (observer_test_second_notification_function)
9039 (observer_test_third_notification_function): Add declarations.
9041 2012-03-01 Pedro Alves <palves@redhat.com>
9043 * common/signals.c (default_target_signal_to_host)
9044 (default_target_signal_from_host): Move ...
9045 * arch-utils.c: ... here.
9046 * arch-utils.h (default_target_signal_to_host)
9047 (default_target_signal_from_host): Declare.
9049 * common/signals.c (target_signal_from_command): Move ...
9050 * infrun.c: ... here.
9051 * inferior.h (target_signal_from_command): Declare.
9052 * target.h (target_signal_from_command)
9053 (default_target_signal_from_host, default_target_signal_to_host):
9054 Delete declarations.
9056 * common/signals.c (_initialize_signals): Delete.
9058 2012-03-01 Pedro Alves <palves@redhat.com>
9060 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9061 both __cplusplus and !__cplusplus.
9063 2012-03-01 Pedro Alves <palves@redhat.com>
9065 * psymtab.c (find_and_open_source): Delete declaration.
9066 * source.c (find_and_open_source): Move comment ...
9067 * source.h (find_and_open_source): ... to this new declaration.
9069 2012-03-01 Pedro Alves <palves@redhat.com>
9071 * inline-frame.c: Include inline-frame.h.
9073 2012-03-01 Pedro Alves <palves@redhat.com>
9075 * tui/tui-data.c (set_gen_win_origin): Delete.
9076 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9077 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9079 2012-03-01 Pedro Alves <palves@redhat.com>
9081 * remote.c (encode_actions): Delete declaration.
9082 * tracepoint.c (encode_actions): Make extern.
9083 * tracepoint.h (encode_actions): Declare.
9085 2012-03-01 Pedro Alves <palves@redhat.com>
9087 * python/py-breakpoint.c: Include python.h.
9088 * python/py-continueevent.c (create_continue_event_object): Make
9090 * python/py-lazy-string.c (stpy_get_type): Make static.
9091 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9093 * python/py-utils.c (unicode_to_target_python_string): Make
9095 * python/py-value.c: Include python.h.
9097 2012-03-01 Pedro Alves <palves@redhat.com>
9099 * inferior.c (delete_threads_of_inferior): Delete.
9101 2012-03-01 Pedro Alves <palves@redhat.com>
9103 Import fallback definitions from glibc.
9105 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9106 ps_prochandle): Forward declare.
9107 (ps_err_e): Use glibc's comments.
9108 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9109 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9110 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9111 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9112 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9113 (struct ps_prochandle): Adjust comment.
9115 2012-03-01 Pedro Alves <palves@redhat.com>
9117 * ada-lang.c (ada_modulus_from_name): Delete.
9118 * ada-lex.l (lexer_init): Make static.
9120 2012-03-01 Pedro Alves <palves@redhat.com>
9124 * frame.c (read_frame_register_unsigned): New.
9125 * frame.h (read_frame_register_unsigned): Declare.
9126 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9128 (print_i387_control_word): New parameter `control_p'. Handle it.
9129 (i387_print_float_info): Handle unavailable float registers.
9131 2012-03-01 Keith Seitz <keiths@redhat.com>
9133 * linespec.c (decode_line_2): Sort the list of methods
9134 alphabetically before presenting the user with a selection
9137 2012-03-01 Doug Evans <dje@google.com>
9139 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9141 (dwarf2_read_abbrevs): Remove corresponding initialization.
9143 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9145 * NEWS: Mention new python command class gdb.COMMAND_USER.
9146 * cli/cli-cmds.c (show_user): Print error when used on a python
9148 (init_cli_cmds): Update documentation strings for "show user" and
9149 "set/show max-user-call-depth" to clarify that it does not apply to
9151 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9153 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9155 * top.c (execute_command): Only execute a user-defined command as a
9156 legacy macro if c->user_commands is set.
9158 2012-03-01 Tom Tromey <tromey@redhat.com>
9160 * valprint.h (struct generic_val_print_decorations): New.
9161 (generic_val_print): Declare.
9162 * valprint.c (generic_val_print): New function.
9163 * p-valprint.c (p_decorations): New global.
9164 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9165 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9166 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9167 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9168 * m2-valprint.c (m2_decorations): New global.
9169 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9170 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9171 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9172 TYPE_CODE_ERROR>: Call generic_val_print.
9173 * f-valprint.c (f_decorations): New global.
9174 (f_val_print): Use print_function_pointer_address.
9175 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9176 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9177 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9179 * c-valprint.c (c_decorations): New global.
9180 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9181 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9182 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9183 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9184 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9185 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9188 2012-03-01 Tom Tromey <tromey@redhat.com>
9190 * valprint.c (val_print): Update.
9191 * p-valprint (pascal_val_print): Return void.
9192 * p-lang.h (pascal_val_print): Return void.
9193 * m2-valprint.c (m2_val_print): Return void.
9194 * m2-lang.h (m2_val_print): Return void.
9195 * language.h (struct language_defn) <la_val_print>: Return void.
9196 * language.c (unk_lang_val_print): Return void.
9197 * jv-valprint.c (java_val_print): Return void.
9198 * jv-lang.h (java_val_print): Return void.
9199 * f-valprint.c (f_val_print): Return void.
9200 * f-lang.h (f_val_print): Return void.
9201 * d-valprint.c (d_val_print): Return void.
9202 (dynamic_array_type): Update.
9203 * d-lang.h (d_val_print): Return void.
9204 * c-valprint.c (c_val_print): Return void.
9205 * c-lang.h (c_val_print): Return void.
9206 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9208 * ada-lang.h (ada_val_print): Return void.
9210 2012-03-01 Tom Tromey <tromey@redhat.com>
9212 * value.h (val_print): Return void.
9213 * valprint.c (val_print): Return void.
9215 2012-03-01 Tom Tromey <tromey@redhat.com>
9217 * value.h (common_val_print): Return void.
9218 * valprint.c (common_val_print): Return void.
9220 2012-03-01 Tom Tromey <tromey@redhat.com>
9222 * value.h (value_print): Return void.
9223 * valprint.c (value_print): Return void.
9224 * p-valprint.c (pascal_value_print): Return void.
9225 * p-lang.h (pascal_value_print): Return void.
9226 * language.h (struct language_defn) <la_value_print>: Return
9228 * language.c (unk_lang_value_print): Return void.
9229 * jv-valprint.c (java_value_print): Return void.
9230 * jv-lang.h (java_value_print): Return void.
9231 * f-valprint.c (c_value_print): Don't declare.
9233 * c-valprint.c (c_value_print): Return void.
9234 * c-lang.h (c_value_print): Return void.
9235 * ada-valprint.c (ada_value_print): Return void.
9236 * ada-lang.h (ada_value_print): Return void.
9238 2012-03-01 Tom Tromey <tromey@redhat.com>
9240 * value.c (value_primitive_field): Handle virtual base classes.
9242 2012-03-01 Tom Tromey <tromey@redhat.com>
9244 * gdbtypes.h (struct vbase): Remove.
9246 2012-03-01 Tom Tromey <tromey@redhat.com>
9248 * c-valprint.c (print_function_pointer_address): Move...
9249 * valprint.c: ... here. Make non-static.
9250 * m2-valprint.c (print_function_pointer_address): Remove.
9251 * valprint.h (print_function_pointer_address): Declare.
9253 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9255 * NEWS: Document the fact that one can provide a condition when
9256 creating an Ada exception catchpoint.
9258 2012-03-01 Tom Tromey <tromey@redhat.com>
9260 * valprint.c (val_print_type_code_flags): Fix placement of
9263 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9265 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9266 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9267 environment variable before calling update-copyright.
9269 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9271 * gnulib/extra/update-copyright: Update to the latest from
9272 gnulib's git repository.
9273 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9274 variable to 2 instead of 1.
9276 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9278 * varobj.c (c_value_of_variable): Remove dead code.
9280 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9282 * ada-lex.p (processId): Do not modify already encoded IDs.
9283 Update function documentation.
9285 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9287 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9288 "name" with "struct symbol *name_sym".
9289 * ada-exp.y (write_var_or_type): Update call to
9290 ada_find_renaming_symbol.
9291 "name" with "struct symbol *name_sym". Adjust Implementation
9292 accordingly. Adjust the function documentation.
9294 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9296 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9297 * ada-lang.c (ada_find_any_type): Add advance declaration.
9298 Make static. Replace ada_find_any_symbol by
9299 ada_find_any_type_symbol.
9300 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9301 Improve function description. Make static.
9302 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9303 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9305 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9307 * ada-lang.c (struct tag_args): Delete.
9308 (ada_get_tsd_type): Function body moved up in source file.
9309 (ada_tag_name_1, ada_tag_name_2): Delete.
9310 (ada_get_tsd_from_tag): New function.
9311 (ada_tag_name_from_tsd): New function.
9312 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9313 to determine the tag name.
9315 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9317 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9319 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9322 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9324 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9326 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9328 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9331 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9333 * ada-lang.c (constrained_packed_array_type): If there is a
9334 parallel XA type, use it to determine the array index type.
9336 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9338 * ada-valprint.c (ada_val_print_1): If our value is a reference
9339 to an array descriptor, dereference it before converting it
9342 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9344 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9345 creating fixed value.
9346 (ada_value_ind, ada_coerce_ref, assign_component)
9347 (ada_evaluate_subexp): Remove call to unwrap_value before
9348 call to ada_to_fixed_value.
9350 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9352 * ada-lang.c (to_fixed_array_type): Set result's type name.
9354 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9356 * ada-lang.c (catch_ada_exception_command_split): Add new
9357 argument cond_string. Add support for condition at end of
9358 "catch exception" commands.
9359 (ada_decode_exception_location): Add new argument cond_string.
9360 Update call to catch_ada_exception_command_split.
9361 (create_ada_exception_catchpoint): Add new argument cond_string.
9362 Set the breakpoint condition if needed.
9363 (catch_ada_exception_command): Update call to
9364 ada_decode_exception_location.
9365 (ada_decode_assert_location): Add function documentation.
9366 Add support for condition at end of "catch assert" command.
9367 (catch_assert_command): Update calls to ada_decode_assert_location
9368 and create_ada_exception_catchpoint.
9370 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9372 Fix disp-step-syscall.exp: fork: single step over fork.
9373 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9374 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9375 comment, change parameters gdbarch and ptid to regcache. Remove
9376 parameter regcache, initialize gdbarch from regcache here.
9377 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9379 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9381 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9382 'syscall'. Make the 'int' check more strict.
9384 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9386 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9387 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9388 (i386_linux_intx80_sysenter_syscall_record): ... here.
9389 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9390 Use the renamed function name.
9392 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9394 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9395 * breakpoint.c (until_break_command): Likewise.
9396 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9397 * infcall.c (call_function_by_hand): Likewise.
9398 * infcmd.c (finish_forward): Likewise.
9399 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9401 2012-02-28 Tristan Gingold <gingold@adacore.com>
9403 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9404 avoid variable assignments inside condition.
9406 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9408 Fix static analysis issue found by cppcheck.
9409 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9410 uninitialized BUF for size 2.
9412 2012-02-27 Chris Dearman <chris@mips.com>
9413 Nathan Froyd <froydnj@codesourcery.com>
9414 Maciej W. Rozycki <macro@codesourcery.com>
9416 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9417 (mips16_instruction_has_delay_slot): Likewise.
9418 (mips_segment_boundary): Likewise.
9419 (mips_adjust_breakpoint_address): Likewise.
9420 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9422 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9423 Maciej W. Rozycki <macro@codesourcery.com>
9425 * infrun.c (handle_inferior_event): Don't proceed through
9426 shared library trampolines if stepping at the machine
9429 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9431 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9434 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9436 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9437 (sh_stub_unwind_sniffer): New functions.
9438 (sh_stub_unwind): New variable.
9439 (sh_gdbarch_init): Wire everything.
9441 2012-02-27 Pedro Alves <palves@redhat.com>
9443 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9444 (linux_nat_post_attach_wait): Adjust to use
9445 linux_proc_pid_is_stopped.
9446 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9447 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9448 based on pid_is_stopped from both linux-nat.c and
9449 gdbserver/linux-low.c, and renamed.
9451 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9453 * remote.c (remote_watchpoint_addr_within_range): New function.
9454 (init_remote_ops): Use it.
9456 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9458 * target.h (target_watchpoint_addr_within_range): Document macro.
9460 2012-02-24 Pedro Alves <palves@redhat.com>
9462 * stack.c (set_last_displayed_sal): Issue internal_error instead
9463 of warning, and issue it after clearing the last displayed sal.
9465 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9466 Pedro Alves <palves@redhat.com>
9468 * breakpoint.c (until_break_command): Install breakpoints after
9469 all frame manipulations.
9471 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9473 * remote.c (remote_supports_cond_breakpoints): New forward
9475 (remote_add_target_side_condition): New function.
9476 (remote_insert_breakpoint): Add target-side breakpoint
9477 conditional if supported.
9478 (remote_insert_hw_breakpoint): Likewise.
9479 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9482 * target.c (update_current_target): Inherit
9483 to_supports_evaluation_of_breakpoint_conditions.
9484 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9486 * target.h (struct target_ops)
9487 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9488 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9490 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9491 (condition_evaluation_both, condition_evaluation_auto,
9492 condition_evaluation_host, condition_evaluation_target,
9493 condition_evaluation_enums, condition_evaluation_mode_1,
9494 condition_evaluation_mode): New static globals.
9495 (translate_condition_evaluation_mode): New function.
9496 (breakpoint_condition_evaluation_mode): New function.
9497 (gdb_evaluates_breakpoint_condition_p): New function.
9498 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9499 (mark_breakpoint_modified): New function.
9500 (mark_breakpoint_location_modified): New function.
9501 (set_condition_evaluation_mode): New function.
9502 (show_condition_evaluation_mode): New function.
9503 (bp_location_compare_addrs): New function.
9504 (get_first_location_gte_addr): New helper function.
9505 (set_breakpoint_condition): Free condition bytecode if locations
9506 has become unconditional. Call mark_breakpoint_modified (...).
9507 (condition_command): Call update_global_location_list (1) for
9509 (breakpoint_xfer_memory): Use is_breakpoint (...).
9510 (is_breakpoint): New function.
9511 (parse_cond_to_aexpr): New function.
9512 (build_target_condition_list): New function.
9513 (insert_bp_location): Handle target-side conditional
9514 breakpoints and call build_target_condition_list (...).
9515 (update_inserted_breakpoint_locations): New function.
9516 (insert_breakpoint_locations): Handle target-side conditional
9518 (bpstat_check_breakpoint_conditions): Add comment.
9519 (bp_condition_evaluator): New function.
9520 (bp_location_condition_evaluator): New function.
9521 (print_breakpoint_location): Print information on where the condition
9523 (print_one_breakpoint_location): Likewise.
9524 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9525 breakpoint location.
9526 (force_breakpoint_reinsertion): New functions.
9527 (update_global_location_list): Handle target-side breakpoint
9529 Reinsert locations that are already inserted if conditions have
9531 (bp_location_dtor): Free agent expression bytecode.
9532 (disable_breakpoint): Call mark_breakpoint_modified (...).
9533 Call update_global_location_list (...) with parameter 1 for breakpoints.
9534 (disable_command): Call mark_breakpoint_location_modified (...).
9535 Call update_global_location_list (...) with parameter 1 for breakpoints.
9536 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9537 (enable_command): mark_breakpoint_location_modified (...).
9538 (_initialize_breakpoint): Update documentation and add
9539 condition-evaluation breakpoint subcommand.
9541 * breakpoint.h: Include ax.h.
9542 (condition_list): New data structure.
9543 (condition_status): New enum.
9544 (bp_target_info) <cond_list>: New field.
9545 (bp_location) <condition_changed, cond_bytecode>: New fields.
9546 (is_breakpoint): New prototype.
9548 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9550 * remote.c (remote_state) <cond_breakpoints>: New field.
9551 (PACKET_ConditionalBreakpoints): New enum.
9552 (remote_cond_breakpoint_feature): New function.
9553 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9554 (remote_supports_cond_breakpoints): New function.
9555 (_initialize_remote): Add new packet configuration for
9556 target-side conditional breakpoints.
9558 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9560 * NEWS: Mention target-side conditional breakpoint support,
9561 new condition-evaluation breakpoint subcommand and remote
9564 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9566 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9569 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9571 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9572 (after_prologue): Remove.
9574 2012-02-23 Tom Tromey <tromey@redhat.com>
9576 * jv-valprint.c (java_val_print): Remove dead code.
9578 2012-02-23 Tristan Gingold <gingold@adacore.com>
9580 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9581 known_tasks_element and known_tasks_length fields.
9582 (read_known_tasks_array): Change argument type. Use pointer type
9583 and number of elements from DATA. Adjust.
9584 (read_known_tasks_list): Likewise.
9585 (get_known_tasks_addr): Remove.
9586 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9587 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9588 type and array length. Merge former get_known_tasks_addr code.
9590 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9593 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9594 it after set_momentary_breakpoint.
9596 2012-02-22 Sterling Augustine <saugustine@google.com>
9599 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9601 2012-02-22 Gary Benson <gbenson@redhat.com>
9603 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9604 (find_slot_in_mapped_hash): Likewise.
9606 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9609 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9610 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9611 * configure: Regenerate.
9613 2012-02-21 Tristan Gingold <gingold@adacore.com>
9614 Pedro Alves <palves@redhat.com>
9616 * ia64-tdep.c: Do not include libunwind-ia64.h.
9617 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9618 Include libunwind-ia64.h instead of libunwind.h.
9619 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9620 for libunwind.h existence.
9621 * configure, config.in: Regenerate.
9623 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9625 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9626 instead of value_rtti_target_type.
9627 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9628 instead of value_rtti_target_type.
9629 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9630 value_rtti_target_type.
9631 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9632 (value_rtti_target_type): Rename to ...
9633 (value_rtti_indirect_type): ... here and make it indirect. Update
9635 * value.c (readjust_indirect_value_type): New function.
9636 (coerce_ref): Support for enclosing type setting for references
9637 with readjust_indirect_value_type.
9638 * value.h (readjust_value_type): New declaration.
9639 (value_rtti_target_type): Rename to ...
9640 (value_rtti_indirect_type): ... here.
9642 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9644 * MAINTAINERS (Write After Approval): Add myself to the list.
9646 2012-02-20 Doug Evans <dje@google.com>
9648 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9649 Rename objfile_p_char parameter to objfilep.
9650 (build_objfile_section_table): Result is now void. All callers
9652 * objfiles.h (struct objfile): Tweak comments, whitespace.
9653 (build_objfile_section_table): Update.
9655 * elfread.c (elf_symfile_segments): Fix warning text.
9657 2012-02-20 Tom Tromey <tromey@redhat.com>
9660 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9661 particular set of file names once.
9662 (dw2_map_symbol_filenames): Likewise.
9664 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9667 * main.c (write_files): Remove the declaration.
9668 (external_editor_command): Move the declaration ...
9669 [GDBTK] (external_editor_command): ... here. Fix the comment.
9671 2012-02-20 Tom Tromey <tromey@redhat.com>
9673 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9676 2012-02-20 Tristan Gingold <gingold@adacore.com>
9678 * darwin-nat.h (enum darwin_msg_state): Add comments.
9680 2012-02-20 Tristan Gingold <gingold@adacore.com>
9682 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9685 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9687 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9688 between function description and implementation.
9690 2012-02-17 Tom Tromey <tromey@redhat.com>
9693 * python/py-event.c (event_object_getset): New global.
9694 (event_object_type): Reference it.
9695 * python/py-type.c (field_object_getset): New global.
9696 (field_object_type): Reference it.
9697 * python/python-internal.h (gdb_py_generic_dict): Declare.
9698 * python/py-utils.c (gdb_py_generic_dict): New function.
9700 2012-02-17 Tristan Gingold <gingold@adacore.com>
9702 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9704 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9706 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9707 TYPE_CALLING_CONVENTION annotation.
9709 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9711 * MAINTAINERS: Add rx to target ISA section.
9712 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9713 (ALLDEPFILES): Add rx-tdep.c.
9715 2012-02-16 Tom Tromey <tromey@redhat.com>
9717 * symfile.c (symbol_file_add_main_1): Use inferior's
9719 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9720 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9722 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9724 (follow_exec): Use inferior's symfile_flags.
9725 * inferior.h (struct inferior) <symfile_flags>: New field.
9727 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9730 * remote-sim.c (gdbsim_create_inferior): Call error() when
9731 sim_create_inferior() fails.
9733 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9735 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9737 2012-02-16 Tom Tromey <tromey@redhat.com>
9740 * thread.c (struct current_thread_cleanup) <was_removable>: New
9742 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9743 (make_cleanup_restore_current_thread): Initialize new field.
9745 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9747 * MAINTAINERS: Add rl78 to target ISA section.
9748 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9749 (ALLDEPFILES): Add rl78-tdep.c.
9750 * NEWS: Mention rl78 as a new target.
9752 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9754 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9756 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9758 2012-02-15 Tom Tromey <tromey@redhat.com>
9761 * infcmd.c (registers_info): Print just the current register's
9764 2012-02-15 Tom Tromey <tromey@redhat.com>
9766 * python/py-symbol.c (sympy_value): Use _().
9768 2012-02-15 Pedro Alves <palves@redhat.com>
9770 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9771 output to be like native targets'.
9772 (remote_pid_to_str): Special case the null ptid.
9774 2012-02-14 Stan Shebs <stan@codesourcery.com>
9776 * NEWS: Mention enable count command.
9777 * breakpoint.h (struct breakpoint): New field enable_count.
9778 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9779 (enable_breakpoint): Add arg to call.
9780 (struct disp_data): New struct.
9781 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9782 (do_map_enable_once_breakpoint): Create a struct and pass it.
9783 (do_map_enable_delete_breakpoint): Ditto.
9784 (do_map_enable_count_breakpoint): New function.
9785 (enable_count_command): New function.
9786 (bpstat_stop_status): Decrement enable_count.
9787 (print_one_breakpoint_location): Report enable count.
9788 (_initialize_breakpoint): Add enable count command.
9790 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9792 * rl78-tdep.c (reggroups.h): Include.
9793 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9794 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9795 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9796 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9797 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9798 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9799 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9800 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9801 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9802 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9803 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9804 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9805 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9806 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9807 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9808 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9809 beginning of register list.
9810 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9811 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9812 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9813 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9814 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9815 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9816 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9817 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9818 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9819 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9820 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9821 the pseudo registers. Rearrange other pseudo registers too so
9822 that the bank registers appear at the end.
9823 (rl78_register_type): Account for the fact that the byte sized
9824 bank registers are now pseudo-registers.
9825 (rl78_register_name): Rearrange the register name array. Make
9826 initial set of raw banked registers inaccessible.
9827 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9828 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9829 case for copying bytes back and forth between raw and pseudo
9830 versions of the banked registers. Update other cases to reflect
9832 (rl78_return_value): Update to account for changed names of
9834 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9835 rl78_register_sim_regno().
9837 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9839 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9840 the name parameter being passed to find_pc_partial_function().
9842 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9844 * MAINTAINERS: Step down from being ia64 target maintainer.
9846 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9848 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9849 compilation warning.
9851 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9853 Fix crash on loaded shlibs without loaded exec_bfd.
9854 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9855 (set_section_command): Replace exec_bfd by p->bfd.
9857 2012-02-10 Tom Tromey <tromey@redhat.com>
9859 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9860 when we have a C++ qualified name.
9862 2012-02-10 Pedro Alves <palves@redhat.com>
9864 * inferior.c (inferior_pid_to_str): New.
9865 (print_inferior, inferior_command): Use it.
9867 2012-02-10 Pedro Alves <palves@redhat.com>
9869 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9871 * configure: Regenerate.
9873 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9875 * linespec.c (decode_line_internal): Fix comment correctness.
9877 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9880 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9881 * amd64bsd-nat.c: Add support for debug registers (adapted from
9883 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9884 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9885 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9886 (amd64bsd_dr_get_control): New functions.
9887 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9888 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9889 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9890 watchpoints initialization.
9891 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9893 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9895 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9897 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9899 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9901 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9903 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9905 * language.h (symbol_name_cmp_ftype): Renames
9906 symbol_name_match_p_ftype.
9907 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9908 la_get_symbol_name_match_p.
9909 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9910 ada_get_symbol_name_match_p. Update comment.
9911 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9912 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9913 Renames symbol_name_match_p. Update field type.
9914 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9915 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9916 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9917 "la_get_symbol_name_cmp" in comments.
9918 * language.c: Likewise.
9920 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9922 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9924 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9925 (amd64_sol2_gregset32_reg_offs): Likewise.
9927 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9929 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9930 of the returned BFD is allocated by GDB.
9932 2012-02-07 Tom Tromey <tromey@redhat.com>
9935 * python/python-internal.h (frame_object_type): Declare.
9936 * python/py-symbol.c (sympy_needs_frame): New function.
9937 (sympy_value): New function.
9938 (symbol_object_getset): Add "needs_frame".
9939 (symbol_object_methods): Add "value".
9940 * python/py-frame.c (frame_object_type): No longer static.
9942 2012-02-07 Tom Tromey <tromey@redhat.com>
9945 * python/py-symbol.c (sympy_line): New function.
9946 (symbol_object_getset): Add "line".
9948 2012-02-07 Tom Tromey <tromey@redhat.com>
9950 * charset.c (find_charset_names): Check 'in' against NULL.
9952 2012-02-06 Doug Evans <dje@google.com>
9954 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9955 and fields.name members from char * to const char *. All uses updated.
9956 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9957 from char * to const char *. All uses updated.
9958 (type_name_no_tag): Update.
9959 (lookup_unsigned_typename, lookup_signed_typename): Update.
9960 * gdbtypes.c (type_name_no_tag): Change result type
9961 from char * to const char *. All callers updated.
9962 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9963 name parameter from char * to const char *.
9964 * symtab.h (struct cplus_specific): Change type of demangled_name
9965 member from char * to const char *. All uses updated.
9966 (struct general_symbol_info): Change type of name and
9967 mangled_lang.demangled_name members from char * to const char *.
9969 (symbol_get_demangled_name, symbol_natural_name): Update.
9970 (symbol_demangled_name, symbol_search_name): Update.
9971 * symtab.c (symbol_get_demangled_name): Change result type
9972 from char * to const char *. All callers updated.
9973 (symbol_natural_name, symbol_demangled_name): Ditto.
9974 (symbol_search_name): Ditto.
9975 (completion_list_add_name): Change type of symname,sym_text,
9976 text,word parameters from char * to const char *.
9977 (completion_list_objc_symbol): Change type of sym_text,
9978 text,word parameters from char * to const char *.
9979 * ada-lang.c (find_struct_field): Change type of name parameter
9980 from char * to const char *.
9981 (encoded_ordered_before): Similarly for N0,N1 parameters.
9982 (old_renaming_is_invisible): Similarly for function_name parameter.
9983 (ada_type_name): Change result type from char * to const char *.
9984 All callers updated.
9985 * ada-lang.h (ada_type_name): Update.
9986 * buildsym.c (hashname): Change type of name parameter
9987 from char * to const char *.
9988 * buildsym.h (hashname): Update.
9989 * dbxread.c (end_psymtab): Change type of include_list parameter
9990 from char ** to const char **.
9991 * dwarf2read.c (determine_prefix): Change result type
9992 from char * to const char *. All callers updated.
9993 * f-lang.c (find_common_for_function): Change type of name, funcname
9994 parameters from char * to const char *.
9995 * f-lang.c (find_common_for_function): Update.
9996 * f-valprint.c (list_all_visible_commons): Change type of funcname
9997 parameters from char * to const char *.
9998 * gdbarch.sh (static_transform_name): Change type of name parameter
9999 and result from char * to const char *.
10000 * gdbarch.c: Regenerate.
10001 * gdbarch.h: Regenerate.
10002 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10003 of name parameter from char * to const char *.
10004 * jv-lang.c (java_primitive_type_from_name): Ditto.
10005 (java_demangled_signature_length): Similarly for signature parameter.
10006 (java_demangled_signature_copy): Ditto.
10007 (java_demangle_type_signature): Ditto.
10008 * jv-lang.h (java_primitive_type_from_name): Update.
10009 (java_demangle_type_signature): Update.
10010 * objc-lang.c (specialcmp): Change type of a,b parameters
10011 from char * to const char *.
10012 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10013 from char * to const char *. All callers updated.
10014 * p-lang.h (is_pascal_string_type): Update.
10015 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10016 of name parameter from char * to const char *.
10017 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10018 * utils.c (fprintf_symbol_filtered): Ditto.
10019 * defs.h (fprintf_symbol_filtered): Update.
10020 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10021 * stabsread.h (end_psymtab): Update.
10022 * stack.c (find_frame_funname): Change type of funname parameter
10023 from char ** to const char **.
10024 * stack.h (find_frame_funname): Update.
10025 * typeprint.c (type_print): Change type of varstring parameter
10026 from char * to const char *.
10027 * value.h (type_print): Update.
10028 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10029 from char * to const char *. All callers updated.
10030 (xcoff_end_psymtab): Change type of include_list parameter
10031 from char ** to const char **. All callers updated.
10032 (swap_sym): Similarly for name parameter. All callers updated.
10033 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10035 (process_coff_symbol): Use xstrdup.
10036 * stabsread.c (stabs_method_name_from_physname): Renamed from
10037 update_method_name_from_physname. Change result type from void
10038 to char *. All callers updated.
10039 (read_member_functions): In has_destructor case, store name in objfile
10040 obstack instead of malloc space. In !has_stub case, fix mem leak.
10042 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10044 * configure: Rebuild.
10045 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10048 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10050 * configure.tgt (rl78-*-elf): New target.
10051 * rl78-tdep.c: New file.
10053 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10055 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10056 and continue the loop. Add QUIT statement.
10058 2012-02-03 Tom Tromey <tromey@redhat.com>
10061 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10062 bfd_lookup_symbol_from_symtab.
10063 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10064 gdb_bfd_lookup_symbol_from_symtab.
10066 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10068 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10069 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10070 symbol. Add assertion that sym2 is never NULL.
10072 2012-02-02 Doug Evans <dje@google.com>
10074 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10075 "name" parameter to const char ** from char **. All callers updated.
10076 (find_pc_partial_function): Ditto.
10077 (cache_pc_function_name): Change type to const char * from char *.
10078 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10079 (find_pc_partial_function): Update.
10080 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10081 type of "name" parameter to const char * from char *.
10083 * arch-utils.c (generic_in_solib_return_trampoline): Change
10084 type of "name" parameter to const char * from char *.
10085 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10086 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10087 type of "name" parameter to const char * from char *.
10088 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10089 * gdbarch.c: Regenerate.
10090 * gdbarch.h: Regenerate.
10091 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10092 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10093 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10094 type of "name" parameter to const char * from char *.
10095 * skip.c (skip_function_pc): Ditto.
10096 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10097 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10098 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10099 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10100 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10101 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10102 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10103 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10104 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10106 2012-02-02 Pedro Alves <palves@redhat.com>
10108 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10109 the current inferior has no execution. Make sure the current
10110 remote process matches gdb's current inferior.
10112 2012-02-02 Tom Tromey <tromey@redhat.com>
10115 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10118 2012-02-02 Tom Tromey <tromey@redhat.com>
10121 * symtab.c (lookup_language_this): Set block_found.
10123 2012-02-01 Tom Tromey <tromey@redhat.com>
10126 * jit.c (struct jit_inferior_data): Rewrite.
10127 (struct jit_objfile_data): New.
10128 (get_jit_objfile_data): New function.
10129 (add_objfile_entry): Update.
10130 (jit_read_descriptor): Return int. Replace descriptor_addr
10131 argument with inf_data. Update. Don't call error.
10132 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10134 (jit_inferior_init): Don't look up descriptor. Don't call error.
10135 (jit_reset_inferior_data_and_breakpoints)
10136 (jit_inferior_created_observer): Remove.
10137 (jit_inferior_exit_hook): Update.
10138 (jit_executable_changed_observer): Remove.
10139 (jit_event_handler): Update.
10140 (free_objfile_data): Reset inferior data if needed.
10141 (_initialize_jit): Update.
10143 2012-02-01 Tom Tromey <tromey@redhat.com>
10145 * jit.c (bfd_open_from_target_memory): Move higher in file.
10147 2012-02-01 Tristan Gingold <gingold@adacore.com>
10149 * libunwind-frame.c (libunwind_load): Display message if dlopen
10152 2012-02-01 Gary Benson <gbenson@redhat.com>
10154 * symtab.h (symbol_found_callback_ftype): New typedef.
10155 (iterate_over_symbols): Use the above.
10156 * symtab.c (iterate_over_symbols): Likewise.
10157 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10158 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10159 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10160 (iterate_name_matcher): Document return values.
10161 (collect_one_symbol): Likewise.
10162 (collect_function_symbols): Likewise.
10163 (collect_symbols): Likewise.
10165 2012-02-01 Tom Tromey <tromey@redhat.com>
10167 * ada-lang.c (resolve_subexp): Update.
10168 (ada_lookup_symbol_list): Add 'full_search' argument.
10169 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10170 ada_lookup_symbol_list.
10171 (ada_lookup_encoded_symbol): Update.
10172 (get_var_value): Update.
10173 * ada-exp.y (block_lookup): Update.
10174 (write_var_or_type): Update.
10175 (write_name_assoc): Update.
10176 * ada-lang.h (ada_lookup_symbol_list): Update.
10178 2012-01-31 Tom Tromey <tromey@redhat.com>
10180 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10183 2012-01-31 Doug Evans <dje@google.com>
10185 * symtab.h: Remove outdated comment.
10186 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10188 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10190 Fix build error in Darwin port.
10191 * i386-darwin-nat.c: Include i386-nat.h.
10193 2012-01-30 Tom Tromey <tromey@redhat.com>
10195 PR breakpoints/13568:
10196 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10197 argument. Check for recursive includes.
10198 (dwarf_decode_macros): Create an include hash.
10200 2012-01-30 Michael Eager <eager@eagercon.com>
10202 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10203 * ppc-linux-tdep.c: Include glibc-tdep.h.
10204 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10205 (powerpc_linux_in_plt_stub): New function.
10206 (powerpc_linux_in_dynsym_resolve_code): New function.
10207 (ppc_skip_trampoline_code): New function.
10208 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10209 Use glibc_skip_solib_resolver.
10211 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10213 Code cleanup: Make 1440 bytes of data segment read-only.
10214 * arch-utils.c (endian_enum): Make it const char *const [].
10215 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10217 * breakpoint.c (always_inserted_enums): Likewise.
10218 * cli/cli-cmds.c (script_ext_enums): Likewise.
10219 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10220 enumlist parameter const char *const *.
10221 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10222 const char *const *.
10223 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10224 parameter const char *const *.
10225 * cris-tdep.c (cris_modes): Make it const char *const [].
10226 * filesystem.c (target_file_system_kinds): Likewise.
10227 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10228 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10229 (can_use_displaced_stepping_enum, scheduler_enums)
10230 (exec_direction_names): Likewise.
10231 * language.c (_initialize_language): Make the type_or_range_names and
10232 case_sensitive_names variables const char *const [].
10233 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10234 * python/python.c (python_excp_enums): Likewise.
10235 * remote.c (interrupt_sequence_modes): Likewise.
10236 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10237 * serial.c (logbase_enums): Likewise.
10238 * sh-tdep.c (sh_cc_enum): Likewise.
10239 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10241 * symtab.c (multiple_symbols_modes): Likewise.
10242 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10244 * utils.c (internal_problem_modes): Likewise.
10246 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10248 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10249 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10252 2012-01-27 Doug Evans <dje@google.com>
10254 * configure.ac (with_python): Fix absolute path handling for win32.
10255 * configure: Regenerate.
10257 2012-01-26 Doug Evans <dje@google.com>
10259 * symtab.c: Whitespace cleanup, no code changes.
10261 * symtab.c (lookup_symbol_in_language): Improve comment.
10262 (lookup_symbol_aux): Fix comment.
10264 * psymtab.c (add_psymbol_to_list): Result is now "void".
10265 * psympriv.h (add_psymbol_to_list): Update.
10267 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10269 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10271 Do not open script filenames twice.
10272 * cli/cli-cmds.c (source_script_from_stream): Pass to
10273 source_python_script also STREAM.
10274 * python/py-auto-load.c (source_section_scripts): Pass to
10275 source_python_script_for_objfile also STREAM.
10276 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10278 * python/python-internal.h (source_python_script_for_objfile): New
10279 parameter file, rename parameter file to filename.
10280 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10281 instead if !_WIN32. Update the function comment.
10282 (source_python_script, source_python_script_for_objfile)
10283 (source_python_script): New parameter file, rename parameter file to
10284 filename. Pass FILENAME to python_run_simple_file.
10285 * python/python.h (source_python_script): New parameter file, rename
10286 parameter file to filename.
10288 2012-01-26 Pedro Alves <palves@redhat.com>
10290 * corelow.c (core_has_fake_pid): Delete.
10291 (core_close): Delete references to `core_has_fake_pid'.
10292 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10293 (core_open): Delete references to `core_has_fake_pid'.
10294 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10295 the removed global.
10297 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10299 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10300 Remove language parameter from name_matcher. Adjust the comment.
10301 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10302 Remove language parameter.
10303 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10304 * linespec.c (iterate_name_matcher): Likewise.
10305 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10306 name_matcher. Adjust call accordingly.
10307 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10308 (maintenance_check_symtabs): Adjust type of parameter "fun".
10309 * psymtab.h (maintenance_check_symtabs): Likewise.
10311 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10313 * language.h (symbol_name_match_p_ftype): New typedef.
10314 (struct language_defn): Replace field la_symbol_name_compare
10315 by la_get_symbol_name_match_p.
10316 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10317 (ada_language_defn): Use it.
10318 * linespec.c (struct symbol_matcher_data): New type.
10319 (iterate_name_matcher): Rewrite.
10320 (iterate_over_all_matching_symtabs): Pass a pointer to
10321 a symbol_matcher_data struct to expand_symtabs_matching
10322 instead of just the lookup name.
10323 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10324 opencl-lang.c, p-lang.c, language.c: Delete field
10325 la_symbol_name_compare, and replace by NULL for new field
10326 la_get_symbol_name_match_p.
10327 * symfile.h (struct quick_symbol_functions): Update comment.
10329 2012-01-25 Tom Tromey <tromey@redhat.com>
10331 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10334 2012-01-24 Tom Tromey <tromey@redhat.com>
10337 * solib.c (update_solib_list): Update the program space's
10338 added_solibs and deleted_solibs fields.
10339 * progspace.h (struct program_space) <added_solibs,
10340 deleted_solibs>: New fields.
10341 (clear_program_space_solib_cache): Declare.
10342 * progspace.c (release_program_space): Call
10343 clear_program_space_solib_cache.
10344 (clear_program_space_solib_cache): New function.
10345 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10346 bpstat_stop_status. Use handle_solib_event.
10347 * breakpoint.c: Include gdb_regex.h.
10348 (print_solib_event): New function.
10349 (bpstat_print): Use print_solib_event.
10350 (bpstat_stop_status): Add special case for bp_shlib_event.
10351 (handle_solib_event): New function.
10352 (bpstat_what): Use handle_solib_event.
10353 (struct solib_catchpoint): New.
10354 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10355 (breakpoint_hit_catch_solib, check_status_catch_solib)
10356 (print_it_catch_solib, print_one_catch_solib)
10357 (print_mention_catch_solib, print_recreate_catch_solib): New
10359 (catch_solib_breakpoint_ops): New global.
10360 (catch_load_or_unload, catch_load_command_1)
10361 (catch_unload_command_1): New functions.
10362 (internal_bkpt_check_status): Add special case for
10364 (internal_bkpt_print_it): Use print_solib_event.
10365 (initialize_breakpoint_ops): Initialize
10366 catch_solib_breakpoint_ops.
10367 (_initialize_breakpoint): Register "catch load" and "catch
10369 * breakpoint.h (handle_solib_event): Declare.
10370 * NEWS: Add entry for "catch load" and "catch unload".
10372 2012-01-24 Tom Tromey <tromey@redhat.com>
10374 * ada-lang.c: Include gdb_vecs.h.
10375 * charset.c: Include gdb_vecs.h.
10376 * tracepoint.h: Include gdb_vecs.h.
10377 * gdb_vecs.h: New file.
10379 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10381 * breakpoint.c (breakpoint_hit_catch_fork)
10382 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10383 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10384 * infrun.c (inferior_has_forked, inferior_has_vforked)
10385 (inferior_has_execd, inferior_has_called_syscall): Delete.
10386 (handle_syscall_event): Get syscall_number from the execution
10387 control state's wait status.
10388 (wait_for_inferior): Don't clear syscall_number.
10390 2012-01-24 Pedro Alves <palves@redhat.com>
10392 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10393 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10394 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10395 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10397 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10398 false for events other than TARGET_SIGNAL_TRAP.
10399 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10400 Add `ws' parameter.
10401 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10402 events other than TARGET_SIGNAL_TRAP.
10403 (tracepoint_breakpoint_hit): Add `ws' parameter.
10404 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10406 (bpstat_stop_status): Same.
10407 (pc_at_non_inline_function): Same.
10408 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10409 to pass the current event's waitstatus to bpstat_stop_status
10410 and pc_at_non_inline_function.
10412 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10415 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10416 Update the function comment for it.
10417 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10418 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10421 2012-01-24 Pedro Alves <palves@redhat.com>
10423 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10424 outside `bs->stop' block.
10425 (bpstat_what): Rework bp_shlib_event handling.
10426 (internal_bkpt_check_status): If the breakpoint is a
10427 bp_shlib_event, then set bs->stop and bs->print if
10428 stop_on_solib_events is set.
10430 2012-01-24 Gary Benson <gbenson@redhat.com>
10432 Delete #if 0'd out code.
10433 * stack.c (print_frame_label_vars): Remove.
10434 (catch_info): Likewise.
10435 (_initialize_stack): Remove "info catch" command.
10436 * NEWS: Mention the above.
10438 2012-01-24 Pedro Alves <palves@redhat.com>
10440 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10442 (remote_notice_new_inferior): If the remote end doesn't support
10443 the multiprocess extensions, then the PID is fake.
10444 (add_current_inferior_and_thread): New.
10445 (remote_start_remote): Use it.
10446 (extended_remote_attach_1): Adjust.
10447 (extended_remote_create_inferior_1): Use
10448 add_current_inferior_and_thread.
10450 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10452 Fix watchpoints to be specific for each inferior.
10453 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10454 current_program_space.
10455 * i386-nat.c (i386_inferior_data_cleanup): New.
10456 (i386_inferior_data_get): Replace variable inf_data_local by an
10457 inferior_data call.
10458 (i386_use_watchpoints): Initialize i386_inferior_data.
10459 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10460 specific iterate_over_lwps.
10462 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10464 Fix watchpoints across inferior fork.
10465 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10466 comment for linux_nat_iterate_watchpoint_lwps.
10467 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10468 linux_nat_iterate_watchpoint_lwps.
10469 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10470 * i386-linux-nat.c (update_debug_registers_callback): Update the
10471 comment for linux_nat_iterate_watchpoint_lwps.
10472 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10473 linux_nat_iterate_watchpoint_lwps.
10474 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10475 * i386-nat.c: Include inferior.h.
10476 (dr_mirror): Remove.
10477 (i386_inferior_data, struct i386_inferior_data)
10478 (i386_inferior_data_get): New.
10479 (i386_debug_reg_state): Use i386_inferior_data_get.
10480 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10481 (i386_insert_watchpoint, i386_remove_watchpoint)
10482 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10483 (i386_remove_hw_breakpoint): New variable state, use
10484 i386_debug_reg_state instead of DR_MIRROR.
10485 * linux-nat.c (delete_lwp): New declaration.
10486 (num_lwps): Move here from downwards.
10487 (delete_lwp_cleanup): New.
10488 (linux_child_follow_fork): Create new child_lp, call
10489 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10491 (num_lwps): Move upwards.
10492 (linux_nat_iterate_watchpoint_lwps): New.
10493 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10494 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10496 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10500 2012-01-23 Pedro Alves <palves@redhat.com>
10502 * top.c (caution): Rename to ...
10503 (confirm): ... this.
10504 (show_caution): Rename to ...
10505 (show_confirm): ... this.
10506 (quit_cover): Adjust.
10507 (init_main): Adjust.
10508 * top.h (caution): Rename to ...
10509 (confirm): ... this.
10510 * utils.c (internal_vproblem, defaulted_query): Adjust.
10512 2012-01-23 Pedro Alves <palves@redhat.com>
10514 * top.c (caution): Update comment.
10515 (execute_command): Don't consider the current value of `caution'.
10517 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10519 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10521 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10523 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10524 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10525 * target.c (target_fileio_pwrite): Remove buffer address from
10527 (target_fileio_pread): Likewise.
10529 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10531 * NEWS: Document remote "info proc" and "generate-core-file".
10533 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10535 * gdbarch.sh (find_memory_regions): New callback.
10536 * gdbarch.c, gdbarch.h: Regenerate.
10538 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10539 callback before falling back to target method.
10541 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10542 (linux_target_install_ops): No longer install it.
10544 * linux-tdep.c (linux_find_memory_regions): New function.
10545 (linux_init_abi): Install it.
10547 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10549 * gdbarch.sh (make_corefile_notes): New architecture callback.
10550 * gdbarch.c: Regenerate.
10551 * gdbarch.h: Likewise.
10553 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10554 before target_make_corefile_notes. If NULL is returned, the
10555 target does not support core file generation.
10557 * linux-nat.c: Include "linux-tdep.h".
10558 (find_signalled_thread, find_stop_signal): Remove.
10559 (linux_nat_do_thread_registers): Likewise.
10560 (struct linux_nat_corefile_thread_data): Likewise.
10561 (linux_nat_corefile_thread_callback): Likewise.
10562 (iterate_over_spus): Likewise.
10563 (struct linux_spu_corefile_data): Likewise.
10564 (linux_spu_corefile_callback): Likewise.
10565 (linux_spu_make_corefile_notes): Likewise.
10566 (linux_nat_collect_thread_registers): New function.
10567 (linux_nat_make_corefile_notes): Replace contents by call to
10568 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10569 as native-only callback.
10571 * linux-tdep.h: Include "bfd.h".
10572 (struct regcache): Add forward declaration.
10573 (linux_collect_thread_registers_ftype): New typedef.
10574 (linux_make_corefile_notes): Add prototype.
10575 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10576 "regset.h", and "elf-bfd.h".
10577 (find_signalled_thread, find_stop_signal): New functions.
10578 (linux_spu_make_corefile_notes): Likewise.
10579 (linux_collect_thread_registers): Likewise.
10580 (struct linux_corefile_thread_data): New data structure.
10581 (linux_corefile_thread_callback): New funcion.
10582 (linux_make_corefile_notes): Likewise.
10583 (linux_make_corefile_notes_1): Likewise.
10584 (linux_init_abi): Install it.
10586 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10588 * gdbarch.sh (info_proc): New callback.
10589 * gdbarch.c, gdbarch.h: Regenerate.
10591 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10592 before falling back to the target info_proc callback.
10594 * linux-nat.c: Do not include "cli/cli-utils.h".
10595 (linux_nat_info_proc): Remove.
10596 (linux_target_install_ops): No longer install it.
10598 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10599 (read_mapping): New function.
10600 (linux_info_proc): Likewise.
10601 (linux_init_abi): Install it.
10603 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10605 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10606 * infcmd.c: (info_proc_cmd_1): New function.
10607 (info_proc_cmd): New function, moved here from equivalent routine
10608 orignally in linux-nat.c.
10609 (info_proc_cmd_mappings): Likewise.
10610 (info_proc_cmd_stat): Likewise.
10611 (info_proc_cmd_status): Likewise.
10612 (info_proc_cmd_cwd): Likewise.
10613 (info_proc_cmd_cmdline): Likewise.
10614 (info_proc_cmd_exe): Likewise.
10615 (info_proc_cmd_all): Likewise.
10616 (_initialize_infcmd): Install "info proc" command and subcommands.
10618 * target.h (struct target_ops): Add to_info_proc.
10619 (target_info_proc): Add prototype.
10620 * target.c (target_info_proc): New function.
10622 * procfs.c (procfs_info_proc): Add prototype.
10623 (info_proc_cmd): Rename into ...
10624 (procfs_info_proc): ... this. Update argument types as appropriate
10625 for a to_info_proc implementation. Handle "what" argument.
10626 (procfs_target): Install procfs_info_proc.
10627 (_initialize_procfs): No longer install "info proc" command.
10629 * linux-nat.c: (enum info_proc_what): Remove.
10630 (linux_nat_info_proc_cmd_1): Rename into ...
10631 (linux_nat_info_proc): ... this. Update argument types as appropriate
10632 for a to_info_proc implementation.
10633 (linux_nat_info_proc_cmd): Remove.
10634 (linux_nat_info_proc_cmd_mappings): Likewise.
10635 (linux_nat_info_proc_cmd_stat): Likewise.
10636 (linux_nat_info_proc_cmd_status): Likewise.
10637 (linux_nat_info_proc_cmd_cwd): Likewise.
10638 (linux_nat_info_proc_cmd_cmdline): Likewise.
10639 (linux_nat_info_proc_cmd_exe): Likewise.
10640 (linux_nat_info_proc_cmd_all): Likewise.
10641 (linux_target_install_ops): Install linux_nat_info_proc.
10642 (_initialize_linux_nat): No longer install "info proc" command
10645 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10647 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10648 * config.in, configure: Regenerate.
10650 * target.h (struct target_ops): Add to_fileio_readlink.
10651 (target_fileio_readlink): Add prototype.
10652 * target.c (target_fileio_readlink): New function.
10654 * inf-child.c: Conditionally include <sys/param.h>.
10655 (inf_child_fileio_readlink): New function.
10656 (inf_child_target): Install it.
10658 * remote.c (PACKET_vFile_readlink): New enum value.
10659 (remote_hostio_readlink): New function.
10660 (init_remote_ops): Install it.
10661 (_initialize_remote): Handle vFile:readlink packet type.
10663 2012-01-20 Pedro Alves <palves@redhat.com>
10664 Ulrich Weigand <ulrich.weigand@linaro.org>
10666 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10667 * config.in, configure: Regenerate.
10669 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10670 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10671 (target_fileio_open): Add prototype.
10672 (target_fileio_pwrite): Likewise.
10673 (target_fileio_pread): Likewise.
10674 (target_fileio_close): Likewise.
10675 (target_fileio_unlink): Likewise.
10676 (target_fileio_read_alloc): Likewise.
10677 (target_fileio_read_stralloc): Likewise.
10679 * target.c: Include "gdb/fileio.h".
10680 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10681 (default_fileio_target): New function.
10682 (target_fileio_open): Likewise.
10683 (target_fileio_pwrite): Likewise.
10684 (target_fileio_pread): Likewise.
10685 (target_fileio_close): Likewise.
10686 (target_fileio_unlink): Likewise.
10687 (target_fileio_close_cleanup): Likewise.
10688 (target_fileio_read_alloc_1): Likewise.
10689 (target_fileio_read_alloc): Likewise.
10690 (target_fileio_read_stralloc): Likewise.
10692 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10693 <fcntl.h>, and <unistd.h>.
10694 (inf_child_fileio_open_flags_to_host): New function.
10695 (inf_child_errno_to_fileio_error): Likewise.
10696 (inf_child_fileio_open): Likewise.
10697 (inf_child_fileio_pwrite): Likewise.
10698 (inf_child_fileio_pread): Likewise.
10699 (inf_child_fileio_close): Likewise.
10700 (inf_child_fileio_unlink): Likewise.
10701 (inf_child_target): Install to_fileio routines.
10703 * remote.c (init_remote_ops): Install to_fileio routines.
10705 2012-01-20 Pedro Alves <palves@redhat.com>
10706 Ulrich Weigand <ulrich.weigand@linaro.org>
10708 * remote.c (remote_multi_process_p): Only check for multi-process
10709 protocol feature, do not check for extended protocol.
10710 (remote_supports_multi_process): Check for extended protocol here.
10711 (set_general_process): Likewise.
10712 (extended_remote_kill): Likewise.
10713 (remote_pid_to_str): Likewise.
10714 (remote_query_supported): Always query multiprocess mode.
10716 2012-01-20 Pedro Alves <palves@redhat.com>
10717 Ulrich Weigand <ulrich.weigand@linaro.org>
10719 * inferior.h (struct inferior): Add fake_pid_p.
10720 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10721 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10722 magic_null_ptid since the remote side doesn't provide a real PID.
10724 2012-01-19 Tom Tromey <tromey@redhat.com>
10726 * NEWS: Combine the two Python sections.
10728 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10730 * target.h (target_close): Update comment on the target's unpush state.
10732 2012-01-19 Pedro Alves <palves@redhat.com>
10734 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10735 linux_nat_async directly instead of going through the target
10737 * target.c (unpush_target): Close target after unpushing it, not
10740 2012-01-19 Gary Benson <gbenson@redhat.com>
10742 * mdebugread.c (sort_blocks): Replace integer constants with ones
10743 derived from FIRST_LOCAL_BLOCK.
10745 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10746 Jan Kratochvil <jan.kratochvil@redhat.com>
10749 * symfile.c (find_separate_debug_file): New function.
10750 (terminate_after_last_dir_separator): Likewise.
10751 (find_separate_debug_file_by_debuglink): Also try realpath.
10752 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10753 * configure: Regenerate.
10754 * config.in: Regenerate.
10756 2012-01-18 Doug Evans <dje@google.com>
10758 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10759 (main.o): Remove rule.
10760 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10761 (--with-sysroot): Rewrite.
10762 * configure: Regenerate.
10763 * config.in: Regenerate.
10765 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10767 * parse.c (initialize_expout): New function.
10768 (reallocate_expout): Likewise.
10769 (parse_exp_in_context): Use `initialize_expout' and
10770 `reallocate_expout' when appropriate.
10772 2012-01-18 Pedro Alves <palves@redhat.com>
10774 * record.c (struct record_breakpoint, record_breakpoint_p)
10775 (record_breakpoints): New.
10776 (record_insert_breakpoint, record_remove_breakpoint): Manage
10777 record breakpoints list. Only remove breakpoints from the
10778 inferior if they had been inserted there in the first place.
10780 2012-01-17 Doug Evans <dje@google.com>
10782 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10783 if we know we don't have a file name to look for.
10785 2012-01-17 Pedro Alves <palves@redhat.com>
10787 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10788 the frame's stop reason is UNWIND_UNAVAILABLE.
10790 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10792 Fix compilation error.
10793 * m2-exp.y (yyerror): Use ANSI C prototype.
10795 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10797 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10798 (growbuf_by_size): Likewise.
10799 (yyerror): Likewise.
10800 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10801 (modblock): Remove variable (was #if 0'ed).
10802 (parse_number): Convert prototype from K&R to ANSI C.
10803 (yyerror): Likewise.
10804 * objc-exp.y (parse_number): Likewise.
10805 (yyerror): Likewise.
10806 (yylex): Remove #if 0'ed code.
10807 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10808 (yyerror): Likewise.
10810 2012-01-16 Tom Tromey <tromey@redhat.com>
10813 * symtab.h (compare_filenames_for_search): Declare.
10814 * symtab.c (compare_filenames_for_search): New function.
10815 (iterate_over_some_symtabs): Use it.
10816 * symfile.h (struct quick_symbol_functions)
10817 <map_symtabs_matching_filename>: Change spec.
10818 * psymtab.c (partial_map_symtabs_matching_filename): Use
10819 compare_filenames_for_search. Update for new spec.
10820 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10821 compare_filenames_for_search. Update for new spec.
10822 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10824 2012-01-16 Tom Tromey <tromey@redhat.com>
10827 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10828 (struct main_type) <flag_flag_enum>: New field.
10829 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10830 * NEWS: Add entries.
10831 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10833 * python/lib/gdb/printing.py (_EnumInstance): New class.
10834 (FlagEnumerationPrinter): Likewise.
10836 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10838 * breakpoint.c (create_sals_from_address_default): New function.
10839 (create_breakpoints_sal_default): Likewise.
10840 (decode_linespec_default): Likewise.
10841 (is_marker_spec): Removed.
10842 (strace_marker_p): New function.
10843 (init_breakpoint_sal): Using `strace_marker_p' instead of
10845 (create_breakpoint): Call method `create_sals_from_address' from
10846 breakpoint_ops, replacing code that created SALs conditionally
10847 on the type of the breakpoint. Call method `create_breakpoints_sal',
10848 replacing code that created breakpoints conditionally on the type
10850 (base_breakpoint_create_sals_from_address): New function.
10851 (base_breakpoint_create_breakpoints_sal): Likewise.
10852 (base_breakpoint_decode_linespec): Likewise.
10853 (base_breakpoint_ops): Add methods
10854 `base_breakpoint_create_sals_from_address',
10855 `base_breakpoint_create_breakpoints_sal' and
10856 `base_breakpoint_decode_linespec'.
10857 (bkpt_create_sals_from_address): New function.
10858 (bkpt_create_breakpoints_sal): Likewise.
10859 (bkpt_decode_linespec): Likewise.
10860 (tracepoint_create_sals_from_address): Likewise.
10861 (tracepoint_create_breakpoints_sal): Likewise.
10862 (tracepoint_decode_linespec): Likewise.
10863 (strace_marker_create_sals_from_address): Likewise.
10864 (strace_marker_create_breakpoints_sal): Likewise.
10865 (strace_marker_decode_linespec): Likewise.
10866 (strace_marker_breakpoint_ops): New variable.
10867 (addr_string_to_sals): Remove `marker_spec'. Call method
10868 `decode_linespec' from breakpoint_ops, replacing code that decoded
10869 an address string into a SAL. Use `strace_marker_p' instead of
10871 (strace_command): Decide whether we are dealing with a static
10872 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10873 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10874 * breakpoint.h (linespec_result, linespec_sals): New forward
10876 (breakpoint_ops) <create_sals_from_address>,
10877 <create_breakpoints_sal>, <decode_linespec>: New methods.
10879 2012-01-14 Doug Evans <dje@google.com>
10881 * NEWS: Update text for "maint set python print-stack".
10882 It is deprecated in gdb 7.4 and deleted in 7.5.
10884 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10886 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10887 including curses.h.
10889 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10891 * configure: Regenerate.
10892 * config.in: Regenerate.
10894 2012-01-12 Keith Seitz <keiths@redhat.com>
10897 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10898 (ANONYMOUS_UNION_NAME): Define.
10899 (is_path_expr_parent): New function.
10900 (get_path_expr_parent): New function.
10901 (is_anonymous_child): New function.
10902 (create_child_with_value): If the child is anonymous and without
10903 a name, assign an object name to it.
10904 (c_describe_child): Use get_path_expr_parent to determine
10905 the parent expression.
10906 If there field represents an anonymous struct or union and
10907 has no name, set an appropriate display name and expression.
10908 (cplus_describe_child): Likewise.
10910 2012-01-12 Pedro Alves <palves@redhat.com>
10912 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10913 available when %ebp is found to be zero (outermost).
10915 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10917 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10918 an internal gdb_static_assert.
10919 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10921 2012-01-11 Tom Tromey <tromey@redhat.com>
10924 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10925 catch" and "catch throw".
10927 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10929 * blockframe.c (block_innermost_frame): Start search from selected
10930 frame, if present, or otherwise the current frame.
10932 * c-exp.y (variable): Update innermost_block for
10933 'block COLONCOLON NAME' clause.
10934 * m2-exp.y (variable): Ditto.
10935 * objc-exp.y (variable): Ditto.
10937 2012-01-10 Tom Tromey <tromey@redhat.com>
10940 * python/python.c (finish_python_initialization): Set sys.argv.
10942 2012-01-10 Doug Evans <dje@google.com>
10944 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10945 "want_line_info". All callers updated.
10946 (dwarf_decode_lines_1): New function.
10947 (handle_DW_AT_stmt_list): Add function comment.
10948 New arg "want_line_info". All callers updated.
10949 (read_file_scope,read_type_unit_scope): Move comment from
10950 handle_DW_AT_stmt_list to here.
10952 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10954 Fix regression after libiberty/ update for GCC PR 6057 and others.
10955 * c-exp.y (operator) <OPERATOR DELETE>
10956 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10957 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10958 (make_builtin_type, make_name): New variable i, add gdb_assert.
10959 (operator) <OPERATOR NEW>: Update ARGS to 3.
10960 (operator) <OPERATOR DELETE>: Add trailing space.
10961 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10962 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10963 * cp-support.c (cp_canonicalize_string): Check NULL from
10964 cp_comp_to_string, call warning and return.
10966 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10968 Fix duplicate .o files after omitting libbfd.a.
10969 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10970 (SFILES): Add corelow.c.
10971 (COMMON_OBS): Add corelow.o.
10972 (ALLDEPFILES): Remove corelow.c.
10973 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10974 * config/alpha/alpha-osf3.mh: Likewise.
10975 * config/alpha/fbsd.mh: Likewise.
10976 * config/arm/nbsdaout.mh: Likewise.
10977 * config/arm/nbsdelf.mh: Likewise.
10978 * config/i386/i386gnu.mh: Likewise.
10979 * config/ia64/hpux.mh: Likewise.
10980 * config/ia64/linux.mh: Likewise.
10981 * config/m32r/linux.mh: Likewise.
10982 * config/m68k/linux.mh: Likewise.
10983 * config/mips/irix5.mh: Likewise.
10984 * config/mips/irix6.mh: Likewise.
10985 * config/pa/hpux.mh: Likewise.
10986 * config/pa/linux.mh: Likewise.
10987 * config/powerpc/aix.mh: Likewise.
10988 * config/sparc/linux.mh: Likewise.
10989 * config/sparc/linux64.mh: Likewise.
10990 * config/sparc/sol2.mh: Likewise.
10991 * config/vax/vax.mh: Likewise.
10992 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10993 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10994 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10995 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10996 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10997 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10998 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10999 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11000 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11001 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11002 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11003 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11004 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11005 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11006 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11007 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11008 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11009 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11010 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11011 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11012 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11013 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11014 corelow.o from gdb_target_obs.
11015 * corefile.c (core_target): Update the comment on NULL value.
11016 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11017 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11018 MATCHES. Drop YUMMY set on NULL.
11019 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11020 reclaim CORE_DATA if it is already NULL.
11022 2012-01-09 Doug Evans <dje@google.com>
11024 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11025 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11027 2012-01-09 Keith Seitz <keiths@redhat.com>
11029 * breakpoint.c (wrapper.h): Don't include.
11031 2012-01-09 Keith Seitz <keiths@redhat.com>
11033 * Makefile.in (SFILES): Remove wrapper.c.
11034 (HFILES_NO_SRCDIR): Remove wrapper.h.
11035 (COMMON_OBS): Remove wrapper.o.
11036 * cli/cli-interp.c: Don't inlude wrapper.h.
11037 * corelow.c: Likewise.
11038 (core_open): Replace gdb_target_find_new_threads with
11039 TRY_CATCH around target_find_new_threads.
11040 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11041 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11042 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11043 evaluate_expression.
11044 (varobj_set_value): Likewise for evaluate_expression and
11046 (install_new_variable): Likewise for value_fetch_lazy.
11047 (adjust_value_for_child_access): Likewise for value_ind.
11048 (c_describe_child): Likewise for value_subscript and
11050 (c_value_of_root): Likewise for evaluate_expression.
11051 * wrapper.c: Remove.
11052 * wrapper.h: Remove.
11054 2012-01-09 Doug Evans <dje@google.com>
11056 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11057 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11058 "abfd" args with "section". All callers updated.
11059 Error checking code moved ...
11060 (error_check_comp_unit_head): ... here. New function.
11061 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11062 Delete arg "abfd". New arg "type_offset". All callers updated.
11063 (create_debug_types_hash_table): Simplify by using
11064 read_and_check_type_unit_head.
11066 * parser-defs.h (namecopy): Delete.
11067 * parse.c (namecopy, namecopy_size): Move into copy_name.
11069 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11071 Partially fix duplicate .o files after omitting libbfd.a.
11072 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11073 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11074 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11075 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11076 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11077 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11078 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11080 2012-01-09 Pedro Alves <palves@redhat.com>
11082 * MAINTAINERS: Update my email address.
11084 2012-01-08 Doug Evans <dje@google.com>
11086 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11087 n_type_units. Rename type_comp_units to all_type_units.
11089 (add_signatured_type_cu_to_table): Renamed from
11090 add_signatured_type_cu_to_list. All callers updated.
11092 * gdbtypes.h (struct cplus_struct_type): Delete member
11093 nfn_fields_total. All uses removed.
11095 2012-01-06 Doug Evans <dje@google.com>
11097 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11099 (dwarf2_find_comp_unit): Delete.
11100 (process_psymtab_comp_unit): Make result "void".
11101 Delete args buffer, info_ptr, buffer_size, and replace with
11102 "section". All callers updated.
11103 (dwarf2_build_psymtabs_hard): Simplify.
11105 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11106 Thiago Jung Bauermann <bauerman@br.ibm.com>
11108 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11109 before `struct gdb_exception'.
11110 * breakpoint.c (update_global_location_list_nothrow)
11111 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11112 * cp-abi.c (value_rtti_type): Likewise.
11113 * cp-support.c (cp_validate_operator): Likewise.
11114 * infrun.c (insert_exception_resume_breakpoint)
11115 (check_exception_resume, keep_going): Likewise.
11116 * mi-interp.c (mi_breakpoint_created)
11117 (mi_breakpoint_modified): Likewise.
11118 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11119 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11120 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11122 2012-01-05 Doug Evans <dje@google.com>
11124 * dwarf2read.c (statement_prologue): Delete, unused.
11126 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11127 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11129 * dwarf2read.c (comp_unit_header): Delete, unused.
11131 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11133 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11134 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11136 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11138 * infrun.c (normal_stop): Don't skip calling the normal_stop
11139 observers if the thread was doing a multi-step, but stopped for
11140 some reason other than stepping.
11142 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11144 * cli/cli-decode.h: Add comments.
11145 (CMD_LIST_AMBIGUOUS): Moved to command.h
11146 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11147 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11148 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11149 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11150 (add_com, add_com_alias, add_info, add_info_alias)
11151 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11153 * command.h: Add and adjust comments.
11154 (CMD_LIST_AMBIGUOUS): Moved here.
11155 (help_cmd, help_cmd_list): Delete declarations.
11157 2012-01-04 Doug Evans <dje@google.com>
11159 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11160 All callers updated.
11161 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11162 Replace all arguments with "per_cu". All callers updated.
11164 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11166 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11167 New arg "per_cu". All callers updated.
11169 Delete #if 0'd out code.
11170 * language.c (binop_result_type): Delete.
11171 (simple_type, ordered_type, same_type, integral_type): Delete.
11172 (numeric_type, character_type, string_type, boolean_type): Delete.
11173 (float_type, structured_type): Delete.
11174 * language.h: Update.
11176 2012-01-04 Tom Tromey <tromey@redhat.com>
11178 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11180 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11182 * corefile.c (close_exec_file): Delete.
11183 (reopen_exec_file): Remove commented out code that seems related
11184 to close_exec_file, which is being deleted here.
11185 * inferior.h (close_exec_file): Delete.
11186 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11188 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11190 * ada-lang.c: #include "cli/cli-utils.h".
11191 (get_selections): Use skip_spaces.
11192 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11193 (catch_ada_exception_command_split): Use skip_spaces.
11194 (ada_decode_assert_location): Likewise.
11196 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11198 * linespec.c (decode_line_internal): Check for C++ or Java
11199 compound constructs only if the current language is C, C++
11202 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11205 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11206 Joel Brobecker <brobecker@adacore.com>
11207 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11208 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11210 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11211 fall through into AT_ENTRY_POINT.
11212 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11213 DUMMY_ADDR with it.
11214 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11215 PPC_INSN_SIZE skip to 3 times.
11217 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11219 * linespec.c (add_minsym): Preserve function descriptors.
11221 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11223 * breakpoint.c (all_locations_are_pending): Consider locations
11224 in program spaces executing during startup pending as well.
11226 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11228 Copyright year update in most files of the GDB Project.
11230 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11232 * copyright.sh: Delete.
11233 * copyright.py: Rewrite.
11235 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11237 * gnulib/extra/update-copyright: New file, imported from gnulib.
11239 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11241 * README (Copyright and License Notices): New section.
11243 2012-01-03 Tom Tromey <tromey@redhat.com>
11246 * python/py-value.c (valpy_dereference, valpy_get_address
11247 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11248 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11249 (valpy_absolute, valpy_richcompare): Free intermediate values.
11251 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11253 * ada-lang.c: Reformat the copyright notice.
11255 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11257 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11258 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11259 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11260 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11261 Revert this part of:
11262 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11263 Build gdb directly from *.o files not using libgdb.a.
11264 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11266 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11268 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11269 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11270 Reformat the copyright header.
11272 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11274 Revert this part of:
11275 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11276 Remove the gdbtui binary.
11277 * gdb.c (main): Remove args.interpreter_p initialization.
11278 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11279 * main.h (struct captured_main_args): Remove interpreter_p.
11281 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11283 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11285 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11287 * top.c (print_gdb_version): Update copyright year.
11289 2012-01-02 Yao Qi <yao@codesourcery.com>
11291 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11293 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11294 Joel Brobecker <brobecker@adacore.com>
11296 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11297 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11299 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11300 fall through into AT_ENTRY_POINT.
11301 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11302 DUMMY_ADDR with it.
11303 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11304 PPC_INSN_SIZE skip to 3 times.
11306 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11308 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11310 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11312 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11314 Build gdb directly from *.o files not using libgdb.a.
11315 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11316 (COMMON_OBS): Remove solib-target.o.
11317 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11318 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11319 (LIBGDB_OBS, libgdb.a): Move it above.
11320 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11321 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11322 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11323 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11324 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11325 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11326 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11327 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11328 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11329 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11330 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11331 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11332 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11333 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11334 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11335 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11336 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11337 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11338 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11339 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11340 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11341 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11342 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11343 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11344 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11345 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11346 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11348 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11350 Remove the gdbtui binary.
11351 * .gitignore (/gdbtui): Remove.
11352 * Makefile.in (TUI): Remove.
11353 (SUBDIR_TUI_OBS): Remove tui-main.o.
11354 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11355 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11356 (tui-main.o): Remove.
11357 (all_object_files): Remove tui-main.o.
11358 * NEWS: New note for the gdbtui removal.
11359 * configure: Rebuilt.
11360 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11361 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11362 CONFIG_UNINSTALL respectively.
11363 * gdb.c (main): Remove args.interpreter_p initialization.
11364 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11365 * main.h (struct captured_main_args): Remove interpreter_p.
11366 * tui/tui-main.c: Remove.
11368 2012-01-01 Doug Evans <dje@google.com>
11370 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11371 (dwarf2_physname, read_import_statement): Ditto.
11372 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11373 (process_structure_scope read_subroutine_type): Ditto.
11374 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11375 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11376 (dwarf2_fetch_die_location_block): Ditto.
11377 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11379 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11380 All callers updated.
11381 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11382 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11383 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11385 * dwarf2read.c (load_cu): Move assert to more useful location.
11387 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11388 All callers updated.
11390 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11391 (dwarf2_elf_names): Minor reformat.
11392 (dwarf2_per_cu_data): Tweak comment.
11393 (dwarf2_read_section): Fix comment.
11394 (create_all_comp_units): Fix comment.
11395 (load_full_comp_unit): Fix comment.
11396 (process_full_comp_unit): Fix comment.
11397 (read_signatured_type): Fix comment.
11399 For older changes see ChangeLog-2011.
11405 version-control: never