1 2012-11-08 Tom Tromey <tromey@redhat.com>
3 * linux-tdep.c (linux_make_siginfo_note): New function.
4 (linux_make_corefile_notes): Use it.
5 * corelow.c (get_core_siginfo): New function.
6 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
8 2012-11-08 Tom Tromey <tromey@redhat.com>
11 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
12 (zlib_decompress_section): Remove.
13 (gdb_bfd_map_section): Only check for compressed section
14 in mmap case. Use bfd_get_full_section_contents.
15 * osabi.c (check_note): Add 'sectsize' argument. Read
17 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
18 section data. Update for check_note change.
19 * xcoffread.c (xcoff_initial_scan): Use
20 bfd_get_full_section_contents.
21 * py-auto-load.c (auto_load_section_scripts): Use
22 bfd_get_full_section_contents.
23 * contrib/cc-with-tweaks.sh: Add -Z option.
25 2012-11-08 Tom Tromey <tromey@redhat.com>
27 * python/py-bpevent.c: Include defs.h.
28 * python/py-continueevent.c: Include defs.h.
29 * python/py-event.c: Include defs.h.
30 * python/py-event.h: Don't include defs.h.
31 * python/py-events.h: Don't include defs.h.
32 * python/py-evts.c: Include defs.h.
33 * python/py-exitedevent.c: Include defs.h.
34 * python/py-newobjfileevent.c: Include defs.h.
35 * python/py-signalevent.c: Include defs.h.
36 * python/py-stopevent.c: Include defs.h.
37 * python/py-threadevent.c: Include defs.h.
39 2012-11-08 Pierre Muller <muller@sourceware.org>
41 * update-web-ari.sh (print_heading): Add number of files
43 (nb_files): New variable counting the number of sources
44 files found by gdb_find.sh script.
45 (debug_awk): New variable to allow extra debug output.
46 (indexes): Add more information if DEBUG_AWK is set.
48 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
50 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
51 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
52 following the change in PLT call stubs on linker.
54 2012-11-08 Pierre Muller <muller@sourceware.org>
56 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
58 (AWK): Use = instead of == for sh test to avoid warning.
59 (Linux rule): Correct [:digit] into [[:digit:]].
60 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
61 (vasprintf rule): Adapt to common subdirectory moves.
62 (xasprintf rule): Idem.
63 (xvasprintf rule): Idem.
64 (var_boolean rule): Accept occurence in == or != test.
66 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
68 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
70 * tui/tui-hooks.c (tui_inferior_exit): New function.
71 (tui_detach_hook): Remove.
72 (tui_install_hooks): Install the inferior exit observer.
73 (tui_remove_hooks): Remove it.
75 2012-11-08 Yao Qi <yao@codesourcery.com>
78 * source.c (_initialize_source): Call add_com_alias to abbreviate
79 'forward-search' as 'fo'.
81 2012-11-07 Pedro Alves <palves@redhat.com>
83 * arm-tdep.c: Make defs.h be the first include.
84 * coff-pe-read.c: Ditto.
88 * ppcnbsd-nat.c: Ditto.
89 * ada-varobj.h: Don't include defs.h.
90 * i386-darwin-tdep.h: Ditto.
93 2012-11-07 Pedro Alves <palves@redhat.com>
95 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
98 2012-11-07 Pierre Muller <muller@sourceware.org>
100 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
101 File already uses "gdb_dirent.h" header.
103 2012-11-07 Yao Qi <yao@codesourcery.com>
105 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
108 2012-11-06 Tom Tromey <tromey@redhat.com>
110 * target.h (inferior_has_forked, inferior_has_vforked)
111 (inferior_has_execd, inferior_has_called_syscall): Remove
114 2012-11-06 Pierre Muller <muller@sourceware.org>
116 * remote.c (remote_insert_hw_breakpoint): ARI fix,
117 add missing internalization markup.
119 2012-11-06 Pedro Alves <palves@redhat.com>
123 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
125 2012-11-06 Pierre Muller <muller@sourceware.org>
127 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
130 2012-11-05 Joel Brobecker <brobecker@adacore.com>
132 * gnulib/update-gnulib.sh: New script.
134 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
136 * MAINTAINERS: Update my email address.
138 2012-11-05 Tom Tromey <tromey@redhat.com>
140 * frame.c (put_frame_register): Don't use temporary buffer.
142 2012-11-05 Pedro Alves <palves@redhat.com>
144 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
145 child. Clear 'pending_detach'.
146 * infrun.c (handle_vfork_child_exec_or_exit): Clear
147 'pending_detach' in the vfork parent.
149 2012-11-05 Doug Evans <dje@google.com>
151 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
152 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
153 * dwarf2read.c: #include "elf-bfd.h".
154 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
155 (dwop_section_names): Renamed from dwo_section names. All uses
156 updated. Add entries for .debug_cu_index, .debug_tu_index.
157 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
159 (struct dwp_sections): New type.
160 (struct virtual_dwo_sections): New type.
161 (struct dwp_hash_table): New type.
162 (struct dwp_file): New type.
163 (init_cutu_and_read_dies): Ensure DWO info/types section has been
164 read in. Handle DWOs coming from DWP files.
165 (lookup_dwo_file_slot): New function.
166 (dwarf2_locate_dwo_sections): Move definition closer to use.
167 (create_dwo_debug_info_hash_table_reader): Renamed from
168 create_debug_info_hash_table_reader. All callers updated.
169 (create_dwo_debug_info_hash_table): Renamed from
170 create_debug_info_hash_table. All callers updated.
171 (create_dwp_hash_table): New function.
172 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
173 (lookup_dwo_in_dwp): New function.
174 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
175 is_dwp. All callers updated.
176 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
177 (open_and_init_dwo_file): Renamed from init_dwo_file.
179 (lookup_dwo_file): Delete.
180 (dwarf2_locate_dwp_sections): New function.
181 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
182 (allocate_dwp_loaded_cutus_table): New function.
183 (open_and_init_dwp_file): New function.
184 (lookup_dwo_cutu): New function.
185 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
187 2012-11-03 Yao Qi <yao@codesourcery.com>
190 * breakpoint.c (trace_pass_set_count): Call
191 observer_notify_breakpoint_modified instead of
192 observer_notify_tracepoint_modified.
193 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
195 2012-11-02 Tom Tromey <tromey@redhat.com>
197 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
198 argument to complete_on_enum.
200 2012-11-02 Tom Tromey <tromey@redhat.com>
202 * configure: Rebuild.
203 * configure.ac (build_warnings): Add -Wempty-body.
204 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
205 * remote.c (handle_notification): Use braces for empty 'else' body.
206 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
208 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
210 * solib-som.c (som_relocate_section_addresses): Use braces
211 for empty 'else' body.
212 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
213 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
215 2012-11-02 Pedro Alves <palves@redhat.com>
219 * infrun.c (handle_inferior_event)
220 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
221 null_ptid before handling a vfork child exec or exit. Switch to
222 the event ptid afterwards.
224 2012-11-02 Yao Qi <yao@codesourcery.com>
226 * std-operator.def: Remove OP_LABELED.
227 * eval.c: Remove the declaration of 'get_label'.
229 (evaluate_struct_tuple): Remove code handling OP_LABELED.
231 Remove local variable 'variantno' and related code.
232 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
234 * expprint.c (print_subexp_standard): Likewise.
235 (dump_subexp_body_standard): Likewise.
236 * parse.c (operator_length_standard): Likewise.
238 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
240 Incorporate ARI web page generator into GDB sources.
241 * contrib/ari/create-web-ari-in-src.sh: New file.
242 * contrib/ari/gdb_ari.sh: New file.
243 * contrib/ari/gdb_find.sh: New file.
244 * contrib/ari/update-web-ari.sh: New file.
246 2012-10-31 Tom Tromey <tromey@redhat.com>
248 * gdbarch.c: Rebuild.
249 * gdbarch.sh: Remove references to gdbarch_swap.
250 * corelow.c (core_open): Remove obsolete comment.
252 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
255 * c-typeprint.c (c_print_type): Don't print a space for vector
256 types, this is handled within the suffix.
257 (c_type_print_varspec_suffix): Add a space to vector suffix.
259 2012-10-26 Pedro Alves <palves@redhat.com>
261 * amd64-tdep.c (amd64_relocate_instruction): Use
262 store_unsigned_integer instead of memcpy.
263 * i386-tdep.c (i386_relocate_instruction): Ditto.
265 2012-10-26 Pedro Alves <palves@redhat.com>
267 * infrun.c (handle_inferior_event): Merge handling of
268 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
271 2012-10-26 Pedro Alves <palves@redhat.com>
273 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
276 2012-10-26 Pedro Alves <palves@redhat.com>
278 * target.c (target_waitstatus_to_string): Handle
279 TARGET_WAITKIND_VFORK_DONE.
281 2012-10-26 Pedro Alves <palves@redhat.com>
283 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
284 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
286 2012-10-24 Tristan Gingold <gingold@adacore.com>
288 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
291 2012-10-24 Joel Brobecker <brobecker@adacore.com>
293 * ravenscar-thread.c (ravenscar_wait): Only update the list
294 of threads and inferior_ptid if the inferior is still alive.
296 2012-10-24 Joel Brobecker <brobecker@adacore.com>
298 * ada-lang.c (is_known_support_routine): Use lbasename when
299 matching the symtab's filename against
300 known_runtime_file_name_patterns.
302 2012-10-24 Joel Brobecker <brobecker@adacore.com>
304 * ada-lang.c (ada_same_array_size_p): New function.
305 (ada_promote_array_of_integrals): New function.
306 (coerce_for_assign): Add handling of arrays where the elements
307 are integrals of a smaller size than the size of the target
310 2012-10-24 Joel Brobecker <brobecker@adacore.com>
312 * doublest.c (convert_doublest_to_floatformat): Fix comparison
313 against maximum exponent value.
315 2012-10-24 Joel Brobecker <brobecker@adacore.com>
317 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
320 2012-10-24 Joel Brobecker <brobecker@adacore.com>
322 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
323 strip typedef layer when computing the fixed type's field type,
324 only when computing its size.
326 2012-10-24 Mark Kettenis <kettenis@gnu.org>
329 * i386-tdep.c (i386_return_value): Handle complex double and long
332 2012-10-24 Joel Brobecker <brobecker@adacore.com>
334 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
335 New local variable args_len.
336 Quote the name of the executable when computing the command line.
338 2012-10-23 Mark Kettenis <kettenis@gnu.org>
343 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
345 * amd64-tdep.c (amd64_classify): Classify complex types.
346 (amd64_return_value): Handle the COMPLEX_X87 class.
348 2012-10-23 Joel Brobecker <brobecker@adacore.com>
350 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
351 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
353 2012-10-23 Joel Brobecker <brobecker@adacore.com>
355 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
357 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
358 to amd64_windows_auto_wide_charset.
360 2012-10-23 Yao Qi <yao@codesourcery.com>
362 * event-top.c (mark_async_signal_handler_wrapper): Remove.
363 * event-top.h: Remove its declaration.
364 (async_request_quit): Call mark_async_signal_handler instead of
365 mark_async_signal_handler_wrapper.
366 (async_do_nothing, async_disconnect): Likewise.
367 (async_stop_sig): Likewise.
368 * remote.c (handle_remote_sigint): Likewise.
369 (handle_remote_sigint_twice): Likewise.
371 2012-10-23 Yao Qi <yao@codesourcery.com>
373 * event-top.c (sigint_token, sighup_token): Replace 'void *'
374 with 'static struct async_signal_handler *'.
375 (sighup_token, sigquit_token, sigstp_token): Likewise.
377 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
379 * gdbarch.sh (function_list): Use 'pstring' when printing
380 a variable which could return NULL.
381 * gdbarch.c: Regenerate.
383 2012-10-10 Joel Brobecker <brobecker@adacore.com>
384 Tom Tromey <tromey@redhat.com>
386 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
387 inneffective if condition by gdb assertion. Add function
390 2012-10-19 Joel Brobecker <brobecker@adacore.com>
392 * parser-defs.h (struct exp_descriptor): Document constraint
393 on return value for "op_name" callbacks.
395 2012-10-18 Tom Tromey <tromey@redhat.com>
397 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
398 * symtab.c (iterate_over_some_symtabs): Constify.
399 * source.h (symtab_to_fullname): Return 'const char *'.
400 * source.c (symtab_to_fullname): Return 'const char *'.
401 * python/py-symtab.c (stpy_fullname): Constify.
402 * cli/cli-cmds.c (edit_command): Constify.
403 * breakpoint.c (print_breakpoint_location)
404 (update_static_tracepoint): Constify.
406 2012-10-18 Tom Tromey <tromey@redhat.com>
408 * breakpoint.c (compare_breakpoints): Fix comparison.
410 2012-10-18 Tom Tromey <tromey@redhat.com>
412 * valprint.c (generic_emit_char, generic_printstr): Pass size of
413 gdb_wchar_t to convert_between_encodings.
415 2012-10-17 Yao Qi <yao@codesourcery.com>
417 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
418 more parameter 'inferior'.
419 * corefile.c (write_memory_with_notification): Caller update.
421 * mi/mi-cmd-var.c: Include "mi-main.h".
422 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
423 to 1 and restore it later.
424 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
425 and "data-write-memory-bytes.
426 * mi/mi-interp.c: Include objfiles.h.
427 (mi_interpreter_init): Call observer_attach_memory_changed.
428 (mi_memory_changed): New.
429 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
432 * NEWS: Mention new MI notification "memory-changed".
434 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
436 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
438 2012-10-15 Doug Evans <dje@google.com>
440 New option -nh: inhibit loading of ~/.gdbinit.
442 * main.c (captured_main): Recognize and process -nh.
443 (print_gdb_help): Mention -nh.
444 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
446 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
450 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
452 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
453 nor pc_regnum_from_eax.
454 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
455 nor pc_regnum_from_eax.
457 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
459 Fix entry values resolving in inlined frames.
460 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
461 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
464 2012-10-15 Joel Brobecker <brobecker@adacore.com>
466 * configure.ac: Build with -DMS_WIN64 if building with Python
467 enabled using GCC on amd64-windows.
468 * configure: Regenerate.
470 2012-10-15 Tom Tromey <tromey@redhat.com>
473 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
476 2012-10-15 Tom Tromey <tromey@redhat.com>
479 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
481 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
483 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
484 reset thread numbering back to 1.
486 2012-10-11 Doug Evans <dje@google.com>
488 PR breakpoints/14643.
489 * linespec.c (struct ls_parser): New member keyword_ok.
490 (linespec_lexer_lex_string): Add comment.
491 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
493 (parse_linespec): Set keyword_ok.
495 2012-10-10 Doug Evans <dje@google.com>
497 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
498 "0x" prefix on address in log message.
500 * dwarf2read.c (read_1_byte): Add const to buf parameter.
501 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
502 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
503 (lookup_dwo_file): Add const to dwo_name parameter.
504 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
506 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
508 Fix crash during stepping on ppc32.
509 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
512 2012-10-03 Doug Evans <dje@google.com>
515 * buildsym.c (buildsym_init): Reset using_directives to NULL.
517 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
519 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
520 output and use uint32_t not long to ensure 4 byte size.
522 2012-10-02 Joel Brobecker <brobecker@adacore.com>
524 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
527 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
529 * target.c (simple_search_memory): Include access length in
532 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
533 Edjunior Machado <emachado@linux.vnet.ibm.com>
536 * solib.c (solib_find): Prevent GDB from loading native libraries when
537 debugging a cross-target corefile.
539 2012-09-28 selven <pcthegreat@gmail.com>
541 Make definition match declaration.
543 * regcache.c (regcache_register_status): Change return type to
544 enum register_status.
546 2012-09-28 Yao Qi <yao@codesourcery.com>
548 * mi/mi-main.c (mi_cmd_data_write_memory): Call
549 write_memory_with_notification instead of write_memory.
550 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
551 instead of target_write_memory.
553 2012-09-28 Yao Qi <yao@codesourcery.com>
555 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
556 when the length of content is not an even number.
558 2012-09-27 Tom Tromey <tromey@redhat.com>
560 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
561 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
563 2012-09-27 Joel Brobecker <brobecker@adacore.com>
565 * sol-thread.c (sol_thread_fetch_registers)
566 (sol_thread_store_registers): Delete commented out code.
568 2012-09-27 Joel Brobecker <brobecker@adacore.com>
570 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
571 Move these functions to sparc-sol-thread.c.
572 * sparc-sol-thread.c: New file.
573 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
574 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
576 * configure: Regenerate.
578 2012-09-27 Joel Brobecker <brobecker@adacore.com>
580 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
581 Remove commented-out code.
583 2012-09-27 Joel Brobecker <brobecker@adacore.com>
585 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
586 Enable this code for sparc hosts only.
588 2012-09-27 Joel Brobecker <brobecker@adacore.com>
590 * procfs.h (procfs_find_LDT_entry): Add declaration.
591 * sol-thread.c (ps_lgetLDT): Delete local declaration of
592 function procfs_find_LDT_entry.
594 2012-09-27 Joel Brobecker <brobecker@adacore.com>
596 * procfs.c (proc_get_LDT_entry): Make static.
598 2012-09-27 Joel Brobecker <brobecker@adacore.com>
600 * procfs.c (proc_find_memory_regions): Fix declaration.
602 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
604 * amd64-tdep.c (amd64_return_value): Revert previous change
605 that used TYPE_LENGTH directly.
606 * bfin-tdep.c (bfin_extract_return_value): Likewise.
607 (bfin_store_return_value): Likewise.
608 * cris-tdep.c (cris_store_return_value): Likewise.
609 (cris_extract_return_value): Likewise.
610 * h8300-tdep.c (h8300_extract_return_value): Likewise.
611 * hppa-tdep.c (hppa64_return_value): Likewise.
612 * lm32-tdep.c (lm32_store_return_value): Likewise.
613 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
614 * spu-tdep.c (spu_value_from_register): Likewise.
615 * vax-tdep.c (vax_return_value): Likewise.
617 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
619 * gdbtypes.c (lookup_array_range_type): Expand parameters
620 LOW_BOUND and HIGH_BOUND to LONGEST.
621 (lookup_string_range_type): Likewise.
622 * gdbtypes.h (lookup_array_range_type): Likewise.
623 (lookup_string_range_type): Likewise.
624 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
625 Expand HIGHBOUND to ssize_t.
626 (value_string): Likewise.
627 * value.h (value_cstring): Expand parameter LEN to ssize_t.
628 (value_string): Likewise.
630 2012-09-27 Yao Qi <yao@codesourcery.com>
633 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
634 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
637 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
639 * procfs.c: Add gdb_bfd header.
640 * rs6000-nat.c: Likewise.
641 * solib-pa64.c: Likewise.
642 * spu-linux-nat.c: Likewise.
643 * windows-nat.c: Likewise.
645 2012-09-26 Tom Tromey <tromey@redhat.com>
647 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
649 2012-09-26 Tom Tromey <tromey@redhat.com>
651 * dwarf2read.c (mark_common_block_symbol_computed): New function.
652 (read_common_block): Handle child DIEs with
653 DW_AT_data_member_location.
654 (new_symbol_full): Add special case for common blocks.
656 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
657 Tom Tromey <tromey@redhat.com>
659 * dwarf2read.c (read_common_block): Rewrite.
660 (new_symbol_full): Handle DW_TAG_common_block.
661 * f-lang.c (head_common_list, find_common_for_function):
663 * f-lang.h (struct common_entry, struct saved_f77_common,
664 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
665 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
666 BLANK_COMMON_NAME_LOCAL): Remove.
667 (struct common_block): New.
668 * f-valprint.c (list_all_visible_commons): Remove.
669 (info_common_command_for_block): New function.
670 (info_common_command): Use it.
671 * stack.c (iterate_over_block_locals): Special case for
673 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
675 (struct general_symbol_info) <value.common_block>: New field.
676 (SYMBOL_VALUE_COMMON_BLOCK): New define.
678 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
679 Tom Tromey <tromey@redhat.com>
681 * f-lang.c (allocate_saved_bf_node,
682 allocate_saved_function_node, allocate_saved_f77_common_node,
683 allocate_common_entry_node, tail_common_list, current_common,
684 saved_bf_list, saved_bf_list_end, current_head_bf_list,
685 tmp_bf_ptr, add_common_block, add_common_entry,
686 find_first_common_named, patch_common_entries,
687 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
688 global_remote_debug, get_bf_for_fcn, saved_function_list,
689 saved_function_list_end, clear_function_list, struct saved_fcn,
690 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
691 SAVED_BF, SAVED_BF_PTR): Remove.
692 * f-lang.h (tail_common_list, current_common,
693 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
694 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
695 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
696 real_main_c_value): Remove.
697 * f-valprint.c (there_is_a_visible_common_named): Remove.
699 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
701 * breakpoint.c (update_global_location_list): Ignore previous
702 duplicate status of a breakpoint when starting a new scan for
703 duplicate breakpoints.
705 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
707 * arm-tdep.c (arm_skip_prologue): Extending producer check to
708 support LLVM compiler.
710 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
712 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
713 * bfin-tdep.c (bfin_extract_return_value): Likewise.
714 (bfin_store_return_value): Likewise.
715 * cris-tdep.c (cris_store_return_value): Likewise.
716 (cris_extract_return_value): Likewise.
717 * h8300-tdep.c (h8300_extract_return_value): Likewise.
718 * hppa-tdep.c (hppa64_return_value): Likewise.
719 * lm32-tdep.c (lm32_store_return_value): Likewise.
720 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
721 * spu-tdep.c (spu_value_from_register): Likewise.
722 * vax-tdep.c (vax_return_value): Likewise.
724 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
726 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
727 parameter LEN to ssize_t.
729 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
731 * ada-valprint.c (ada_val_print_1): Eliminate single-use
733 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
735 (alpha_store_return_value): Likewise.
736 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
737 (amd64_push_arguments): Likewise.
738 * ax-gdb.c (gen_trace_static_fields): Likewise.
739 (gen_traced_pop): Likewise.
740 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
741 * breakpoint.c (update_watchpoint): Likewise.
742 * findcmd.c (parse_find_args): Use local variable for type
744 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
745 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
746 (h8300_store_return_value): Likewise.
747 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
748 Use i386_darwin_arg_type_alignment directly.
749 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
750 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
751 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
752 (m68hc11_extract_return_value): Likewise.
753 * mep-tdep.c (mep_push_dummy_call): Likewise.
754 * printcmd.c (float_type_from_length): Likewise.
755 * s390-tdep.c (s390_value_from_register): Likewise.
756 * stack.c (read_frame_arg): Likewise.
757 * tracepoint.c (encode_actions_1): Likewise.
758 * valops.c (value_fetch_lazy): Use local variable for type
759 instead of length. Use TYPE_LENGTH directly.
760 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
762 2012-09-25 Joel Brobecker <brobecker@adacore.com>
764 * symtab.c (skip_prologue_sal): Fix typo in comment.
766 2012-09-25 Joel Brobecker <brobecker@adacore.com>
768 * linespec.c (create_sals_line_offset): Fix typo in comment.
770 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
772 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
773 use plongest to print the array size.
775 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
777 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
778 * p-valprint.c (pascal_type_print_base): Likewise.
780 2012-09-22 Yao Qi <yao@codesourcery.com>
782 * remote.c (remote_get_trace_status): Remove setting default
783 values of fields of 'ts'.
785 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
787 Fix internal error on canonicalization of clang types.
788 * cp-name-parser.y (operator): New comment at make_operator call for
789 new, delete, new[] and delete[].
790 (exp): Use "sizeof ". Add new comment at make_operator call.
792 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
794 Fix disassemble without parameters in tailcall frame.
795 * cli/cli-cmds.c (disassemble_current_function): Use
796 get_frame_address_in_block.
798 2012-09-21 Tom Tromey <tromey@redhat.com>
800 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
801 TYPE_CODE_UNION>: Unify, removing a goto.
803 2012-09-21 Tom Tromey <tromey@redhat.com>
805 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
807 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
809 * findvar.c (read_frame_register_value): Mark the result value as
810 optimized out if any of the input registers have been optimized out.
812 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
814 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
816 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
818 * eval.c (evaluate_subexp_standard): Eliminate single-use
821 2012-09-21 Yao Qi <yao@codesourcery.com>
823 * mi/mi-interp.c: Declare mi_record_changed.
824 (mi_interpreter_init): Call observer_attach_record_changed.
825 (mi_record_changed): New.
826 * record.c (record_open): Call observer_notify_record_changed.
827 (cmd_record_stop): Call observer_notify_record_changed.
830 2012-09-20 Tom Tromey <tromey@redhat.com>
833 * python/python.c (finalize_python): New function.
834 (_initialize_python): Make a final cleanup.
836 2012-09-19 Doug Evans <dje@google.com>
838 * buildsym.h (param_symbols): Delete, unused.
839 (context_stack): Delete member "params", unused.
840 * buildsym.c (push_context): Update.
841 * dwarf2read.c (read_func_scope): Update.
843 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
845 * sh-tdep.c (sh_register_convert_to_virtual)
846 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
847 all callers. Just do a memcpy if not the little-endian case.
849 * h8300-tdep.c (h8300_gdbarch_init): Invoke
850 set_gdbarch_double_format and set_gdbarch_long_double_format.
851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
852 set_gdbarch_double_format.
853 * sh-tdep.c (sh_gdbarch_init): Likewise.
855 * NEWS: Document the removal of SH's 'regs' command.
856 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
859 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
861 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
864 2012-09-18 Joel Brobecker <brobecker@adacore.com>
866 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
867 language when iterating over symbols.
869 2012-09-18 Yao Qi <yao@codesourcery.com>
871 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
872 (mi_interpreter_init): Call observer_attach_tsv_created and
873 observer_attach_tsv_deleted.
874 (mi_tsv_created, mi_tsv_deleted): New.
875 * tracepoint.c (delete_trace_state_variable): Call
876 observer_notify_tsv_deleted.
877 (trace_variable_command): Call observer_notify_tsv_created.
878 (delete_trace_variable_command): Call
879 observer_notify_tsv_deleted.
880 (create_tsv_from_upload): Call observer_notify_tsv_created.
883 2012-09-18 Yao Qi <yao@codesourcery.com>
885 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
886 if traceframe changed.
887 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
889 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
890 (mi_interpreter_init): Hook mi_traceframe_changed to observer
891 'traceframe_changed'.
892 (mi_traceframe_changed): New.
893 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
895 * NEWS: Mention the new MI notification.
897 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
899 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
901 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
903 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
904 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
905 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
906 Extend code also for PaX support. Convert all gdb_assert to warning
909 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
911 Implement auto-load user conveniences suggested by Doug Evans.
912 * auto-load.c: Include top.h.
913 (file_is_auto_load_safe): New variable advice_printed. Print advice.
914 (_initialize_auto_load): New variable scripts_directory_help. Mention
915 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
916 scripts-directory. Document in online help one can use also files for
917 set auto-load safe-path.
918 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
919 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
921 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
923 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
926 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
928 * m2-valprint.c (m2_print_array_contents): Eliminate variable
929 ELTLEN and use TYPE_LENGTH directly.
930 (m2_val_print): Likewise.
931 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
932 variable LEN and use TYPE_LENGTH directly.
933 (m68k_svr4_store_return_value): Likewise.
934 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
935 ARGLEN and use TYPE_LENGTH directly.
936 (mips_o64_push_dummy_call): Likewise.
937 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
938 variable LENGTH and use TYPE_LENGTH directly.
939 (s390_function_arg_float): Likewise.
940 (s390_function_arg_integer): Likewise.
941 (s390_push_dummy_call): Likewise.
942 (s390_return_value_convention): Likewise.
943 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
944 TYPE_LENGTH directly.
946 2012-09-17 Yao Qi <yao@codesourcery.com>
948 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
949 Update comment to add_setshow_integer_cmd.
950 * cli/cli-setshow.c (do_set_command): Handle case
951 'var_zuinteger_unlimited'.
952 (do_show_command): Likewise.
953 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
954 for command 'remotetimeout'.
955 * command.h (enum var_types): New zuinteger_unlimited. Update comment
957 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
958 for command 'set listsize'.
960 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
962 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
965 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
968 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
969 (frame_pop): Drop also TAILCALL_FRAME frames.
970 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
972 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
973 Pedro Alves <palves@redhat.com>
976 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
977 function start if we are already at function start. Both for
978 reverse-next and for reverse-step into function without line number
981 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
983 Code cleanup - rename 'inline' depth to 'artificial' depth.
984 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
985 frame_id_artificial_p, extend the comment.
986 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
987 * frame.c (fprint_frame_id): Rename at a user, change debug output
988 text to "artificial=".
989 (skip_inlined_frames): Rename to ...
990 (skip_artificial_frames): ... here. Extend the comment.
991 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
992 (frame_id_inlined_p): Rename to ...
993 (frame_id_artificial_p): ... here. Rename at a user.
994 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
995 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
997 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
999 (frame_id_inlined_p): Rename to ...
1000 (frame_id_artificial_p): ... here.
1001 * inline-frame.c (inline_frame_this_id): Rename at a user.
1003 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1005 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1006 vector variables using vector_size syntax rather than array
1009 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1011 * valarith.c (value_concat): Replace unsafe ALLOCA with
1014 2012-09-14 Pedro Alves <palves@redhat.com>
1016 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1018 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1020 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1021 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1022 data-directory as appropriate.
1024 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1026 * printcmd.c (ui_printf): Eliminate single-use variable
1029 2012-09-14 Yao Qi <yao@codesourcery.com>
1030 Pedro Alves <palves@redhat.com>
1032 * valops.c (value_assign): Move observer_notify_target_changed
1033 below to replace reinit_frame_cache.
1035 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1037 Refactor Python "gdb" module into a proper Python package, by
1038 introducing a new "_gdb" module for code implemented in C, and
1039 using reload/__import__ instead of exec.
1040 * python/lib/gdb/__init__.py: Import * from _gdb.
1041 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1042 prompt_hook, sys.argv): Moved from finish_python_initialization.
1043 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1044 (packages, auto_load_packages): New list and function replacing
1045 module_dict and auto-loading code, using __file__ instead of
1046 gdb.PYTHONDIR and reload/__import__ instead of exec.
1047 (GdbSetPythonDirectory): Replacing function of the same name
1048 from finish_python_initialization, using reload/__import__ instead
1049 of exec, as well as call auto_load_packages.
1050 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1051 gdb_python_module and not gdb_module.
1052 * python/python-internal.h (gdb_python_module): Declare.
1053 * python/python.c (gdb_python_module): New global.
1054 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1055 (_initialize_python): Rename gdb module to _gdb.
1056 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1057 (finish_python_initialization): Move Python code to
1058 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1061 2012-09-13 Pedro Alves <palves@redhat.com>
1063 * Makefile.in (COMMON_OBS): Add registry.o.
1064 * registry.c: New file.
1065 * registry.h (struct registry_container): Declare.
1066 (registry_data_callback): New typedef.
1067 (struct registry_data, struct registry_data_registration, struct
1068 registry_data_registry): New type.
1069 (register_data_with_cleanup, registry_alloc_data)
1070 (registry_callback_adaptor, registry_clear_data)
1071 (registry_container_free_data, registry_set_data, registry_data):
1073 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1074 the new common structures and functions.
1075 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1078 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1080 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1081 there is an error inserting hardware breakpoints and use the
1082 error message from the target.
1084 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1085 Catch this exception and print the error message contained within. Do not
1086 print the default hardware error breakpoint message in this case.
1088 2012-09-12 Doug Evans <dje@google.com>
1090 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1093 2012-09-11 Doug Evans <dje@google.com>
1095 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1096 .gdb_index symbol attributes if there are none.
1098 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1100 * symtab.h (struct minimal_symbol) [has_size]: New field.
1101 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1102 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1103 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1104 minimal symbols if the symbol's size is actually known.
1105 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1106 of msymbol's size field. Add comment.
1107 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1108 SET_MSYMBOL_SIZE to set the minimal symbol size.
1110 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1112 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1113 minimal_symbol struct object, rather than setting some of its
1116 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1118 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1119 passed_a_ptr flag when displaying typedef types.
1121 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1123 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1124 the optimized_out flag is preserved.
1126 2012-09-10 Anthony Green <green@moxielogic.com>
1128 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1129 prologue changes in GCC.
1131 2012-09-10 Keith Seitz <keiths@redhat.com>
1134 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1135 (BOOL_CONVERSION_BADNESS): ... this.
1136 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1137 (rank_one_type): Allow all boolean conversions
1138 permitted by the standard.
1140 2012-09-06 Tom Tromey <tromey@redhat.com>
1142 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1143 Don't decref py_objfile.
1145 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1147 Do not enable -lmcheck by default when Python is enabled with
1149 * configure.ac: (python_has_threads) New variable, by testing
1150 if WITH_THREAD is defined in Python.h.
1151 Move --enable-lmcheck after --with-python.
1152 Do not enable -lmcheck by default if python_has_threads=yes.
1153 Warn if --enable-lmcheck and python_has_threads=yes.
1154 * configure: Regenerate.
1156 2012-08-31 Yao Qi <yao@codesourcery.com>
1158 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1159 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1160 Update some commands.
1161 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1162 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1165 2012-08-31 Yao Qi <yao@codesourcery.com>
1167 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1169 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1171 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1173 2012-08-29 Doug Evans <dje@google.com>
1175 * main.c (print_gdb_help): Remove reference to
1176 --use-deprecated-index-sections.
1178 2012-08-28 Yao Qi <yao@codesourcery.com>
1180 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1181 (init_cmds): Call add_setshow_uinteger_cmd for command
1182 'max-user-call-depth'.
1183 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1184 declaration of 'max_user_call_depth'.
1185 * frame.c (backtrace_limit): Add 'unsigned'.
1186 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1188 * remote.c (remoteaddresssize): Add 'unsigned'.
1189 (remote_address_masked): Change local var 'address_size' to
1191 (_initialize_remote): Call add_setshow_uinteger_cmd for
1192 'remoteaddresssize'.
1193 * top.c (history_size): Add 'unsigned'.
1194 (show_commands): Change local variables to 'unsigned'.
1195 (set_history_size_command): Don't check history_size is negative.
1196 Adjust the condition to call unstifle_history and set history_size
1199 2012-08-28 Pedro Alves <palves@redhat.com>
1203 * infcmd.c (default_print_one_register_info): New, factored out
1204 from default_print_registers_info.
1205 (default_print_registers_info): Use it. Mark value unavailable if
1207 (registers_info): Print user registers with
1208 default_print_one_register_info.
1210 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1213 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1214 is not NULL before referencing it.
1216 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1218 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1219 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1222 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1223 Jan Kratochvil <jan.kratochvil@redhat.com>
1225 * auto-load.c (auto_load_objfile_script): Rename to ...
1226 (auto_load_objfile_script_1): ... here, change variable realname to
1227 parameter realname, document it, add return value, add variable retval.
1228 (auto_load_objfile_script): New function.
1230 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1233 followed by a whitespace.
1235 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1238 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1239 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1240 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1243 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1245 * memattr.c (create_mem_region): Fix memory region overlapping
1248 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1250 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1251 with xmalloc/cleanup.
1252 * mt-tdep.c (mt_push_dummy_call): Likewise.
1253 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1254 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1256 2012-08-24 Yao Qi <yao@codesourcery.com>
1258 * jv-exp.y (push_expression_name): Add "." at the end of error
1261 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1263 Document how to return from "python-interactive" to GDB.
1264 * python/python.c (_initialize_python): Update documentation.
1266 2012-08-23 Pedro Alves <palves@redhat.com>
1268 * infrun.c (_initialize_infrun) <handle command help text>:
1269 Mention that multiple signals are supported.
1271 2012-08-23 Pedro Alves <palves@redhat.com>
1273 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1276 2012-08-23 Yao Qi <yao@codesourcery.com>
1278 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1279 (tfind_1): Don't call registers_changed, set_traceframe_num,
1280 and clear_traceframe_info.
1281 Call set_current_traceframe.
1282 (set_current_traceframe): call set_traceframe_num.
1284 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1286 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1287 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1289 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1291 Enable readline in Python in a GDB-specific way and block the
1292 standard Python readline module to prevent conflicts with GDB.
1293 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1294 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1295 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1296 * python/py-gdb-readline.c: New file.
1297 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1299 * python/python.c (_initialize_python): Call
1300 gdbpy_initialize_gdb_readline.
1302 2012-08-22 Keith Seitz <keiths@redhat.com>
1304 * defs.h: Include build-gnulib/config.h
1306 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1308 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1311 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1313 Add a new "python-interactive" command that starts a standard
1314 Python interactive prompt with "pi" as alias, and add "py" as
1315 an alias to "python".
1316 * NEWS: Mention the new commands.
1317 * python/python.c (eval_python_command): New function.
1318 (python_interactive_command): For "python-interactive" with
1319 arguments, call eval_python_command. For "python-interactive"
1320 without arguments, call PyRun_InteractiveLoop.
1321 (_initialize_python): Add "python-interactive" command with
1322 "pi" as alias, and add "py" as an alias to "python".
1324 2012-08-22 Tom Tromey <tromey@redhat.com>
1326 * defs.h (quit_flag): Don't declare.
1327 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1328 (QUIT): Use new functions.
1329 * event-top.c (command_handler): Use clear_quit_flag.
1330 (handle_sigint): Use set_quit_flag.
1331 (async_request_quit): Use check_quit_flag. Don't check
1333 * exceptions.c (throw_exception): Use clear_quit_flag.
1334 * main.c (captured_main): Use clear_quit_flag.
1335 * python/python.c (clear_quit_flag, set_quit_flag)
1336 (check_quit_flag): New functions.
1337 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1339 * remote.c (remote_wait_as): Use check_quit_flag,
1341 (remote_start_remote): Call QUIT.
1342 * symfile.c (load_progress): Use check_quit_flag.
1343 * top.c (command_loop): Use clear_quit_flag.
1344 (command_line_input): Call QUIT.
1345 * utils.c (quit_flag): Conditionally define.
1346 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1348 (prompt_for_continue): Call QUIT. Use quit, not
1350 * remote-mips.c (mips_expect_timeout): Call QUIT.
1351 * monitor.c (monitor_expect): Call QUIT.
1353 2012-08-22 Tom Tromey <tromey@redhat.com>
1355 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1356 (async_init_signals): Update.
1357 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1358 (SIGWINCH_HANDLER_BODY): Remove.
1360 2012-08-22 Tom Tromey <tromey@redhat.com>
1362 * jit.c (jit_object_close_impl): Don't malloc the objfile
1364 * objfiles.c (allocate_objfile): Don't malloc the objfile
1366 (free_objfile): Don't free the objfile name.
1367 * objfiles.h (struct objfile) <name>: Update comment.
1368 * symfile.c (reread_symbols): Fix reference counting. Don't
1369 malloc objfile name.
1371 2012-08-22 Tom Tromey <tromey@redhat.com>
1373 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1374 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1375 (symfile_bfd_open): Likewise.
1376 (generic_load): Likewise.
1377 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1378 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1380 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1382 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1383 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1384 (pmon_load_fast): Likewise.
1385 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1386 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1387 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1388 (macho_check_dsym): Likewise.
1389 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1390 (m32r_upload_command): Likewise.
1391 * gdb_bfd.h (gdb_bfd_cache): Declare.
1392 * gdb_bfd.c (struct gdb_bfd_data): New.
1393 (gdb_bfd_cache): New global.
1394 (struct gdb_bfd_cache_search): New.
1395 (hash_bfd): New function.
1397 (gdb_bfd_open): Likewise.
1398 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1399 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1401 * exec.c (exec_file_attach): Use gdb_bfd_open.
1402 * dsrec.c (load_srec): Use gdb_bfd_open.
1404 2012-08-22 Tom Tromey <tromey@redhat.com>
1406 * dwarf2read.c (macro_start_file): Update.
1407 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1408 (free_objfile_per_bfd_storage): Destroy macro_cache.
1409 (allocate_objfile, free_objfile): Update.
1410 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1412 (struct objfile) <macro_cache>: Remove.
1413 * symfile.c (reread_symbols): Update.
1414 * symmisc.c (print_symbol_bcache_statistics): Update.
1415 (print_objfile_statistics): Update.
1417 2012-08-22 Tom Tromey <tromey@redhat.com>
1419 * elfread.c (elf_symtab_read): Update.
1420 * objfiles.c (objfiles_bfd_data): New global.
1421 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1422 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1423 (allocate_objfile, free_objfile): Update.
1424 (_initialize_objfiles): Initialize objfiles_bfd_data.
1425 * objfiles.h (struct objfile_per_bfd_storage): New.
1426 (struct objfile) <per_bfd>: New field.
1427 <filename_cache>: Remove.
1428 (set_objfile_per_bfd): Declare.
1429 * symfile.c (reread_symbols): Update. Call
1430 set_objfile_per_bfd.
1431 (allocate_symtab): Update.
1432 * symmisc.c (print_symbol_bcache_statistics): Update.
1433 (print_objfile_statistics): Print the size of the BFD obstack.
1435 2012-08-22 Tom Tromey <tromey@redhat.com>
1437 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1438 * gdb_bfd.c: Use DEFINE_REGISTRY.
1439 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1440 (gdb_bfd_ref): Call bfd_alloc_data.
1441 (gdb_bfd_unref): Call bfd_free_data.
1443 2012-08-22 Tom Tromey <tromey@redhat.com>
1445 * registry.h (struct registry_fields): New.
1446 (REGISTRY_FIELDS): Redefine.
1447 (REGISTRY_ACCESS_FIELD): New macro.
1448 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1451 2012-08-22 Tom Tromey <tromey@redhat.com>
1453 * auto-load.c (_initialize_auto_load): Update.
1454 * solib-svr4.c (_initialize_svr4_solib): Update
1455 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1456 * solib-darwin.c (_initialize_darwin_solib): Update.
1457 * registry.h: New file.
1458 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1459 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1460 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1461 (register_program_space_data_with_cleanup)
1462 (register_program_space_data, program_space_alloc_data)
1463 (clear_program_space_data, set_program_space_data)
1464 (program_space_data): Don't declare.
1465 * progspace.c: Use DEFINE_REGISTRY.
1466 (struct program_space_data, struct
1467 program_space_data_registration, struct
1468 program_space_data_registry, program_space_data_registry)
1469 (register_program_space_data_with_cleanup)
1470 (register_program_space_data, program_space_alloc_data)
1471 (program_space_free_data, clear_program_space_data)
1472 (set_program_space_data, program_space_data): Remove.
1473 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1474 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1475 (register_objfile_data_with_cleanup, register_objfile_data)
1476 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1478 * objfiles.c: Use DEFINE_REGISTRY.
1479 (struct objfile_data, struct objfile_data_registration, struct
1480 objfile_data_registry, objfile_data_registry)
1481 (register_objfile_data_with_cleanup, register_objfile_data)
1482 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1483 (set_objfile_data, objfile_data): Remove.
1484 (_initialize_objfiles): Update.
1485 * jit.c (_initialize_jit): Update.
1486 * inflow.c (_initialize_inflow): Update.
1487 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1488 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1489 (register_inferior_data_with_cleanup, register_inferior_data)
1490 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1492 * inferior.c: Use DEFINE_REGISTRY.
1493 (struct inferior_data, struct inferior_data_registration, struct
1494 inferior_data_registry, inferior_data_registry)
1495 (register_inferior_data_with_cleanup, register_inferior_data)
1496 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1497 (set_inferior_data, inferior_data): Remove.
1498 * auxv.c (_initialize_auxv): Update.
1499 * ada-lang.c (_initialize_ada_language): Update.
1500 * breakpoint.c (_initialize_breakpoint): Update.
1501 * i386-nat.c (i386_use_watchpoints): Update.
1503 2012-08-22 Tom Tromey <tromey@redhat.com>
1505 * exec.c (exec_close, exec_file_attach): Update.
1506 (add_to_section_table): Initialize 'key' field.
1507 (add_target_sections, remove_target_sections): Add 'key' argument.
1508 * exec.h (add_target_sections, remove_target_sections): Add
1510 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1511 (reload_shared_libraries_1): Update.
1512 * target.h (struct target_section) <key>: New field.
1514 2012-08-22 Tom Tromey <tromey@redhat.com>
1516 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1518 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1520 * symfile.c (allocate_symtab): Use host_address_to_string
1521 function instead of cast of pointer to long which is not
1522 compatible with x86_64-w64-mingw32 build.
1524 2012-08-19 Andrew Pinski <apinski@cavium.com>
1526 * mips-tdep.c (is_octeon): New function.
1527 (is_octeon_bbit_op): New function.
1528 (mips32_next_pc): Handle Octeon's bbit instructions.
1529 (mips32_instruction_has_delay_slot): Likewise.
1531 2012-08-19 Andrew Pinski <apinski@cavium.com>
1533 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1534 before the function.
1536 2012-08-19 Andrew Pinski <apinski@cavium.com>
1538 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1540 2012-08-19 Keith Seitz <keiths@redhat.com>
1543 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1544 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1546 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1548 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1549 The typo broke "make TAGS".
1551 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1555 2012-08-17 Keith Seitz <keiths@redhat.com>
1558 * gdbtypes.c (strict_type_checking): New variable.
1559 (show_strict_type_checking): New function.
1560 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1561 if strict type checking is disabled.
1562 (_initialize_gdbtypes): Add "check type" subcommand.
1563 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1565 2012-08-17 Keith Seitz <keiths@redhat.com>
1567 * language.h (type_mode): Remove.
1568 (type_check): Remove.
1569 (struct language_defn): Remove la_type_check.
1570 (STRICT_TYPE): Remove unused macro.
1571 (type_error): Remove.
1572 * language.c (set_type_range_case): Renamed to ...
1573 (set_range_case): ... this. Update all callers.
1574 Remove type_mode/type_check.
1575 (type_mode): Remove.
1576 (type_check): Remove.
1577 (show_type_command): Remove.
1578 (set_type_command): Remove.
1579 (language_info): Remove type checking output.
1580 (type_error): Remove unused function.
1581 (range_error): Update comment.
1582 (unknown_language_defn): Remove la_type_check.
1583 (auto_language_defn): Likewise.
1584 (local_language_defn): Likewise.
1585 (_initialize_language): Remove "check type" subcommand.
1586 * ada-lang.c (ada_language_defn): Remove la_type_check.
1587 * c-lang.c (c_language_defn): Likewise.
1588 (cplus_language_defn): Likewise.
1589 (asm_language_defn): Likewise.
1590 (minimal_language_defn): Likewise.
1591 * d-lang.c (d_language_defn): Likewise.
1592 * f-lang.c (f_language_defn): Likewise.
1593 * go-lang.c (go_language_defn): Likewise.
1594 * jv-lang.c (java_language_defn): Likewise.
1595 * m2-lang.c (m2_language_defn): Likewise.
1596 * objc-lang.c (objc_language_defn): Likewise.
1597 * opencl-lang.c (opencl_language_defn): Likewise.
1598 * p-lang.c (pascal_language_defn): Likewise.
1600 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1602 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1604 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1606 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1608 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1609 using the regache. Use ia64_hpux_get_register_from_save_state_t
1610 to access the bsp and bspstore registers if not.
1612 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1614 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1615 * breakpoint.c (detach_breakpoints): Change pid parameter into
1616 a ptid. Adjust code accordingly.
1617 * infrun.c (handle_inferior_event): Delete variable child_pid.
1618 Update call to detach_breakpoints to pass the child ptid for
1620 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1621 assert that inferior_ptid's lwp is zero.
1622 (linux_handle_extended_wait): Update call to detach_breakpoints.
1623 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1626 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1628 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1629 parent, only call detach_breakpoints if tts.tts_event ==
1632 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1634 * dwarf2-frame.c (dwarf2_frame_cache): Use
1635 get_frame_address_in_block instead of get_frame_pc as
1636 the bound for executing the frame's FDE.
1638 2012-08-16 Yao Qi <yao@codesourcery.com>
1640 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1641 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1642 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1643 (c_type_print_varspec_suffix): Likewise.
1644 * eval.c (evaluate_subexp_standard): Likewise.
1645 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1646 (f_type_print_varspec_suffix): Likewise.
1647 * gdbtypes.c (is_scalar_type): Likewise.
1648 (recursive_dump_type): Likewise.
1649 * infcall.c (value_arg_coerce): Likewise.
1650 * m2-valprint.c (m2_val_print): Likewise.
1651 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1652 (pascal_type_print_varspec_suffix): Likewise.
1653 (pascal_type_print_base): Likewise.
1654 * p-valprint.c (pascal_val_print): Likewise.
1655 (pascal_val_print): Likewise.
1656 * valops.c (value_slice): Likewise.
1657 * valprint.c (scalar_type_p): Likewise.
1658 * valarith.c (value_bitstring_subscript): Remove.
1659 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1660 Remove comment on TYPE_CODE_BITSTRING.
1662 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1663 TYPE_CODE_BITSTRING.
1665 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1668 2012-08-16 Yao Qi <yao@codesourcery.com>
1670 * tracepoint.c (trace_find_none_command): Remove.
1671 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1673 2012-08-16 Yao Qi <yao@codesourcery.com>
1675 * remote.c (handle_notification): Remove parameter 'length'.
1676 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1678 2012-08-15 Keith Seitz <keiths@redhat.com>
1680 * gdbtypes.c (opaque_type_resolution): Make static.
1681 Add missing comment.
1682 (overload_debug): Add missing comment.
1683 (show_opaque_type_resolution): Likewise.
1684 (show_overload_debug): Likewise.
1685 (print_bit_vector): Remove unnecessary forward declaration.
1686 (print_arg_types): Likewise.
1687 (dump_fn_fieldlists): Likewise.
1688 (print_cplus_stuff): Likewise.
1690 2012-08-15 Tom Tromey <tromey@redhat.com>
1692 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1693 (gdb_bfd_ref): Initialize new field.
1694 (gdb_bfd_unref): Unref the archive BFD.
1695 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1698 2012-08-15 Tom Tromey <tromey@redhat.com>
1701 * python/py-bpevent.c (create_breakpoint_event_object): Update
1703 * python/py-event.c (evpy_add_attribute): Update comment.
1704 * python/py-exitedevent.c (create_exited_event_object): Fix
1705 reference counting and error handling.
1706 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1707 Fix reference counting.
1708 * python/py-signalevent.c (create_signal_event_object): Fix
1709 reference counting and error handling.
1710 * python/py-stopevent.c (emit_stop_event): Fix reference
1712 * python/py-threadevent.c (get_event_thread): Return a
1714 * python/py-type.c (convert_field): Fix reference counting.
1716 2012-08-15 Tom Tromey <tromey@redhat.com>
1718 * dwarf2read.c (dwarf_decode_macro_bytes)
1719 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1722 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1724 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1725 stepi, nexti, finish, next, step, jump, and continue commands.
1726 * infrun.c (_initialize_infrun): Update help text for the handle
1729 2012-08-14 Doug Evans <dje@google.com>
1731 * gdbtypes.c (struct extra): Delete, unused.
1733 * gdbtypes.c: Whitespace cleanup.
1734 (address_space_name_to_int): Remove "extern" from definition.
1735 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1737 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1738 TYPE_POINTER_TYPE (type).
1740 2012-08-14 Gary Benson <gbenson@redhat.com>
1742 * solib-svr4.c (svr4_free_library_list): Use free_so.
1744 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1746 * .gitignore: Add go-exp.c.
1748 2012-08-13 Doug Evans <dje@google.com>
1750 * value.c (show_convenience): Tweak comment.
1751 (_initialize_values): Mention convenience functions in the help text
1752 for "show convenience".
1754 2012-08-13 Yao Qi <yao@codesourcery.com>
1756 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1757 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1759 * eval.c (evaluate_subexp_standard): Likewise.
1760 * expprint.c (print_subexp_standard): Likewise.
1761 (dump_subexp_body_standard): Likewise.
1762 * parse.c (operator_length_standard): Likewise.
1764 2012-08-13 Yao Qi <yao@codesourcery.com>
1766 * std-operator.def: Remove OP_BITSTRING.
1767 * breakpoint.c (watchpoint_exp_is_const): Update.
1768 * eval.c (evaluate_subexp_standard): Remove handling to
1770 * expprint.c (print_subexp_standard): Likewise.
1771 (dump_subexp_body_standard): Likewise.
1772 * parse.c (operator_length_standard): Likewise.
1773 * valops.c (value_bitstring): Remove.
1774 * value.h: Remove the declaration of 'value_bitstring'.
1776 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1778 * linespec.c (find_methods): Remove unused variables `i1' and
1780 (decode_line_full): Likewise for `arg_start'.
1782 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1784 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1785 (zlib_decompress_section): Likewise for `section_data'.
1786 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1788 2012-08-10 Doug Evans <dje@google.com>
1790 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1791 * NEWS: Document them.
1792 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1794 * python/py-type.c (typy_array_1): New function.
1795 (typy_array): Call it.
1796 (typy_vector): New function.
1797 (type_object_methods): Add "vector".
1798 * python/lib/gdb/function/__init__.py: New file.
1799 * python/lib/gdb/function/strfns.py: New file.
1801 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1803 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1804 for TYPE_FIELD_BITPOS.
1805 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1807 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1810 * common/vec.h (VEC_merge): Define.
1811 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1812 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1813 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1814 * completer.c: Include gdb_signals.h.
1815 (signal_completer): Define.
1816 * completer.h (signal_completer): Add prototype.
1817 * infcmd.c (_initialize_infcmd): Assign the command
1818 completer for "signal" to handle_completer.
1819 * infrun.c: Include completer.h.
1820 (handle_completer): Define.
1821 (_initialize_infrun): Declare a new local variable c. Store the
1822 result of add_com("handle") to it. Assign the command
1823 completer for "handle" to handle_completer.
1825 2012-08-09 Yao Qi <yao@codesourcery.com>
1827 * cli/cli-decode.c (set_cmd_prefix): New.
1828 (lookup_cmd_for_prefixlist): New.
1829 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1830 of each cmd_list_element in *prefixlist.
1831 (add_setshow_cmd_full): set_cmd_prefix.
1832 (add_alias_cmd): Likewise.
1833 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1834 Declare 'auto_boolean_enums'.
1835 * cli/cli-setshow.c: Include "observer.h".
1836 (notify_command_param_changed_p): New.
1837 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1839 (do_setshow_command): Split it to ...
1840 (do_set_command, do_show_command): ... them. New.
1841 (do_set_command): Call observer_notify_command_param_changed if
1842 notify_command_param_changed_p returns true.
1843 (cmd_show_list): Caller update.
1844 * auto-load.c (set_auto_load_cmd): Likewise.
1845 * remote.c (show_remote_cmd): Likewise.
1846 * cli/cli-setshow.h: Update declarations.
1847 * top.c (execute_command): Call do_set_command and do_show_command.
1849 * NEWS: Mention new MI notification.
1850 * mi/mi-interp.c: Declare mi_command_param_changed.
1851 (mi_interpreter_init): Attach mi_command_param_changed to
1852 observer command_param_changed.
1853 (mi_command_param_changed): New.
1854 Remove mi_suppress_breakpoint_notifications.
1855 Define global variable mi_suppress_notification.
1856 (mi_breakpoint_created): Update.
1857 (mi_breakpoint_deleted): Likewise.
1858 (mi_breakpoint_modified): Likewise.
1859 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1860 'gdb-set' and set mi_suppress_notification.
1861 * mi/mi-main.h: (mi_suppress_notification): New struct.
1863 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1864 Jan Kratochvil <jan.kratochvil@redhat.com>
1866 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1868 2012-08-09 Yao Qi <yao@codesourcery.com>
1870 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1871 (skiplist): Move it to skip.c.
1872 (init_cmd_lists): Remove code setting enablebreaklist and
1874 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1875 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1877 * gdbcmd.h: Likewise.
1878 * skip.c (_initialize_step_skip): Move 'skiplist' from
1881 2012-08-09 Yao Qi <yao@codesourcery.com>
1883 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1884 * gnu-nat.c, symfile.c: Likewise.
1886 2012-08-08 Aaron Gamble <agamble@google.com>
1888 * utils.c (prompt_for_continue_wait_time): New static global.
1889 (make_command_stats_cleanup): Initialize it.
1890 (report_command_stats): Subtract time waiting for user.
1891 (prompt_for_continue): Track time waiting for user.
1892 (defaulted_query): Track time waiting for user.
1894 2012-08-08 Doug Evans <dje@google.com>
1896 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1898 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1899 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1900 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1901 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1902 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1903 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1905 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1906 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1907 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1908 (dump_prefix_expression): Handle OP_TYPE.
1910 2012-08-08 Keith Seitz <keiths@redhat.com>
1912 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1915 2012-08-08 Doug Evans <dje@google.com>
1917 * linux-thread-db.c: #include "gdb_vecs.h".
1918 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1920 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1921 (thread_db_load_search): Use a vector to iterate over path elements.
1922 Handle text appearing after "$pdir".
1924 * gdb_string.h: Moved to ...
1925 * common/gdb_string.h: ... here.
1926 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1927 gdb_string.h and gdb_assert.h.
1929 2012-08-08 Yao Qi <yao@codesourcery.com>
1931 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1932 (tic6x_value_to_register): Likewise.
1933 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1934 and set_gdbarch_value_to_register.
1936 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1937 Jean-Marc Saffroy <saffroy@gmail.com>
1940 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1941 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1942 * gcore.c (gcore_create_callback): New function comment. Add modified
1943 parameter. Only write modified regions. Set SEC_READONLY exactly
1944 according to MODIFIED.
1945 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1946 the passed modified value to FUNC.
1947 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1948 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1949 first. New variables modified and has_anonymous. Parse the lines of
1950 smaps file. Add the passed MODIFIED value to FUNC.
1951 * procfs.c (find_memory_regions_callback): Add the passed modified
1954 2012-08-06 Tom Tromey <tromey@redhat.com>
1956 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1957 (dwarf2_frame_cache): Use it.
1958 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1959 cache initialization constraint.
1961 2012-08-06 Tom Tromey <tromey@redhat.com>
1964 * varobj.c (update_dynamic_varobj_children): Don't call
1967 2012-08-06 Tom Tromey <tromey@redhat.com>
1970 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1972 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1974 * NEWS: New entry for 'cd' default parameters.
1975 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1977 2012-08-03 Tom Tromey <tromey@redhat.com>
1979 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1982 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1984 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1985 to attempting lseek/write.
1986 (inf_child_fileio_pread): Likewise for pread.
1988 2012-08-02 Yao Qi <yao@codesourcery.com>
1990 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1991 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1992 add_setshow_zinteger_cmd.
1993 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1994 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1995 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1996 instead of add_setshow_zinteger_cmd.
1997 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1998 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1999 instead of add_setshow_zinteger_cmd.
2000 * frame.c (frame_debug): Add 'unsigned'.
2001 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2002 add_setshow_zinteger_cmd.
2003 * frame.h: Update the declaration of 'frame_debug'.
2004 * gdbtypes.c (overload_debug): Add 'unsigned'.
2005 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2006 add_setshow_zinteger_cmd.
2007 * inferior.h: Update declaration of 'debug_infrun'.
2008 * infrun.c (debug_infrun): Add 'unsigned'.
2009 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2010 add_setshow_zinteger_cmd.
2011 * jit.c (jit_debug): Add 'unsigned'.
2012 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2013 add_setshow_zinteger_cmd.
2014 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2015 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2016 instead of add_setshow_zinteger_cmd.
2017 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2018 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2019 add_setshow_zinteger_cmd.
2020 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2021 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2022 instead of add_setshow_zinteger_cmd.
2023 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2024 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2025 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2026 intead of add_setshow_zinteger_cmd.
2027 * mips-tdep.c (mips_debug): Add 'unsigned'.
2028 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2029 instead of add_setshow_zinteger_cmd.
2030 * monitor.c (monitor_debug): Add 'unsigned'.
2031 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2032 add_setshow_zinteger_cmd.
2033 * observer.c (observer_debug): Add 'unsigned'.
2034 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2035 add_setshow_zinteger_cmd.
2036 * parse.c (expressiondebug): Add 'unsigned'.
2037 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2038 add_setshow_zinteger_cmd.
2039 * record.c (record_debug): Add 'unsigned'.
2040 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2041 add_setshow_zinteger_cmd.
2042 * record.h: Update the declaration of 'record_debug'.
2043 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2044 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2045 add_setshow_zinteger_cmd.
2046 * serial.c (global_serial_debug_p): Add 'unsigned'.
2047 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2048 add_setshow_zinteger_cmd.
2049 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2050 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2051 add_setshow_zinteger_cmd.
2052 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2053 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2054 add_setshow_zinteger_cmd.
2055 * target.c (targetdebug): Add 'unsigned'.
2056 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2057 add_setshow_zinteger_cmd.
2058 * valops.c (overload_debug): Add 'unsigned'.
2059 * varobj.c (varobjdebug): Add 'unsigned'.
2060 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2061 add_setshow_zinteger_cmd.
2062 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2063 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2064 instead of add_setshow_zinteger_cmd.
2066 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2067 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2068 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2069 instead of add_setshow_zinteger_cmd.
2070 * gdbarch.c, gdbarch.h: Re-generated.
2072 2012-08-02 Yao Qi <yao@codesourcery.com>
2074 * nto-tdep.c: Don't include cli/cli-decode.h and
2076 (_initialize_nto_tdep): Remove.
2077 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2079 Remove macro nto_internal_debugging.
2081 2012-08-01 Richard Henderson <rth@redhat.com>
2083 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2084 (mep-*-*) [gdb_target_obs]: Likewise.
2086 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2088 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2089 linux_get_siginfo_type.
2091 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2093 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2095 (call_function_by_hand) <ON_STACK>: Call write_memory with
2096 gdbarch_breakpoint_from_pc, if possible.
2097 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2100 2012-07-31 Yao Qi <yao@codesourcery.com>
2102 * tracepoint.c: Add 'static' for some variables.
2104 2012-07-31 Yao Qi <yao@codesourcery.com>
2106 * go32-nat.c: Declare _initialize_go32_nat.
2107 * ser-go32.c: Declare _initialize_ser_dos.
2108 * top.c (do_chdir_cleanup): Add 'static'.
2110 2012-07-30 Keith Seitz <keiths@redhat.com>
2112 * linespec.c (linespec_lex_number): A number followed
2113 by quotes is a valid number, too.
2115 2012-07-30 Tom Tromey <tromey@redhat.com>
2117 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2119 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2121 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2122 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2124 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2126 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2127 invalid or reevaluated to prevent prevent references to possibly
2128 delete'd type objects being left in the varobj.
2130 2012-07-27 Tom Tromey <tromey@redhat.com>
2131 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * copying.awk: Print buffer-read-only and vi ro markers.
2134 * copying.c: Rebuild.
2135 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2136 * gdbarch.c, gdbarch.h: Rebuild.
2137 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2138 buffer-read-only and vi ro markers.
2139 * features/arm-with-iwmmxt.c: Rebuild.
2140 * features/arm-with-m-fpa-layout.c: Rebuild.
2141 * features/arm-with-m-vfp-d16.c: Rebuild.
2142 * features/arm-with-m.c: Rebuild.
2143 * features/arm-with-neon.c: Rebuild.
2144 * features/arm-with-vfpv2.c: Rebuild.
2145 * features/arm-with-vfpv3.c: Rebuild.
2146 * features/i386/amd64-avx-linux.c: Rebuild.
2147 * features/i386/amd64-avx.c: Rebuild.
2148 * features/i386/amd64-linux.c: Rebuild.
2149 * features/i386/amd64.c: Rebuild.
2150 * features/i386/i386-avx-linux.c: Rebuild.
2151 * features/i386/i386-avx.c: Rebuild.
2152 * features/i386/i386-linux.c: Rebuild.
2153 * features/i386/i386-mmx-linux.c: Rebuild.
2154 * features/i386/i386-mmx.c: Rebuild.
2155 * features/i386/i386.c: Rebuild.
2156 * features/i386/x32-avx-linux.c: Rebuild.
2157 * features/i386/x32-avx.c: Rebuild.
2158 * features/i386/x32-linux.c: Rebuild.
2159 * features/i386/x32.c: Rebuild.
2160 * features/mips-dsp-linux.c: Rebuild.
2161 * features/mips-linux.c: Rebuild.
2162 * features/mips64-dsp-linux.c: Rebuild.
2163 * features/mips64-linux.c: Rebuild.
2164 * features/rs6000/powerpc-32.c: Rebuild.
2165 * features/rs6000/powerpc-32l.c: Rebuild.
2166 * features/rs6000/powerpc-403.c: Rebuild.
2167 * features/rs6000/powerpc-403gc.c: Rebuild.
2168 * features/rs6000/powerpc-405.c: Rebuild.
2169 * features/rs6000/powerpc-505.c: Rebuild.
2170 * features/rs6000/powerpc-601.c: Rebuild.
2171 * features/rs6000/powerpc-602.c: Rebuild.
2172 * features/rs6000/powerpc-603.c: Rebuild.
2173 * features/rs6000/powerpc-604.c: Rebuild.
2174 * features/rs6000/powerpc-64.c: Rebuild.
2175 * features/rs6000/powerpc-64l.c: Rebuild.
2176 * features/rs6000/powerpc-7400.c: Rebuild.
2177 * features/rs6000/powerpc-750.c: Rebuild.
2178 * features/rs6000/powerpc-860.c: Rebuild.
2179 * features/rs6000/powerpc-altivec32.c: Rebuild.
2180 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2181 * features/rs6000/powerpc-altivec64.c: Rebuild.
2182 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2183 * features/rs6000/powerpc-cell32l.c: Rebuild.
2184 * features/rs6000/powerpc-cell64l.c: Rebuild.
2185 * features/rs6000/powerpc-e500.c: Rebuild.
2186 * features/rs6000/powerpc-e500l.c: Rebuild.
2187 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2188 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2189 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2190 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2191 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2192 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2193 * features/rs6000/powerpc-vsx32.c: Rebuild.
2194 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2195 * features/rs6000/powerpc-vsx64.c: Rebuild.
2196 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2197 * features/rs6000/rs6000.c: Rebuild.
2198 * features/s390-linux32.c: Rebuild.
2199 * features/s390-linux32v1.c: Rebuild.
2200 * features/s390-linux32v2.c: Rebuild.
2201 * features/s390-linux64.c: Rebuild.
2202 * features/s390-linux64v1.c: Rebuild.
2203 * features/s390-linux64v2.c: Rebuild.
2204 * features/s390x-linux64.c: Rebuild.
2205 * features/s390x-linux64v1.c: Rebuild.
2206 * features/s390x-linux64v2.c: Rebuild.
2207 * features/tic6x-c62x-linux.c: Rebuild.
2208 * features/tic6x-c62x.c: Rebuild.
2209 * features/tic6x-c64x-linux.c: Rebuild.
2210 * features/tic6x-c64x.c: Rebuild.
2211 * features/tic6x-c64xp-linux.c: Rebuild.
2212 * features/tic6x-c64xp.c: Rebuild.
2214 2012-07-27 Tom Tromey <tromey@redhat.com>
2216 * c-exp.y (classify_name): Avoid assignment in condition.
2218 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2220 * amd64-windows-tdep.c: Include "frame.h".
2221 (amd64_windows_skip_trampoline_code): New function.
2222 (amd64_windows_init_abi): Add trampoline registration.
2224 2012-07-27 Yao Qi <yao@codesourcery.com>
2226 * tracepoint.c (cur_traceframe_number): Remove.
2227 (set_tfile_traceframe): Remove.
2228 (tfile_trace_find, tfile_fetch_registers): Update callers.
2229 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2230 (tfile_open, tfile_trace_find): Likewise.
2232 2012-07-27 Yao Qi <yao@codesourcery.com>
2234 * thread.c (switch_to_thread): Don't call registers_changed.
2236 2012-07-26 Tom Tromey <tromey@redhat.com>
2238 * Makefile.in (SFILES): Remove objc-exp.y.
2239 (YYFILES): Remove objc-exp.c.
2240 (YYOBJ): Remove objc-exp.o.
2241 (local-maintainer-clean): Don't mention objc-exp.c.
2242 * c-exp.y: Include objc-lang.h.
2243 (%union) <class>: New field.
2244 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2245 (exp): Clone subscript production for OBJC_LBRAC. Add various
2246 Objective C productions.
2247 (msglist, msgarglist, msgarg): New productions.
2248 (array_mod, func_mod, operator): Clone productions for
2250 (parse_string_or_char): Handle '@' strings.
2251 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2252 (classify_name): Check la_name_of_this. Recognize ObjC class
2254 * objc-exp.y: Remove.
2255 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2256 * objc-lang.h (objc_parse, objc_error): Don't declare.
2258 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2260 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2262 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2264 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2267 2012-07-26 Tom Tromey <tromey@redhat.com>
2269 * copying.c: Rebuild.
2270 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2273 2012-07-26 Tom Tromey <tromey@redhat.com>
2275 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2277 (print_objfile_statistics): Likewise.
2278 (maintenance_print_symbols): Likewise.
2279 (maintenance_print_msymbols): Likewise.
2280 (maintenance_print_objfiles): Likewise.
2281 * psymtab.c (print_partial_symbols): Call QUIT.
2282 (maintenance_print_psymbols): Likewise. Don't modify
2284 * copying.c (show_copying_command): Don't modify immediate_quit.
2285 (show_warranty_command): Likewise.
2286 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2288 2012-07-26 Keith Seitz <keiths@redhat.com>
2290 * linespec.c (linespec_lexer_lex_number): The input
2291 is also a valid number if the next character is a comma
2294 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2296 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2299 2012-07-26 Tristan Gingold <gingold@adacore.com>
2301 * machoread.c: Include gdb_bfd.h.
2303 2012-07-26 Tristan Gingold <gingold@adacore.com>
2305 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2308 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2310 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2312 (dwarf2_evaluate_loc_desc): Likewise.
2313 (dwarf2_loc_desc_needs_frame): Likewise.
2314 (locexpr_describe_location_1): Likewise.
2315 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2317 (struct dwarf2_loclist_baton): Likewise.
2318 * dwarf2read.c (struct dwarf_block): Likewise.
2319 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2320 (decode_locdesc): Expand SIZE and I to size_t.
2322 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2324 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2326 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2328 * doublest.c (convert_doublest_to_floatformat): If the exponent
2329 is too small, treat the value as zero. If the exponent is too
2330 large, treat the value as infinity.
2332 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2334 * configure.ac: Add --enable-lmcheck configure option.
2335 * configure: Regenerate.
2337 2012-07-25 Tom Tromey <tromey@redhat.com>
2339 * NEWS: Mention maint info bfds.
2340 * gdb_bfd.c (all_bfds): New global.
2341 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2342 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2345 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2347 * configure.tgt: Add v850*-*-rtems*.
2349 2012-07-25 Tom Tromey <tromey@redhat.com>
2351 * macrotab.c (macro_bcache_str): Remove cast.
2353 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2355 * linespec.c (linespec_lexer_lex_number): Update comments,
2356 change the return and add check to make sure the input is
2357 the decimal numbers.
2358 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2359 false, call linespec_lexer_lex_string.
2361 2012-07-24 Tom Tromey <tromey@redhat.com>
2363 * symfile.c (symbol_file_add): Don't open BFD twice.
2365 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2367 * breakpoint.c (create_breakpoint): Store condition for pending
2370 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2372 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2373 (m68k_return_value): Handle complex types like structures.
2374 (m68k_svr4_return_value): Likewise.
2376 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2378 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2379 parameters to bfd_get_section_name.
2381 2012-07-24 Yao Qi <yao@codesourcery.com>
2383 * cli/cli-setshow.c: Handle case 'var_uinteger'
2384 and 'var_zuninteger' together. Handle case 'var_integer' and
2385 'var_zinteger' together.
2387 2012-07-23 Keith Seitz <keiths@redhat.com>
2389 * linespec.c (convert_linespec_to_sal): Don't add
2390 any symbols to the result vector if symbol_to_sal
2393 2012-07-23 Keith Seitz <keiths@redhat.com>
2395 * linespec.c (decode_objc): Record the function name
2398 2012-07-23 Tom Tromey <tromey@redhat.com>
2400 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2402 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2403 (map_vmap): Acquire a reference to the BFD.
2405 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2407 * p-valprint.c (pascal_object_print_value): Replace potentially
2408 unsafe alloca with xmalloc/xfree.
2409 * valops.c (search_struct_method): Likewise.
2411 2012-07-23 Tom Tromey <tromey@redhat.com>
2413 * solib-svr4.c (enable_break): Update.
2414 * bfd-target.h (target_bfd_reopen): Update documentation.
2416 2012-07-23 Tom Tromey <tromey@redhat.com>
2418 * symfile.c (separate_debug_file_exists): Update.
2419 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2420 (reread_symbols): Update.
2421 * elfread.c (build_id_verify): Update.
2422 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2423 bfd_open_maybe_remote.
2425 2012-07-23 Tom Tromey <tromey@redhat.com>
2427 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2429 2012-07-23 Tom Tromey <tromey@redhat.com>
2431 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2433 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2435 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2436 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2438 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2439 * objfiles.c (allocate_objfile): Acquire a new reference.
2440 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2441 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2442 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2443 a cleanup for 'nbfd'.
2444 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2446 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2447 make a cleanup for 'abfd'.
2448 (symbol_file_add): Make a BFD cleanup.
2450 2012-07-23 Tom Tromey <tromey@redhat.com>
2452 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2453 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2454 * corelow.c (core_open): Use gdb_bfd_fopen.
2455 * dsrec.c (load_srec): Use gdb_bfd_openr.
2456 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2457 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2458 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2459 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2460 (gdb_bfd_fdopenr): New functions.
2461 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2462 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2463 (gdb_bfd_fdopenr): Declare.
2464 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2465 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2466 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2467 gdb_bfd_openr_next_archived_file.
2468 (macho_check_dsym): Use gdb_bfd_openr.
2469 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2470 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2471 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2472 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2474 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2475 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2476 gdb_bfd_openr_next_archived_file.
2477 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2479 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2481 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2482 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2483 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2484 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2485 (symfile_bfd_open): Use gdb_bfd_fopen.
2486 (generic_load): Use gdb_bfd_openr.
2487 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2489 2012-07-23 Tom Tromey <tromey@redhat.com>
2491 * bfd-target.c (target_bfd_reopen): Update.
2492 * cli/cli-dump.c (bfd_openr_with_cleanup)
2493 (bfd_openw_with_cleanup): Update.
2494 * corelow.c (core_open): Update.
2495 * dsrec.c (load_srec): Update.
2496 * exec.c (exec_file_attach): Update.
2497 * gcore.c (create_gcore_bfd): Update.
2498 * gdb_bfd.c (gdb_bfd_ref): Return void.
2499 (gdb_bfd_open): Update.
2500 * gdb_bfd.h (gdb_bfd_ref): Return void.
2502 * jit.c (jit_bfd_try_read_symtab): Update.
2503 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2504 * machoread.c (macho_symfile_read_all_oso): Update.
2505 (macho_check_dsym): Update.
2506 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2507 * remote-m32r-sdi.c (m32r_load): Update.
2508 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2509 * rs6000-nat.c (add_vmap): Update.
2510 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2512 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2513 * solib-spu.c (spu_bfd_open): Update.
2514 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2515 * spu-linux-nat.c (spu_bfd_open): Update.
2516 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2517 (generic_load): Update.
2518 * windows-nat.c (windows_make_so): Update.
2520 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2522 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2524 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2526 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2527 SIGTRAMP_FRAME unwinding.
2529 2012-07-20 Doug Evans <dje@google.com>
2531 * NEWS: Document new options "set/show use-deprecated-index-sections",
2532 and delete reference to --use-deprecated-index-sections.
2533 * symfile.h (use_deprecated_index_sections): Delete.
2534 * dwarf2read.c (use_deprecated_index_sections): Make static.
2535 (read_index_from_section): Update wording of how to load
2536 deprecated index sections.
2537 (_initialize_dwarf2_read): New options
2538 "set/show use-deprecated-index-sections".
2539 * main.c (captured_main): Delete --use-deprecated-index-sections.
2541 2012-07-20 Pedro Alves <palves@redhat.com>
2546 * infrun.c (handle_inferior_event) <new thread>: Don't special
2547 case minus_one_ptid.
2548 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2549 * linux-thread-db.c (thread_get_info_callback): Don't return early
2550 if the thread is zombie.
2551 (thread_from_lwp): Change return type to void. Rewrite stale
2553 (attach_thread): Don't return early if the thread is zombie,
2554 instead set its "dying" flag.
2555 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2556 (find_new_threads_callback): Don't return early if the thread is
2559 2012-07-20 Pedro Alves <palves@redhat.com>
2561 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2562 * target.c (target_wait): Likewise.
2563 (str_comma_list_concat_elem, do_option, target_options_to_string):
2565 * target.h (target_options_to_string): Declare.
2567 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2568 Tom Tromey <tromey@redhat.com>
2570 * dwarf2read.c (dwarf_decode_macros)
2571 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2572 DW_MACRO_GNU_transparent_include_alt>: New cases.
2573 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2574 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2576 2012-07-20 Tom Tromey <tromey@redhat.com>
2578 * dwarf2read.c (try_open_dwo_file): Don't call
2579 gdb_bfd_stash_filename.
2581 2012-07-20 Pedro Alves <palves@redhat.com>
2583 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2584 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2585 (i386_process_record): Tweak description comments.
2587 2012-07-20 Pedro Alves <palves@redhat.com>
2589 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2590 (i386_process_record): Use record_read_memory.
2591 * record.c (record_read_memory): New function.
2592 (record_arch_list_add_mem, record_exec_insn): Use
2594 * record.h (record_read_memory): Declare.
2596 2012-07-20 Yao Qi <yao@codesourcery.com>
2598 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2601 2012-07-19 Pedro Alves <palves@redhat.com>
2603 * record.c (record_resume): Ask the target beneath to report all
2606 2012-07-19 Doug Evans <dje@google.com>
2608 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2609 there's no section at address zero.
2610 (dwarf2_record_block_ranges): Ditto.
2612 2012-07-19 Yao Qi <yao@codesourcery.com>
2614 * command.h, remote.c: Fix a typo in comment.
2616 2012-07-19 Tom Tromey <tromey@redhat.com>
2619 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2620 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2621 OP_DECLTYPE>: New cases.
2622 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2623 (type_exp): Add new productions.
2624 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2626 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2628 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2629 OP_DECLTYPE>: New case.
2630 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2632 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2633 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2635 2012-07-19 Tom Tromey <tromey@redhat.com>
2637 * c-exp.y (enum token_flags): New.
2638 (struct token) <cxx_only>: Remove.
2640 (tokentab3, tokentab2, ident_tokens): Update.
2641 (lex_one_token): Update. Handle FLAG_SHADOW.
2643 2012-07-19 Tom Tromey <tromey@redhat.com>
2645 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2646 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2647 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2648 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2649 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2650 type_exp production where appropriate.
2651 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2652 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2653 <UNOP_MEMVAL_TYPE>: New case.
2654 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2655 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2656 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2657 <UNOP_MEMVAL_TYPE>: New case.
2658 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2659 UNOP_REINTERPRET_CAST>: Update.
2660 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2661 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2662 UNOP_REINTERPRET_CAST>: Update.
2663 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2664 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2665 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2668 2012-07-19 Yao Qi <yao@codesourcery.com>
2669 Jan Kratochvil <jan.kratochvil@redhat.com>
2671 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2672 and case 'var_optional_filename' together.
2673 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2674 instead of add_setshow_optional_filename_cmd for setshow command
2675 'args'. Set completer for 'set args'.
2677 2012-07-18 Doug Evans <dje@google.com>
2679 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2680 * common/gdb_vecs.c: New file, contents from utils.c.
2681 * common/host-defs.h: New file, contents from defs.h.
2682 * utils.h: New file, contents from defs.h.
2683 * defs.h: Move all declarations of objects defined in utils.c
2684 to utils.h (except QUIT() and related).
2685 #include "utils.h", "host-defs.h".
2686 * probe.h (probe_p): Move here from gdb_vecs.h.
2687 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2688 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2689 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2690 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2691 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2692 (COMMON_OBS): Add gdb_vecs.o.
2693 (gdb_vecs.o): New rule.
2695 2012-07-18 Keith Seitz <keiths@redhat.com>
2697 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2698 parameter. If non-zero, use SYMNAME as the canonical name
2701 (convert_linespec_to_sals): Use add_sal_to_sals for
2703 (decode_line_full): No need to "fill in missing canonical names"
2704 anymore. Simply make cleanups for the allocated names.
2706 2012-07-18 Keith Seitz <keiths@redhat.com>
2708 * linespec.c (struct linespec): Constify expression,
2709 source_filename, function_name, and label_name.
2710 (symbol_not_found_error): Make all parameters const.
2711 (linespec_parser_delete): No need to check for NULL
2712 when using xfree. Cast const char * to char * for xfree.
2714 2012-07-18 Keith Seitz <keiths@redhat.com>
2716 * breakpoint.c (invalid_thread_id_error): New function.
2717 (find_condition_and_thread): Use invalid_thread_id_error.
2718 (watch_command_1): Likewise.
2720 2012-07-18 Tom Tromey <tromey@redhat.com>
2722 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2723 * contrib/cc-with-tweaks.sh: New file.
2725 2012-07-18 Tom Tromey <tromey@redhat.com>
2727 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2728 (locate_dwz_sections): Recognize .gdb_index.
2729 (create_cus_from_index_list): New function.
2730 (create_cus_from_index): Use it. Handle .dwz data.
2731 (read_index_from_section): New function, extracted from
2733 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2736 2012-07-18 Tom Tromey <tromey@redhat.com>
2738 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2739 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2740 <is_dwz>: New field.
2741 (struct dwz_file): New.
2742 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2743 (locate_dwz_sections, dwarf2_get_dwz_file)
2744 (get_abbrev_section_for_cu): New functions.
2745 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2746 (read_and_check_type_unit_head): Add abbrev_section argument.
2747 (create_debug_types_hash_table): Update.
2748 (init_cutu_and_read_dies): Use proper abbrev section.
2749 (init_cutu_and_read_dies_no_follow): Likewise.
2750 (set_partial_user): Do nothing if PST==NULL.
2751 (read_comp_units_from_section): New function.
2752 (create_all_comp_units): Use it.
2753 (scan_partial_symbols, partial_die_parent_scope): Update.
2754 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2755 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2756 (find_partial_die): Add offset_in_dwz argument. Update.
2757 (guess_partial_die_structure_name, fixup_partial_die): Update.
2758 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2759 DW_FORM_GNU_strp_alt.
2760 (read_indirect_string_from_dwz): New function.
2761 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2762 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2763 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2764 (follow_die_offset): Add offset_in_dwz argument.
2765 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2766 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2767 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2768 Handle new macro forms.
2769 (dwarf_decode_macros): Update.
2770 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2771 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2772 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2773 (create_debug_types_hash_table): Use correct abbrev section.
2774 (get_debug_line_section): New function.
2775 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2776 (process_full_comp_unit): Pass 'required' argument to
2777 end_symtab_get_static_block.
2778 * buildsym.h (end_symtab_get_static_block): Update.
2779 * buildsym.c (end_symtab_get_static_block): Add 'required'
2781 (end_symtab, end_expandable_symtab): Update.
2783 2012-07-18 Tom Tromey <tromey@redhat.com>
2785 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2787 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2788 (zlib_decompress_section): Remove.
2789 (dwarf2_read_section): Use gdb_bfd_map_section.
2790 (munmap_section_buffer): Remove.
2791 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2792 munmap_section_buffer.
2793 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2794 (struct gdb_bfd_section_data): New.
2795 (free_one_bfd_section): New function.
2796 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2797 (get_section_descriptor, zlib_decompress_section)
2798 (gdb_bfd_map_section): New functions.
2799 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2801 2012-07-18 Tom Tromey <tromey@redhat.com>
2803 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2805 2012-07-18 Tom Tromey <tromey@redhat.com>
2807 * gdb_bfd.c (struct gdb_bfd_data): New.
2808 (gdb_bfd_cache): New global.
2809 (struct gdb_bfd_cache_search): New.
2810 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2811 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2812 * gdb_bfd.h (gdb_bfd_open): Declare.
2814 2012-07-18 Tom Tromey <tromey@redhat.com>
2816 * utils.c (make_cleanup_bfd_unref): Rename from
2817 make_cleanup_bfd_close.
2818 * defs.h (make_cleanup_bfd_unref): Rename from
2819 make_cleanup_bfd_close.
2820 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2821 (bfd_openw_with_cleanup): Update.
2822 * corelow.c (core_open): Update.
2823 * dsrec.c (load_srec): Update.
2824 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2825 * remote-m32r-sdi.c (m32r_load): Update.
2826 * remote-mips.c (mips_load_srec): Update.
2827 (pmon_load_fast): Update.
2828 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2830 (darwin_bfd_open): Update.
2831 * solib.c (solib_bfd_fopen): Update.
2832 * symfile-mem.c (symbol_file_add_from_memory): Update.
2833 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2834 (symfile_bfd_open): Update.
2835 (generic_load): Update.
2837 2012-07-18 Tom Tromey <tromey@redhat.com>
2839 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2840 (pmon_load_fast): Likewise.
2841 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2842 (m32r_upload_command): Likewise.
2843 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2844 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2845 Use make_cleanup_bfd_close.
2847 2012-07-18 Tom Tromey <tromey@redhat.com>
2849 * symfile.c (symfile_bfd_open): Don't copy name. Call
2850 gdb_bfd_stash_filename.
2851 (load_command): Open the new BFD before freeing the old.
2852 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2853 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2854 Call gdb_bfd_stash_filename.
2855 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2856 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2857 gdb_bfd_stash_filename.
2858 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2859 Free found_pathname.
2860 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2861 gdb_bfd_stash_filename.
2862 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2863 * machoread.c (macho_add_oso_symfile): Call
2864 gdb_bfd_stash_filename.
2865 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2866 gdb_bfd_stash_filename.
2867 (macho_check_dsym): Don't copy filename. Call
2868 gdb_bfd_stash_filename.
2869 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2870 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2871 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2872 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2873 * exec.c (exec_close): Don't free the BFD's filename.
2874 (exec_file_attach): Don't copy the filename. Call
2875 gdb_bfd_stash_filename.
2876 * corelow.c (core_close): Don't free the BFD's filename.
2877 (core_open): Call gdb_bfd_stash_filename.
2878 * corefile.c (reopen_exec_file): Remove #if 0 code.
2879 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2881 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2883 2012-07-18 Tom Tromey <tromey@redhat.com>
2885 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2887 (free_dwo_file): Use gdb_bfd_unref.
2888 * cli/cli-dump.c: Include gdb_bfd.h.
2889 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2890 (bfd_openr_with_cleanup): Likewise.
2891 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2893 * utils.c: Include gdb_bfd.h.
2894 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2895 * symfile.c: Include gdb_bfd.h.
2896 (separate_debug_file_exists): Use gdb_bfd_unref.
2897 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2898 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2899 (generic_load): Use gdb_bfd_ref.
2900 (reread_symbols): Use gdb_bfd_unref.
2901 * symfile-mem.c: Include gdb_bfd.h.
2902 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2903 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2904 * solib.c: Include gdb_bfd.h.
2905 (solib_bfd_fopen): Use gdb_bfd_ref.
2906 (solib_bfd_open): Use gdb_bfd_unref.
2907 (free_so_symbols): Use gdb_bfd_unref.
2908 (reload_shared_libraries_1): Use gdb_bfd_unref.
2909 * solib-spu.c: Include gdb_bfd.h.
2910 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2911 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2913 * solib-frv.c: Include gdb_bfd.h.
2914 (enable_break2): Use gdb_bfd_unref.
2915 * solib-dsbt.c: Include gdb_bfd.h.
2916 (enable_break2): Use gdb_bfd_unref.
2917 * solib-darwin.c: Include gdb_bfd.h.
2918 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2920 (darwin_bfd_open): Use gdb_bfd_unref.
2921 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2922 * remote-mips.c: Include gdb_bfd.h.
2923 (mips_load_srec): Use gdb_bfd_ref.
2924 (pmon_load_fast): Use gdb_bfd_ref.
2925 * remote-m32r-sdi.c: Include gdb_bfd.h.
2926 (m32r_load): Use gdb_bfd_ref.
2927 * record.c: Include gdb_bfd.h.
2928 (record_save_cleanups): Use gdb_bfd_unref.
2929 (cmd_record_save): Use gdb_bfd_unref.
2930 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2932 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2933 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2934 * objfiles.c: Include gdb_bfd.h.
2935 (free_objfile): Use gdb_bfd_unref.
2936 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2938 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2939 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2940 (macho_check_dsym): Likewise.
2941 * m32r-rom.c: Include gdb_bfd.h.
2942 (m32r_load): Use gdb_bfd_ref.
2943 (m32r_upload_command): Use gdb_bfd_ref.
2944 * jit.c: Include gdb_bfd.h.
2945 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2946 * gdb_bfd.h: New file.
2947 * gdb_bfd.c: New file.
2948 * gcore.c: Include gdb_bfd.h.
2949 (create_gcore_bfd): Use gdb_bfd_ref.
2950 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2951 (gcore_command): Use gdb_bfd_unref.
2952 * exec.c: Include gdb_bfd.h.
2953 (exec_close): Use gdb_bfd_unref.
2954 (exec_close_1): Use gdb_bfd_unref.
2955 (exec_file_attach): Use gdb_bfd_ref.
2956 * elfread.c: Include gdb_bfd.h.
2957 (build_id_verify): Use gdb_bfd_unref.
2958 * dsrec.c: Include gdb_bfd.h.
2959 (load_srec): Use gdb_bfd_ref.
2960 * corelow.c: Include gdb_bfd.h.
2961 (core_close): Use gdb_bfd_unref.
2962 (core_open): Use gdb_bfd_ref.
2963 * bfd-target.c: Include gdb_bfd.h.
2964 (target_bfd_xclose): Use gdb_bfd_unref.
2965 (target_bfd_reopen): Use gdb_bfd_ref.
2966 * Makefile.in (SFILES): Add gdb_bfd.c.
2967 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2968 (COMMON_OBS): Add gdb_bfd.o.
2970 2012-07-18 Keith Seitz <keiths@redhat.com>
2972 * breakpoint.c (find_condition_and_thread): Initialize
2974 (create_breakpiont): find_condition_and_thread will now
2975 initialize COND_STRING, THREAD, and REST (and TASK).
2976 (addr_string_to_sals): Likewise.
2978 2012-07-18 Pedro Alves <palves@redhat.com>
2980 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2981 Pull the single step breakpoints out of the target.
2983 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2985 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2986 * stap-probe.c (compile_probe_arg): Likewise.
2988 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2990 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2991 (elf_compile_to_ax): Likewise.
2992 * infrun.c (insert_exception_resume_from_probe): Likewise.
2993 (check_exception_resume): Remove `objfile' variable.
2994 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2995 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2996 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2997 (compare_entries): Rename to...
2998 (compare_probes): ...this. Adjust function to work with
2999 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3001 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3003 (print_ui_out_info): Adjust argument to be `struct probe *'.
3004 (info_probes_for_ops): Adjust internal computations to use
3006 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3007 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3008 gen_info_probes_table_values>: Remove `objfile' argument.
3009 (struct probe) <objfile>: New field.
3010 (find_probe_by_pc): Remove `objfile' argument.
3011 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3012 (stap_get_probe_argument_count): Likewise.
3013 (stap_get_arg): Likewise.
3014 (stap_evaluate_probe_argument): Likewise.
3015 (stap_compile_to_ax): Likewise.
3016 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3017 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3018 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3019 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3020 sym_compile_to_ax>: Likewise.
3022 2012-07-18 Terry Guo <terry.guo@arm.com>
3025 * defs.h (GDB_MI_MSG_WIDTH): New.
3026 * ser_base (ser_base_read_error_fd): New function.
3027 (do_ser_base_readchar): Poll error file descriptor as well as
3029 (generic_readchar): Refactor error handling.
3031 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3033 * NEWS: Create a new section for the next release branch.
3034 Rename the section of the current branch, now that it has
3037 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3039 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3040 * version.in: Bump version to 7.5.50.20120718-cvs.
3042 2012-07-17 Keith Seitz <keiths@redhat.com>
3044 * linespec.c (linespec_parse_line_offset): Make parameter
3047 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3050 * f-valprint.c (info_common_command): New variable frame_id.
3051 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3052 * printcmd.c (print_variable_and_value): Extend function comment.
3053 Add comment for invalidated FRAME.
3054 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3055 FI form FRAME_ID after each print_frame_local_vars.
3056 (struct print_variable_and_value_data): Change frame to frame_id.
3057 (do_print_variable_and_value): New variable frame, initialize it from
3058 p->frame_id. Add comment for invalidated FRAME.
3059 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3060 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3061 for invalidated FRAME.
3063 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3064 Pedro Alves <palves@redhat.com>
3066 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3069 2012-07-16 Tom Tromey <tromey@redhat.com>
3071 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3073 2012-07-15 Doug Evans <dje@google.com>
3075 * dwarf2read.c (stmt_list_hash): New struct.
3076 (type_unit_group): Embed "per_cu" member, remove pointer.
3077 New union member "t", move member "tus" into it, all uses updated.
3078 New member "hash", replaces member "line_offset, all uses updated.
3079 (quick_file_names): Replace member "offset" with "hash", all uses
3081 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3082 (hash_file_name_entry, eq_file_name_entry): Call them.
3083 (hash_type_unit_group, eq_type_unit_group): Ditto.
3084 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3085 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3086 (dw2_get_file_names): Update.
3087 (create_type_unit_group): Replace "per_cu" arg with "cu".
3088 All callers updated. Fix "quick" (.gdb_index) handling.
3089 (get_type_unit_group): Replace "per_cu" arg with "cu".
3090 All callers updated.
3091 (build_type_unit_groups): Don't reset tu_stats.
3093 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3094 "tab_cur_size". Change member "tab" to be a htab_t.
3095 (create_filename_seen_cache): Update.
3096 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3097 (filename_seen): Update.
3099 2012-07-13 Doug Evans <dje@google.com>
3101 * symtab.c (filename_seen): Update comment.
3103 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 Doug Evans <dje@google.com>
3106 * buildsym.c (end_symtab_1): Split it to ...
3107 (end_symtab_get_static_block): ... this ...
3108 (end_symtab_from_static_block): ... and this function.
3109 (end_symtab, end_expandable_symtab): Call them.
3110 * buildsym.h (end_symtab_get_static_block)
3111 (end_symtab_from_static_block): New declarations.
3112 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3113 Set its valid CU ranges.
3115 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3117 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3118 DW_OP_GNU_parameter_ref.
3120 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3122 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3123 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3125 2012-07-13 Doug Evans <dje@google.com>
3127 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3128 (filename_seen_cache): New struct.
3129 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3130 (create_filename_seen_cache): New function.
3131 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3132 (filename_seen): Delete arg "first". New arg "cache". All callers
3134 (output_source_filename_data): New struct.
3135 (output_source_filename): Delete arg "first". New arg "data".
3136 All callers updated.
3137 (sources_info): Delete local "first". New locals "data", "cleanups".
3138 Rewrite to use filename_seen_cache.
3139 (add_partial_filename_data): Delete member "first". New member
3140 "filename_seen_cache". All uses updated.
3141 (make_source_files_completion_list): Rewrite to use
3142 filename_seen_cache.
3144 2012-07-12 Doug Evans <dje@google.com>
3146 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3148 2012-07-10 Doug Evans <dje@google.com>
3151 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3152 all_type_unit_groups, type_unit_groups, tu_stats.
3153 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3154 All uses updated. Add type_unit_group to union "s".
3155 (type_unit_group): New struct.
3156 (IS_TYPE_UNIT_GROUP): New macro.
3157 (abbrev_table): Delete unused member "section".
3158 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3159 (dw2_get_cu): Assert not used with type_unit_group.
3160 (dw2_get_primary_cu): New function.
3161 (dw2_build_type_unit_groups_reader): New function.
3162 (dw2_build_type_unit_groups): New function.
3163 (dw2_get_file_names): Assert not called on type units.
3164 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3165 Redo loop to iterate over type unit groups instead of type units.
3166 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3167 (read_abbrev_offset): New function.
3168 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3170 (create_partial_symtab): New function.
3171 (process_psymtab_comp_unit_reader): Assert not used with type units.
3172 Call create_partial_symtab.
3173 (process_psymtab_type_unit): Delete.
3174 (hash_type_unit_group, eq_type_unit_group): New functions.
3175 (allocate_type_unit_groups_table): New function.
3176 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3177 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3178 (create_type_unit_group, get_type_unit_group): New functions.
3179 (tu_abbrev_offset): New struct.
3180 (sort_tu_by_abbrev_offset): New function.
3181 (add_type_unit_group_to_table): New function.
3182 (build_type_unit_groups): New function.
3183 (build_type_psymtabs_reader): New function.
3184 (build_type_psymtab_dependencies): New function.
3185 (build_type_psymtabs): Rewrite.
3186 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3187 is seen in a type unit.
3188 (process_queue): Move symtab expansion debugging printfs here.
3189 Call process_full_type_unit for type units.
3190 (compute_symtab_includes): Assert not called for type units.
3191 (process_cu_includes): Don't call compute_symtab_includes for
3193 (process_full_type_unit): New function.
3194 (process_imported_unit_die): Flag an error if called for type units.
3195 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3196 updated. Assert not called for type units.
3197 (read_file_scope): Call dwarf2_start_symtab.
3198 (setup_type_unit_groups): New function.
3199 (read_type_unit_scope): Rewrite.
3200 (abbrev_table_read_table): Initialize abbrev_table->offset.
3201 (abbrev_table_free_cleanup): New function.
3202 (dwarf2_start_symtab): New function.
3203 (load_full_type_unit): Assert not called for type unit groups.
3204 * buildsym.c (finish_block_internal): New arg "expandable".
3205 All callers updated.
3206 (start_symtab): Move most contents to ...
3207 (restart_symtab): ... here. New function.
3208 (reset_symtab_globals): New function.
3209 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3210 Call reset_symtab_globals.
3211 (end_symtab, end_expandable_symtab): New functions.
3212 (set_missing_symtab, augment_type_symtab): New functions.
3213 * buildsym.h (end_expandable_symtab): Declare.
3214 (augment_type_symtab, restart_symtab): Declare.
3215 * psympriv.h (struct partial_symtab): New member "anonymous".
3216 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3218 (read_psymtabs_with_filename): Ditto.
3219 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3220 (expand_symtabs_matching_via_partial): Ditto.
3221 (dump_psymtab): Update.
3222 * dictionary.c (dict_add_pending): New function.
3223 * dictionary.h (dict_add_pending): Declare.
3225 2012-07-09 Doug Evans <dje@google.com>
3227 * buildsym.c (start_subfile): Remove unnecessary check for
3230 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3232 * dwarf2read.c (load_full_type_unit): Simplify.
3234 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3235 to struct signatured_type **. All uses updated.
3237 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3238 All callers updated.
3240 2012-07-09 Tom Tromey <tromey@redhat.com>
3242 * c-exp.y (check_parameter_typelist): New function.
3243 (parameter_typelist): Call it.
3244 * eval.c (make_params): Handle '(void)' case.
3245 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3248 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3250 * common/linux-ptrace.c: Include gdb_assert.h.
3251 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3252 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3254 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3256 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3257 * linux-nat.c (linux_child_post_attach)
3258 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3260 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3262 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3263 nptl <2.7 bug workaround for core files.
3265 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3269 (save_siginfo): Remove.
3270 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3272 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3273 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3274 * linux-nat.h (struct lwp_info): Remove field siginfo.
3276 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3278 Code cleanup for the next patch.
3279 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3280 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3282 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3283 (ia64_linux_stopped_data_address):
3284 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3286 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3287 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3288 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3291 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3294 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3295 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3297 2012-07-06 Tom Tromey <tromey@redhat.com>
3299 * c-exp.y (DOTDOTDOT): New token.
3300 (func_mod, exp): Use parameter_typelist.
3301 (parameter_typelist): New production.
3302 (tokentab3): Add "..." token.
3303 * eval.c (make_params): Handle varargs.
3304 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3307 2012-07-06 Tom Tromey <tromey@redhat.com>
3310 * c-exp.y (%union) <tvec>: Change type.
3311 (func_mod): Now uses <tvec> type.
3312 (exp): Update for tvec change.
3313 (direct_abs_decl): Push the typelist.
3314 (func_mod): Return a typelist.
3315 (nonempty_typelist): Update for tvec change.
3316 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3317 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3318 * parse.c (pop_type_list): New function.
3319 (push_typelist): New function.
3320 (follow_types): Handle tp_function_with_arguments.
3321 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3322 (enum type_pieces) <tp_function_with_arguments>: New constant.
3323 (union type_stack_elt) <typelist_val>: New field.
3324 (push_typelist): Declare.
3326 2012-07-06 Tom Tromey <tromey@redhat.com>
3328 * c-exp.y (%union) <type_stack>: New field.
3329 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3330 (ptr_operator_ts): New production.
3332 * parse.c (type_stack_reserve): New function.
3333 (check_type_stack_depth): Use it.
3334 (pop_type_stack, append_type_stack, push_type_stack)
3335 (get_type_stack, type_stack_cleanup): New functions.
3336 (follow_types): Handle tp_type_stack.
3337 (_initialize_parse): Simplify initialization.
3338 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3340 (union type_stack_elt) <stack_val>: New field.
3341 (get_type_stack, append_type_stack, push_type_stack)
3342 (type_stack_cleanup): Declare.
3344 2012-07-06 Tom Tromey <tromey@redhat.com>
3346 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3348 (struct type_stack): New.
3349 * parse.c (type_stack, type_stack_size, type_stack_depth):
3351 (type_stack): New global.
3352 (parse_exp_in_context, check_type_stack_depth)
3353 (insert_into_type_stack, insert_type, push_type, push_type_int)
3354 (insert_type_address_space, pop_type, pop_type_int)
3355 (_initialize_parse): Update.
3357 2012-07-06 Tom Tromey <tromey@redhat.com>
3359 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3362 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3364 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3366 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3367 Jan Kratochvil <jan.kratochvil@redhat.com>
3369 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3370 alloca with xmalloc/xfree.
3372 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3374 * MAINTAINERS (Write After Approval): Add myself to the list.
3376 2012-07-05 Doug Evans <dje@google.com>
3378 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3380 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3382 * ax-gdb.c (cli/cli-utils.h): New include.
3383 (linespec.h): Ditto.
3384 (agent_eval_command_one): New function.
3385 (agent_command_1): Ditto.
3386 (agent_command): Call function agent_command_1.
3387 (agent_eval_command): Ditto.
3388 (_initialize_ax_gdb): Change help for "maint agent"
3389 and "maint agent-eval".
3391 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3393 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3394 * cli/cli-utils.c (check_for_argument): New function.
3395 * cli/cli-utils.h (check_for_argument): Ditto.
3397 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3399 * NEWS: Mention x32 ABI support.
3401 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3403 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3404 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3406 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3407 and pc_regnum_from_eax to -1. Update SP regnum from
3408 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3411 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3414 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3417 * dwarf2expr.h: Include gdbtypes.h.
3418 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3419 these forward declarations.
3420 (cu_offset, sect_offset): Move these ...
3421 * gdbtypes.h: Remove include dwarf2expr.h.
3422 (cu_offset, sect_offset): ... here.
3424 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3426 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3427 (amd64_linux_sigtramp_code): This.
3428 (amd64_x32_linux_sigtramp_code): New.
3429 (LINUX_SIGTRAMP_LEN): Updated.
3430 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3432 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3434 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3436 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3438 * config.in: Regenerate.
3439 * configure: Regenerate.
3440 * configure.ac: Remove check for gnu/libc-version.h.
3441 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3443 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3444 variables libc_version, libc_major and libc_minor. Replace sscanf by
3445 inferior_has_bug. Extend the comment.
3447 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 * linux-thread-db.c (inferior_has_bug): New function.
3450 (thread_db_find_new_threads_silently): Return boolean as checked by
3451 inferior_has_bug, describe it in the comments.
3452 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3453 earlier. Abort the initialization if it returned non-zero.
3454 (thread_db_new_objfile): Exclude debug files.
3455 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3458 2012-07-02 Doug Evans <dje@google.com>
3460 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3461 related to queue management.
3463 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3464 instead of "debug dwarf2-die" in debugging printfs.
3465 (create_debug_info_hash_table_reader): Ditto.
3466 (create_debug_info_hash_table): Ditto.
3467 (init_dwo_file): Ditto.
3468 (init_cutu_and_read_dies): Add debugging printf.
3469 (init_cutu_and_read_dies_no_follow): Ditto.
3470 (process_psymtab_comp_unit_reader): Ditto.
3472 2012-07-02 Stan Shebs <stan@codesourcery.com>
3474 Add target-side support for dynamic printf.
3475 * NEWS: Mention the additional style.
3476 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3477 (struct bp_location): New field cmd_bytecode.
3478 * breakpoint.c: Include format.h.
3479 (disconnected_dprintf): New global.
3480 (parse_cmd_to_aexpr): New function.
3481 (build_target_command_list): New function.
3482 (insert_bp_location): Call it.
3483 (remove_breakpoints_pid): Skip dprintf breakpoints.
3484 (print_one_breakpoint_location): Ditto.
3485 (dprintf_style_agent): New global.
3486 (dprintf_style_enums): Add dprintf_style_agent.
3487 (update_dprintf_command_list): Add agent case.
3488 (agent_printf_command): New function.
3489 (_initialize_breakpoint): Add new commands.
3490 * common/ax.def (printf): New bytecode.
3491 * ax.h (ax_string): Declare.
3492 * ax-gdb.h (gen_printf): Declare.
3493 * ax-gdb.c: Include cli-utils.h, format.h.
3494 (gen_printf): New function.
3495 (maint_agent_print_command): New function.
3496 (_initialize_ax_gdb): Add maint agent-printf command.
3497 * ax-general.c (ax_string): New function.
3498 (ax_print): Add printf disassembly.
3499 * Makefile.in (SFILES): Add format.c
3500 (COMMON_OBS): Add format.o.
3501 * common/format.h: New file.
3502 * common/format.c: New file.
3503 * printcmd.c: Include format.h.
3504 (ui_printf): Call parse_format_string.
3505 * remote.c (remote_state): New field breakpoint_commands.
3506 (PACKET_BreakpointCommands): New enum.
3507 (remote_breakpoint_commands_feature): New function.
3508 (remote_protocol_features): Add new BreakpointCommands entry.
3509 (remote_can_run_breakpoint_commands): New function.
3510 (remote_add_target_side_commands): New function.
3511 (remote_insert_breakpoint): Call it.
3512 (remote_insert_hw_breakpoint): Ditto.
3513 (_initialize_remote): Add new packet configuration for
3514 target-side breakpoint commands.
3515 * target.h (struct target_ops): New field
3516 to_can_run_breakpoint_commands.
3517 (target_can_run_breakpoint_commands): New macro.
3518 * target.c (update_current_target): Handle
3519 to_can_run_breakpoint_commands.
3521 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3523 Execute -ix and -iex only after system and user gdbinit files.
3524 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3525 processing down after gdbinit files.
3527 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3529 Add fnmatch-gnu module.
3530 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3531 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3532 * gnulib/aclocal.m4: Regenerate.
3533 * gnulib/config.in: Regenerate.
3534 * gnulib/configure: Regenerate.
3535 * gnulib/import/dummy.c: Remove.
3536 * gnulib/import/Makefile.am: Regenerate.
3537 * gnulib/import/Makefile.in: Likewise.
3538 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3539 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3540 * gnulib/import/alloca.c: New file.
3541 * gnulib/import/alloca.in.h: Likewise.
3542 * gnulib/import/config.charset: Likewise.
3543 * gnulib/import/fnmatch.c: Likewise.
3544 * gnulib/import/fnmatch.in.h: Likewise.
3545 * gnulib/import/fnmatch_loop.c: Likewise.
3546 * gnulib/import/localcharset.c: Likewise.
3547 * gnulib/import/localcharset.h: Likewise.
3548 * gnulib/import/m4/alloca.m4: Likewise.
3549 * gnulib/import/m4/codeset.m4: Likewise.
3550 * gnulib/import/m4/configmake.m4: Likewise.
3551 * gnulib/import/m4/fcntl-o.m4: Likewise.
3552 * gnulib/import/m4/fnmatch.m4: Likewise.
3553 * gnulib/import/m4/glibc21.m4: Likewise.
3554 * gnulib/import/m4/localcharset.m4: Likewise.
3555 * gnulib/import/m4/locale-fr.m4: Likewise.
3556 * gnulib/import/m4/locale-ja.m4: Likewise.
3557 * gnulib/import/m4/locale-zh.m4: Likewise.
3558 * gnulib/import/m4/mbrtowc.m4: Likewise.
3559 * gnulib/import/m4/mbsinit.m4: Likewise.
3560 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3561 * gnulib/import/m4/mbstate_t.m4: Likewise.
3562 * gnulib/import/m4/stdbool.m4: Likewise.
3563 * gnulib/import/m4/wchar_h.m4: Likewise.
3564 * gnulib/import/m4/wctype_h.m4: Likewise.
3565 * gnulib/import/m4/wint_t.m4: Likewise.
3566 * gnulib/import/mbrtowc.c: Likewise.
3567 * gnulib/import/mbsinit.c: Likewise.
3568 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3569 * gnulib/import/mbsrtowcs-state.c: Likewise.
3570 * gnulib/import/mbsrtowcs.c: Likewise.
3571 * gnulib/import/ref-add.sin: Likewise.
3572 * gnulib/import/ref-del.sin: Likewise.
3573 * gnulib/import/stdbool.in.h: Likewise.
3574 * gnulib/import/streq.h: Likewise.
3575 * gnulib/import/strnlen1.c: Likewise.
3576 * gnulib/import/strnlen1.h: Likewise.
3577 * gnulib/import/verify.h: Likewise.
3578 * gnulib/import/wchar.in.h: Likewise.
3579 * gnulib/import/wctype.in.h: Likewise.
3581 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3583 Support shell wildcards for 'set auto-load safe-path'.
3584 * auto-load.c: Include fnmatch.h.
3585 (filename_is_in_dir): Rename to ...
3586 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3587 it. Update function comment. Rename dir_len to pattern_len. New
3588 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3589 messages. Use gdb_filename_fnmatch.
3590 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3592 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3593 * defs.h (gdb_filename_fnmatch): New declaration.
3594 * utils.c: Include fnmatch.h.
3595 (gdb_filename_fnmatch): New function.
3597 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3599 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3600 `-probe' and `-probe-stap' options.
3602 2012-07-01 Yao Qi <yao@codesourcery.com>
3604 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3605 always_inserted_off, and always_inserted_enums.
3606 Change always_inserted_mode's type to 'enum auto_boolean'.
3607 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3609 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3610 of add_setshow_enum_cmd.
3611 * infrun.c: Remove can_use_displaced_stepping_auto,
3612 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3613 can_use_displaced_stepping_enum.
3614 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3615 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3616 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3617 add_setshow_enum_cmd.
3619 2012-06-30 Doug Evans <dje@google.com>
3621 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3622 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3623 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3625 2012-06-29 Doug Evans <dje@google.com>
3627 * linespec.c: #include "stack.h".
3628 (decode_line_with_current_source): Moved here from symtab.c and
3629 renamed from decode_line_spec. All callers updated.
3630 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3631 renamed from decode_line_spec_1. All callers updated.
3632 * linespec.h (decode_line_with_current_source): Move declaration here
3633 from symtab.h and renamed from decode_line_spec.
3634 (decode_line_with_last_displayed): Move declaration here from symtab.h
3635 and renamed from decode_line_spec_1.
3636 * macrocmd.c: #include "linespec.h".
3637 * symtab.c: Remove #include "linespec.h".
3639 2012-06-28 Doug Evans <dje@google.com>
3641 * dwarf2read.c (get_cu_length): New function.
3642 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3643 (create_debug_types_hash_table): Ditto.
3644 (init_cutu_and_read_dies): Ditto.
3645 (init_cutu_and_read_dies_no_follow): Ditto.
3647 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3649 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3650 (struct abbrev_table): Define.
3651 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3653 (init_cutu_and_read_dies): Update.
3654 (abbrev_table_alloc_abbrev): New function. Replaces
3655 dwarf_alloc_abbrev. All callers updated.
3656 (abbrev_table_add_abbrev): New function.
3657 (abbrev_table_lookup_abbrev): New function. Replaces
3658 dwarf2_lookup_abbrev. All callers updated.
3659 (abbrev_table_read_table): New function. Contents moved here from
3660 dwarf2_read_abbrevs.
3661 (dwarf2_read_abbrevs): Call it.
3662 (abbrev_table_free): New function.
3663 (dwarf2_free_abbrev_table): Call it.
3665 2012-06-28 Stan Shebs <stan@codesourcery.com>
3667 * osdata.c (info_osdata_command): Filter out "Title" columns
3669 * common/linux-osdata.c (struct osdata_type): Add title field.
3670 (osdata_table): Add titles to each entry.
3671 (linux_command_xfer_osdata): Add a column for title data.
3673 2012-06-28 Stan Shebs <stan@codesourcery.com>
3675 Make logging work for MI.
3677 * interps.h (interp_set_logging_ftype): New typedef.
3678 (struct interp_procs): New field set_logging_proc.
3679 (current_interp_set_logging): Declare.
3680 * interps.c (current_interp_set_logging): New function.
3681 * cli/cli-logging.c: Include interps.h.
3682 (set_logging_redirect): Call current_interp_set_logging.
3683 (pop_output_files): Ditto.
3684 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3685 * mi/mi-console.h (mi_console_set_raw): Declare.
3686 * mi/mi-console.c (mi_console_set_raw): New function.
3687 * mi/mi-interp.c (saved_raw_stdout): New global.
3688 (mi_set_logging): New function.
3689 (_initialize_mi_interp): Add it to interp procs.
3691 2012-06-28 Doug Evans <dje@google.com>
3693 * symtab.c (lookup_symbol_aux_objfile): Use
3694 ALL_OBJFILE_PRIMARY_SYMTABS.
3696 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3698 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3700 * common/buffer.c: Include inttypes.h and stdint.h.
3701 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3703 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 Pedro Alves <palves@redhat.com>
3706 * gdbthread.h (ALL_THREADS): New macro.
3707 (thread_list): Declare.
3708 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3709 going, but instead fall through to the stepping handling.
3710 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3711 the passed in signal. Adjust debug output.
3712 (resume_callback): Rename to ...
3713 (linux_nat_resume_callback): ... this. Pass the thread's last
3714 stop signal, if in "pass" state.
3715 (linux_nat_resume): Adjust to rename.
3716 (stop_wait_callback): New assertion. Don't respawn signals;
3717 instead let the LWP remain with SIGNALLED set.
3718 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3719 * remote.c (append_pending_thread_resumptions): New.
3720 (remote_vcont_resume): Call it.
3721 * target.h (target_resume): Extend comment.
3723 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3725 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3727 2012-06-27 Doug Evans <dje@google.com>
3729 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3730 Delete have_addr_base, unused. All uses updated.
3731 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3732 (dwarf2_get_pc_bounds): Add ranges_base.
3733 (dwarf2_record_block_ranges): Ditto.
3735 2012-06-27 Tom Tromey <tromey@redhat.com>
3738 * varobj.c (varobj_create): Update.
3739 (varobj_set_value): Update.
3740 * tracepoint.c (validate_actionline): Update.
3741 (encode_actions_1): Update.
3742 * parse.c (parse_exp_1): Add 'pc' argument.
3743 (parse_exp_in_context): Add 'pc' argument. Change how
3744 expression_context_pc is set.
3745 (parse_expression): Update.
3746 (parse_field_expression): Update.
3747 * expression.h (parse_exp_1): Update.
3748 * eval.c (parse_to_comma_and_eval): Update.
3749 * breakpoint.c (set_breakpoint_condition): Update.
3750 (update_watchpoint): Update.
3751 (init_breakpoint_sal): Update
3752 (find_condition_and_thread): Update.
3753 (watch_command_1): Update.
3754 (update_breakpoint_locations): Update.
3755 * ada-lang.c (ada_read_renaming_var_value): Update.
3756 (create_excep_cond_exprs): Update.
3758 2012-06-27 Doug Evans <dje@google.com>
3760 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3763 2012-06-26 Doug Evans <dje@google.com>
3765 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3767 (error_check_comp_unit_head): New arg abbrev_section. All callers
3769 (read_and_check_comp_unit_head): Ditto.
3770 (read_and_check_type_unit_head): Ditto.
3772 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3774 New attribute 'last' for gdb.Symtab_and_line.
3775 * NEWS (Python Scripting): Add entry about the new attribute.
3776 * python/py-symtab.c (salpy_get_last): New function which
3777 implements the get method for the 'last' attribute of
3778 gdb.Symtab_and_line.
3779 (sal_object_getset): Add entry for the 'last' attribute.
3781 2012-06-26 Doug Evans <dje@google.com>
3783 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3784 (dwo_sections): Add macinfo, macro.
3785 (dwarf2_locate_dwo_sections): Watch for macro sections.
3786 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3787 All callers updated. Handle DWO files.
3789 * NEWS: Mention new options "set debug dwarf2-read" and
3790 "set debug symtab-create".
3791 * dwarf2read.c (dwarf2_read_debug): New static global.
3792 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3793 (process_queue): Ditto.
3794 (process_full_comp_unit): Ditto.
3795 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3796 * elfread.c (elf_symfile_read): Add debugging printf.
3797 * minsyms.c (install_minimal_symbols): Ditto.
3798 * psymtab.c (allocate_psymtab): Ditto.
3799 * symfile.c (allocate_symtab): Ditto.
3800 * symtab.c (symtab_create_debug): New global.
3801 (_initialize_symtab): Add new option "set debug symtab-create".
3802 * symtab.h (symtab_create_debug): Declare.
3804 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3805 (lookup_dwo_type_unit): Ditto.
3807 2012-06-26 Roland McGrath <roland@hack.frob.com>
3808 H.J. Lu <hongjiu.lu@intel.com>
3810 * amd64-linux-nat.c: Include <sys/user.h>.
3811 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3812 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3813 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3815 * configure.ac: Check if the fs_base and gs_base members of
3816 `struct user_regs_struct' exist.
3817 * config.in: Regenerated.
3818 * configure: Likewise.
3820 2012-06-25 Michael Eager <eager@eagercon.com>
3823 * python/python.c (gdbpy_write): Check for interrupted output.
3825 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3827 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3828 register as a stack alignment in ARM mode.
3830 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3832 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3833 * gnulib/config.in: Regenerate.
3834 * gnulib/configure: Likewise.
3835 * gnulib/import/m4/extensions.m4: Update it.
3836 * gnulib/import/m4/gnulib-common.m4: Likewise.
3837 * gnulib/import/m4/memmem.m4: Likewise.
3838 * gnulib/import/m4/mmap-anon.m4: Likewise.
3839 * gnulib/import/m4/multiarch.m4: Likewise.
3840 * gnulib/import/stdint.in.h: Likewise.
3842 2012-06-24 Yao Qi <yao@codesourcery.com>
3844 * corefile.c (write_memory_with_notification): New.
3845 * gdbcore.h: Declare write_memory_with_notification.
3846 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3847 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3848 * valops.c (value_assign): Likewise.
3849 * python/py-inferior.c (infpy_write_memory): Call
3850 'write_memory_with_notification'.
3852 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3854 * cc-with-index.sh: Use also -ex "set auto-load no".
3856 2012-06-23 Doug Evans <dje@google.com>
3859 * NEWS: Document additions to .gdb_index.
3860 * dwarf2read.c: #include "gdb/gdb-index.h".
3861 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3862 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3863 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3864 (dwarf2_read_index): Recognize version 7.
3865 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3866 block_kind, domain): All callers updated.
3867 (dw2_find_symbol_file): Handle new index CU values.
3868 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3869 (add_index_entry): New args is_static, kind. All callers updated.
3870 (offset_type_compare, uniquify_cu_indices): New functions
3871 (symbol_kind): New function.
3872 (write_psymtabs_to_index): Remove duplicate CU values.
3873 (write_psymtabs_to_index): Write .gdb_index version 7.
3875 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3877 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3878 * configure: Regenerate.
3880 2012-06-20 Yao Qi <yao@codesourcery.com>
3882 * python/py-inferior.c: Update comments of infpy_read_memory
3883 and infpy_write_memory.
3885 2012-06-19 Tom Tromey <tromey@redhat.com>
3888 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3889 (push_type_address_space): Remove.
3890 * parse.c (insert_into_type_stack): New function.
3891 (insert_type): Likewise.
3892 (insert_type_address_space): Rename from push_type_address_space.
3893 Insert tp_space_identifier.
3894 * c-exp.y (ptr_operator): New production.
3895 (abs_decl): Use ptr_operator.
3896 (space_identifier): Call insert_type_address_space.
3897 (ptype): Don't use const_or_volatile_or_space_identifier.
3898 (const_or_volatile_noopt): Call insert_type.
3899 (conversion_type_id, conversion_declarator): New productions.
3900 (operator): Use conversion_type_id.
3902 2012-06-18 Doug Evans <dje@google.com>
3904 * symtab.h (minimal_symbol): New member created_by_gdb.
3905 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3907 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3908 (search_symbols): Call it instead of lookup_symbol.
3909 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3911 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3912 Adjust address for DW_OP_GNU_addr_index.
3913 * dwarf2expr.h (dwarf_expr_context): Update comment.
3914 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3915 all callers updated. Handle TLS vars described with
3916 DW_OP_GNU_const_index.
3917 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3918 and DW_OP_GNU_const_index.
3919 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3921 * block.c (find_block_in_blockvector): Make explicit the fact that we
3922 ignore GLOBAL_BLOCK.
3924 2012-06-18 Tom Tromey <tromey@redhat.com>
3926 * c-exp.y (operator): Remove trailing space after "delete" and
3929 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3930 Jan Kratochvil <jan.kratochvil@redhat.com>
3932 Switch i386 and derived targets to ON_STACK.
3933 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3934 (amd64_dicos_init_abi): Remove its installment.
3935 * dicos-tdep.c (dicos_init_abi): Remove the
3936 set_gdbarch_call_dummy_location call. Update the comment here.
3937 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3938 (i386_dicos_init_abi): Remove its installment.
3939 * i386-tdep.c (i386_push_dummy_code): New function.
3940 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3941 i386_push_dummy_code.
3943 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3945 Remove stale dummy frames.
3946 * breakpoint.c: Include dummy-frame.h.
3947 (longjmp_breakpoint_ops): New variable.
3948 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3949 bp_longjmp_call_dummy.
3950 (bpstat_what, bptype_string, print_one_breakpoint_location)
3951 (init_bp_location): Support bp_longjmp_call_dummy.
3952 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3953 (set_longjmp_breakpoint_for_call_dummy)
3954 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3956 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3957 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3958 FIXME comment and extend the other comment for bp_call_dummy.
3959 (set_longjmp_breakpoint_for_call_dummy)
3960 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3961 * dummy-frame.c: Include gdbthread.h.
3962 (pop_dummy_frame_bpt): New function.
3963 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3964 (dummy_frame_discard): New function.
3965 (cleanup_dummy_frames): Update the comment about longjmps.
3966 * dummy-frame.h (dummy_frame_discard): New declaration.
3967 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3968 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3969 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3970 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3971 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3972 keep_going if IS_LONGJMP and there is no other reason to stop.
3974 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3976 * remote-sim.c (sim_command_completer): Initialize
3979 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3981 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3982 * dwarf2loc.c (call_site_parameter_matches): Support
3983 CALL_SITE_PARAMETER_PARAM_OFFSET.
3984 (needs_dwarf_reg_entry_value): Push stub value.
3985 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3986 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3987 * gdbtypes.h (enum call_site_parameter_kind): New item
3988 CALL_SITE_PARAMETER_PARAM_OFFSET.
3989 (struct call_site.parameter.u): New field param_offset.
3991 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3993 Code cleanup: Generalize call_site.parameter key.
3994 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3995 variable dwarf_reg. New variable kind_u. Update parameters to
3996 push_dwarf_reg_entry_value.
3997 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3998 * dwarf2expr.h (enum call_site_parameter_kind)
3999 (union call_site_parameter_u): Forward declarations.
4000 (struct dwarf_expr_context_funcs): Update parameters and their
4001 description for push_dwarf_reg_entry_value.
4002 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4003 * dwarf2loc.c (call_site_parameter_matches): New function.
4004 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4005 description. Use call_site_parameter_matches.
4006 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4007 Update parameters and their description.
4008 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4009 New variable kind_u. Adjust the caller for updated parameters.
4010 (needs_dwarf_reg_entry_value): Update parameters.
4011 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4012 instead of attr. Update for the changed fields of struct
4013 call_site_parameter.
4014 * gdbtypes.h: Include dwarf2expr.h.
4015 (enum call_site_parameter_kind): New.
4016 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4017 fb_offset into new union u.
4019 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4021 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4022 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4025 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4027 * amd64-linux-nat.c (compat_x32_clock_t): New.
4028 (compat_x32_siginfo_t): Likewise.
4029 (compat_x32_siginfo_from_siginfo): Likewise.
4030 (siginfo_from_compat_x32_siginfo): Likewise.
4031 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4032 and siginfo_from_compat_x32_siginfo for x32.
4034 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4036 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4038 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4040 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4041 instead of gdbarch_ptr_bit.
4042 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4043 (amd64_supply_native_gregset): Likewise.
4044 (amd64_collect_native_gregset): Likewise.
4045 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4046 (amd64_supply_xsave): Likewise.
4047 (amd64_collect_fxsave): Likewise.
4048 (amd64_collect_xsave): Likewise.
4050 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4052 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4053 (amd64_linux_read_description): Check DS segment register for
4056 2012-06-15 Tom Tromey <tromey@redhat.com>
4058 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4059 init_cutu_and_read_dies.
4061 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4063 * MAINTAINERS (Write After Approval): Add myself to the list.
4065 2012-06-15 Tom Tromey <tromey@redhat.com>
4067 * valops.c (value_find_oload_method_list): Now static.
4068 * value.h (value_find_oload_method_list): Don't declare.
4070 2012-06-15 Tom Tromey <tromey@redhat.com>
4072 * valops.c (find_overload_match): Use value_ind.
4074 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4076 * infrun.c (handle_inferior_event): Correct indentation.
4078 2012-06-14 Doug Evans <dje@google.com>
4080 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4081 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4083 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4084 updated. Handle DEBUG_LOC_START_LENGTH.
4085 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4086 (loclist_describe_location): Ditto.
4088 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4091 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4092 after hiding inline functions.
4094 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4096 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4097 _initialize_inf_ttrace.
4099 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4101 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4102 _initialize_hppa_hpux_nat.
4104 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4106 * remote-sim.c (sim_command_completer): Change type of return
4107 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4109 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4110 Jan Kratochvil <jan.kratochvil@redhat.com>
4113 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4114 stack on a 16-byte boundary.
4116 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4118 * jit.c (finalize_symtab): Set function's return type to 'void' by
4121 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4122 H.J. Lu <hongjiu.lu@intel.com>
4124 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4125 Move bits common to both the classic LP64 and the new x32 ILP32
4127 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4128 (amd64_x32_linux_init_abi): New function.
4129 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4132 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4133 * i386-tdep.c (i386_pseudo_register_name): Make public.
4134 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4135 * amd64-tdep.c (amd64_dword_names): Add "eip".
4136 (amd64_x32_pseudo_register_type): New function
4137 (amd64_x32_init_abi): New function.
4139 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4142 * inferior.h (struct inferior_suspend_state): Comment out.
4143 (struct inferior): Comment out the field suspend.
4144 * infrun.c (struct infcall_suspend_state): Comment out the field
4146 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4149 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4151 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4152 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4153 function comment. Return ERROR for unresolved cases. Implement
4154 returning proper NAME.
4155 (yylex): Accept also NAME from classify_inner_name.
4156 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4157 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4159 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4161 2012-06-13 Tom Tromey <tromey@redhat.com>
4163 * breakpoint.c (condition_completer): New function.
4164 (_initialize_breakpoint): Use it.
4165 * value.c (complete_internalvar): New function.
4166 * value.h (complete_internalvar): Declare.
4168 2012-06-13 Tom Tromey <tromey@redhat.com>
4170 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4171 * breakpoint.c (catch_syscall_completer): Return a VEC.
4172 * cli/cli-cmds.c (complete_command): Update.
4173 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4174 (complete_on_enum): Likewise.
4175 * command.h: Include gdb_vecs.h.
4176 (completer_ftype): Change return type.
4177 (complete_on_cmdlist, complete_on_enum): Likewise.
4178 * completer.c (noop_completer, filename_completer)
4179 (location_completer): Return a VEC.
4180 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4182 (expression_completer, complete_line_internal, complete_line)
4183 (command_completer): Return a VEC.
4184 (gdb_completion_word_break_characters, line_completion_function):
4186 * completer.h: Include gdb_vecs.h.
4187 (complete_line, noop_completer, filename_completer)
4188 (expression_completer, location_completer, command_completer):
4190 * f-lang.c (f_word_break_characters): Return a VEC.
4191 * interps.c (interpreter_completer): Return a VEC.
4192 * language.h (struct language_defn)
4193 <la_make_symbol_completion_list>: Return a VEC.
4194 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4195 * symtab.c (free_completion_list): Take a VEC.
4196 (return_val_size, return_val_index): Remove.
4197 (return_val): Now a VEC.
4198 (completion_list_add_name): Update.
4199 (default_make_symbol_completion_list_break_on)
4200 (default_make_symbol_completion_list, make_symbol_completion_list)
4201 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4203 (add_filename_to_list): Update.
4204 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4206 (maybe_add_partial_symtab_filename): Update.
4207 (make_source_files_completion_list): Return a VEC.
4208 * symtab.h (default_make_symbol_completion_list_break_on)
4209 (default_make_symbol_completion_list, make_symbol_completion_list)
4210 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4211 (make_source_files_completion_list): Update.
4213 2012-06-13 Tom Tromey <tromey@redhat.com>
4215 * breakpoint.c (add_catch_command): Use completer_ftype.
4216 * breakpoint.h: Include command.h.
4217 (add_catch_command): Use completer_ftype.
4218 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4219 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4220 Use completer_ftype.
4221 * command.h (completer_ftype): New typedef.
4222 (set_cmd_completer): Use it.
4223 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4226 2012-06-13 Pedro Alves <palves@redhat.com>
4228 Partial revert of previous change.
4230 * serial.c (scb_base): New global.
4231 (serial_for_fd): New.
4232 (serial_open, serial_fdopen_ops): Link new serial in open serials
4234 (do_serial_close): Unlink serial from the open serials chain.
4236 2012-06-12 Pedro Alves <palves@redhat.com>
4238 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4240 (prepare_for_detach): No longer context switch here in non-stop
4242 (fetch_inferior_event): Ditto.
4243 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4244 to the event thread before removing breakpoints. Switch to the
4245 event thread before inserting breakpoints and resuming.
4246 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4247 event thread before resuming.
4248 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4249 Switch to the event thread before removing breakpoints.
4251 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4253 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4254 special characters correctly for the Windows shells. See
4255 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4257 [!__MINGW32__]: Remove extra double quote character from special
4260 2012-06-11 Stan Shebs <stan@codesourcery.com>
4262 * ui-out.h: Remove #if 0 declarations.
4263 * ui-out.c: Remove #if 0 functions.
4265 2012-06-11 Pedro Alves <palves@redhat.com>
4267 * ser-base.c (run_async_handler_and_reschedule): New.
4268 (fd_event, push_event): Use it.
4269 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4270 reference count to 1.
4271 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4273 (serial_is_open, serial_ref, serial_unref): New.
4274 * serial.h (serial_open): Adjust comment.
4275 (serial_is_open): Declare.
4276 (serial_close): Adjust comment.
4277 (serial_ref, serial_unref) Declare.
4278 (struct serial): New field 'refcnt'.
4280 2012-06-11 Pedro Alves <palves@redhat.com>
4282 Remove #if 0'd "connect" command, and unnecessary associated
4283 refcounting and serial reuse bits.
4285 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4286 * serial.c (last_serial_opened): Delete.
4288 (serial_open): Adjust.
4289 (serial_for_fd): Delete.
4290 (serial_fdopen_ops, do_serial_close): Adjust.
4291 (serial_fdopen_ops): Adjust.
4293 2012-06-11 Pedro Alves <palves@redhat.com>
4295 * serial.c (do_serial_close): Remove early return when SCB is
4298 2012-06-11 Tom Tromey <tromey@redhat.com>
4300 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4302 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4304 Fix regression by the "ambiguous linespec" series.
4305 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4306 get_last_displayed_symtab and get_last_displayed_line and depending
4309 2012-06-11 Tom Tromey <tromey@redhat.com>
4311 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4312 (dw2_find_symbol_file): Use it.
4314 2012-06-11 Michael Eager <eager@eagercon.com>
4316 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4317 * mips-linux-tdep.h (mips_signals): New
4319 2012-06-11 Tom Tromey <tromey@redhat.com>
4321 * infrun.c (handle_inferior_event)
4322 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4324 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4325 exception logic in all cases. Update comments.
4326 (insert_longjmp_resume_breakpoint): Set the exception resume
4329 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4331 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4333 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4335 * valarith.c (binop_types_user_defined_p): Fix a typo.
4337 2012-06-08 Yao Qi <yao@codesourcery.com>
4338 Chung-Lin Tang <cltang@codesourcery.com>
4340 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4341 * arch-utils.h: Declare.
4342 * gdbarch.sh: Add return_in_first_hidden_param_p.
4343 * gdbarch.c, gdbarch.h: Regenerated.
4344 * infcall.c (call_function_by_hand): Call
4345 gdbarch_return_in_first_hidden_param_p instead of
4346 language_pass_by_reference.
4348 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4349 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4350 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4351 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4352 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4353 `cplus_return_struct_by_reference'.
4354 (tic6x_return_value): Handle language cplusplus.
4355 (tic6x_return_in_first_hidden_param_p): New.
4356 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4358 2012-06-07 Doug Evans <dje@google.com>
4360 * dwarf2read.c (dwarf2_cu): Add comment.
4362 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4364 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4366 (mips_eabi_push_dummy_call): Likewise.
4367 (mips_n32n64_push_dummy_call): Likewise.
4368 (mips_o32_push_dummy_call): Likewise.
4369 (mips_o64_push_dummy_call): Likewise.
4371 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4373 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4375 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4377 * mips-tdep.c (mips_pseudo_register_type): Use
4378 mips_float_register_p.
4380 2012-06-06 Pedro Alves <palves@redhat.com>
4382 * infrun.c (handle_inferior_event): Remove calls to
4383 reinit_frame_cache that follow a context_switch call.
4385 2012-06-06 Pedro Alves <palves@redhat.com>
4387 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4388 context_switch and remove stale comment.
4390 2012-06-06 Pedro Alves <palves@redhat.com>
4392 * infrun.c (struct execution_control_state): Remove
4393 `new_thread_event' field.
4394 (handle_inferior_event): Simplify new threads handling; don't
4395 resume the inferior if we find a new thread.
4397 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4399 * NEWS: Document the deprecation of SH's 'regs' command.
4400 * inferior.h (all_registers_info): Add function declaration.
4401 * sh-tdep.c (sh_show_regs): Remove variable.
4402 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4403 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4404 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4405 (sh_show_regs_command): Remove functions.
4406 (sh_gdbarch_init): Don't set sh_show_regs.
4407 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4408 'info all-registers'.
4409 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4410 (sh64_show_regs): Remove functions.
4411 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4413 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4415 * configure.ac: Move development=true below AC_INIT.
4416 * configure: Regenerate.
4418 2012-06-05 Stan Shebs <stan@codesourcery.com>
4420 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4423 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4425 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4426 argument as ssize_t.
4427 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4428 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4429 * target.c (target_read_stack, target_write_memory)
4430 (target_write_raw_memory): Likewise.
4431 * target.h (target_read_stack, target_write_memory)
4432 (target_write_raw_memory): Likewise.
4434 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4436 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4437 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4438 * target.c (target_read_memory): Change LEN to ssize_t.
4439 * target.h (target_read_memory): Change LEN to ssize_t.
4441 2012-06-05 Pedro Alves <palves@redhat.com>
4445 * breakpoint.c (until_break_command): Only fetch the selected
4446 frame after decode_line_1.
4448 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4450 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4451 event breakpoint at _start, __start or main if a program
4452 interpreter is not found.
4454 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4456 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4458 * windows-tdep.c: #include "objfiles.h".
4459 (windows_iterate_over_objfiles_in_search_order): New function.
4460 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4461 iterate_over_objfiles_in_search_order gdbarch method to
4462 windows_iterate_over_objfiles_in_search_order.
4463 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4465 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4467 * gdbarch.sh: Add generation of
4468 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4469 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4470 (iterate_over_objfiles_in_search_order): New gdbarch method.
4471 * gdbarch.h, gdbarch.c: Regenerate.
4472 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4474 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4476 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4477 out of lookup_symbol_aux_symtabs.
4478 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4479 call to lookup_symbol_aux_objfile.
4480 (struct global_sym_lookup_data): New type.
4481 (lookup_symbol_global_iterator_cb): New function.
4482 (lookup_symbol_global): Search for symbol using
4483 gdbarch_iterate_over_objfiles_in_search_order and
4484 lookup_symbol_global_iterator_cb.
4485 * findvar.c (struct minsym_lookup_data): New type.
4486 (minsym_lookup_iterator_cb): New function.
4487 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4488 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4489 and minsym_lookup_iterator_cb.
4491 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4493 Revert the following patch:
4494 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4495 try locating the symbol in the symbol's own objfile first, before
4496 extending the search to all objfiles.
4497 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4498 out of lookup_symbol_aux_symtabs.
4499 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4500 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4501 Do not search EXCLUDE_OBJFILE.
4502 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4503 (lookup_symbol_global): Search for matches in the block's objfile
4504 first, before searching all other objfiles.
4506 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4508 * breakpoint.c (find_condition_and_thread): Stop parsing
4509 as soon as the first invalid keyword is found.
4511 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4513 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4515 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4517 * config/djgpp/djcheck.sh: Add copyright header.
4519 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4521 * copyright.py (update_files, main): Fix path to update-copyright
4524 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4526 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4527 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4528 for which a reminder to update by hand is printed.
4530 2012-06-04 Doug Evans <dje@google.com>
4532 * buildsym.c (make_blockvector): Add comment.
4534 2012-06-04 Pedro Alves <palves@redhat.com>
4536 * arch-utils.c (default_gdb_signal_from_target): Delete.
4537 * arch-utils.h (default_gdb_signal_from_target): Delete.
4538 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4539 gdbarch_gdb_signal_from_target_p.
4540 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4542 * gdbarch.h: Regenerate.
4543 * gdbarch.c: Regenerate.
4545 2012-06-04 Pedro Alves <palves@redhat.com>
4547 * gdbarch.sh (gdb_signal_from_target): Mention that the
4548 implementation of the method must be host independent.
4549 * gdbarch.h: Regenerate.
4551 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4553 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4555 (target_read_memory_bfd): New function.
4556 (symbol_file_add_from_memory): Use it.
4558 2012-06-03 Doug Evans <dje@google.com>
4560 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4562 (basic_lookup_transparent_type): Ditto.
4564 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4565 (ALL_PRIMARY_SYMTABS): Use it.
4566 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4567 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4568 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4569 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4570 (basic_lookup_transparent_type): Ditto.
4572 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4574 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4575 it to optimize resolution of demangled name.
4577 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * configure.ac (development): Define new variable.
4580 Call AC_CHECK_LIB for mcheck if $development.
4581 (ERROR_ON_WARNING): Enable it by default only if $development.
4582 * config.in: Regenerate.
4583 * configure: Regenerate.
4585 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4587 * target.c (target_read_memory): Make LEN argument as size_t.
4588 * target.h (target_read_memory): Likewise.
4590 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4592 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4594 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4596 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4597 BookE interface for PowerPC server processors if not available
4598 in the Linux Kernel.
4600 2012-05-31 Keith Seitz <keiths@redhat.com>
4602 * linespec.c (decode_objc): Add cleanup to free
4604 (find_linespec_symbols): Add cleanup to free CLASSES.
4605 * symfile.c (find_separate_debug_file_by_debuglink): Add
4606 cleanup to free DEBUGLINK.
4607 * ui-out.c (clear_header_list): No need to check if
4608 HEADER_NEXT.COLHDR is NULL.
4609 Free HEADER_NEXT.COL_NAME.
4611 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4613 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4616 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4618 * configure.host (gdb_host_cpu): Handle tilegx*.
4619 (gdb_host): Handle tilegx-*-linux*.
4620 * tilegx-linux-nat.c: New file.
4621 * config/tilegx/linux.mh: New file.
4623 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4625 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4626 tilegx-linux-tdep.o.
4627 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4628 tilegx-linux-tdep.c.
4629 * configure.tgt: Handle tilegx-*-linux*.
4630 * tilegx-tdep.h: New file.
4631 * tilegx-tdep.c: New file.
4632 * tilegx-linux-tdep.c: New file.
4633 * regformats/reg-tilegx.dat: New file.
4635 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4637 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4638 accounting of hw watchpoints on ppc.
4640 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4642 * source.c (openp): Expand tilde in path entries.
4644 2012-05-29 Doug Evans <dje@google.com>
4646 * buildsym.c (block_compar): Fix comment.
4647 (end_symtab): Fix and clarify some comments.
4649 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4650 cleanup_undefined_types.
4651 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4652 All callers updated.
4654 2012-05-29 Tom Tromey <tromey@redhat.com>
4656 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4658 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4659 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4661 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4664 2012-05-29 Tristan Gingold <gingold@adacore.com>
4666 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4667 (struct darwin_info): ... New struct.
4668 (solib_darwin_pspace_data): New variable.
4669 (darwin_pspace_data_cleanup): New function.
4670 (get_darwin_info): Likewise.
4671 (darwin_dyld_version_ok, darwin_load_image_infos)
4672 (darwin_solib_get_all_image_info_addr_at_init)
4673 (darwin_solib_read_all_image_info_addr): Add info argument.
4675 (darwin_current_sos): Use per pspace structure.
4676 (darwin_solib_create_inferior_hook): Likewise.
4677 (darwin_clear_solib): Likewise.
4678 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4680 2012-05-28 Pedro Alves <palves@redhat.com>
4682 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4683 block that uses them. Clear ecss before handling each event.
4685 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4687 * solib-svr4.c (svr4_current_sos): New comment on
4688 svr4_current_sos_via_xfer_libraries fall back.
4690 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4693 it as a fallback for TYPE_IS_OPAQUE.
4694 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4695 symbols for lookup_symbol.
4697 2012-05-24 John Steele Scott <toojays@toojays.net>
4699 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4700 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4701 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4702 (check_producer): ... this new function, which also checks for ICC
4703 and caches the result.
4704 (producer_is_icc): New function.
4705 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4708 2012-05-24 Pedro Alves <palves@redhat.com>
4712 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4713 (default_gdb_signal_to_target): ... this. Add comment.
4714 (default_gdb_signal_from_host): Rename to ...
4715 (default_gdb_signal_from_target): ... this. Add comment.
4716 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4717 (default_gdb_signal_to_target): ... this.
4718 (default_gdb_signal_from_host): Rename to ...
4719 (default_gdb_signal_from_target): ... this.
4720 * corelow.c (core_open): Adjust to naming change. Replace comment.
4721 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4722 (gdb_signal_from_target): ... this. Adjust to
4723 default_gdb_signal_from_host naming change. Extend comment.
4724 (gdb_signal_to_host): Rename to ...
4725 (gdb_signal_to_target): ... this. Adjust to
4726 default_gdb_signal_to_host naming change.
4727 * gdbarch.h, gdbarch.c: Renegerate.
4729 2012-05-24 Pedro Alves <palves@redhat.com>
4733 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4735 2012-05-24 Pedro Alves <palves@redhat.com>
4739 Replace target_signal with gdb_signal throughout.
4741 2012-05-24 Pedro Alves <palves@redhat.com>
4745 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4746 string, instead of reusing the va_list argument.
4748 2012-05-24 Tom Tromey <tromey@redhat.com>
4750 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4753 2012-05-23 Doug Evans <dje@google.com>
4755 * symtab.c (search_symbols): Formatting fixes.
4756 (print_symbol_info): Formatting fixes.
4758 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4759 int64_t change to leb128 API.
4760 (read_encoded_value, decode_frame_entry_1): Ditto.
4761 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4762 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4763 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4764 (execute_stack_op): Ditto.
4765 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4766 (safe_read_uleb128, safe_read_sleb128): Ditto.
4767 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4768 (dwarf2_compile_expr_to_ax): Ditto.
4769 (locexpr_describe_location_piece): Ditto.
4770 (disassemble_dwarf_expression): Ditto.
4771 (locexpr_describe_location_1): Ditto.
4773 2012-05-23 Stan Shebs <stan@codesourcery.com>
4774 Kwok Cheung Yeung <kcy@codesourcery.com>
4776 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4777 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4778 (mi-cmd-info.o): New rule.
4779 * osdata.h (info_osdata_command): New declaration.
4780 * osdata.c (info_osdata_command): Change to non-static.
4781 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4782 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4783 * mi/mi-cmd-info.c: New file.
4785 2012-05-23 Doug Evans <dje@google.com>
4787 * symtab.c (search_symbols): Pass NULL for file_matcher to
4788 expand_symtabs_matching if there are no files to match.
4790 * gdbtypes.c (lookup_typename): Simplify.
4792 2012-05-23 Pedro Alves <palves@redhat.com>
4794 * arch-utils.h (default_target_signal_to_host): Delete.
4795 * arch-utils.c (default_target_signal_to_host): Delete.
4796 * gdbarch.sh (target_signal_to_host): Remove.
4797 * gdbarch.h, gdbarch.c: Regenerate.
4799 2012-05-22 Doug Evans <dje@google.com>
4801 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4803 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4804 (execute_cfa_program): Update to match API of leb128 functions.
4805 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4807 (read_unsigned_leb128, read_signed_leb128): Delete.
4808 (read_initial_length): Change type of buf argument to
4810 (read_encoded_value): Update to match API of leb128 functions.
4811 (decode_frame_entry): Change result to "const gdb_byte *", and
4812 similarly for "start" parameter.
4813 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4814 (dwarf2_build_frame_info): Change local frame_ptr to
4816 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4817 read_uleb128, read_sleb128. All callers updated.
4818 (safe_skip_leb128): New function.
4819 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4820 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4821 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4822 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4823 read_uleb128, read_sleb128.
4824 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4825 (execute_stack_op): Update to match API of leb128 functions.
4826 * dwarf2expr.h: #include "leb128.h".
4827 (read_uleb128, read_sleb128): Delete.
4828 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4829 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4830 * dwarf2loc.c (debug_loc_kind): New enum.
4831 (decode_debug_loc_addresses): New function.
4832 (decode_debug_loc_dwo_addresses): New function.
4833 (dwarf2_find_location_expression): Rewrite.
4834 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4835 (locexpr_describe_location_piece): Ditto.
4836 (disassemble_dwarf_expression): Ditto.
4837 (locexpr_describe_location_1): Ditto.
4838 (loclist_describe_location): Rewrite.
4839 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4840 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4841 (dwarf2_section_buffer_overflow_complaint): Renamed from
4842 dwarf2_macros_too_long_complaint. All callers updated.
4843 (skip_leb128): Delete.
4844 (init_cu_die_reader): Initialize reader->buffer_end.
4845 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4846 (skip_form_bytes): New arg buffer_end. All callers updated.
4847 Replace call to skip_leb128 with gdb_skip_leb128.
4848 (skip_unknown_opcode): New arg mac_end. All callers updated.
4849 (fill_in_loclist_baton): Initialize baton->from_dwo.
4851 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4853 * mips-linux-nat.c (mips_linux_read_description): Use a more
4854 verbose error message.
4856 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4858 * NEWS: Add MIPS/Linux DSP support.
4859 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4860 (SIGCONTEXT_DSPCTL): New macro.
4861 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4862 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4863 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4864 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4865 (N64_SIGCONTEXT_HI3): Likewise.
4866 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4867 (N64_SIGCONTEXT_LO3): Likewise.
4868 (N64_SIGCONTEXT_DSPCTL): Likewise.
4869 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4870 (mips_linux_o32_sigframe_init): Handle DSP registers.
4871 (mips_linux_n32n64_sigframe_init): Likewise.
4873 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4875 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4878 2012-05-22 Pedro Alves <palves@redhat.com>
4880 * target.h (store_waitstatus): Move declaration ...
4881 * inf-child.h (store_waitstatus): ... here.
4882 * target.c: Move inclusion of gdb_wait.h, and ...
4883 (store_waitstatus): ... this ...
4884 * inf-child.c: ... here.
4885 * linux-nat.c: Include inf-child.h.
4886 * rs6000-nat.c: Include inf-child.h.
4887 * spu-linux-nat.c: Include inf-child.h.
4889 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4891 * tracepoint.c (start_tracing): Add missing i18n markup.
4892 (stop_tracing, set_trace_user): Ditto.
4893 (set_trace_notes, set_trace_stop_notes): Ditto.
4895 2012-05-21 Tom Tromey <tromey@redhat.com>
4898 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4900 * value.h (value_cast_pointers): Update.
4901 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4902 (value_cast): Update.
4903 (update_search_result): New function.
4904 (do_search_struct_field): New, from search_struct_field. Check
4905 for ambiguous results.
4906 (search_struct_field): Rewrite.
4907 * infcall.c (value_arg_coerce): Update.
4908 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4909 value_cast_pointers.
4910 * ada-lang.c (ada_convert_actual): Update.
4912 2012-05-21 Tom Tromey <tromey@redhat.com>
4914 * macroexp.c (macro_stringify): Terminate the string.
4916 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4920 * auto-load.c (auto_load_expand_dir_vars): New function.
4921 (auto_load_safe_path_vec_update): Use it, remove the
4922 substitute_path_component call thanks to it.
4923 (auto_load_objfile_script): Remove the debug_file_directory processing.
4924 Use auto_load_expand_dir_vars, remove the substitute_path_component
4926 * configure: Regenerate.
4927 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4928 path. Escape $ also for $debugdir.
4929 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4930 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4932 2012-05-20 Doug Evans <dje@google.com>
4934 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4935 before use. Check for symtab->includes == NULL before scanning it.
4937 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4939 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4941 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4943 * NEWS: Add microMIPS support and "set mips compression",
4944 "show mips compression" commands.
4945 * mips-tdep.h (mips_isa): New enum.
4946 (gdbarch_tdep): Add mips_isa.
4947 (mips_pc_is_mips16): Update prototype.
4948 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4949 * mips-tdep.c (mips_compression_mips16): New variable.
4950 (mips_compression_micromips): Likewise.
4951 (mips_compression_strings): Likewise.
4952 (mips_compression_string): Likewise.
4953 (is_mips16_isa, is_micromips_isa): New functions.
4954 (is_mips16_addr): Rename to...
4955 (is_compact_addr): ... this.
4956 (unmake_mips16_addr): Likewise to...
4957 (unmake_compact_addr): ... this.
4958 (make_mips16_addr): Likewise to...
4959 (make_compact_addr): ... this.
4960 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4962 (mips_elf_make_msymbol_special): Handle microMIPS code.
4963 (msymbol_is_special): Rename to...
4964 (msymbol_is_mips16): ... this.
4965 (mips_make_symbol_special, mips_pc_is_mips16): Update
4967 (msymbol_is_mips, msymbol_is_micromips): New functions.
4968 (mips16_to_32_reg): Rename to...
4969 (mips_reg3_to_reg): ... this.
4970 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4971 (mips_pc_isa): Likewise.
4972 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4974 (mips_fetch_instruction): Pass return status instead of printing
4975 an error message if requested. Handle microMIPS code. Bail out
4977 (micromips_op): New macro.
4978 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4979 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4980 (b6s4_op, b7s3_reg): Likewise.
4981 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4982 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4983 (mips_insn_size): New function.
4984 (mips32_next_pc): Update mips_fetch_instruction call.
4985 (micromips_relative_offset7): New function.
4986 (micromips_relative_offset10): Likewise.
4987 (micromips_relative_offset16): Likewise.
4988 (micromips_pc_insn_size): Likewise.
4989 (micromips_bc1_pc): Likewise.
4990 (micromips_next_pc): Likewise.
4991 (unpack_mips16): Update mips_fetch_instruction call.
4992 (extended_mips16_next_pc): Update according to change to
4994 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4996 (mips16_scan_prologue): Update mips_fetch_instruction call.
4997 Update according to change to mips16_to_32_reg.
4998 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4999 (mips_insn16_frame_base_sniffer): Likewise.
5000 (micromips_decode_imm9): New function.
5001 (micromips_scan_prologue): Likewise.
5002 (mips_micro_frame_cache): Likewise.
5003 (mips_micro_frame_this_id): Likewise.
5004 (mips_micro_frame_prev_register): Likewise.
5005 (mips_micro_frame_sniffer): Likewise.
5006 (mips_micro_frame_unwind): New variable.
5007 (mips_micro_frame_base_address): New function.
5008 (mips_micro_frame_base): New variable.
5009 (mips_micro_frame_base_sniffer): New function.
5010 (mips32_scan_prologue): Update mips_fetch_instruction call.
5011 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5012 rather than for MIPS16.
5013 (mips_insn32_frame_base_sniffer): Likewise.
5014 (mips_addr_bits_remove): Handle microMIPS code.
5015 (deal_with_atomic_sequence): Rename to...
5016 (mips_deal_with_atomic_sequence): ... this. Update the type
5017 of the variable used to hold an instruction. Remove the ISA bit
5018 check. Update mips_fetch_instruction call.
5019 (micromips_deal_with_atomic_sequence): New function.
5020 (deal_with_atomic_sequence): Likewise.
5021 (mips_about_to_return): Handle microMIPS code. Update
5022 mips_fetch_instruction call.
5023 (heuristic_proc_start): Check for the standard MIPS ISA rather
5024 than for MIPS16. Update mips_pc_is_mips16 and
5025 mips_fetch_instruction calls. Handle microMIPS code.
5026 (mips_push_dummy_code): Handle microMIPS code.
5027 (mips_eabi_push_dummy_call): Likewise.
5028 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5029 (mips_o64_push_dummy_call): Handle microMIPS code.
5030 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5031 (is_delayed): Remove function.
5032 (mips_single_step_through_delay): Replace the call to is_delayed
5033 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5034 Handle microMIPS code.
5035 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5037 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5039 (micromips_in_function_epilogue_p): New function.
5040 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5042 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5044 (gdb_print_insn_mips): Likewise.
5045 (mips_breakpoint_from_pc): Likewise.
5046 (mips_remote_breakpoint_from_pc): New function.
5047 (mips32_instruction_has_delay_slot): Simplify making use of the
5048 updated mips_fetch_instruction interface.
5049 (micromips_instruction_has_delay_slot): New function.
5050 (mips16_instruction_has_delay_slot): Simplify making use of the
5051 updated mips_fetch_instruction interface.
5052 (mips_adjust_breakpoint_address): Check for the standard MIPS
5053 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5054 calls. Handle microMIPS code.
5055 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5056 (mips_skip_trampoline_code): Handle microMIPS code.
5057 (global_mips_compression): New function.
5058 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5059 file flags. Register the microMIPS remote breakpoint handler
5060 and heuristic frame unwinder.
5061 (show_mips_compression): New function.
5062 (_initialize_mips_tdep): Add the "set mips compression" and
5063 "show mips compression" commands.
5065 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5070 * amd64-darwin-tdep.c:
5071 * arm-symbian-tdep.c:
5075 * bfin-linux-tdep.c:
5082 * dwarf2-frame-tailcall.c:
5111 * microblaze-tdep.c:
5112 * mips-linux-tdep.c:
5120 * python/py-finishbreakpoint.c:
5121 * python/py-inferior.c:
5122 * python/py-infthread.c:
5126 * remote-m32r-sdi.c:
5130 * rs6000-aix-tdep.c:
5156 * amd64-darwin-tdep.c:
5157 * arm-symbian-tdep.c:
5158 * arm-tdep.c: Delete unused variables.
5160 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5162 Rename $ddir to $datadir.
5163 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5164 * auto-load.c (auto_load_safe_path_vec_update)
5165 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5166 * configure: Regenerate.
5167 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5168 Likewise. Remove the 'use $ddir' help string.
5170 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5173 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5175 2012-05-18 Tom Tromey <tromey@redhat.com>
5178 * valprint.h (struct value_print_options) <symbol_print>: New
5180 * valprint.c (user_print_options): Add default for symbol_print.
5181 (show_symbol_print): New function.
5182 (generic_val_print): Respect symbol_print.
5183 (_initialize_valprint): Add "print symbol" setting.
5184 * f-valprint.c (f_val_print): Respect symbol_print.
5185 * c-valprint.c (c_val_print): Respect symbol_print.
5187 * printcmd.c (print_address_symbolic): Return int. Ignore some
5189 (print_address_demangle): Return int.
5190 * defs.h: (print_address_symbolic): Return int.
5191 * value.h (print_address_demangle): Return int.
5193 2012-05-18 Tom Tromey <tromey@redhat.com>
5195 * valprint.c (val_print_string): Don't print leading space.
5196 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5197 print space before string or vtbl.
5198 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5200 * jv-valprint.c (java_value_print): Print space before string.
5201 * go-valprint.c (print_go_string): Print space before string.
5202 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5203 space before string.
5204 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5205 space before string or vtbl.
5206 * auxv.c (fprint_target_auxv): Print space after address.
5208 2012-05-18 Tom Tromey <tromey@redhat.com>
5210 * printcmd.c (print_address_demangle): Remove special case for 0.
5212 2012-05-18 Tom Tromey <tromey@redhat.com>
5214 * printcmd.c (print_address_demangle): Add 'opts' argument.
5215 * p-valprint.c (pascal_val_print): Update.
5216 * jv-valprint.c (java_val_print): Update.
5218 * valprint.c (generic_val_print): Update.
5219 (print_function_pointer_address): Add 'options' argument. Remove
5220 'addressprint' argument. Update.
5221 * m2-valprint.c (print_unpacked_pointer): Update.
5222 * gnu-v3-abi.c (print_one_vtable): Update.
5223 (gnuv3_print_method_ptr): Update.
5224 * f-valprint.c (f_val_print): Update.
5225 * cp-valprint.c (cp_print_value_fields): Update.
5226 * valprint.h (print_function_pointer_address): Update.
5227 * c-valprint.c (c_val_print): Update.
5229 2012-05-18 Tom Tromey <tromey@redhat.com>
5231 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5232 directly corresponding to the found psymtab.
5233 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5234 (dw2_find_pc_sect_symtab): Use it.
5235 * block.h (blockvector_contains_pc): Declare.
5236 * block.c (find_block_in_blockvector): New function.
5237 (blockvector_for_pc_sect): Use it.
5238 (blockvector_contains_pc): New function.
5240 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5242 * mips-tdep.h (mips_write_pc): New prototype.
5243 * mips-tdep.c (mips_write_pc): Make external, add description.
5244 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5247 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5249 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5251 (mips_unwind_pc, mips_write_pc): Likewise.
5252 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5255 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5257 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5258 proc_warn, proc_error, proc_get_status, proc_flags,
5259 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5260 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5261 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5262 proc_stop_process, proc_wait_for_stop, proc_run_process,
5263 proc_set_traced_signals, proc_set_traced_faults,
5264 proc_set_traced_sysentry, proc_set_traced_sysexit,
5265 proc_set_held_signals, proc_get_held_signals,
5266 proc_get_traced_signals, proc_get_traced_faults,
5267 proc_get_traced_sysentry, proc_get_traced_sysexit,
5268 proc_clear_current_fault, proc_set_current_signal,
5269 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5270 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5271 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5272 proc_get_current_thread, proc_get_current_thread,
5273 proc_get_current_thread, proc_update_threads,
5274 proc_update_threads, proc_update_threads, proc_update_threads,
5275 proc_iterate_over_threads, procfs_find_new_threads,
5276 procfs_pid_to_str): Make static. Remove advance declaration.
5277 (proc_cursig): Make static. Conditionalized defintion on
5278 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5279 (proc_syscall, proc_set_kill_on_last_close,
5280 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5281 proc_get_pending_signals, proc_get_signal_actions,
5282 proc_trace_signal, proc_ignore_signal): Delete.
5284 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5286 * coffread.c (cs_section_address): Passing proper argument for
5287 `bfd_get_section_vma'.
5288 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5289 `bfd_get_section_flags'.
5290 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5291 `bfd_get_section_vma'.
5293 2012-05-16 Tom Tromey <tromey@redhat.com>
5296 * macrotab.h: (macro_define_special): Declare.
5297 (enum macro_special_kind): New.
5298 (struct macro_definition) <argc, replacement>: Update comments.
5299 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5300 (macro_define_object_internal): New function.
5301 (macro_define_object): Use it.
5302 (macro_define_special): New function.
5303 (fixup_definition): New function.
5304 (macro_lookup_definition, foreach_macro_in_scope)
5305 (foreach_macro): Use fixup_definition.
5306 * macroexp.h (macro_stringify): Declare.
5307 * macroexp.c (free_buffer_return_text): New function.
5308 (stringify): Constify "arg".
5309 (macro_stringify): New function.
5310 * dwarf2read.c (macro_start_file): Call macro_define_special.
5312 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5313 Maciej W. Rozycki <macro@mips.com>
5315 * breakpoint.h (bp_location): Add related_address member.
5316 * inferior.h (get_return_value): Take a pointer to struct value
5317 instead of struct type for the function requested.
5318 * value.h (using_struct_return): Likewise.
5319 * gdbarch.sh (return_value): Take a pointer to struct value
5320 instead of struct type for the function requested.
5321 * breakpoint.c (set_breakpoint_location_function): Initialize
5322 related_address for bp_gnu_ifunc_resolver breakpoints.
5323 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5324 requested function's address to gdbarch_return_value.
5325 * eval.c (evaluate_subexp_standard): Pass the requested
5326 function's address to using_struct_return.
5327 * infcall.c (call_function_by_hand): Pass the requested
5328 function's address to using_struct_return and
5329 gdbarch_return_value.
5330 * infcmd.c (get_return_value): Take a pointer to struct value
5331 instead of struct type for the function requested.
5332 (print_return_value): Update accordingly.
5333 (finish_command_continuation): Likewise.
5334 * stack.c (return_command): Pass the requested function's
5335 address to using_struct_return and gdbarch_return_value.
5336 * value.c (using_struct_return): Take a pointer to struct value
5337 instead of struct type for the function requested. Pass the
5338 requested function's address to gdbarch_return_value.
5339 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5340 New function_value member, replacing function_type.
5341 (bpfinishpy_dealloc): Update accordingly.
5342 (bpfinishpy_pre_stop_hook): Likewise.
5343 (bpfinishpy_init): Likewise. Record the requested function's
5345 * mips-tdep.c (mips_fval_reg): New enum.
5346 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5347 words put in GP registers.
5348 (mips_o64_push_dummy_call): Update a comment.
5349 (mips_o32_return_value): Take a pointer to struct value instead
5350 of struct type for the function requested and use it to check if
5351 using the MIPS16 calling convention. Return the designated
5352 general purpose registers for floating-point values returned in
5354 (mips_o64_return_value): Likewise.
5355 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5356 (ppc_sysv_abi_broken_return_value): Likewise.
5357 (ppc64_sysv_abi_return_value): Likewise.
5358 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5359 value instead of struct type for the function requested.
5360 * amd64-tdep.c (amd64_return_value): Likewise.
5361 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5362 * arm-tdep.c (arm_return_value): Likewise.
5363 * avr-tdep.c (avr_return_value): Likewise.
5364 * bfin-tdep.c (bfin_return_value): Likewise.
5365 * cris-tdep.c (cris_return_value): Likewise.
5366 * frv-tdep.c (frv_return_value): Likewise.
5367 * h8300-tdep.c (h8300_return_value): Likewise.
5368 (h8300h_return_value): Likewise.
5369 * hppa-tdep.c (hppa32_return_value): Likewise.
5370 (hppa64_return_value): Likewise.
5371 * i386-tdep.c (i386_return_value): Likewise.
5372 * ia64-tdep.c (ia64_return_value): Likewise.
5373 * iq2000-tdep.c (iq2000_return_value): Likewise.
5374 * lm32-tdep.c (lm32_return_value): Likewise.
5375 * m32c-tdep.c (m32c_return_value): Likewise.
5376 * m32r-tdep.c (m32r_return_value): Likewise.
5377 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5378 * m68k-tdep.c (m68k_return_value): Likewise.
5379 (m68k_svr4_return_value): Likewise.
5380 * m88k-tdep.c (m88k_return_value): Likewise.
5381 * mep-tdep.c (mep_return_value): Likewise.
5382 * microblaze-tdep.c (microblaze_return_value): Likewise.
5383 * mn10300-tdep.c (mn10300_return_value): Likewise.
5384 * moxie-tdep.c (moxie_return_value): Likewise.
5385 * mt-tdep.c (mt_return_value): Likewise.
5386 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5387 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5388 (ppc_sysv_abi_broken_return_value): Likewise.
5389 (ppc64_sysv_abi_return_value): Likewise.
5390 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5391 * rl78-tdep.c (rl78_return_value): Likewise.
5392 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5393 * rx-tdep.c (rx_return_value): Likewise.
5394 * s390-tdep.c (s390_return_value): Likewise.
5395 * score-tdep.c (score_return_value): Likewise.
5396 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5397 (sh_return_value_fpu): Likewise.
5398 * sh64-tdep.c (sh64_return_value): Likewise.
5399 * sparc-tdep.c (sparc32_return_value): Likewise.
5400 * sparc64-tdep.c (sparc64_return_value): Likewise.
5401 * spu-tdep.c (spu_return_value): Likewise.
5402 * tic6x-tdep.c (tic6x_return_value): Likewise.
5403 * v850-tdep.c (v850_return_value): Likewise.
5404 * vax-tdep.c (vax_return_value): Likewise.
5405 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5406 * xtensa-tdep.c (xtensa_return_value): Likewise.
5407 * gdbarch.c: Regenerate.
5408 * gdbarch.h: Regenerate.
5410 2012-05-15 Tom Tromey <tromey@redhat.com>
5412 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5414 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5416 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5417 of command in two error message.
5419 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5421 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5423 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5425 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5427 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5429 * NEWS (show auto-load scripts-directory): Add forgotten command.
5431 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5433 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5436 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5438 * amd64-tdep.c: Include features/i386/x32.c and
5439 features/i386/x32-avx.c.
5440 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5441 initialize_tdesc_x32_avx.
5443 2012-05-14 Stan Shebs <stan@codesourcery.com>
5446 * breakpoint.h (enum bptype): New type bp_dprintf.
5447 (struct breakpoint): New field extra_string.
5448 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5449 (create_breakpoint): Add extra_string arg.
5450 * breakpoint.c (dprintf_breakpoint_ops): New.
5451 (is_breakpoint): Add bp_dprintf.
5452 (bpstat_what): Add dprintf case.
5453 (bptype_string): Ditto.
5454 (print_one_breakpoint_location): Ditto.
5455 (init_bp_location): Ditto.
5456 (bkpt_print_mention): Ditto.
5457 (dprintf_style_enums): New array.
5458 (dprintf_style): New global.
5459 (dprintf_function): New global.
5460 (dprintf_channel): New global.
5461 (update_dprintf_command_list): New function.
5462 (update_dprintf_commands): New function.
5463 (init_breakpoint_sal): Add extra_string argument, handle it.
5464 (create_breakpoint_sal): Add extra_string argument.
5465 (create_breakpoints_sal): Add extra_string argument, update callers.
5466 (find_condition_and_thread): Add extra argument.
5467 (create_breakpoint): Add extra_string argument, record it.
5468 (dprintf_command): New function.
5469 (break_command_1): Add arg to create_breakpoint call.
5470 (handle_gnu_v3_exceptions): Ditto.
5471 (trace_command): Ditto.
5472 (ftrace_command): Ditto.
5473 (strace_command): Ditto.
5474 (bkpt_print_mention): Add dprintf case.
5475 (create_breakpoint_sal_default): Add extra_string argument.
5476 (_initialize_breakpoint): Add new commands.
5477 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5478 * python/py-breakpoint.c (bppy_init): Ditto.
5479 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5481 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5483 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5485 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5487 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5490 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5492 Add a new function gdb.find_pc_line to the Python API.
5493 * NEWS (Python Scripting): Add entry about the new function.
5494 * python/python.c (gdbpy_find_pc_line): New function which
5495 implements gdb.find_pc_line.
5496 (GdbMethods): Add entry for the new function.
5498 2012-05-12 Pedro Alves <palves@redhat.com>
5500 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5501 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5503 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5505 * inferior.c: Include completer.h
5506 (initialize_inferiors): Set completer of add-inferior to
5509 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5511 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5512 gdbarch_ptr_bit for x32 core dump.
5514 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5516 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5517 and features/i386/x32-avx-linux.c.
5519 2012-05-11 Stan Shebs <stan@codesourcery.com>
5520 Kwok Cheung Yeung <kcy@codesourcery.com>
5522 * NEWS: Describe new info os commands.
5523 * common/linux-osdata.c (PID_T, TIME_T): Define.
5524 (MAX_PID_T_STRLEN): New.
5525 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5527 (command_from_pid): Add comment. Change to use PID_T.
5528 (commandline_from_pid): Change to use PID_T.
5529 (user_from_pid): Add comment.
5530 (get_process_owner): Add comment. Change to use PID_T and
5532 (get_number_of_cpu_cores): Add comment.
5533 (get_cores_used_by_process): Add comment. Change to use PID_T and
5535 (linux_xfer_osdata_processes): Change to use PID_T and
5537 (compare_processes): New function.
5538 (linux_xfer_osdata_processgroups): New function.
5539 (linux_xfer_osdata_threads): Change to use PID_T.
5540 (linux_xfer_osdata_fds): New function.
5541 (format_socket_state, print_sockets): New functions.
5542 (union socket_addr): New union.
5543 (linux_xfer_osdata_isockets): New function.
5544 (time_from_time_t, group_from_gid): New functions.
5545 (linux_xfer_osdata_shm): New function.
5546 (linux_xfer_osdata_sem): New function.
5547 (linux_xfer_osdata_msg): New function.
5548 (linux_xfer_osdata_modules): New function.
5549 (osdata_table): Add new entries.
5550 * common/buffer.c (buffer_xml_printf): Add support for long and
5551 long long format specifiers.
5553 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5555 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5556 (tdesc_x32_avx_linux): Likewise.
5558 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5560 Implement multi-component --with-auto-load-dir.
5561 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5563 (--with-auto-load-safe-path): Update the default value description.
5564 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5566 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5567 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5568 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5569 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5570 "set auto-load scripts-directory".
5571 * config.in: Regenerate.
5572 * configure: Regenerate.
5573 * configure.ac (--with-auto-load-dir): New configure option.
5574 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5576 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 Provide $ddir substitution for --with-auto-load-safe-path.
5579 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5581 * auto-load.c: Include observer.h.
5582 (auto_load_safe_path_vec_update): Call substitute_path_component for
5583 each component. New variable ddir_subst.
5584 (auto_load_gdb_datadir_changed): New function.
5585 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5586 AUTO_LOAD_SAFE_PATH. New comment.
5587 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5588 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5589 * config.in: Regenerate.
5590 * configure: Regenerate.
5591 * configure.ac (--auto-load-safe-path): Rename
5592 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5593 GDB_DATADIR/auto-load.
5594 * defs.h (substitute_path_component): New declaration.
5595 * top.c: Include observer.h.
5596 (set_gdb_datadir): New function.
5597 (init_main): Install it for "set data-directory".
5598 * utils.c (substitute_path_component): New function.
5600 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5602 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5603 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5604 DEBUG_FILE_DIRECTORY. Handle multiple components of
5605 DEBUG_FILE_DIRECTORY.
5607 2012-05-10 Tom Tromey <tromey@redhat.com>
5609 * dwarf2read.c (recursively_write_psymbols): New function.
5610 (write_psymtabs_to_index): Use it.
5612 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5614 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5615 (load_partial_comp_unit): Update.
5616 (queue_comp_unit): Add argument 'pretend_language'.
5617 (process_queue): Update.
5618 (psymtab_to_symtab_1): Skip dependencies that have a user.
5619 (load_partial_comp_unit_reader): Give meaning to the 'data'
5621 (load_full_comp_unit): Add 'pretend_language' argument.
5622 (process_full_comp_unit): Add 'pretend_language' argument. Set
5624 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5626 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5627 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5629 (prepare_one_comp_unit): Add 'pretend_language' argument.
5631 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5632 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5633 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5634 (dw2_do_instantiate_symtab): Check whether symtab was read in
5636 (dw2_instantiate_symtab): Add assertion. Call
5637 process_cu_includes.
5638 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5639 (partial_symtab_p): New typedef.
5640 (set_partial_user): New function.
5641 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5642 (scan_partial_symbols): Add imported CU to imported_symtabs.
5643 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5644 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5645 (get_symtab, recursively_compute_inclusions)
5646 (compute_symtab_includes, process_cu_includes)
5647 (process_imported_unit_die): New functions.
5648 (process_die) <DW_TAG_imported_unit>: New case.
5649 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5651 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5653 (struct partial_die_info) <locdesc>: Remove.
5655 (process_psymtab_comp_unit): Add 'read_partial' argument.
5657 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5658 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5659 (add_partial_symbol): Update.
5660 (process_die): Handle DW_TAG_partial_unit.
5661 (read_file_scope): Update comment.
5662 (load_partial_dies): Handle DW_TAG_imported_unit.
5663 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5664 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5666 2012-05-10 Tom Tromey <tromey@redhat.com>
5668 * cc-with-dwz.sh: New file.
5670 2012-05-10 Tom Tromey <tromey@redhat.com>
5672 * symtab.h (struct symtab) <includes, user>: New fields.
5673 * block.h (struct block_iterator) <d, idx, which>: New fields.
5674 * block.c (initialize_block_iterator, find_iterator_symtab)
5675 (block_iterator_step, block_iter_name_step)
5676 (block_iter_match_step): New functions.
5677 (block_iterator_first, block_iterator_next)
5678 (block_iter_name_first, block_iter_name_next)
5679 (block_iter_match_first, block_iter_match_next): Rewrite.
5680 (get_block_symtab): New function.
5682 2012-05-10 Tom Tromey <tromey@redhat.com>
5684 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5686 * jit.c (finalize_symtab): Use allocate_global_block,
5688 * buildsym.c (finish_block_internal): New function, from old
5690 (finish_block): Rewrite.
5691 (end_symtab): Use finish_block_internal, set_block_symtab.
5692 * block.h (struct global_block): New.
5693 (allocate_global_block, set_block_symtab): Declare.
5694 * block.c (allocate_global_block, set_block_symtab): New
5697 2012-05-10 Tom Tromey <tromey@redhat.com>
5699 * psymtab.c (partial_map_expand_apply): Add assertion.
5700 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5701 (psymtab_to_symtab): Find unshared psymtab.
5702 (dump_psymtab): Print including psymtabs.
5703 (recursively_search_psymtabs): New function.
5704 (expand_symtabs_matching_via_partial): Use it.
5705 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5707 (enum psymtab_search_status): New.
5709 2012-05-10 Tom Tromey <tromey@redhat.com>
5711 * tracepoint.c (scope_info): Update.
5712 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5713 (find_pc_sect_symtab, search_symbols)
5714 (default_make_symbol_completion_list_break_on)
5715 (make_file_symbol_completion_list): Update.
5716 * symmisc.c (dump_symtab_1): Update.
5717 * stack.c (print_frame_args, iterate_over_block_locals)
5718 (print_frame_labels, iterate_over_block_arg_vars): Update.
5719 * python/py-block.c (block_object) <dict>: Remove.
5721 <iter>: Change type.
5722 (blpy_iter): Update.
5723 (blpy_block_syms_iternext): Update.
5724 * psymtab.c (map_block): Use block iterators.
5725 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5726 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5727 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5728 * infrun.c (check_exception_resume): Update.
5729 * cp-support.c (make_symbol_overload_list_block): Update.
5730 * coffread.c (patch_opaque_types): Update.
5731 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5732 * block.h (struct block_iterator): New.
5733 (block_iterator_first, block_iterator_next, block_iter_name_first)
5734 (block_iter_name_next, block_iter_match_first)
5735 (block_iter_match_next): Declare.
5736 (ALL_BLOCK_SYMBOLS): Redefine.
5737 * block.c (block_iterator_first, block_iterator_next)
5738 (block_iter_name_first, block_iter_name_next)
5739 (block_iter_match_first, block_iter_match_next): New functions.
5740 * ada-lang.c (ada_add_block_symbols)
5741 (ada_make_symbol_completion_list): Use block iterator.
5743 2012-05-10 Tom Tromey <tromey@redhat.com>
5745 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5746 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5747 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5748 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5749 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5752 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5754 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5755 print-file-var-lib2.c, print-file-var-main.c and
5756 print-file-var.exp (located in gdb/testsuite/gdb.base).
5758 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5760 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5761 try locating the symbol in the symbol's own objfile first, before
5762 extending the search to all objfiles.
5763 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5764 out of lookup_symbol_aux_symtabs.
5765 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5766 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5767 Do not search EXCLUDE_OBJFILE.
5768 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5769 (lookup_symbol_global): Search for matches in the block's objfile
5770 first, before searching all other objfiles.
5772 2012-05-10 Tristan Gingold <gingold@adacore.com>
5774 * printcmd.c (set_command): Add pre/post inc/dec.
5776 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5778 * gdb.1: Document -ex option.
5780 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5782 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5783 * inferior.h (AT_SYMBOL): Delete.
5785 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5787 * mips-tdep.c (mips_push_dummy_code): New function.
5788 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5789 ON_STACK and install mips_push_dummy_code as our gdbarch
5790 push_dummy_code routine.
5792 2012-05-09 Pedro Alves <palves@redhat.com>
5794 * target.c (set_maintenance_target_async_permitted): Rename to ...
5795 (set_target_async_command): ... this.
5796 (show_maintenance_target_async_permitted): Rename to ...
5797 (show_target_async_command): ... this.
5798 (initialize_targets): Adjust.
5800 2012-05-08 Doug Evans <dje@google.com>
5802 * go-exp.y (classify_name): Add missing assignment of fields of
5805 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5807 Display the ">" prompt in interactive mode while reading canned
5808 commands, even when the current interpreter is MI.
5810 * interps.c (interp_set_temp): New function.
5812 * interps.h (interp_set_temp): Add prototype.
5814 * cli/cli-script.c (restore_interp): New cleanup function.
5815 (read_command_lines): Temporarily override the current interpreter
5816 with CLI and arrange for restoring the original one.
5818 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5820 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5822 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5824 * probe.c (parse_probes): Move conditional to check for
5825 debuginfo files from here...
5826 * stap-probe.c (stap_get_probes): ... to here.
5828 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5829 H.J. Lu <hongjiu.lu@intel.com>
5831 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5832 `movl %esp, %ebp' for the X32 ABI.
5834 2012-05-07 Tom Tromey <tromey@redhat.com>
5836 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5838 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5839 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5840 (dwarf_stack_op_name): Remove.
5841 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5842 (decode_locdesc): Use get_DW_OP_name.
5843 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5844 (dwarf2_compile_expr_to_ax): Likewise.
5845 (disassemble_dwarf_expression): Likewise.
5846 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5848 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5850 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5851 (sh_linux_sigtramp_cache): New function.
5852 (sh_linux_sigreturn_init): New function.
5853 (sh_linux_rt_sigreturn_init): New function.
5854 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5856 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5858 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5859 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5860 (sh_linux_init_abi): Add init calls to register new tramp_frame
5861 definitions under 32-bit SH, update comments.
5863 2012-05-07 Pedro Alves <palves@redhat.com>
5867 * amd64-linux-tdep.c: Include glibc-tdep.h.
5868 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5869 gdbarch_skip_solib_resolver callback.
5871 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5873 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5874 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5875 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5876 (add_auto_load_safe_path): Change the error message.
5877 (_initialize_auto_load): Change the "safe-path" help text.
5878 * configure: Regenerate
5879 * configure.ac (--without-auto-load-safe-path): Set
5880 WITH_AUTO_LOAD_SAFE_PATH to /.
5882 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5884 * stap-probe.h: Do not include unecessary `probe.h'.
5886 2012-05-05 Alan Modra <amodra@gmail.com>
5888 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5889 bfd_und_section_ptr.
5890 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5891 and bfd_com_section_ptr.
5893 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5895 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5897 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5899 * windows-nat.h (segment_register_p_ftype): New typedef.
5900 (windows_set_segment_register_p): Add declaration.
5901 * windows-nat.c (segment_register_p): New static global.
5902 (windows_set_segment_register_p): New function.
5903 (do_windows_fetch_inferior_registers): Add special handling
5904 for segment registers.
5905 * amd64-windows-nat.c: #include "amd64-tdep.h".
5906 (amd64_windows_segment_register_p): New function.
5907 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5908 * i386-windows-nat.c: #include "i386-tdep.h".
5909 (i386_windows_segment_register_p): New function.
5910 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5912 2012-05-04 Tristan Gingold <gingold@adacore.com>
5914 * printcmd.c (set_command): Emit a warning if the expression is not
5917 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5919 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5922 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5924 * stap-probe.c (stap_is_operator): Change declaration.
5925 (stap_get_opcode): Change return value.
5926 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5927 `stap_parse_argument_1'.
5929 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5931 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5934 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5936 Add two new methods global_block and static_block to gdb.Symtab
5938 * NEWS (Python scripting): Add entry about the new methods.
5939 * python/py-symtab.c (stpy_global_block): New function which
5940 implements the gdb.Symtab.global_block() method.
5941 (stpy_static_block): New function which implements the
5942 gdb.Symtab.static_block() method.
5943 (symtab_object_methods): Add entries for the two new methods.
5945 2012-05-03 Doug Evans <dje@google.com>
5947 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5950 2012-05-03 Yao Qi <yao@codesourcery.com>
5952 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5954 (i386_process_record): Ditto.
5956 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5958 * infcall.c (unwind_on_signal_p): Make static.
5960 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5962 * sol-thread.c (solaris_pid_to_str): Make static.
5963 (_initialize_sol_thread): Add prototype.
5965 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5967 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5969 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5971 * MAINTAINERS: Remove myself.
5973 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5975 Fix --without-auto-load-safe-path for MS-Windows host platform.
5976 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5978 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5980 * gdb_curses.h: Undefine KEY_EVENT before including curses
5981 headers. Move "#undef MOUSE_MOVED" before any curses header
5984 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5986 * features/i386/i386-mmx-linux.c: Regenerate.
5987 * features/rs6000/powerpc-32.c: Likewise.
5988 * features/rs6000/powerpc-32l.c: Likewise.
5989 * features/rs6000/powerpc-403.c: Likewise.
5990 * features/rs6000/powerpc-403gc.c: Likewise.
5991 * features/rs6000/powerpc-405.c: Likewise.
5992 * features/rs6000/powerpc-505.c: Likewise.
5993 * features/rs6000/powerpc-601.c: Likewise.
5994 * features/rs6000/powerpc-602.c: Likewise.
5995 * features/rs6000/powerpc-603.c: Likewise.
5996 * features/rs6000/powerpc-604.c: Likewise.
5997 * features/rs6000/powerpc-64.c: Likewise.
5998 * features/rs6000/powerpc-64l.c: Likewise.
5999 * features/rs6000/powerpc-750.c: Likewise.
6000 * features/rs6000/powerpc-860.c: Likewise.
6001 * features/rs6000/powerpc-e500.c: Likewise.
6002 * features/rs6000/powerpc-e500l.c: Likewise.
6003 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6004 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6005 * features/rs6000/rs6000.c: Likewise.
6007 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6009 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6011 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6012 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6013 (stap_parse_argument) <e>: Likewise.
6014 (handle_stap_probe) <byte_order>: Likewise.
6016 2012-04-30 Doug Evans <dje@google.com>
6018 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6019 init_and_read_dies_worker. All callers updated.
6020 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6021 replaced with init_cutu_and_read_dies.
6022 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6023 (find_partial_die): Remove FIXME. Don't free current CU.
6025 2012-04-30 Sterling Augustine <saugustine@google.com>
6027 * contrib: New directory.
6028 * contrib/test_pubnames_and_indexes.py: New file.
6030 2012-04-30 Doug Evans <dje@google.com>
6032 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6033 All callers updated.
6034 (init_cu_die_reader): Verify the section is non-empty.
6035 (dwarf_decode_line_header): Don't dereference section->asection
6036 until we know the section is present.
6038 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6040 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6043 2012-04-29 Yao Qi <yao@codesourcery.com>
6045 * gdb-code-style.el: New hook gdb-markup-hook
6046 and gdb-comment-hook.
6048 2012-04-28 Doug Evans <dje@google.com>
6050 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6051 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6053 * symfile.h (dwarf2_debug_sections): New member addr.
6054 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6055 (ctx_no_get_addr_index): New function.
6056 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6057 (ctx_no_get_addr_index): Declare.
6058 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6059 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6060 (dwarf_expr_ctx_funcs): Update.
6061 (needs_get_addr_index): New function.
6062 (needs_frame_ctx_funcs): Update.
6063 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6064 * dwarf2read.c: #include "gdbcore.h".
6065 (dwarf2_per_objfile): New members addr, dwo_files.
6066 (dwarf2_elf_names): Add entry for addr.
6067 (struct dwo_section_names): New type.
6068 (dwo_section_names): New static global.
6069 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6070 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6071 old debug_types_section member updated to use this.
6072 Rename member debug_types_section to info_or_types_section,
6074 (signatured_type): Rename member type_offset to type_offset_in_tu,
6075 all uses updated. New member type_offset_in_section.
6076 (struct dwo_sections): New type.
6077 (struct dwo_unit): New type.
6078 (struct dwo_file): New type.
6079 (die_reader_specs): New member dwo_file.
6080 (dwarf2_locate_sections): Watch for .debug_addr.
6081 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6082 (dwarf2_read_section): Get bfd of section from bfd's asection,
6084 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6085 (create_signatured_type_table_from_index): Initialize
6086 sig_type->info_or_types_section.
6087 (dw2_get_file_names): Statement lists for type units with DWO files
6088 live in the DWO file.
6089 (create_debug_types_hash_table): New function.
6090 (create_all_type_units): Rewrite.
6091 (init_cu_die_reader): New arg dwo_file, all callers updated.
6092 (init_and_read_dies_worker): Get section from
6093 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6094 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6095 continue reading the CU/TU from there.
6096 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6097 updated. Get section from this_cu->info_or_types_section.
6098 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6099 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6100 DW_FORM_GNU_str_index.
6101 (hash_dwo_file, eq_dwo_file): New functions.
6102 (allocate_dwo_file_hash_table): New function.
6103 (hash_dwo_unit, eq_dwo_unit): New functions.
6104 (allocate_dwo_unit_table): New function.
6105 (dwarf2_locate_dwo_sections): New function.
6106 (struct create_dwo_info_table_data): New type.
6107 (create_debug_info_hash_table_reader): New function.
6108 (create_debug_info_hash_table): New function.
6109 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6110 (lookup_dwo_file): New function.
6111 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6112 (free_dwo_file, free_dwo_file_cleanup): New functions.
6113 (free_dwo_file_from_slot, free_dwo_files): New functions.
6114 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6115 (dwarf2_record_block_ranges): Ditto.
6116 (read_partial_die): Ditto.
6117 (process_enumeration_scope): Update to use type_offset_in_section.
6118 (read_full_die_1): New function.
6119 (read_full_die): Rewrite.
6120 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6121 DW_FORM_GNU_str_index.
6122 (read_addr_index_1, read_addr_index): New functions.
6123 (read_addr_index_from_leb128): New function.
6124 (struct dwarf2_read_addr_index_data): New type.
6125 (dwarf2_read_addr_index_reader): New function.
6126 (dwarf2_read_addr_index): New function.
6127 (read_str_index): New function.
6128 (leb128_size): New function.
6129 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6130 If processing a type unit from a DWO file, get the line section
6132 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6133 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6134 DW_FORM_GNU_str_index.
6135 (lookup_die_type): Check whether section offset of type's die is
6136 known before looking it up. Remove assert. Condition can
6137 legimately happen for inter-cu type references.
6138 (dwarf_attr_name): Handle Fission attributes.
6139 (dwarf_form_name): Handle Fission forms.
6140 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6141 DW_FORM_GNU_str_index.
6142 (follow_die_sig): Update to use type_offset_in_section.
6143 (decode_locdesc): New case DW_OP_GNU_addr_index.
6144 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6145 DW_FORM_GNU_str_index.
6146 (cu_debug_loc_section): New function.
6147 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6148 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6149 Free DWO files if present.
6150 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6152 Refactor DIE reading.
6153 * dwarf2read.c (dwarf2_per_objfile): Replace members
6154 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6155 (die_reader_specs): New member "die_section". Temporarily make
6156 member "buffer" non-const, pending constifying all info_ptr uses.
6157 (die_reader_func_ftype): New typedef.
6158 (dw2_get_file_names_reader): New function.
6159 (dw2_get_file_names): Rewrite.
6160 (read_and_check_type_unit_head): Rename arg type_offset to
6162 (create_all_type_units): Improve debugging message.
6163 Improve dummy type unit check.
6164 (init_cu_die_reader): New arg "section". All callers updated.
6165 (init_and_read_dies_worker): New function.
6166 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6167 (init_cutu_and_read_dies_no_follow): New function.
6168 (init_cutu_and_read_dies_simple): New function.
6169 (process_psymtab_comp_unit_reader): New function.
6170 (process_psymtab_comp_unit): Delete args section,
6171 is_debug_types_section. Rewrite. All callers updated.
6172 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6173 All callers updated. Rewrite.
6174 (load_partial_comp_unit_reader): New function.
6175 (load_partial_comp_unit): Rewrite.
6176 (skip_children): New arg reader. Delete args buffer, cu.
6177 All callers updated.
6178 (skip_one_die): New arg reader. Delete args buffer, cu.
6179 All callers updated.
6180 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6181 All callers updated.
6182 (load_full_comp_unit_reader): New function.
6183 (load_full_comp_unit): Rewrite.
6184 (read_comp_unit): Delete.
6185 (read_die_and_children_1): Delete, contents moved ...
6186 (read_die_and_children): ... here.
6187 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6188 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6189 All callers updated.
6190 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6191 All callers updated.
6192 (find_partial_die): Rewrite load_all_dies support.
6193 (read_attribute_value): New arg reader. Delete args abfd, cu.
6194 All callers updated.
6195 (read_attribute): New arg reader. Delete args abfd, cu.
6196 All callers updated.
6197 (load_full_type_unit): Add assert.
6198 (read_signatured_type_reader): New function.
6199 (read_signatured_type): Rewrite.
6200 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6201 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6202 All callers updated. Set per_cu->cu = NULL after freeing it.
6203 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6204 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6205 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6206 (set_die_type): Update.
6207 (get_die_type_at_offset): Update.
6208 (read_file_scope): Call prepare_one_comp_unit.
6209 (read_type_unit_scope): Ditto.
6210 (prepare_one_comp_unit): Set producer if present.
6212 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6214 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6215 gettext function on `error'.
6217 2012-04-27 Doug Evans <dje@google.com>
6219 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6222 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6223 Tom Tromey <tromey@redhat.com>
6225 * breakpoint.c (struct breakpoint_objfile_data)
6226 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6227 <exception_probes>: New fields.
6228 (free_breakpoint_probes): New function.
6229 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6230 `_Unwind_DebugHook'.
6231 (create_exception_master_breakpoint): Likewise.
6232 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6233 * infrun.c: Including necessary header files for handling SystemTap
6235 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6236 via SystemTap probes.
6237 (check_exception_resume): Remove `func' argument. Handle exception
6238 unwinding breakpoint set via a SystemTap probe.
6239 (insert_exception_resume_from_probe): New function.
6241 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6242 Tom Tromey <tromey@redhat.com>
6243 Jan Kratochvil <jan.kratochvil@redhat.com>
6245 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6246 (COMMON_OBS): Likewise.
6247 (HFILES_NO_SRCDIR): Add `probe'.
6248 * NEWS: Mention support for static and SystemTap probes.
6249 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6250 SystemTap probes' arguments parser.
6251 * arm-linux-tdep.c: Including headers needed to perform the parsing
6252 of SystemTap probes' arguments.
6253 (arm_stap_is_single_operand): New function.
6254 (arm_stap_parse_special_token): Likewise.
6255 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6256 probes' arguments parser.
6257 * ax-gdb.c (require_rvalue): Removing static declaration.
6258 (gen_expr): Likewise.
6259 * ax-gdb.h (gen_expr): Declaring function.
6260 (require_rvalue): Likewise.
6261 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6262 (bkpt_probe_breakpoint_ops): New variable.
6263 (momentary_breakpoint_from_master): Set the `probe' value.
6264 (add_location_to_breakpoint): Likewise.
6265 (break_command_1): Using proper breakpoint_ops according to the
6266 argument passed by the user in the command line.
6267 (bkpt_probe_insert_location): New function.
6268 (bkpt_probe_remove_location): Likewise.
6269 (bkpt_probe_create_sals_from_address): Likewise.
6270 (bkpt_probe_decode_linespec): Likewise.
6271 (tracepoint_probe_create_sals_from_address): Likewise.
6272 (tracepoint_probe_decode_linespec): Likewise.
6273 (tracepoint_probe_breakpoint_ops): New variable.
6274 (trace_command): Using proper breakpoint_ops according to the
6275 argument passed by the user in the command line.
6276 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6277 static probes on breakpoints and tracepoints.
6278 * breakpoint.h (struct bp_location) <probe>: New field.
6279 * cli-utils.c (skip_spaces_const): New function.
6280 (extract_arg): Likewise.
6281 * cli-utils.h (skip_spaces_const): Likewise.
6282 (extract_arg): Likewise.
6283 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6284 * configure.ac: Append `stap-probe.o' to be generated when ELF
6286 * configure: Regenerate.
6287 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6288 * elfread.c: Include `probe.h' and `arch-utils.h'.
6289 (probe_key): New variable.
6290 (elf_get_probes): New function.
6291 (elf_get_probe_argument_count): Likewise.
6292 (elf_evaluate_probe_argument): Likewise.
6293 (elf_compile_to_ax): Likewise.
6294 (elf_symfile_relocate_probe): Likewise.
6295 (stap_probe_key_free): Likewise.
6296 (elf_probe_fns): New variable.
6297 (elf_sym_fns): Add `sym_probe_fns' value.
6298 (elf_sym_fns_lazy_psyms): Likewise.
6299 (elf_sym_fns_gdb_index): Likewise.
6300 (_initialize_elfread): Initialize objfile cache for static
6302 * gdb_vecs.h (struct probe): New forward declaration.
6303 (probe_p): New VEC declaration.
6304 * gdbarch.c: Regenerate.
6305 * gdbarch.h: Regenerate.
6306 * gdbarch.sh (stap_integer_prefix): New variable.
6307 (stap_integer_suffix): Likewise.
6308 (stap_register_prefix): Likewise.
6309 (stap_register_suffix): Likewise.
6310 (stap_register_indirection_prefix): Likewise.
6311 (stap_register_indirection_suffix): Likewise.
6312 (stap_gdb_register_prefix): Likewise.
6313 (stap_gdb_register_suffix): Likewise.
6314 (stap_is_single_operand): New function.
6315 (stap_parse_special_token): Likewise.
6316 (struct stap_parse_info): Forward declaration.
6317 * i386-tdep.c: Including headers needed to perform the parsing
6318 of SystemTap probes' arguments.
6319 (i386_stap_is_single_operand): New function.
6320 (i386_stap_parse_special_token): Likewise.
6321 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6322 probes' arguments parser.
6323 * i386-tdep.h (i386_stap_is_single_operand): New function.
6324 (i386_stap_parse_special_token): Likewise.
6325 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6326 * mipsread.c (ecoff_sym_fns): Likewise.
6327 * objfiles.c (objfile_relocate1): Support relocation for static
6329 * parse.c (prefixify_expression): Remove static declaration.
6330 (initialize_expout): Likewise.
6331 (reallocate_expout): Likewise.
6332 * parser-defs.h (initialize_expout): Declare function.
6333 (reallocate_expout): Likewise.
6334 (prefixify_expression): Likewise.
6335 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6336 of SystemTap probes' arguments.
6337 (ppc_stap_is_single_operand): New function.
6338 (ppc_stap_parse_special_token): Likewise.
6339 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6340 probes' arguments parser.
6341 * probe.c: New file, for generic statically defined probe support.
6342 * probe.h: Likewise.
6343 * s390-tdep.c: Including headers needed to perform the parsing of
6344 SystemTap probes' arguments.
6345 (s390_stap_is_single_operand): New function.
6346 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6347 probes' arguments parser.
6348 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6349 * stap-probe.c: New file, for SystemTap probe support.
6350 * stap-probe.h: Likewise.
6351 * symfile.h: Include `gdb_vecs.h'.
6352 (struct sym_probe_fns): New struct.
6353 (struct sym_fns) <sym_probe_fns>: New field.
6354 * symtab.c (init_sal): Initialize `probe' field.
6355 * symtab.h (struct probe): Forward declaration.
6356 (struct symtab_and_line) <probe>: New field.
6357 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6359 (stop_tracing): Likewise.
6360 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6362 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6363 Tom Tromey <tromey@redhat.com>
6365 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6366 and to compile agent expressions.
6367 * infrun.c (siginfo_make_value): New argument `ignore'.
6368 (siginfo_funcs): New struct.
6369 (_initialize_infrun): New argument when calling
6370 `create_internalvar_type_lazy'.
6371 * thread.c (thread_id_make_value): New argument `ignore'.
6372 (thread_funcs): New struct.
6373 (_initialize_thread): New argument when calling
6374 `create_internalvar_type_lazy'.
6375 * tracepoint.c (sdata_make_value): New argument `ignore'.
6376 (sdata_funcs): New struct.
6377 (_initialize_tracepoint): New argument when calling
6378 `create_internalvar_type_lazy'.
6379 * value.c (make_value): New struct.
6380 (create_internalvar_type_lazy): New argument `data'.
6381 (compile_internalvar_to_ax): New function.
6382 (value_of_internalvar): Properly handling `make_value' case.
6383 (clear_internalvar): Likewise.
6384 (show_convenience): Adding `TRY_CATCH' block.
6385 * value.h (internalvar_make_value): Delete, replace by...
6386 (struct internalvar_funcs): ... this.
6387 (create_internalvar_type_lazy) <fun>: Delete argument.
6388 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6389 (compile_internalvar_to_ax): New function.
6390 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6391 (tlb_funcs): New struct.
6392 (_initialize_windows_tdep): New argument when calling
6393 `create_internalvar_type_lazy'.
6395 2012-04-27 Mark Wielaard <mjw@redhat.com>
6397 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6398 see whether it is an address or a constant offset from DW_AT_low_pc.
6399 (dwarf2_record_block_ranges): Likewise.
6400 (read_partial_die): Likewise.
6402 2012-04-26 Mark Wielaard <mjw@redhat.com>
6404 * MAINTAINERS (Write After Approval): Add myself to the list.
6406 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6408 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6409 (proc_prettyprint_signal): Likewise.
6410 (proc_prettyprint_faultset): Likewise.
6411 (proc_prettyprint_fault): Likewise.
6412 (proc_prettyprint_actionset): Likewise.
6413 (proc_prettyprint_flags): Move to new proc-flags.c section.
6414 (proc_prettyfprint_flags): New prototype.
6415 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6416 (proc_syscall, proc_cursig): Likewise.
6417 (proc_set_kill_on_last_close): Likewise.
6418 (proc_unset_kill_on_last_close): Likewise.
6419 (proc_set_watchpoint): Make static.
6420 (proc_delete_dead_threads): Likewise.
6421 (procfs_set_watchpoint): Likewise.
6422 (_initialize_procfs): Add prototype.
6423 * proc-events.c: Include proc-utils.h.
6424 (init_syscall_table): Make static.
6425 * proc-api.c (_initialize_proc_api): Add prototype.
6426 * proc-flags.c: Include proc-utils.h.
6428 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6430 * configure.ac: Add AC_ARG_PROGRAM.
6431 * configure: Regenerate.
6433 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6435 Fix DW_AT_lower_bound defaults for DWARF-4+.
6436 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6437 high. New variable low_default_is_valid. Implement DWARF-4+
6438 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6439 no default by the DWARF standard.
6441 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6442 Maciej W. Rozycki <macro@codesourcery.com>
6444 * infrun.c (handle_inferior_event): Move the check for return
6445 trampolines ahead of the check for function trampolines.
6446 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6447 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6448 (mips_str_mips16_ret_stub): Likewise.
6449 (mips_str_call_fp_stub): Likewise.
6450 (mips_str_call_stub): Likewise.
6451 (mips_str_fn_stub): Likewise.
6452 (mips_str_pic): Likewise.
6453 (mips_in_frame_stub): New function.
6454 (mips_unwind_pc): Return the return address rather than the PC
6455 if the PC of an intermediate frame is inside a call thunk.
6456 (mips_is_stub_suffix): New function.
6457 (mips_is_stub_mode): Likewise.
6458 (mips_get_mips16_fn_stub_pc): Likewise.
6459 (mips_skip_mips16_trampoline_code): Update to handle all the
6460 currently generated stub types. Don't recurse into __fn_stub
6461 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6462 Use cooked register accesses.
6463 (mips_in_return_stub): Reintroduce function.
6464 (mips_skip_trampoline_code): Traverse trampolines recursively.
6465 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6467 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6471 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6473 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6474 * features/arm-with-m-vfp-d16.xml: New file. Describes
6475 Cortex-M with VFPv4-sp-d16 FPU register layout.
6476 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6477 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6478 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6479 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6480 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6482 2012-04-25 Doug Evans <dje@google.com>
6484 * cli/cli-decode.c (print_doc_line): Use stream instead of
6487 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6489 * features/arm-with-iwmmxt.c: Regenerate.
6490 * features/arm-with-m-fpa-layout.c: Likewise.
6491 * features/arm-with-m.c: Likewise.
6492 * features/arm-with-neon.c: Likewise.
6493 * features/arm-with-vfpv2.c: Likewise.
6494 * features/arm-with-vfpv3.c: Likewise.
6495 * features/mips-dsp-linux.c: Likewise.
6496 * features/mips-linux.c: Likewise.
6497 * features/mips64-dsp-linux.c: Likewise.
6498 * features/mips64-linux.c: Likewise.
6499 * features/s390-linux32.c: Likewise.
6500 * features/s390-linux32v1.c: Likewise.
6501 * features/s390-linux32v2.c: Likewise.
6502 * features/s390-linux64.c: Likewise.
6503 * features/s390-linux64v1.c: Likewise.
6504 * features/s390-linux64v2.c: Likewise.
6505 * features/s390x-linux64.c: Likewise.
6506 * features/s390x-linux64v1.c: Likewise.
6507 * features/s390x-linux64v2.c: Likewise.
6508 * features/tic6x-c62x-linux.c: Likewise.
6509 * features/tic6x-c62x.c: Likewise.
6510 * features/tic6x-c64x-linux.c: Likewise.
6511 * features/tic6x-c64x.c: Likewise.
6512 * features/tic6x-c64xp-linux.c: Likewise.
6513 * features/tic6x-c64xp.c: Likewise.
6514 * target-descriptions.c: Only generate `field_type' and `type'
6515 variables when needed.
6517 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6519 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6521 2012-04-25 Doug Evans <dje@google.com>
6523 Initial pass at Go language support.
6525 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6527 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6528 (YYFILES): Add go-exp.c.
6529 (YYOBJ): Add go-exp.o.
6530 (local-maintainer-clean): Delete go-exp.c.
6531 * defs.h (enum language): Add language_go.
6532 * dwarf2read.c: #include "go-lang.h".
6533 (fixup_go_packaging): New function.
6534 (process_full_comp_unit): Call it when processing Go CUs.
6535 (dwarf2_physname): Add Go support.
6536 (read_file_scope): Handle missing language spec for GNU Go.
6537 (set_cu_language): Handle DW_LANG_Go.
6538 * go-exp.y: New file.
6539 * go-lang.h: New file.
6540 * go-lang.c: New file.
6541 * go-typeprint.c: New file.
6542 * go-valprint.c: New file.
6543 * symtab.c: #include "go-lang.h".
6544 (symbol_set_language): Handle language_go.
6545 (symbol_find_demangled_name, symbol_set_names): Ditto.
6546 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6548 2012-04-24 Jim Meyering <meyering@redhat.com>
6550 avoid a few strncpy-induced buffer overruns
6551 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6552 fname and psargs before trying to concatenate.
6553 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6554 "name" before applying strchr.
6556 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6558 * CONTRIBUTE: Use unified diff instead of context diff when
6561 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6563 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6564 code. Handle JR.HB correctly.
6566 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6569 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6570 with the other MIPS16 helpers.
6572 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6574 * observer.sh: Conditionally declare `args', thus cleaning up
6575 unused instances of this variable.
6577 2012-04-24 Yao Qi <yao@codesourcery.com>
6579 Revert this patch to allow breakpoint always-inserted
6581 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6582 * breakpoint.c: Include record.h.
6583 (breakpoints_always_inserted_mode): Return false when the record
6586 * breakpoint.c (iterate_over_bp_locations): New.
6587 * breakpoint.h: Declare.
6588 New typedef walk_bp_location_callback.
6589 * record.c (record_open): Call record_init_record_breakpoints.
6590 (record_sync_record_breakpoints): New.
6591 (record_init_record_breakpoints): New.
6592 * NEWS: Mention supporting breakpoint always-inserted mode in
6595 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6597 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6600 2012-04-24 Yao Qi <yao@codesourcery.com>
6602 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6603 (is_catchpoint): ... it.
6604 (print_one_breakpoint_location): Caller update.
6605 * breakpoint.h: Update declaration.
6607 2012-04-23 David S. Miller <davem@davemloft.net>
6609 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6611 2012-04-23 Tom Tromey <tromey@redhat.com>
6613 * buildsym.c (add_free_pendings): Remove.
6614 * buildsym.h (add_free_pendings): Remove.
6616 2012-04-23 Doug Evans <dje@google.com>
6618 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6619 attr.u.unsnd instead of attr.u.addr.
6620 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6621 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6623 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6624 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6626 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6628 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6630 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6631 (mips_o32_return_value): Likewise.
6632 (mips_o64_return_value): Likewise.
6634 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6636 * ada-lang.c (ada_evaluate_subexp): Add cases for
6637 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6638 their treatment in eval.c.
6640 2012-04-21 David S. Miller <davem@davemloft.net>
6642 * sparc-tdep.c (X_DISP10): Define.
6643 (sparc_analyze_control_transfer): Handle compare-and-branch.
6645 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6647 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6648 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6650 2012-04-20 Nigel Stephens <nigel@mips.com>
6651 Maciej W. Rozycki <macro@codesourcery.com>
6653 * mips-tdep.c (mips_float_register_p): New function.
6654 (mips_convert_register_float_case_p): Use mips_float_register_p.
6655 (mips_register_type): Likewise.
6656 (mips_print_register): Likewise.
6657 (print_gp_register_row): Likewise.
6658 (mips_print_registers_info): Likewise.
6660 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6662 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6665 2012-04-20 Andrew Pinski <apinski@cavium.com>
6667 * MAINTAINERS (Write After Approval): Add myself to the list.
6669 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6671 * MAINTAINERS: Update my e-mail address.
6673 2012-04-20 Pedro Alves <palves@redhat.com>
6675 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6677 * configure: Regenerate.
6679 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6681 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6683 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6685 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6687 Fix compilation compatibility with python-2.4
6688 * python/py-type.c (convert_field): Cast ADDRSTRING for
6689 PyObject_SetAttrString as non-const. New comment.
6691 2012-04-19 Tom Tromey <tromey@redhat.com>
6693 * top.c (quit_target): Use all_cleanups.
6694 * main.c (captured_command_loop): Use all_cleanups.
6695 * exceptions.c (throw_exception): Use all_cleanups.
6697 2012-04-19 Pedro Alves <palves@redhat.com>
6699 * Makefile.in (GNULIB_BUILDDIR): New.
6700 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6701 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6702 (CLEANDIRS). Remove gnulib/import.
6703 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6705 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6706 (gnulib/import/Makefile): Replace gnulib/import with
6707 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6708 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6709 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6710 acx_configure_dir.m4.
6711 * acinclude.m4: Include acx_configure_dir.m4.
6712 * acx_configure_dir.m4: New file.
6713 * aclocal.m4: Regenerate.
6714 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6715 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6716 (GNULIB): New variable.
6717 (GNULIB_STDINT_H): Adjust.
6718 (AC_OUTPUT): Don't output gnulib/Makefile.
6719 * gdb/defs.h: Include build-gnulib/config.h.
6720 * aclocal.m4: Regenerate.
6721 * config.in: Regenerate.
6722 * configure: Regenerate.
6724 * gnulib/Makefile.in: New file.
6725 * gnulib/configure.ac: New file.
6726 * gnulib/aclocal.m4: New file.
6727 * gnulib/config.in: New file.
6728 * gnulib/configure: New file.
6729 * gnulib/: Re-run gnulib-tool to adjust.
6731 2012-04-19 Doug Evans <dje@google.com>
6733 * cleanups.h (struct cleanup): Move to cleanups.c.
6734 (make_cleanup_dtor_ftype): New typedef.
6735 (make_cleanup_dtor): Use it.
6736 (ALL_CLEANUPS): Replace with ...
6737 (all_cleanups): ... this. Declare. All uses updated.
6738 * cleanups.c: #include "gdb_assert.h".
6739 (sentinel_cleanup): New static global.
6740 (SENTINEL_CLEANUP): Define.
6741 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6742 (make_my_cleanup2): Assert result is non-NULL.
6743 (all_cleanups): New function.
6744 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6747 2012-04-19 Pedro Alves <palves@redhat.com>
6749 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6750 Adjust paths to gnulib imported files.
6752 2012-04-19 Pedro Alves <palves@redhat.com>
6754 * gnulib/: Move whole directory ...
6755 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6756 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6757 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6758 (aclocal_m4_deps): Adjust.
6759 * aclocal.m4: Regenerate.
6760 * configure: Regenerate.
6761 * configure.ac: Adjust AC_OUTPUT output.
6763 2012-04-19 Yao Qi <yao@codesourcery.com>
6765 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6767 * vec.c: Move it ...
6768 * common/vec.c: ... here.
6769 * vec.h: Move it ...
6770 * common/vec.h: ... here.
6772 2012-04-19 Yao Qi <yao@codesourcery.com>
6774 * gdb-code-style.el: New.
6776 2012-04-18 Pedro Alves <palves@redhat.com>
6778 Update gnulib from latest git.
6779 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6781 * gnulib/Makefile.am: Update.
6782 * gnulib/dummy.c: Update.
6783 * gnulib/extra/arg-nonnull.h: Update.
6784 * gnulib/extra/c++defs.h: Update.
6785 * gnulib/extra/update-copyright: Update.
6786 * gnulib/extra/warn-on-use.h: Update.
6787 * gnulib/inttypes.in.h: Update.
6788 * gnulib/m4/00gnulib.m4: Update.
6789 * gnulib/m4/extensions.m4: Update.
6790 * gnulib/m4/gnulib-cache.m4: Update.
6791 * gnulib/m4/gnulib-common.m4: Update.
6792 * gnulib/m4/gnulib-comp.m4: Update.
6793 * gnulib/m4/gnulib-tool.m4: Update.
6794 * gnulib/m4/include_next.m4: Update.
6795 * gnulib/m4/inttypes-pri.m4: Update.
6796 * gnulib/m4/inttypes.m4: Update.
6797 * gnulib/m4/longlong.m4: Update.
6798 * gnulib/m4/memchr.m4: Update.
6799 * gnulib/m4/memmem.m4: Update.
6800 * gnulib/m4/mmap-anon.m4: Update.
6801 * gnulib/m4/multiarch.m4: Update.
6802 * gnulib/m4/onceonly.m4: Update.
6803 * gnulib/m4/stddef_h.m4: Update.
6804 * gnulib/m4/stdint.m4: Update.
6805 * gnulib/m4/string_h.m4: Update.
6806 * gnulib/m4/warn-on-use.m4: Update.
6807 * gnulib/m4/wchar_h.m4: Update.
6808 * gnulib/m4/wchar_t.m4: Update.
6809 * gnulib/m4/wint_t.m4: Update.
6810 * gnulib/memchr.c: Update.
6811 * gnulib/memmem.c: Update.
6812 * gnulib/stddef.in.h: Update.
6813 * gnulib/stdint.in.h: Update.
6814 * gnulib/str-two-way.h: Update.
6815 * gnulib/string.in.h: Update.
6816 * gnulib/wchar.in.h: Update.
6818 * gnulib/extra/arg-nonnull.h: Delete.
6819 * gnulib/extra/c++defs.h: Delete.
6820 * gnulib/extra/warn-on-use.h: Delete.
6821 * gnulib/m4/wchar_h.m4: Delete.
6822 * gnulib/m4/wint_t.m4: Delete.
6823 * gnulib/wchar.in.h: Delete.
6825 * gnulib/extra/snippets/arg-nonnull.h: New.
6826 * gnulib/extra/snippets/c++defs.h: New.
6827 * gnulib/extra/snippets/warn-on-use.h: New.
6829 * aclocal.m4: Regenerate.
6830 * config.in: Regenerate.
6831 * configure: Regenerate.
6832 * gnulib/Makefile.in: Regenerate.
6834 2012-04-18 Pedro Alves <palves@redhat.com>
6836 Reimport the update-copyright module from gnulib
6837 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6839 * configure: Regenerate.
6840 * gnulib/Makefile.am: Update.
6841 * gnulib/Makefile.in: Regenerate.
6842 * gnulib/extra/update-copyright: Update.
6843 * gnulib/m4/gnulib-cache.m4: Update.
6844 * gnulib/m4/gnulib-comp.m4: Update.
6846 2012-04-18 Tristan Gingold <gingold@adacore.com>
6848 * configure.ac (aix): Put -lpthread into libs.
6849 * configure: Regenerate.
6851 2012-04-18 Tom Tromey <tromey@redhat.com>
6853 * linespec.c (convert_linespec_to_sals): Don't use
6855 (compare_msymbols): Arguments are minsym_and_objfile, not
6856 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6858 2012-04-18 Pedro Alves <palves@redhat.com>
6860 Revert gnulib/ part of:
6861 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6862 Copyright year update in most files (performed by copyright.sh).
6864 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6866 Fix 64-bit constants on 32-bit hosts.
6867 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6868 from unsigned long to ULONGEST.
6869 (read_signed_leb128): Change declaration return type from long to
6871 (dwarf2_const_value_attr): Change declaration parameter value from long
6873 (dwarf2_compute_name): Change variable value from long to LONGEST.
6874 (read_unsigned_leb128): Change return type, variable result and some
6875 casts from unsigned long to ULONGEST.
6876 (read_signed_leb128): Change return type, variable result and some
6877 casts from long to LONGEST.
6878 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6879 value from long to LONGEST.
6880 (dwarf2_const_value): Change variable value from long to LONGEST.
6881 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6882 plongest and hex_string.
6883 * symtab.h (struct general_symbol_info): Change ivalue from long to
6884 LONGEST, remove the comment.
6885 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6886 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6888 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6891 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6892 * ada-lang.c (ada_discrete_type_high_bound)
6893 (ada_discrete_type_low_bound): Fix function comment. Use
6894 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6895 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6896 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6897 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6898 Use TYPE_FIELD_ENUMVAL.
6899 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6900 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6901 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6902 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6904 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6905 * dwarf2read.c (process_enumeration_scope): Likewise.
6906 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6908 (class StructMainTypePrettyPrinter): Support also
6909 FIELD_LOC_KIND_ENUMVAL.
6910 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6912 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6913 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6914 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6915 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6917 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6918 accommodate enumval.
6919 (struct call_site): Adjust loc_kind to accommodate enumval.
6920 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6921 (TYPE_FIELD_ENUMVAL): New macros.
6922 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6923 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6925 * p-typeprint.c (pascal_type_print_base): Likewise.
6926 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6928 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6929 * python/py-type.c (convert_field): New variable addrstring. Use
6930 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6931 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6932 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6933 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6935 * valprint.c (generic_val_print): Likewise.
6937 2012-04-17 Doug Evans <dje@google.com>
6939 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6941 * dwarf2read.c: Whitespace fixes.
6942 (lookup_signatured_type): Tweak comment.
6943 (get_die_type_at_offset): Fix comment.
6945 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6947 * xcoffread.c (xcoff_secnum_to_sections): New function.
6948 (secnum_to_section, secnum_to_bfd_section): Reimplement
6949 using xcoff_secnum_to_sections. Rename "secnum" parameter
6951 (RECORD_MINIMAL_SYMBOL): Delete.
6952 (record_minimal_symbol): New function.
6953 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6954 by call to record_minimal_symbol and set misc_func_recorded
6955 to 1. Set last_csect_sec to the XCOFF section index instead
6956 of GDB's section_offset index. Update calls to
6957 prim_record_minimal_symbol_and_info to pass the BFD section
6960 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6962 * xcoffread.c (read_xcoff_symtab): Delete variables
6963 last_csect_val and last_csect_sec and associated code.
6965 2012-04-17 Doug Evans <dje@google.com>
6967 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6968 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6969 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6970 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6972 * cleanups.h: New file.
6973 * cleanups.c: New file.
6974 * Makefile.in (SFILES): Add cleanups.c.
6975 (HFILES_NO_SRCDIR): Add cleanups.h.
6976 (COMMON_OBS): Add cleanups.o.
6977 * defs.h (struct cleanup): Moved to cleanups.h.
6978 (do_cleanups,do_final_cleanups): Ditto.
6979 (discard_cleanups,discard_final_cleanups): Ditto
6980 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6981 (save_cleanups,save_final_cleanups): Ditto.
6982 (restore_cleanups,restore_final_cleanups): Ditto.
6983 (null_cleanup): Ditto.
6984 (make_my_cleanup,make_my_cleanup2): Ditto.
6985 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6986 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6987 (do_cleanups,do_final_cleanups): Ditto.
6988 (discard_cleanups,discard_final_cleanups): Ditto
6989 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6990 (save_cleanups,save_final_cleanups): Ditto.
6991 (restore_cleanups,restore_final_cleanups): Ditto.
6992 (null_cleanup): Ditto.
6993 (make_my_cleanup,make_my_cleanup2): Ditto.
6994 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6996 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6998 (make_cleanup_dyn_string_delete): Ditto.
6999 (make_cleanup_ui_file_delete): Ditto.
7000 (make_cleanup_ui_out_redirect_pop): Ditto.
7001 (make_cleanup_free_section_addr_info): Ditto.
7002 (make_cleanup_restore_integer): Ditto.
7003 (make_cleanup_unpush_target): Ditto.
7004 (make_cleanup_value_free_to_mark): Ditto.
7005 (make_cleanup_value_free): Ditto.
7006 (make_cleanup_free_so): Ditto.
7008 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7010 New option "set debug auto-load".
7011 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7012 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7013 (auto_load_safe_path_vec_update)
7014 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7016 (file_is_auto_load_safe): New parameters debug_fmt and ....
7017 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7018 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7019 caller by explanatory string.
7020 (_initialize_auto_load): Register "set debug auto-load".
7021 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7023 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7024 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7025 by explanatory string.
7026 * main.c (captured_main): Likewise.
7027 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7028 (source_section_scripts): Likewise.
7030 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7032 New option "set auto-load safe-path".
7033 * NEWS: New commands "set auto-load safe-path"
7034 and "show auto-load safe-path".
7035 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7036 (auto_load_safe_path, auto_load_safe_path_vec)
7037 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7038 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7039 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7040 (source_gdb_script_for_objfile): New variable is_safe. Call
7041 file_is_auto_load_safe. Return if it is not.
7042 (struct loaded_script): New field loaded.
7043 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7044 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7045 output "Missing" to "No".
7046 (_initialize_auto_load): New variable cmd. Initialize
7047 auto_load_safe_path. Register "set auto-load safe-path",
7048 "show auto-load safe-path" and "add-auto-load-safe-path".
7049 * auto-load.h (maybe_add_script): Add parameter loaded.
7050 (file_is_auto_load_safe): New declaration.
7051 * config.in: Regenerate.
7052 * configure: Regenerate.
7053 * configure.ac: New parameters --with-auto-load-safe-path
7054 and --without-auto-load-safe-path.
7055 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7056 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7057 * main.c (captured_main): Check file_is_auto_load_safe for
7059 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7060 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7061 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7064 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7066 auto-load: Implementation.
7067 * NEWS: New descriptions for "info auto-load",
7068 "info auto-load gdb-scripts", "info auto-load python-scripts",
7069 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7070 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7071 and "show auto-load-scripts". New description for "set auto-load",
7072 "show auto-load", "set auto-load gdb-scripts",
7073 "show auto-load gdb-scripts", "set auto-load python-scripts",
7074 "show auto-load python-scripts", "set auto-load local-gdbinit",
7075 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7076 "show auto-load libthread-db".
7077 * auto-load.c: Remove include python/python-internal.h. Add includes
7078 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7080 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7081 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7082 (gdbpy_global_auto_load): Rename to ...
7083 (global_auto_load): ... here.
7084 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7085 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7086 (script_language_gdb, source_gdb_script_for_objfile): New.
7087 (struct loaded_script): New field language.
7088 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7090 (maybe_add_script): Add parameter language. Drop redundant
7091 entry.full_path initialization. Initialize entry.language and
7093 (auto_load_objfile_script): Change parameter suffix to language.
7094 Remove the call of maybe_add_script.
7095 Call language->source_script_for_objfile.
7096 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7098 (collect_matching_scripts): Adjust it for
7099 struct collect_matching_scripts_data.
7100 (auto_load_info_scripts_pattern_nl): New variable.
7101 (info_auto_load_scripts): Rename to ...
7102 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7103 for struct collect_matching_scripts_data.
7104 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7105 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7106 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7107 (auto_load_info_cmdlist_get): New.
7108 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7109 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7110 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7111 "info auto-load local-gdbinit".
7112 * auto-load.h (struct script_language): New.
7113 (gdbpy_global_auto_load): Rename to ...
7114 (global_auto_load): ... here.
7115 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7116 (auto_load_local_gdbinit_loaded): New declarations.
7117 (maybe_add_script): New parameter language.
7118 (auto_load_objfile_script): Change parameter suffix to language.
7119 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7120 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7121 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7123 * linux-thread-db.c: Include auto-load.h and ctype.h.
7124 (auto_load_thread_db, show_auto_load_thread_db): New.
7125 (struct thread_db_info): New field filename.
7126 (delete_thread_db_info): Call xfree for FILENAME.
7127 (try_thread_db_load): Initialize FILENAME.
7128 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7129 if !AUTO_LOAD_THREAD_DB.
7130 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7131 (_initialize_thread_db): Install auto_load_thread_db
7132 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7133 as "info auto-load libthread-db".
7134 * main.c (captured_main): Rename gdbpy_global_auto_load to
7135 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7136 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7137 (print_gdb_help): Extend the help for 'local init file'.
7138 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7139 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7140 (auto_load_scripts): Rename to ...
7141 (auto_load_python_scripts): ... here, update the comment.
7142 (gdbpy_load_auto_script_for_objfile): New declaration.
7143 (show_auto_load_python_scripts, script_language_python)
7144 (gdbpy_load_auto_script_for_objfile): New.
7145 (source_section_scripts): Refactor the code.
7146 (load_auto_scripts_for_objfile): Rename to ...
7147 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7148 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7149 (info_auto_load_python_scripts): New.
7150 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7151 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7152 Register "set auto-load-scripts" as its deprecated alias. Register
7153 "info auto-load python-scripts". Register "info auto-load-scripts" as
7154 its deprecated alias.
7155 (load_auto_scripts_for_objfile): Rename to ...
7156 (gdbpy_load_auto_scripts_for_objfile): ... here.
7157 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7158 (gdbpy_load_auto_scripts_for_objfile): ... here.
7160 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7162 auto-load: Move files.
7163 * Makefile.in (SFILES): Add auto-load.c.
7164 (HFILES_NO_SRCDIR): Add auto-load.h.
7165 (COMMON_OBS): Add auto-load.o.
7166 (distclean): Change .gdbinit for gdb-gdb.gdb.
7167 * auto-load.c: New file, with parts from python/py-auto-load.c.
7168 * auto-load.h: New file, with parts from python/python.h.
7169 * configure: Regenerate.
7170 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7171 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7172 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7173 * main.c: Include auto-load.h.
7174 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7175 command.h, observer.h and progspace.h to auto-load.c. Add include
7177 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7178 (struct loaded_script, auto_load_pspace_data)
7179 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7180 (hash_loaded_script_entry, eq_loaded_script_entry)
7181 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7182 (maybe_add_script): Move to auto-load.c.
7183 (source_section_scripts): Change maybe_add_script parameters passing,
7184 use script_not_found_warning_print.
7185 (clear_section_scripts, auto_load_objfile_script)
7186 (auto_load_new_objfile, loaded_script_ptr)
7187 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7188 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7189 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7190 auto_load_new_objfile and info_auto_load_scripts initizations to
7192 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7194 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7197 * charset.c (find_charset_names): Remove variables ix and elt.
7198 Use free_char_ptr_vec.
7199 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7200 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7201 debugdir_end. New variable debugdir_len.
7202 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7203 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7205 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7206 and elt. Use free_char_ptr_vec.
7207 * source.c (add_path): Remove variables argv, arg and argv_index.
7208 New variables dir_vec, back_to, ix and name.
7209 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7210 make_cleanup_freeargv. Remove variable separator. Simplify the code
7211 no longer expecting DIRNAME_SEPARATOR.
7212 (openp): Remove variable p, p1 and len. New variables dir_vec,
7213 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7214 no longer expecting DIRNAME_SEPARATOR.
7215 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7216 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7218 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7219 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7220 (dirnames_to_char_ptr_vec): New functions.
7222 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7225 * source.c (add_path): Remove always true conditional 'p == 0' and
7226 unindent its code block.
7228 2012-04-17 Pedro Alves <palves@redhat.com>
7230 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7231 (FIELD_BITPOS_LVAL): ... this.
7232 (FIELD_BITPOS): New.
7233 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7234 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7235 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7237 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7239 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7240 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7241 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7244 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7247 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7248 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7249 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7250 * jv-lang.c (java_link_class_type): Likewise, once.
7251 * stabsread.c (read_enum_type): Likewise.
7253 2012-04-16 Yao Qi <yao@codesourcery.com>
7255 * common/agent.c (agent_run_command): Add one more parameter `len'.
7257 * common/agent.h: Update declaration.
7258 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7260 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7262 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7265 * value.c (value_actual_type): New function.
7266 * value.h (value_actual_type): New declaration.
7267 * varobj.c (update_type_if_necessary): New function.
7268 (varobj_create): Call value_actual_type instead of
7270 (install_dynamic_child): distinct changed and type changed MI variable
7272 (update_dynamic_varobj_children): Updated for install_dynamic_child
7273 change. All callers updated.
7274 (varobj_update): Support for MI variable object type change if
7275 the value changed and RTTI is used to determine the type.
7276 (create_child_with_value): Call value_actual_type instead of
7278 (adjust_value_for_child_access): Extended with a new parameter which
7279 specify whether the given value should be casted to enclosing type.
7280 All callers updated.
7282 2012-04-14 Yao Qi <yao@codesourcery.com>
7284 Import gnulib module inttypes from git
7285 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7286 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7287 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7288 gnulib/m4/inttypes-pri.m4
7289 * aclocal.m4, config.in, configure: Regenerated.
7290 * gnulib/Makefile.am: Update.
7291 * gnulib/Makefile.in: Update.
7292 * gnulib/m4/gnulib-cache.m4: Update.
7293 * gnulib/m4/gnulib-comp.m4: Update.
7294 * gnulib/inttypes.in.h: New.
7295 * gnulib/m4/inttypes-pri.m4: New.
7296 * gnulib/m4/inttypes.m4: New.
7298 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7300 * infrun.c (resume): Update PC address to the real PC after
7301 preparing to do displaced stepping.
7303 2012-04-12 Doug Evans <dje@google.com>
7305 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7306 All callers updated.
7308 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7310 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7312 2012-04-12 Doug Evans <dje@google.com>
7314 * dwarf2read.c (create_all_type_units): Renamed from
7315 create_debug_types_hash_table. All callers updated.
7317 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7318 local type_sig to sig_type, type_offset to type_offset_in_tu.
7319 (hash_signatured_type): Renamed from hash_type_signature,
7320 all callers updated.
7321 (eq_signatured_type): Renamed from eq_type_signature,
7322 all callers updated.
7323 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7324 (process_enumeration_scope): Ditto.
7325 (lookup_signatured_type_at_offset): Ditto.
7326 (load_full_type_unit, read_signatured_type): Ditto.
7328 2012-04-12 Yao Qi <yao@codesourcery.com>
7330 * remote.c (async_remote_interrupt): Correct function name in
7332 (async_remote_interrupt_twice): Ditto.
7334 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7336 * source.c (find_and_open_source): Consistently pass resulting
7337 full path through xfullpath.
7339 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7341 Provide more specific displaced-stepping memory error message.
7342 * infrun.c (displaced_step_prepare): New variable status. Call
7343 target_read_memory instead of read_memory, provide more specific
7346 2012-04-11 Tristan Gingold <gingold@adacore.com>
7349 * darwin-nat.c (darwin_execvp): Revert previous patch.
7351 2012-04-11 Tristan Gingold <gingold@adacore.com>
7354 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7357 2012-04-11 Tristan Gingold <gingold@adacore.com>
7359 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7362 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7364 New command 'explore' which helps explore values and types in
7366 * NEWS: Add an entry about the new 'explore' command.
7367 * data-directory/Makefile.in: Add gdb/command/explore.py
7368 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7369 command using the GDB Python API.
7371 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7373 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7374 extension in jump target calculation.
7376 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7378 * mips-tdep.c (mips32_next_pc): Handle JALX.
7380 2012-04-10 Yao Qi <yao@codesourcery.com>
7382 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7384 2012-04-10 Yao Qi <yao@codesourcery.com>
7386 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7387 and gnulib/m4/gnulib-tool.m4.
7389 2012-04-10 Doug Evans <dje@google.com>
7391 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7392 (load_partial_dies): Clarify comment.
7393 (find_partial_die): Support rereading type units.
7394 Clarify CU handling, if we know offset is in CU, don't search for the
7395 containing CU. Add comment regarding memory waste.
7397 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7399 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7400 i386/x32-avx and i386/x32-avx-linux.
7401 (i386/x32-expedite): New.
7402 (i386/x32-linux-expedite): Likewise.
7403 (i386/x32-avx-expedite): Likewise.
7404 (i386/x32-avx-linux-expedite): Likewise.
7405 ($(outdir)/i386/x32.dat): Likewise.
7406 ($(outdir)/i386/x32-linux.dat): Likewise.
7407 ($(outdir)/i386/x32-avx.dat): Likewise.
7408 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7410 * features/i386/x32-avx-linux.xml: New file.
7411 * features/i386/x32-avx.xml: Likewise.
7412 * features/i386/x32-core.xml: Likewise.
7413 * features/i386/x32-linux.xml: Likewise.
7414 * features/i386/x32.xml: Likewise.
7416 * features/i386/x32-avx-linux.c: New. Generated.
7417 * features/i386/x32-avx.c: Likewise.
7418 * features/i386/x32-linux.c: Likewise.
7419 * features/i386/x32.c: Likewise.
7420 * regformats/i386/x32-avx-linux.dat: Likewise.
7421 * regformats/i386/x32-avx.dat: Likewise.
7422 * regformats/i386/x32-linux.dat: Likewise.
7423 * regformats/i386/x32.dat: Likewise.
7425 2012-04-10 Tristan Gingold <gingold@adacore.com>
7427 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7428 code to kill the inferior.
7430 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7432 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7434 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7436 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7437 (yyvsp): New defines.
7438 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7440 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7442 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7444 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7446 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7449 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7451 * sparc64-tdep.c (sparc64_store_arguments)
7452 (sparc64_store_arguments): Fix coding style.
7454 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7456 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7457 complex floats, adjust some related comments and tighten a related
7459 (sparc64_extract_return_value): Handle complex floats.
7461 2012-04-07 Doug Evans <dje@google.com>
7463 * dwarf2read.c (load_partial_dies): Change condition to assert.
7465 2012-04-06 Doug Evans <dje@google.com>
7467 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7470 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7472 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7474 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7475 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7478 2012-04-05 Keith Seitz <keiths@redhat.com>
7480 * linespec.c (decode_compound): Remove.
7481 (enum offset_relative_sign): New enum.
7482 (struct line_offset): New struct.
7483 (struct linespec): New struct.
7484 (struct linespec_state): Move file_symtabs,
7485 user_filename, and user_function into struct linespec.
7486 Make result an anonymous struct holding vectors of
7487 symbolp and minsym_and_objfile_d.
7488 Add language member.
7489 (enum ls_token_type): New enum.
7490 (linespec_keywords): New array.
7491 (struct ls_token): New struct.
7492 (struct ls_parser): New struct.
7493 (linespec_lexer_lex_number): New function.
7494 (linespec_lexer_lex_keyword): New function.
7495 (is_ada_operator): New function.
7496 (skip_quote_char): New function.
7497 (copy_token_string): New function.
7498 (is_closing_quote_enclosed): New function.
7499 (find_parameter_list_end): New function.
7500 (linespec_lexer_lex_string): New function.
7501 (linespec_lexer_lex_one): New function.
7502 (linespec_lexer_consume_token): New function.
7503 (linespec_lexer_peek_token): New function.
7504 (cplusplus_error): Remove unused function.
7505 (find_methods): Update comment.
7506 (find_toplevel_char): Return const.
7507 (is_objc_method_format): Remove unused function.
7508 (find_toplevel_string): New function.
7509 (is_linespec_boundary): Remove.
7510 (symbol_not_found_error): New function.
7511 (find_method_overload_end): Remove function.
7512 (unexpected_linespec_error): New function.
7513 (keep_name_info): Remove.
7514 (linespec_parse_line_offset): New function.
7515 (linespec_parse_basic): New function.
7516 (canonicalize_linespec): New function.
7517 (decode_line_internal): Remove.
7518 (create_sals_line_offset): New function adapted from
7520 (convert_linespec_to_sals): New function.
7521 (parse_linespec): New function.
7522 (linespec_parser_new): New function.
7523 (linespec_state_destructor): Change parameter type to
7524 struct linespec_state *.
7525 Add language parameter.
7526 Remove freeing of moved members.
7527 (linespec_parser_delete): New function.
7528 (decode_line_full): Use parse_linespec and linespec_parser_new.
7529 (decode_line_1): Likewise.
7530 (decode_indirect): Rename to ...
7531 (linespec_expression_to_pc): ... this and rewrite
7532 to simply find CORE_ADDR, storing this result for later
7534 (locate_first_half): Remove.
7535 (deocde_objc): Add parameter LS.
7536 Initialize new struct collect_info members.
7537 Handle minimal symbols, too.
7538 (decode_compound): Delete.
7539 (lookup_prefix_sym): Rewrite.
7540 (compare_msymbols): New function.
7541 (find_method): Rewrite.
7542 Do not call cplusplus_error.
7543 (symtabs_from_filename): Rewrite.
7544 (collect_function_symbols): Delete.
7545 (find_function_symbols): Rewrite without ARGPTR-style
7547 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7548 (decode_dollar): Adapted and renamed to ...
7549 (linespec_parse_variable): ... this.
7550 (find_linespec_symbols): New function.
7551 (decode_label): Adapted and renamed to ...
7552 (find_label_symbols): ... this.
7553 (decode_digits_list_mode): Add and use LS argument.
7554 (decode_digits_ordinary): Likewise.
7555 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7556 If in list mode, allow any symbol class. Otherwise, only
7557 permit LOC_BLOCK symbols.
7558 (minsym_found): Update comments.
7559 (search_minsyms_for_name): Do not convert the matching symbol
7560 into a SAL. Simply push the symbol and objfile into the
7562 (decode_variable): Delete. Contents adapted into
7563 find_linespec_symbols.
7565 * cp-support.c (SKIP_SPACE): Remove.
7566 (operator_tokens): Remove unused global.
7567 (cp_validate_operator): Remove.
7568 * cp-support.h (cp_validate_operator): Remove declaration.
7570 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7572 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7573 for TYPE_VPTR_FIELDNO.
7574 * valprint.c (valprint_check_validity): Make it global, move the
7575 function comment ...
7576 * value.h (valprint_check_validity): ... to this new declaration.
7578 2012-04-02 Tristan Gingold <gingold@adacore.com>
7580 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7581 the STATE32 api for i386 state.
7582 (i386_darwin_store_inferior_registers): Likewise.
7584 2012-04-02 Tristan Gingold <gingold@adacore.com>
7586 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7588 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7591 2012-04-02 Tristan Gingold <gingold@adacore.com>
7594 * darwin-nat.c (darwin_execvp): Set binary preference.
7596 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7598 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7600 2012-03-30 Tom Tromey <tromey@redhat.com>
7602 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7603 of TRY_CATCH. Fix error handling.
7604 * python/py-value.c (convert_value_from_python): Move 'old'
7605 declaration to innermost scope.
7607 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7608 Andrey Smirnov <andrew.smirnov@gmail.com>
7610 -Wshadow warning fix.
7611 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7612 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7613 Adjust code accordingly.
7615 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7617 * ada-lang.c (symbol_completion_add): Rename parameter
7618 "encoded" into "encoded_p". Ajust code and documentation
7621 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7622 Andrey Smirnov <andrew.smirnov@gmail.com>
7624 -Wshadow warning fix.
7625 * ada-lang.c (symbol_completion_add): Rename parameter
7626 "wild_match" into wild_match_p. Update code and documentation
7629 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7631 * ada-lang.c (symbol_completion_match): Rename parameter
7632 "encoded" into "encoded_p". Ajust code and documentation
7635 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7636 Andrey Smirnov <andrew.smirnov@gmail.com>
7638 -Wshadow warning fix.
7639 * ada-lang.c (symbol_completion_match): Rename parameter
7640 "wild_match" into "wild_match_p". Adjust code and function
7641 documentation accordingly.
7643 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7644 Andrey Smirnov <andrew.smirnov@gmail.com>
7646 -Wshadow warning fix.
7647 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7648 "symbol_info" into "info". Adjust code accordingly.
7649 (ada_lookup_symbol): Likewise.
7651 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7653 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7654 of this function's documentation.
7656 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7657 Andrey Smirnov <andrew.smirnov@gmail.com>
7659 -Wshadow warning fix.
7660 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7661 variable into "wild_match_p". Adjust code accordingly.
7663 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7664 Andrey Smirnov <andrew.smirnov@gmail.com>
7666 -Wshadow warning fix.
7667 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7668 parameter into "wild_match_p". Adjust code accordingly.
7669 Document this parameter in the function description.
7671 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7672 Andrey Smirnov <andrew.smirnov@gmail.com>
7674 -Wshadow warning fix.
7675 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7676 "wild_match" parameter to "wild_match_p" (-Wshadow).
7678 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7680 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7681 in function documentation.
7683 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7684 Andrey Smirnov <andrew.smirnov@gmail.com>
7686 -Wshadow warning fix.
7687 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7688 variable into wild_match_p. Adjust code accordingly.
7690 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7691 Andrey Smirnov <andrew.smirnov@gmail.com>
7693 * ada-valprint.c (ada_val_print_1): Move the code handling
7694 TYPE_CODE_ENUM inside its own lexical block. Declare
7695 variables len and val there, instead of in the function's
7696 top level block. Avoid declaring deref_val again in a way
7697 that shadows another variable of the same name declared
7698 in one of the up-level blocks. Just re-use the up-level
7701 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7703 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7704 Replace block_found argument by symbol_info. Adjust
7705 implementation accordingly. Add function documentation.
7706 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7708 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7709 * ada-exp.y (write_object_renaming): Adjust to new
7710 ada_lookup_encoded_symbol API.
7712 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7714 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7717 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7719 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7720 (v850_register_name): Add the mpu and fpu register names.
7721 (v850e_register_name): Add the mpu and fpu register names.
7722 (v850e2_register_name): New function.
7723 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7726 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7728 * NEWS: Add entry for Ada varobj support.
7730 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7732 * varobj.c (default_value_is_changeable_p): New function,
7733 extracted from varobj_value_is_changeable_p. Add declaration.
7734 (ada_value_is_changeable_p): New function, extracted from
7735 varobj_value_is_changeable_p. Add declaration.
7736 (struct language_specific): New field "value_is_changeable_p".
7737 (languages): Add entries for new field.
7738 (varobj_create): Set language before calling install_new_value.
7739 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7740 "value_is_changeable_p" language callback.
7742 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7744 * ada-varobj.h, ada-varobj.c: New files.
7745 * Makefile.in (SFILES): Add ada-varobj.c.
7746 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7747 (COMMON_OBS): Add ada-varobj.o.
7749 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7751 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7752 (struct language_specific): New field "value_has_mutated".
7753 (languages): Set field "value_has_mutated" in each entry of array.
7754 (varobj_value_has_mutated): New function.
7755 (varobj_udpdate): Add handling of type mutation.
7756 (value_of_root): Add handling of type mutation.
7757 (ada_value_has_mutated): New function.
7759 2012-03-28 Pedro Alves <palves@redhat.com>
7761 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7762 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7764 2012-03-28 Tom Tromey <tromey@redhat.com>
7766 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7767 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7770 2012-03-28 Tom Tromey <tromey@redhat.com>
7772 * .dir-locals.el: New file.
7774 2012-03-28 Pedro Alves <palves@redhat.com>
7776 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7778 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7780 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7783 2012-03-27 Pedro Alves <palves@redhat.com>
7785 Eliminate struct ui_stream.
7787 * ui-out.h (struct ui_stream): Delete.
7788 (ui_out_field_stream): Adjust prototype.
7789 (ui_out_stream_new, ui_out_stream_delete)
7790 (make_cleanup_ui_out_stream_delete): Delete declarations.
7791 * ui-out.c (ui_out_field_stream): Change prototype to take a
7792 ui_file instead of a ui_stream. Adjust.
7793 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7794 (make_cleanup_ui_out_stream_delete): Delete.
7795 * breakpoint.c (print_breakpoint_location)
7796 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7797 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7798 * disasm.c (dump_insns): Ditto.
7799 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7801 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7802 ui_stream/ui_out_stream_new.
7803 * infcmd.c (print_return_value): Ditto.
7804 * osdata.c (info_osdata_command): Don't allocate a local
7806 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7807 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7808 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7809 allocate a local ui_stream.
7810 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7811 instead of ui_stream/ui_out_stream_new.
7812 (list_args_or_locals): Don't allocate a local ui_stream.
7813 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7814 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7815 ui_stream/ui_out_stream_new.
7816 * cli/cli-setshow.c (do_setshow_command): Ditto.
7818 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7820 * arm-linux-tdep.c (arm_linux_init_abi): Call
7821 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7822 * arm-tdep.c (arm_process_record): New function.
7823 (deallocate_reg_mem): New function.
7824 (decode_insn): New function.
7825 (thumb_record_branch): New function.
7826 (thumb_record_ldm_stm_swi(): New function.
7827 (thumb_record_misc): New function.
7828 (thumb_record_ld_st_stack): New function.
7829 (thumb_record_ld_st_imm_offset): New function.
7830 (thumb_record_ld_st_reg_offset(): New function.
7831 (thumb_record_add_sub_cmp_mov): New function.
7832 (thumb_record_shift_add_sub): New function.
7833 (arm_record_coproc_data_proc): New function.
7834 (arm_record_coproc): New function.
7835 (arm_record_b_bl): New function.
7836 (arm_record_ld_st_multiple): New function.
7837 (arm_record_ld_st_reg_offset): New function.
7838 (arm_record_ld_st_imm_offset): New function.
7839 (arm_record_data_proc_imm): New function.
7840 (arm_record_data_proc_misc_ld_str): New function.
7841 (arm_record_extension_space): New function.
7842 (arm_record_strx): New function.
7843 (sbo_sbz): New function.
7844 (struct insn_decode_record): New structure for arm insn record.
7845 (REG_ALLOC): New macro for reg allocations.
7846 (MEM_ALLOC): New macro for memory allocations.
7847 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7849 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7851 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7852 (store_register): Likewise.
7854 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7856 * MAINTAINERS (Write After Approval): Add myself to the list.
7858 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7860 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7861 Describe also the option "auto".
7863 2012-03-22 Richard Henderson <rth@redhat.com>
7865 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7866 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7868 2012-03-22 Richard Henderson <rth@redhat.com>
7870 * jit.c (jit_read_code_entry): Compute alignment and offset of
7871 int64_t member before computing entry_size.
7873 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7875 Python scripting: Add new method Value.referenced_value to
7876 gdb.Value which can dereference pointer as well as reference
7878 * NEWS: Add entry under 'Python scripting' about the new method
7879 Value.referenced_value on gdb.Value objects.
7880 * python/py-value.c (valpy_referenced_value): New function
7881 defining a new method on gdb.Value objects which can dereference
7882 pointer and reference values.
7884 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7886 * MAINTAINERS (Write After Approval): Add myself to the list.
7888 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7890 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7891 in addition to "main".
7893 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7895 * expression.h (op_name): Add declaration.
7896 * expprint.c (op_name): Remove declaration. Make non-static.
7897 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7899 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7901 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7903 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7904 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7905 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7906 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7907 (linux_nat_get_siginfo): Likewise.
7908 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7909 (linux_nat_get_siginfo): Likewise.
7910 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7911 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7912 * procfs.c (gdb_siginfo_t): Likewise.
7914 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7916 * .gitignore: Ignore more files.
7918 2012-03-20 Pedro Alves <palves@redhat.com>
7920 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7923 2012-03-20 Yao Qi <yao@codesourcery.com>
7925 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7928 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7930 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7931 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7932 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7934 * dwarf2expr.h (cu_offset, sect_offset): New types.
7935 (struct dwarf_expr_context_funcs) <dwarf_call>
7936 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7938 (struct dwarf_expr_context) <len>: Improve the comment.
7939 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7940 cu_offset and sect_offset.
7941 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7942 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7943 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7944 * dwarf2loc.h: Include dwarf2expr.h.
7945 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7947 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7948 Improve the comment.
7949 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7950 (struct signatured_type, struct line_header, struct partial_die_info)
7951 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7952 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7953 (get_die_type_at_offset, create_cus_from_index)
7954 (create_signatured_type_table_from_index, dw2_get_file_names)
7955 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7956 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7957 (create_debug_types_hash_table, process_psymtab_comp_unit)
7958 (load_partial_comp_unit, create_all_comp_units)
7959 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7960 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7961 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7962 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7963 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7964 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7965 (find_partial_die, read_attribute_value, lookup_die_type)
7966 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7967 (is_ref_attr): New function comment.
7968 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7969 Use cu_offset and sect_offset.
7970 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7971 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7972 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7973 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7974 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7975 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7976 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7979 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7982 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7983 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7985 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7987 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7989 * NEWS: Describe new options --init-command=FILE, -ix and
7990 --init-eval-command=COMMAND, -iex.
7991 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7992 CMDARG_INIT_COMMAND.
7993 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7994 "init-command", "init-eval-command", "ix" and "iex" to the variable
7995 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7996 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7997 (print_gdb_help): Describe --init-command=FILE, -ix and
7998 --init-eval-command=COMMAND, -iex.
8000 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8003 * main.c (struct cmdarg): Move it here from main. Add more comments.
8004 (cmdarg_s, VEC (cmdarg_s)): New.
8005 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8006 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8007 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8008 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8011 2012-03-19 Tom Tromey <tromey@redhat.com>
8013 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8015 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8018 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8021 2012-03-16 Chris January <chris.january@allinea.com>
8023 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8026 2012-03-16 Chris January <chris.january@allinea.com>
8028 * source.c (add_path): Use memmove instead of strcpy because the
8031 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8033 * value.h (set_value_parent): Add declaration.
8034 * value.c (set_value_parent): New function.
8035 (value_address): If VALUE->PARENT is not NULL, then use it as
8036 the base address instead of VALUE->LOCATION.address.
8037 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8038 the same as OBJ's address. Adjust V's offset accordingly.
8041 2012-03-16 Gary Benson <gbenson@redhat.com>
8043 PR breakpoints/10738
8044 * dwarf2read.c (use_deprecated_index_sections): New global.
8045 (struct partial_die_info): New member may_be_inlined.
8046 (read_partial_die): Set may_be_inlined where appropriate.
8047 (add_partial_subprogram): Add partial symbols for partial
8048 DIEs that may be inlined.
8049 (new_symbol_full): Add inlined subroutines to the current
8051 (write_psymtabs_to_index): Bump version number.
8052 (dwarf2_read_index): Read only version 6 indices unless
8053 use_deprecated_index_sections is set.
8054 * linespec.c (symbol_and_data_callback): New structure.
8055 (iterate_inline_only): New function.
8056 (iterate_over_all_matching_symtabs): New argument
8057 "include_inline". If nonzero, also call the callback for
8058 symbols representing inlined subroutines.
8059 (lookup_prefix_sym): Pass extra argument to the above.
8060 (find_function_symbols): Likewise.
8061 (add_matching_symbols_to_info): Likewise.
8062 * NEWS: Mention that GDB can now set breakpoints on inlined
8065 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8067 * p-typeprint.c (pascal_type_print_method_args):
8068 Fix display of parameter of methods.
8070 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8072 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8073 Add missing prototype.
8075 2012-03-16 Yao Qi <yao@codesourcery.com>
8076 Jan Kratochvil <jan.kratochvil@redhat.com>
8078 Fix false compilation warning.
8079 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8081 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8082 Pedro Alves <pedro@codesourcery.com>
8084 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8085 (arm_register_g_packet_guesses): New function.
8086 (arm_gdbarch_init): Don't force a target description with
8087 registers when the executable is detected as M-profile. Instead
8088 set gdbarch->tdep->is_m. Register `g' packet guesses.
8089 (_initialize_arm_tdep): Initialize the new target description.
8090 * features/arm-with-m-fpa-layout.xml: New description.
8091 * features/arm-with-m-fpa-layout.c: New, generated.
8093 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8095 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8096 Update function description.
8097 (insert_bp_location): Do not wipe bl->target_info out.
8098 * mem-break.c: #include "gdb_string.h".
8099 (default_memory_insert_breakpoint): Do not call target_read_memory
8100 with a pointer to the breakpoint's shadow_contents buffer. Use
8101 a local buffer instead.
8102 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8104 2012-03-15 Tom Tromey <tromey@redhat.com>
8106 * NEWS: Mention "info vtbl", not "info vtable".
8107 * cp-support.c (info_vtbl_command): Fix comment.
8108 (_initialize_cp_support): Fix text.
8110 2012-03-15 Tom Tromey <tromey@redhat.com>
8112 * cp-valprint.c (cp_print_value_fields): Use
8113 print_function_pointer_address for vtable slot.
8115 2012-03-15 Tom Tromey <tromey@redhat.com>
8117 * gnu-v3-abi.c (struct value_and_voffset): New.
8118 (hash_value_and_voffset, eq_value_and_voffset)
8119 (compare_value_and_voffset, compute_vtable_size)
8120 (print_one_vtable, gnuv3_print_vtable): New functions.
8121 (init_gnuv3_ops): Initialize 'print_vtable' field.
8122 * cp-support.c (info_vtbl_command): New function.
8123 (_initialize_cp_support): Add "info vtbl".
8124 * cp-abi.h (cplus_print_vtable): Declare.
8125 (struct cp_abi_ops) <print_vtable>: New field.
8126 * cp-abi.c (cplus_print_vtable): New function.
8129 2012-03-15 Tom Tromey <tromey@redhat.com>
8131 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8132 iterate_over_symbols.
8134 2012-03-14 Doug Evans <dje@google.com>
8136 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8137 DW_OP_GNU_parameter_ref.
8139 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8141 Fix double prompt of 'interpreter-exec mi'.
8142 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8143 (mi_interpreter_resume): use it.
8144 (mi_execute_command_input_handler): New function.
8145 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8146 mi_execute_command_input_handler.
8148 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8150 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8152 (darwin_debug_port_info): Make static.
8153 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8154 * machoread.c (_initialize_machoread): Add prototype.
8155 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8156 (i386_darwin_set_control, i386_darwin_get_control)
8157 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8158 i386_darwin_get_status, i386_darwin_get_control):
8159 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8161 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8163 * ax-gdb.c (gen_usual_unary): Remove special handling of
8164 enum and bool types.
8166 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8168 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8170 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8172 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8174 2012-03-13 Chris January <chris.january@allinea.com>
8176 * aix-thread.c (fill_sprs): Store the floating point registers
8177 at the correct offsets into vals.
8179 2012-03-13 Doug Evans <dje@google.com>
8181 * NEWS: Mention symbol-reloading has been deleted.
8182 * symfile.c (symbol_reloading): Delete.
8183 (show_symbol_reloading): Delete.
8184 (_initialize_symfile): Delete set/show symbol-reloading.
8186 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8187 read_in_chain until we have successfully read it in.
8188 (load_full_comp_unit): Ditto.
8189 (read_signatured_type): Add comment.
8191 2012-03-13 Chris January <chris.january@allinea.com>
8193 * stabsread.c (fix_common_block): Change type of valu argument
8196 2012-03-13 Chris January <chris.january@allinea.com>
8198 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8201 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8203 * common/linux-procfs.c (linux_proc_get_int): New, from
8204 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8206 (linux_proc_get_tgid): Only call linux_proc_get_int.
8207 (linux_proc_get_tracerpid): New.
8208 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8209 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8210 linux_proc_pid_has_state.
8211 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8212 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8213 (linux_ptrace_attach_warnings): New.
8214 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8216 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8217 (linux_nat_attach): New variables ex, buffer, message and message_s.
8218 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8220 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8222 * Makefile.in (linux-ptrace.o): New.
8223 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8225 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8226 * common/linux-ptrace.c: New file.
8227 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8228 * config/arm/linux.mh: Likewise.
8229 * config/i386/linux.mh: Likewise.
8230 * config/i386/linux64.mh: Likewise.
8231 * config/ia64/linux.mh: Likewise.
8232 * config/m32r/linux.mh: Likewise.
8233 * config/m68k/linux.mh: Likewise.
8234 * config/mips/linux.mh: Likewise.
8235 * config/pa/linux.mh: Likewise.
8236 * config/powerpc/linux.mh: Likewise.
8237 * config/powerpc/ppc64-linux.mh: Likewise.
8238 * config/powerpc/spu-linux.mh: Likewise.
8239 * config/s390/s390.mh: Likewise.
8240 * config/sparc/linux.mh: Likewise.
8241 * config/sparc/linux64.mh: Likewise.
8242 * config/xtensa/linux.mh: Likewise.
8243 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8244 common/linux-procfs.c.
8245 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8247 2012-03-13 Hui Zhu <teawater@gmail.com>
8248 Pedro Alves <palves@redhat.com>
8250 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8251 CREATE_BREAKPOINT_FLAGS_INSERTED.
8252 (create_breakpoint_sal, create_breakpoints_sal)
8253 (base_breakpoint_create_breakpoints_sal)
8254 (tracepoint_create_breakpoints_sal)
8255 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8257 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8258 (ftrace_command, strace_command): Adjust.
8259 (create_tracepoint_from_upload): Pass
8260 CREATE_BREAKPOINT_FLAGS_INSERTED.
8261 * breakpoint.h (enum breakpoint_create_flags): New.
8262 (create_breakpoint): New flags parameter.
8263 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8264 * python/py-breakpoint.c (bppy_init): Adjust.
8265 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8266 * spu-tdep.c (spu_catch_start): Adjust.
8268 2012-03-13 Pedro Alves <palves@redhat.com>
8269 Hui Zhu <teawater@gmail.com>
8270 Yao Qi <yao@codesourcery.com>
8272 * remote.c (struct remote_state): New field `starting_up'.
8273 (remote_start_remote): Set and clear it.
8274 (remote_can_download_tracepoint): If starting up, return false.
8276 2012-03-13 Yao Qi <yao@codesourcery.com>
8278 * inferior.h (struct inferior): Remove fields any_syscall_count,
8279 syscalls_counts and total_syscalls_count. Move them to new
8280 struct catch_syscall_inferior_data in breakpoint.c.
8281 * breakpoint.c: Call DEF_VEC_I(int).
8282 (struct catch_syscall_inferior_data): New.
8283 (get_catch_syscall_inferior_data): New.
8284 (catch_syscall_inferior_data_cleanup): New.
8285 (insert_catch_syscall): Update to access data in
8286 struct catch_syscall_inferior_data.
8287 (insert_catch_syscall): Likewise.
8288 (remove_catch_syscall): Likewise.
8289 (remove_catch_syscall): Likewise.
8290 (is_syscall_catchpoint_enabled): Likewise.
8291 (add_catch_command): Likewise.
8292 (_initialize_breakpoint): Register cleanup.
8293 * breakpoint.h: Removed DEF_VEC_I(int).
8294 * dwarf2loc.c: Call DEF_VEC_I(int).
8295 * mi/mi-main.c: Likewise.
8297 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8299 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8301 2012-03-12 Chris January <chris.january@allinea.com>
8303 * aix-thread.c (_initialize_aix_thread): Add prototype.
8304 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8305 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8307 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8309 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8310 include of "amd64-nat.h".
8312 2012-03-12 Tom Tromey <tromey@redhat.com>
8314 * buildsym.c (record_pending_block): Now static.
8315 * buildsym.h: (record_pending_block): Remove.
8317 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8319 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8321 2012-03-09 Tom Tromey <tromey@redhat.com>
8323 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8324 producer_is_gxx_lt_4_6>: New fields.
8325 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8327 2012-03-09 Tom Tromey <tromey@redhat.com>
8329 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8331 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8333 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8336 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8338 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8340 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8342 Fix -Wmissing-prototypes build.
8343 * arm-linux-nat.c (get_thread_id): Make it static.
8344 * xtensa-linux-nat.c (get_thread_id): Likewise.
8346 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8348 * server.c (process_point_options): If a conditional expression
8349 is found, only print a message if remote_debug is nonzero.
8351 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8353 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8354 of internal error for unknown/unsupported types.
8356 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8358 Fix CU relative vs. absolute DIE offsets.
8359 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8360 offset to offset_in_cu.
8361 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8363 (dwarf2_fetch_die_location_block): Rename parameter offset to
8364 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8366 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8368 * libunwind-frame.c: Rename to ...
8369 * ia64-libunwind-tdep.c: ... here.
8370 * libunwind-frame.h: Rename to ...
8371 * ia64-libunwind-tdep.h: ... here.
8372 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8373 ia64-libunwind-tdep.h.
8374 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8375 * README (--with-libunwind): Rename to ...
8376 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8377 * config.in: Regenerate.
8378 * configure: Regenerate.
8379 * configure.ac: New option --with-libunwind-ia64, make the
8380 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8381 Remove AC_DEFINE for HAVE_LIBUNWIND.
8382 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8383 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8384 Rename libunwind-frame in the general comment.
8385 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8386 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8387 Move forward declarations inside #ifndef. Rename libunwind-frame in
8388 the general comment.
8389 * ia64-tdep.c: Rename libunwind-frame.h #include to
8390 ia64-libunwind-tdep.h.
8391 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8392 (ia64_libunwind_descr): Rename libunwind-frame to
8393 ia64-libunwind-tdep in these function comments.
8394 * ia64-tdep.h: Rename libunwind-frame.h #include to
8395 ia64-libunwind-tdep.h.
8396 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8397 ia64-libunwind-tdep in that data comment.
8399 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 * libunwind-frame.h (struct frame_unwind): New declaration.
8403 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8405 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8406 "set breakpoint condition-evaluation" command.
8408 2012-03-08 Tristan Gingold <gingold@adacore.com>
8410 * sparc-stub.c: Move to stubs/
8411 * sh-stub.c: Likewise.
8412 * m68k-stub.c: Likewise.
8413 * m32r-stub.c: Likewise.
8414 * i386-stub.c: Likewise.
8416 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8418 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8419 linux_get_siginfo_type.
8421 * m68klinux-nat.c: Include "gdb_proc_service.h".
8422 (PTRACE_GET_THREAD_AREA): Define.
8423 (ps_get_thread_area): New function.
8425 2012-03-08 Yao Qi <yao@codesourcery.com>
8427 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8429 (remote_query_attached): Likewise.
8430 (remote_static_tracepoint_marker_at): Likewise.
8431 (remote_set_permissions): Likewise.
8432 (remote_detach_1, extended_remote_attach_1): Likewise.
8433 (send_g_packet, remote_vkill): Likewise.
8434 (extended_remote_disable_randomization): Likewise.
8435 (remote_add_target_side_condition): Likewise.
8436 (remote_insert_breakpoint): Likewise.
8437 (remote_remove_breakpoint): Likewise.
8438 (remote_insert_watchpoint): Likewise.
8439 (remote_remove_watchpoint): Likewise.
8440 (remote_insert_hw_breakpoint): Likewise.
8441 (remote_insert_hw_breakpoint): Likewise.
8442 (remote_remove_hw_breakpoint): Likewise.
8443 (remote_download_command_source): Likewise.
8444 (remote_download_tracepoint): Likewise.
8445 (remote_download_trace_state_variable): Likewise.
8446 (remote_disable_tracepoint): Likewise.
8447 (remote_trace_set_readonly_regions): Likewise.
8448 (remote_get_tracepoint_status): Likewise.
8449 (remote_trace_find): Likewise.
8450 (remote_get_trace_state_variable_value): Likewise.
8451 (remote_set_disconnected_tracing): Likewise.
8452 (remote_set_circular_trace_buffer): Likewise.
8453 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8454 (remote_use_agent): Likewise.
8455 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8458 2012-03-07 Pedro Alves <palves@redhat.com>
8460 * NEWS: Mention QProgramSignals.
8461 * inferior.h (update_signals_program_target): Declare.
8462 * infrun.c: (update_signals_program_target): New.
8463 (handle_command): Update the target of the new program signals
8465 * remote.c (PACKET_QProgramSignals): New enum.
8466 (last_program_signals_packet): New global.
8467 (remote_program_signals): New.
8468 (remote_start_remote): Update the target with the program signals
8470 (remote_protocol_features): Add entry for QPassSignals.
8471 (remote_open_1): Free anc clear last_program_signals_packet.
8472 (init_remote_ops): Install remote_program_signals.
8473 * target.c (update_current_target): Adjust.
8474 (target_program_signals): New.
8475 * target.h (struct target_ops) <to_program_signals>: New field.
8476 (target_program_signals): Declare.
8478 2012-03-07 Pedro Alves <palves@redhat.com>
8480 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8483 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8485 * m68klinux-nat.c (getregs_supplies): Make static.
8486 (getfpregs_supplies): Likewise.
8487 (have_ptrace_getregs): Likewise.
8489 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8491 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8492 in call to get_die_type_at_offset.
8494 2012-03-06 Stan Shebs <stan@codesourcery.com>
8496 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8497 * mi/mi-cmd-disas.c: Ditto.
8498 * mi/mi-cmd-env.c: Ditto.
8499 * mi/mi-cmd-file.c: Ditto.
8500 * mi/mi-cmd-stack.c: Ditto.
8501 * mi/mi-cmd-target.c: Ditto.
8502 * mi/mi-cmd-var.c: Ditto.
8503 * mi/mi-cmds.c: Ditto.
8504 * mi/mi-cmds.h: Ditto.
8505 * mi/mi-console.c: Ditto.
8506 * mi/mi-getopt.c: Ditto.
8507 * mi/mi-getopt.h: Ditto.
8508 * mi/mi-interp.c: Ditto.
8509 * mi/mi-main.c: Ditto.
8510 * mi/mi-out.c: Ditto.
8511 * mi/mi-parse.c: Ditto.
8512 * mi/mi-parse.h: Ditto.
8513 * mi/mi-symbol-cmds.c: Ditto.
8515 * mi/mi-getopt.h: Move mi_opt struct up.
8516 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8518 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8520 2012-03-06 Tom Tromey <tromey@redhat.com>
8522 * proc-service.c (ps_pglobal_lookup): Set the current program
8525 2012-03-06 Pedro Alves <palves@redhat.com>
8527 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8529 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8531 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8533 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8536 * common/linux-osdata.c (linux_common_core_of_thread): New function
8538 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8539 call by linux_common_core_of_thread.
8540 (linux_nat_core_of_thread_1): Remove.
8541 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8542 * linux-thread-db.c: Include linux-osdata.h.
8543 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8544 linux_common_core_of_thread.
8546 2012-03-05 Tom Tromey <tromey@redhat.com>
8548 * value.c (value_primitive_field): Don't fetch contents for
8551 2012-03-05 Tom Tromey <tromey@redhat.com>
8553 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8555 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8557 * s390-nat.c: Include "gregset.h".
8559 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8561 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8562 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8563 (libunwind_load): New variable so_error, use it for dlerror. Try to
8564 load also LIBUNWIND_SO_7.
8566 2012-03-05 Pedro Alves <palves@redhat.com>
8568 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8569 is not NULL, and remove resulting dead code.
8571 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8573 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8574 prologue to sh_analyze_prologue.
8575 (sh_analyze_prologue): Make better use of such an upper limit, and
8576 generally be more cautious about accessing memory.
8578 2012-03-05 Tom Tromey <tromey@redhat.com>
8580 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8581 _initialize_ia64_hpux_tdep.
8583 2012-03-05 Pedro Alves <palves@redhat.com>
8587 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8588 the register state is clear, supply explicit zero, instead of
8589 marking the register unavailable.
8591 2012-03-05 Tristan Gingold <gingold@adacore.com>
8593 * NEWS: Mention OpenVMS ia64 new target.
8595 2012-03-05 Tristan Gingold <gingold@adacore.com>
8597 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8598 (ia64_unw_accessors, ia64_unw_rse_accessors)
8599 (ia64_libunwind_descr): Declare.
8600 * ia64-vms-tdep.c: New file.
8601 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8602 (ia64_libunwind_descr): Make them public.
8603 * configure.tgt: Add ia64-*-*vms*.
8604 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8605 (ALLDEPFILES): Add ia64-vms-tdep.c
8607 2012-03-05 Tristan Gingold <gingold@adacore.com>
8609 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8610 * remote.c (PACKET_qXfer_uib): New enum value.
8611 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8612 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8613 (_initialize_remote): Call add_packet_config_cmd for
8616 2012-03-05 Tristan Gingold <gingold@adacore.com>
8618 * osabi.c (gdb_osabi_names): Add OpenVMS.
8619 (generic_elf_osabi_sniffer): Likewise.
8620 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8622 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8624 Removed unused code.
8625 * libunwind-frame.c (libunwind_frame_unwind)
8626 (libunwind_frame_base_address): Remove.
8627 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8629 2012-03-04 Yao Qi <yao@codesourcery.com>
8631 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8632 remove trailing new line.
8633 (agent_run_command, agent_run_command): Add _ markup.
8634 (agent_capability_check): Likewise.
8636 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8638 * breakpoint.c (set_condition_evaluation_mode): Set
8639 CONDITION_EVALUATION_MODE unconditionally.
8641 2012-03-03 Yao Qi <yao@codesourcery.com>
8643 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8644 * common/agent.h: Update declaration.
8645 * inf-child.c (inf_child_use_agent): New.
8646 (inf_child_can_use_agent): New.
8647 (inf_child_target): Initialize fields `to_use_agent'
8648 and `to_can_use_agent'.
8649 * agent.c (agent_new_objfile): New.
8650 (_initialize_agent): Add agent_new_objfile to new_objfile
8653 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8655 (linux_target_install_ops): Initialize field
8656 `to_static_tracepoint_markers_by_strid'.
8657 * remote.c (free_current_marker): Move it to ...
8658 * tracepoint.c (free_current_marker): ... here. New.
8659 (cleanup_target_stop): New.
8660 * tracepoint.h: Declare free_current_marker.
8661 * NEWS: Add one entry about `info static-tracepoint-marker'.
8663 2012-03-03 Yao Qi <yao@codesourcery.com>
8665 * common/agent.c (agent_loaded_p): New.
8666 (agent_look_up_symbols): New global.
8667 * common/agent.h: Declare agent_loaded_p.
8669 2012-03-03 Yao Qi <yao@codesourcery.com>
8671 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8672 (agent_capability_check, agent_capability_invalidate): New.
8673 (symbol_list): New array element.
8674 * common/agent.h (enum agent_capa): New.
8675 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8677 2012-03-03 Yao Qi <yao@codesourcery.com>
8679 * target.h (struct target_ops) <to_use_agent>: New field.
8680 (struct target_ops) <to_can_use_agent>: New field.
8681 (target_use_agent, target_can_use_agent): New macro.
8682 * target.c (update_current_target): Update.
8683 * remote.c: New enum `PACKET_QAgent'.
8684 (remote_protocol_features): Add a new element.
8685 (remote_use_agent, remote_can_use_agent): New.
8686 (init_remote_ops): Initialize field `can_use_agent' with
8687 remote_can_use_agent. Intiailize field `use_agent' with
8689 * common/agent.c (use_agent): New global.
8690 * common/agent.h: Declare it.
8691 * tracepoint.c (info_static_tracepoint_markers_command): Add
8693 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8694 (COMMON_OBS): Add common/agent.o and agent.o
8695 (common-agent.o): New rule.
8698 2012-03-03 Yao Qi <yao@codesourcery.com>
8700 * common/agent.c: New.
8701 * common/agent.h: New.
8702 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8704 * configure, configh.in: Regenerated.
8706 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8708 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8709 unless it exists for this architecture.
8711 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8713 * language.h (struct language_defn): New "method" la_read_var_value.
8714 * findvar.c: #include "language.h".
8715 (default_read_var_value): Renames read_var_value. Rewrite
8716 function description.
8717 (read_var_value): New function.
8718 * value.h (default_read_var_value): Add prototype.
8719 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8721 (ada_language_defn): Add entry for la_read_var_value.
8722 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8723 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8724 language_defn structures to add entry for new la_read_var_value
8727 2012-03-02 Tom Tromey <tromey@redhat.com>
8728 Pedro Alves <palves@redhat.com>
8730 PR breakpoints/13776:
8731 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8733 (delete_longjmp_breakpoint_at_next_stop): New.
8734 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8735 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8736 before deleting the inferior. Add comments.
8737 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8738 breakpoints immediately, but only on next stop. Move that code
8739 next to where we mark other breakpoints for deletion.
8741 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8743 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8745 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8748 2012-03-02 Pedro Alves <palves@redhat.com>
8750 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8752 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8754 Fix -Wmissing-prototypes build.
8755 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8756 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8757 (gdbsim_has_memory): Likewise.
8759 2012-03-02 Yao Qi <yao@codesourcery.com>
8761 Fix -Wmissing-prototypes build.
8762 * charset.c (phony_iconv_open): Make static.
8763 (phony_iconv_close, phony_iconv): Likewise.
8764 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8765 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8767 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8768 * ser-mingw.c (create_select_thread): Make static.
8769 * windows-termcap.c (tgetent): New prototype.
8770 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8772 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8774 Fix -Wmissing-prototypes build.
8775 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8776 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8777 (_initialize_loadable): New prototypes.
8779 2012-03-02 Doug Evans <dje@google.com>
8781 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8782 abbrev table, read_comp_unit will do it.
8784 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8786 Fix -Wmissing-prototypes build.
8787 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8788 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8789 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8790 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8791 (_initialize_arm_symbian_tdep): New prototype.
8792 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8793 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8794 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8796 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8797 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8799 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8800 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8801 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8803 * moxie-tdep.c (moxie_process_record): Likewise.
8804 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8805 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8806 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8807 (_initialize_rl78_tdep): New prototype.
8808 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8809 (_initialize_rx_tdep): New prototype.
8810 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8811 (_initialize_darwin_solib): New prototype.
8812 * solib-spu.c: Include solib-spu.h.
8813 (_initialize_spu_solib): New prototype.
8814 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8815 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8816 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8817 (tic6x_software_single_step): Make it static.
8818 (_initialize_tic6x_tdep): New prototype.
8820 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8822 Fix -Wmissing-prototypes build.
8823 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8824 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8826 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8828 Fix -Wmissing-prototypes build.
8829 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8830 (frv_have_stopped_data_address): Remove.
8832 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8834 Fix -Wmissing-prototypes build.
8835 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8836 * sh-tdep.c: Include sh64-tdep.h.
8837 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8838 * sh64-tdep.c: Include sh64-tdep.h.
8839 * sh64-tdep.h: New file.
8841 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8843 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8845 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8847 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8848 sp_regnum once the gdbarch_init_osabi hook has been called.
8850 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8852 * mips-tdep.c (mips32_bc1_pc): New function.
8853 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8854 BPOSGE32 and BPOSGE64 instructions.
8855 (deal_with_atomic_sequence): Likewise.
8856 (mips32_instruction_has_delay_slot): Likewise.
8858 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8859 Chris Dearman <chris@mips.com>
8860 Maciej W. Rozycki <macro@codesourcery.com>
8861 Joseph Myers <joseph@codesourcery.com>
8863 * features/mips-dsp.xml: New file.
8864 * features/mips64-dsp.xml: New file.
8865 * features/mips-dsp-linux.xml: New file.
8866 * features/mips64-dsp-linux.xml: New file.
8867 * features/Makefile (WHICH): Add mips-dsp-linux and
8869 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8870 * features/mips-dsp-linux.c: New file.
8871 * features/mips64-dsp-linux.c: New file.
8872 * regformats/mips-dsp-linux.dat: New file.
8873 * regformats/mips64-dsp-linux.dat: New file.
8874 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8876 (mips64_linux_register_addr): Likewise.
8877 (mips64_linux_regsets_fetch_registers): Likewise.
8878 (mips64_linux_regsets_store_registers): Likewise.
8879 (mips64_linux_fetch_registers): Update call to
8880 mips64_linux_regsets_fetch_registers.
8881 (mips64_linux_store_registers): Update call to
8882 mips64_linux_regsets_store_registers.
8883 (mips_linux_read_description): Probe for DSP registers.
8884 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8885 and initialize_tdesc_mips64_dsp_linux.
8886 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8887 Remove padding of no longer used embedded register slots.
8888 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8889 (MIPS_RESTART_REGNUM): Redefine enum value.
8890 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8892 (mips_tx39_reg_names): Likewise.
8893 (mips_linux_reg_names): New array of register names for Linux
8895 (mips_register_name): Check for a null pointer in
8896 mips_processor_reg_names and return an empty string.
8897 (mips_register_type): Exclude embedded registers for the IRIX
8899 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8900 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8902 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8903 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8904 (mips_gdbarch_init): Likewise. Initialize internal register
8905 indices for the Linux ABI. Use dynamic numbers to refer to
8906 registers, as applicable, while parsing the target description.
8907 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8909 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8911 * frame.h (read_frame_register_unsigned): Fix typo in function
8914 2012-03-01 Pedro Alves <palves@redhat.com>
8916 * jit-reader.in [!__cplusplus]
8917 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8919 2012-03-01 Pedro Alves <palves@redhat.com>
8921 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8922 * configure: Regenerate.
8924 2012-03-01 Pedro Alves <palves@redhat.com>
8926 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8927 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8928 (ftrace_command, strace_command): Make static.
8929 * d-lang.c (_initialize_d_language): Declare.
8930 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8931 * dwarf2loc.c (_initialize_dwarf2loc):
8932 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8933 * exec.c (exec_get_section_table): Make static.
8934 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8935 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8936 * inferior.c (remove_inferior_command, add_inferior_command)
8937 (clone_inferior_command): Make static.
8938 * linux-nat.c (linux_nat_thread_address_space)
8939 (linux_nat_core_of_thread): Make static.
8940 * linux-tdep.c (_initialize_linux_tdep): Declare.
8941 * objc-lang.c (_initialize_objc_lang): Declare.
8942 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8944 (_initialize_opencl_language): Declare.
8945 * record.c (_initialize_record): Declare.
8946 * remote.c (demand_private_info, remote_get_tib_address)
8947 (remote_supports_cond_tracepoints)
8948 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8950 * skip.c (_initialize_step_skip): Declare.
8951 * symtab.c (skip_prologue_using_lineinfo): Make static.
8952 * tracepoint.c (delete_trace_state_variable)
8953 (trace_variable_command, delete_trace_variable_command)
8954 (get_uploaded_tsv, find_matching_tracepoint_location)
8955 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8957 * value.c (pack_unsigned_long): Make static.
8958 * varobj.c (varobj_ensure_python_env): Make static.
8959 * windows-tdep.c (_initialize_windows_tdep): Declare.
8960 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8962 2012-03-01 Pedro Alves <palves@redhat.com>
8964 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8966 (linux_init_abi): Install it as has_shared_address_space gdbarch
8969 2012-03-01 Pedro Alves <palves@redhat.com>
8971 * observer.c (observer_test_first_notification_function)
8972 (observer_test_second_notification_function)
8973 (observer_test_third_notification_function): Add declarations.
8975 2012-03-01 Pedro Alves <palves@redhat.com>
8977 * common/signals.c (default_target_signal_to_host)
8978 (default_target_signal_from_host): Move ...
8979 * arch-utils.c: ... here.
8980 * arch-utils.h (default_target_signal_to_host)
8981 (default_target_signal_from_host): Declare.
8983 * common/signals.c (target_signal_from_command): Move ...
8984 * infrun.c: ... here.
8985 * inferior.h (target_signal_from_command): Declare.
8986 * target.h (target_signal_from_command)
8987 (default_target_signal_from_host, default_target_signal_to_host):
8988 Delete declarations.
8990 * common/signals.c (_initialize_signals): Delete.
8992 2012-03-01 Pedro Alves <palves@redhat.com>
8994 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8995 both __cplusplus and !__cplusplus.
8997 2012-03-01 Pedro Alves <palves@redhat.com>
8999 * psymtab.c (find_and_open_source): Delete declaration.
9000 * source.c (find_and_open_source): Move comment ...
9001 * source.h (find_and_open_source): ... to this new declaration.
9003 2012-03-01 Pedro Alves <palves@redhat.com>
9005 * inline-frame.c: Include inline-frame.h.
9007 2012-03-01 Pedro Alves <palves@redhat.com>
9009 * tui/tui-data.c (set_gen_win_origin): Delete.
9010 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9011 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9013 2012-03-01 Pedro Alves <palves@redhat.com>
9015 * remote.c (encode_actions): Delete declaration.
9016 * tracepoint.c (encode_actions): Make extern.
9017 * tracepoint.h (encode_actions): Declare.
9019 2012-03-01 Pedro Alves <palves@redhat.com>
9021 * python/py-breakpoint.c: Include python.h.
9022 * python/py-continueevent.c (create_continue_event_object): Make
9024 * python/py-lazy-string.c (stpy_get_type): Make static.
9025 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9027 * python/py-utils.c (unicode_to_target_python_string): Make
9029 * python/py-value.c: Include python.h.
9031 2012-03-01 Pedro Alves <palves@redhat.com>
9033 * inferior.c (delete_threads_of_inferior): Delete.
9035 2012-03-01 Pedro Alves <palves@redhat.com>
9037 Import fallback definitions from glibc.
9039 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9040 ps_prochandle): Forward declare.
9041 (ps_err_e): Use glibc's comments.
9042 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9043 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9044 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9045 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9046 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9047 (struct ps_prochandle): Adjust comment.
9049 2012-03-01 Pedro Alves <palves@redhat.com>
9051 * ada-lang.c (ada_modulus_from_name): Delete.
9052 * ada-lex.l (lexer_init): Make static.
9054 2012-03-01 Pedro Alves <palves@redhat.com>
9058 * frame.c (read_frame_register_unsigned): New.
9059 * frame.h (read_frame_register_unsigned): Declare.
9060 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9062 (print_i387_control_word): New parameter `control_p'. Handle it.
9063 (i387_print_float_info): Handle unavailable float registers.
9065 2012-03-01 Keith Seitz <keiths@redhat.com>
9067 * linespec.c (decode_line_2): Sort the list of methods
9068 alphabetically before presenting the user with a selection
9071 2012-03-01 Doug Evans <dje@google.com>
9073 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9075 (dwarf2_read_abbrevs): Remove corresponding initialization.
9077 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9079 * NEWS: Mention new python command class gdb.COMMAND_USER.
9080 * cli/cli-cmds.c (show_user): Print error when used on a python
9082 (init_cli_cmds): Update documentation strings for "show user" and
9083 "set/show max-user-call-depth" to clarify that it does not apply to
9085 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9087 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9089 * top.c (execute_command): Only execute a user-defined command as a
9090 legacy macro if c->user_commands is set.
9092 2012-03-01 Tom Tromey <tromey@redhat.com>
9094 * valprint.h (struct generic_val_print_decorations): New.
9095 (generic_val_print): Declare.
9096 * valprint.c (generic_val_print): New function.
9097 * p-valprint.c (p_decorations): New global.
9098 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9099 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9100 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9101 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9102 * m2-valprint.c (m2_decorations): New global.
9103 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9104 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9105 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9106 TYPE_CODE_ERROR>: Call generic_val_print.
9107 * f-valprint.c (f_decorations): New global.
9108 (f_val_print): Use print_function_pointer_address.
9109 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9110 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9111 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9113 * c-valprint.c (c_decorations): New global.
9114 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9115 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9116 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9117 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9118 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9119 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9122 2012-03-01 Tom Tromey <tromey@redhat.com>
9124 * valprint.c (val_print): Update.
9125 * p-valprint (pascal_val_print): Return void.
9126 * p-lang.h (pascal_val_print): Return void.
9127 * m2-valprint.c (m2_val_print): Return void.
9128 * m2-lang.h (m2_val_print): Return void.
9129 * language.h (struct language_defn) <la_val_print>: Return void.
9130 * language.c (unk_lang_val_print): Return void.
9131 * jv-valprint.c (java_val_print): Return void.
9132 * jv-lang.h (java_val_print): Return void.
9133 * f-valprint.c (f_val_print): Return void.
9134 * f-lang.h (f_val_print): Return void.
9135 * d-valprint.c (d_val_print): Return void.
9136 (dynamic_array_type): Update.
9137 * d-lang.h (d_val_print): Return void.
9138 * c-valprint.c (c_val_print): Return void.
9139 * c-lang.h (c_val_print): Return void.
9140 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9142 * ada-lang.h (ada_val_print): Return void.
9144 2012-03-01 Tom Tromey <tromey@redhat.com>
9146 * value.h (val_print): Return void.
9147 * valprint.c (val_print): Return void.
9149 2012-03-01 Tom Tromey <tromey@redhat.com>
9151 * value.h (common_val_print): Return void.
9152 * valprint.c (common_val_print): Return void.
9154 2012-03-01 Tom Tromey <tromey@redhat.com>
9156 * value.h (value_print): Return void.
9157 * valprint.c (value_print): Return void.
9158 * p-valprint.c (pascal_value_print): Return void.
9159 * p-lang.h (pascal_value_print): Return void.
9160 * language.h (struct language_defn) <la_value_print>: Return
9162 * language.c (unk_lang_value_print): Return void.
9163 * jv-valprint.c (java_value_print): Return void.
9164 * jv-lang.h (java_value_print): Return void.
9165 * f-valprint.c (c_value_print): Don't declare.
9167 * c-valprint.c (c_value_print): Return void.
9168 * c-lang.h (c_value_print): Return void.
9169 * ada-valprint.c (ada_value_print): Return void.
9170 * ada-lang.h (ada_value_print): Return void.
9172 2012-03-01 Tom Tromey <tromey@redhat.com>
9174 * value.c (value_primitive_field): Handle virtual base classes.
9176 2012-03-01 Tom Tromey <tromey@redhat.com>
9178 * gdbtypes.h (struct vbase): Remove.
9180 2012-03-01 Tom Tromey <tromey@redhat.com>
9182 * c-valprint.c (print_function_pointer_address): Move...
9183 * valprint.c: ... here. Make non-static.
9184 * m2-valprint.c (print_function_pointer_address): Remove.
9185 * valprint.h (print_function_pointer_address): Declare.
9187 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9189 * NEWS: Document the fact that one can provide a condition when
9190 creating an Ada exception catchpoint.
9192 2012-03-01 Tom Tromey <tromey@redhat.com>
9194 * valprint.c (val_print_type_code_flags): Fix placement of
9197 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9199 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9200 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9201 environment variable before calling update-copyright.
9203 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9205 * gnulib/extra/update-copyright: Update to the latest from
9206 gnulib's git repository.
9207 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9208 variable to 2 instead of 1.
9210 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9212 * varobj.c (c_value_of_variable): Remove dead code.
9214 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9216 * ada-lex.p (processId): Do not modify already encoded IDs.
9217 Update function documentation.
9219 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9221 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9222 "name" with "struct symbol *name_sym".
9223 * ada-exp.y (write_var_or_type): Update call to
9224 ada_find_renaming_symbol.
9225 "name" with "struct symbol *name_sym". Adjust Implementation
9226 accordingly. Adjust the function documentation.
9228 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9230 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9231 * ada-lang.c (ada_find_any_type): Add advance declaration.
9232 Make static. Replace ada_find_any_symbol by
9233 ada_find_any_type_symbol.
9234 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9235 Improve function description. Make static.
9236 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9237 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9239 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9241 * ada-lang.c (struct tag_args): Delete.
9242 (ada_get_tsd_type): Function body moved up in source file.
9243 (ada_tag_name_1, ada_tag_name_2): Delete.
9244 (ada_get_tsd_from_tag): New function.
9245 (ada_tag_name_from_tsd): New function.
9246 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9247 to determine the tag name.
9249 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9251 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9253 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9256 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9258 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9260 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9262 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9265 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9267 * ada-lang.c (constrained_packed_array_type): If there is a
9268 parallel XA type, use it to determine the array index type.
9270 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9272 * ada-valprint.c (ada_val_print_1): If our value is a reference
9273 to an array descriptor, dereference it before converting it
9276 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9278 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9279 creating fixed value.
9280 (ada_value_ind, ada_coerce_ref, assign_component)
9281 (ada_evaluate_subexp): Remove call to unwrap_value before
9282 call to ada_to_fixed_value.
9284 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9286 * ada-lang.c (to_fixed_array_type): Set result's type name.
9288 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9290 * ada-lang.c (catch_ada_exception_command_split): Add new
9291 argument cond_string. Add support for condition at end of
9292 "catch exception" commands.
9293 (ada_decode_exception_location): Add new argument cond_string.
9294 Update call to catch_ada_exception_command_split.
9295 (create_ada_exception_catchpoint): Add new argument cond_string.
9296 Set the breakpoint condition if needed.
9297 (catch_ada_exception_command): Update call to
9298 ada_decode_exception_location.
9299 (ada_decode_assert_location): Add function documentation.
9300 Add support for condition at end of "catch assert" command.
9301 (catch_assert_command): Update calls to ada_decode_assert_location
9302 and create_ada_exception_catchpoint.
9304 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9306 Fix disp-step-syscall.exp: fork: single step over fork.
9307 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9308 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9309 comment, change parameters gdbarch and ptid to regcache. Remove
9310 parameter regcache, initialize gdbarch from regcache here.
9311 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9313 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9315 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9316 'syscall'. Make the 'int' check more strict.
9318 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9320 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9321 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9322 (i386_linux_intx80_sysenter_syscall_record): ... here.
9323 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9324 Use the renamed function name.
9326 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9328 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9329 * breakpoint.c (until_break_command): Likewise.
9330 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9331 * infcall.c (call_function_by_hand): Likewise.
9332 * infcmd.c (finish_forward): Likewise.
9333 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9335 2012-02-28 Tristan Gingold <gingold@adacore.com>
9337 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9338 avoid variable assignments inside condition.
9340 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 Fix static analysis issue found by cppcheck.
9343 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9344 uninitialized BUF for size 2.
9346 2012-02-27 Chris Dearman <chris@mips.com>
9347 Nathan Froyd <froydnj@codesourcery.com>
9348 Maciej W. Rozycki <macro@codesourcery.com>
9350 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9351 (mips16_instruction_has_delay_slot): Likewise.
9352 (mips_segment_boundary): Likewise.
9353 (mips_adjust_breakpoint_address): Likewise.
9354 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9356 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9357 Maciej W. Rozycki <macro@codesourcery.com>
9359 * infrun.c (handle_inferior_event): Don't proceed through
9360 shared library trampolines if stepping at the machine
9363 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9365 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9368 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9370 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9371 (sh_stub_unwind_sniffer): New functions.
9372 (sh_stub_unwind): New variable.
9373 (sh_gdbarch_init): Wire everything.
9375 2012-02-27 Pedro Alves <palves@redhat.com>
9377 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9378 (linux_nat_post_attach_wait): Adjust to use
9379 linux_proc_pid_is_stopped.
9380 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9381 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9382 based on pid_is_stopped from both linux-nat.c and
9383 gdbserver/linux-low.c, and renamed.
9385 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9387 * remote.c (remote_watchpoint_addr_within_range): New function.
9388 (init_remote_ops): Use it.
9390 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9392 * target.h (target_watchpoint_addr_within_range): Document macro.
9394 2012-02-24 Pedro Alves <palves@redhat.com>
9396 * stack.c (set_last_displayed_sal): Issue internal_error instead
9397 of warning, and issue it after clearing the last displayed sal.
9399 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9400 Pedro Alves <palves@redhat.com>
9402 * breakpoint.c (until_break_command): Install breakpoints after
9403 all frame manipulations.
9405 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9407 * remote.c (remote_supports_cond_breakpoints): New forward
9409 (remote_add_target_side_condition): New function.
9410 (remote_insert_breakpoint): Add target-side breakpoint
9411 conditional if supported.
9412 (remote_insert_hw_breakpoint): Likewise.
9413 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9416 * target.c (update_current_target): Inherit
9417 to_supports_evaluation_of_breakpoint_conditions.
9418 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9420 * target.h (struct target_ops)
9421 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9422 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9424 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9425 (condition_evaluation_both, condition_evaluation_auto,
9426 condition_evaluation_host, condition_evaluation_target,
9427 condition_evaluation_enums, condition_evaluation_mode_1,
9428 condition_evaluation_mode): New static globals.
9429 (translate_condition_evaluation_mode): New function.
9430 (breakpoint_condition_evaluation_mode): New function.
9431 (gdb_evaluates_breakpoint_condition_p): New function.
9432 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9433 (mark_breakpoint_modified): New function.
9434 (mark_breakpoint_location_modified): New function.
9435 (set_condition_evaluation_mode): New function.
9436 (show_condition_evaluation_mode): New function.
9437 (bp_location_compare_addrs): New function.
9438 (get_first_location_gte_addr): New helper function.
9439 (set_breakpoint_condition): Free condition bytecode if locations
9440 has become unconditional. Call mark_breakpoint_modified (...).
9441 (condition_command): Call update_global_location_list (1) for
9443 (breakpoint_xfer_memory): Use is_breakpoint (...).
9444 (is_breakpoint): New function.
9445 (parse_cond_to_aexpr): New function.
9446 (build_target_condition_list): New function.
9447 (insert_bp_location): Handle target-side conditional
9448 breakpoints and call build_target_condition_list (...).
9449 (update_inserted_breakpoint_locations): New function.
9450 (insert_breakpoint_locations): Handle target-side conditional
9452 (bpstat_check_breakpoint_conditions): Add comment.
9453 (bp_condition_evaluator): New function.
9454 (bp_location_condition_evaluator): New function.
9455 (print_breakpoint_location): Print information on where the condition
9457 (print_one_breakpoint_location): Likewise.
9458 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9459 breakpoint location.
9460 (force_breakpoint_reinsertion): New functions.
9461 (update_global_location_list): Handle target-side breakpoint
9463 Reinsert locations that are already inserted if conditions have
9465 (bp_location_dtor): Free agent expression bytecode.
9466 (disable_breakpoint): Call mark_breakpoint_modified (...).
9467 Call update_global_location_list (...) with parameter 1 for breakpoints.
9468 (disable_command): Call mark_breakpoint_location_modified (...).
9469 Call update_global_location_list (...) with parameter 1 for breakpoints.
9470 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9471 (enable_command): mark_breakpoint_location_modified (...).
9472 (_initialize_breakpoint): Update documentation and add
9473 condition-evaluation breakpoint subcommand.
9475 * breakpoint.h: Include ax.h.
9476 (condition_list): New data structure.
9477 (condition_status): New enum.
9478 (bp_target_info) <cond_list>: New field.
9479 (bp_location) <condition_changed, cond_bytecode>: New fields.
9480 (is_breakpoint): New prototype.
9482 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9484 * remote.c (remote_state) <cond_breakpoints>: New field.
9485 (PACKET_ConditionalBreakpoints): New enum.
9486 (remote_cond_breakpoint_feature): New function.
9487 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9488 (remote_supports_cond_breakpoints): New function.
9489 (_initialize_remote): Add new packet configuration for
9490 target-side conditional breakpoints.
9492 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9494 * NEWS: Mention target-side conditional breakpoint support,
9495 new condition-evaluation breakpoint subcommand and remote
9498 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9500 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9503 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9505 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9506 (after_prologue): Remove.
9508 2012-02-23 Tom Tromey <tromey@redhat.com>
9510 * jv-valprint.c (java_val_print): Remove dead code.
9512 2012-02-23 Tristan Gingold <gingold@adacore.com>
9514 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9515 known_tasks_element and known_tasks_length fields.
9516 (read_known_tasks_array): Change argument type. Use pointer type
9517 and number of elements from DATA. Adjust.
9518 (read_known_tasks_list): Likewise.
9519 (get_known_tasks_addr): Remove.
9520 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9521 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9522 type and array length. Merge former get_known_tasks_addr code.
9524 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9527 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9528 it after set_momentary_breakpoint.
9530 2012-02-22 Sterling Augustine <saugustine@google.com>
9533 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9535 2012-02-22 Gary Benson <gbenson@redhat.com>
9537 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9538 (find_slot_in_mapped_hash): Likewise.
9540 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9543 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9544 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9545 * configure: Regenerate.
9547 2012-02-21 Tristan Gingold <gingold@adacore.com>
9548 Pedro Alves <palves@redhat.com>
9550 * ia64-tdep.c: Do not include libunwind-ia64.h.
9551 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9552 Include libunwind-ia64.h instead of libunwind.h.
9553 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9554 for libunwind.h existence.
9555 * configure, config.in: Regenerate.
9557 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9559 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9560 instead of value_rtti_target_type.
9561 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9562 instead of value_rtti_target_type.
9563 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9564 value_rtti_target_type.
9565 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9566 (value_rtti_target_type): Rename to ...
9567 (value_rtti_indirect_type): ... here and make it indirect. Update
9569 * value.c (readjust_indirect_value_type): New function.
9570 (coerce_ref): Support for enclosing type setting for references
9571 with readjust_indirect_value_type.
9572 * value.h (readjust_value_type): New declaration.
9573 (value_rtti_target_type): Rename to ...
9574 (value_rtti_indirect_type): ... here.
9576 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9578 * MAINTAINERS (Write After Approval): Add myself to the list.
9580 2012-02-20 Doug Evans <dje@google.com>
9582 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9583 Rename objfile_p_char parameter to objfilep.
9584 (build_objfile_section_table): Result is now void. All callers
9586 * objfiles.h (struct objfile): Tweak comments, whitespace.
9587 (build_objfile_section_table): Update.
9589 * elfread.c (elf_symfile_segments): Fix warning text.
9591 2012-02-20 Tom Tromey <tromey@redhat.com>
9594 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9595 particular set of file names once.
9596 (dw2_map_symbol_filenames): Likewise.
9598 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9601 * main.c (write_files): Remove the declaration.
9602 (external_editor_command): Move the declaration ...
9603 [GDBTK] (external_editor_command): ... here. Fix the comment.
9605 2012-02-20 Tom Tromey <tromey@redhat.com>
9607 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9610 2012-02-20 Tristan Gingold <gingold@adacore.com>
9612 * darwin-nat.h (enum darwin_msg_state): Add comments.
9614 2012-02-20 Tristan Gingold <gingold@adacore.com>
9616 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9619 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9621 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9622 between function description and implementation.
9624 2012-02-17 Tom Tromey <tromey@redhat.com>
9627 * python/py-event.c (event_object_getset): New global.
9628 (event_object_type): Reference it.
9629 * python/py-type.c (field_object_getset): New global.
9630 (field_object_type): Reference it.
9631 * python/python-internal.h (gdb_py_generic_dict): Declare.
9632 * python/py-utils.c (gdb_py_generic_dict): New function.
9634 2012-02-17 Tristan Gingold <gingold@adacore.com>
9636 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9638 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9640 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9641 TYPE_CALLING_CONVENTION annotation.
9643 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9645 * MAINTAINERS: Add rx to target ISA section.
9646 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9647 (ALLDEPFILES): Add rx-tdep.c.
9649 2012-02-16 Tom Tromey <tromey@redhat.com>
9651 * symfile.c (symbol_file_add_main_1): Use inferior's
9653 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9654 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9656 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9658 (follow_exec): Use inferior's symfile_flags.
9659 * inferior.h (struct inferior) <symfile_flags>: New field.
9661 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9664 * remote-sim.c (gdbsim_create_inferior): Call error() when
9665 sim_create_inferior() fails.
9667 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9669 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9671 2012-02-16 Tom Tromey <tromey@redhat.com>
9674 * thread.c (struct current_thread_cleanup) <was_removable>: New
9676 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9677 (make_cleanup_restore_current_thread): Initialize new field.
9679 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9681 * MAINTAINERS: Add rl78 to target ISA section.
9682 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9683 (ALLDEPFILES): Add rl78-tdep.c.
9684 * NEWS: Mention rl78 as a new target.
9686 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9688 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9690 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9692 2012-02-15 Tom Tromey <tromey@redhat.com>
9695 * infcmd.c (registers_info): Print just the current register's
9698 2012-02-15 Tom Tromey <tromey@redhat.com>
9700 * python/py-symbol.c (sympy_value): Use _().
9702 2012-02-15 Pedro Alves <palves@redhat.com>
9704 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9705 output to be like native targets'.
9706 (remote_pid_to_str): Special case the null ptid.
9708 2012-02-14 Stan Shebs <stan@codesourcery.com>
9710 * NEWS: Mention enable count command.
9711 * breakpoint.h (struct breakpoint): New field enable_count.
9712 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9713 (enable_breakpoint): Add arg to call.
9714 (struct disp_data): New struct.
9715 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9716 (do_map_enable_once_breakpoint): Create a struct and pass it.
9717 (do_map_enable_delete_breakpoint): Ditto.
9718 (do_map_enable_count_breakpoint): New function.
9719 (enable_count_command): New function.
9720 (bpstat_stop_status): Decrement enable_count.
9721 (print_one_breakpoint_location): Report enable count.
9722 (_initialize_breakpoint): Add enable count command.
9724 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9726 * rl78-tdep.c (reggroups.h): Include.
9727 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9728 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9729 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9730 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9731 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9732 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9733 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9734 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9735 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9736 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9737 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9738 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9739 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9740 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9741 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9742 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9743 beginning of register list.
9744 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9745 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9746 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9747 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9748 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9749 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9750 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9751 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9752 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9753 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9754 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9755 the pseudo registers. Rearrange other pseudo registers too so
9756 that the bank registers appear at the end.
9757 (rl78_register_type): Account for the fact that the byte sized
9758 bank registers are now pseudo-registers.
9759 (rl78_register_name): Rearrange the register name array. Make
9760 initial set of raw banked registers inaccessible.
9761 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9762 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9763 case for copying bytes back and forth between raw and pseudo
9764 versions of the banked registers. Update other cases to reflect
9766 (rl78_return_value): Update to account for changed names of
9768 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9769 rl78_register_sim_regno().
9771 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9773 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9774 the name parameter being passed to find_pc_partial_function().
9776 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9778 * MAINTAINERS: Step down from being ia64 target maintainer.
9780 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9782 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9783 compilation warning.
9785 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9787 Fix crash on loaded shlibs without loaded exec_bfd.
9788 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9789 (set_section_command): Replace exec_bfd by p->bfd.
9791 2012-02-10 Tom Tromey <tromey@redhat.com>
9793 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9794 when we have a C++ qualified name.
9796 2012-02-10 Pedro Alves <palves@redhat.com>
9798 * inferior.c (inferior_pid_to_str): New.
9799 (print_inferior, inferior_command): Use it.
9801 2012-02-10 Pedro Alves <palves@redhat.com>
9803 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9805 * configure: Regenerate.
9807 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9809 * linespec.c (decode_line_internal): Fix comment correctness.
9811 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9814 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9815 * amd64bsd-nat.c: Add support for debug registers (adapted from
9817 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9818 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9819 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9820 (amd64bsd_dr_get_control): New functions.
9821 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9822 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9823 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9824 watchpoints initialization.
9825 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9827 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9829 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9831 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9833 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9835 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9837 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9839 * language.h (symbol_name_cmp_ftype): Renames
9840 symbol_name_match_p_ftype.
9841 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9842 la_get_symbol_name_match_p.
9843 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9844 ada_get_symbol_name_match_p. Update comment.
9845 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9846 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9847 Renames symbol_name_match_p. Update field type.
9848 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9849 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9850 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9851 "la_get_symbol_name_cmp" in comments.
9852 * language.c: Likewise.
9854 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9856 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9858 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9859 (amd64_sol2_gregset32_reg_offs): Likewise.
9861 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9863 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9864 of the returned BFD is allocated by GDB.
9866 2012-02-07 Tom Tromey <tromey@redhat.com>
9869 * python/python-internal.h (frame_object_type): Declare.
9870 * python/py-symbol.c (sympy_needs_frame): New function.
9871 (sympy_value): New function.
9872 (symbol_object_getset): Add "needs_frame".
9873 (symbol_object_methods): Add "value".
9874 * python/py-frame.c (frame_object_type): No longer static.
9876 2012-02-07 Tom Tromey <tromey@redhat.com>
9879 * python/py-symbol.c (sympy_line): New function.
9880 (symbol_object_getset): Add "line".
9882 2012-02-07 Tom Tromey <tromey@redhat.com>
9884 * charset.c (find_charset_names): Check 'in' against NULL.
9886 2012-02-06 Doug Evans <dje@google.com>
9888 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9889 and fields.name members from char * to const char *. All uses updated.
9890 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9891 from char * to const char *. All uses updated.
9892 (type_name_no_tag): Update.
9893 (lookup_unsigned_typename, lookup_signed_typename): Update.
9894 * gdbtypes.c (type_name_no_tag): Change result type
9895 from char * to const char *. All callers updated.
9896 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9897 name parameter from char * to const char *.
9898 * symtab.h (struct cplus_specific): Change type of demangled_name
9899 member from char * to const char *. All uses updated.
9900 (struct general_symbol_info): Change type of name and
9901 mangled_lang.demangled_name members from char * to const char *.
9903 (symbol_get_demangled_name, symbol_natural_name): Update.
9904 (symbol_demangled_name, symbol_search_name): Update.
9905 * symtab.c (symbol_get_demangled_name): Change result type
9906 from char * to const char *. All callers updated.
9907 (symbol_natural_name, symbol_demangled_name): Ditto.
9908 (symbol_search_name): Ditto.
9909 (completion_list_add_name): Change type of symname,sym_text,
9910 text,word parameters from char * to const char *.
9911 (completion_list_objc_symbol): Change type of sym_text,
9912 text,word parameters from char * to const char *.
9913 * ada-lang.c (find_struct_field): Change type of name parameter
9914 from char * to const char *.
9915 (encoded_ordered_before): Similarly for N0,N1 parameters.
9916 (old_renaming_is_invisible): Similarly for function_name parameter.
9917 (ada_type_name): Change result type from char * to const char *.
9918 All callers updated.
9919 * ada-lang.h (ada_type_name): Update.
9920 * buildsym.c (hashname): Change type of name parameter
9921 from char * to const char *.
9922 * buildsym.h (hashname): Update.
9923 * dbxread.c (end_psymtab): Change type of include_list parameter
9924 from char ** to const char **.
9925 * dwarf2read.c (determine_prefix): Change result type
9926 from char * to const char *. All callers updated.
9927 * f-lang.c (find_common_for_function): Change type of name, funcname
9928 parameters from char * to const char *.
9929 * f-lang.c (find_common_for_function): Update.
9930 * f-valprint.c (list_all_visible_commons): Change type of funcname
9931 parameters from char * to const char *.
9932 * gdbarch.sh (static_transform_name): Change type of name parameter
9933 and result from char * to const char *.
9934 * gdbarch.c: Regenerate.
9935 * gdbarch.h: Regenerate.
9936 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9937 of name parameter from char * to const char *.
9938 * jv-lang.c (java_primitive_type_from_name): Ditto.
9939 (java_demangled_signature_length): Similarly for signature parameter.
9940 (java_demangled_signature_copy): Ditto.
9941 (java_demangle_type_signature): Ditto.
9942 * jv-lang.h (java_primitive_type_from_name): Update.
9943 (java_demangle_type_signature): Update.
9944 * objc-lang.c (specialcmp): Change type of a,b parameters
9945 from char * to const char *.
9946 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9947 from char * to const char *. All callers updated.
9948 * p-lang.h (is_pascal_string_type): Update.
9949 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9950 of name parameter from char * to const char *.
9951 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9952 * utils.c (fprintf_symbol_filtered): Ditto.
9953 * defs.h (fprintf_symbol_filtered): Update.
9954 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9955 * stabsread.h (end_psymtab): Update.
9956 * stack.c (find_frame_funname): Change type of funname parameter
9957 from char ** to const char **.
9958 * stack.h (find_frame_funname): Update.
9959 * typeprint.c (type_print): Change type of varstring parameter
9960 from char * to const char *.
9961 * value.h (type_print): Update.
9962 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9963 from char * to const char *. All callers updated.
9964 (xcoff_end_psymtab): Change type of include_list parameter
9965 from char ** to const char **. All callers updated.
9966 (swap_sym): Similarly for name parameter. All callers updated.
9967 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9969 (process_coff_symbol): Use xstrdup.
9970 * stabsread.c (stabs_method_name_from_physname): Renamed from
9971 update_method_name_from_physname. Change result type from void
9972 to char *. All callers updated.
9973 (read_member_functions): In has_destructor case, store name in objfile
9974 obstack instead of malloc space. In !has_stub case, fix mem leak.
9976 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9978 * configure: Rebuild.
9979 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9982 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9984 * configure.tgt (rl78-*-elf): New target.
9985 * rl78-tdep.c: New file.
9987 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9989 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9990 and continue the loop. Add QUIT statement.
9992 2012-02-03 Tom Tromey <tromey@redhat.com>
9995 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9996 bfd_lookup_symbol_from_symtab.
9997 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9998 gdb_bfd_lookup_symbol_from_symtab.
10000 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10002 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10003 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10004 symbol. Add assertion that sym2 is never NULL.
10006 2012-02-02 Doug Evans <dje@google.com>
10008 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10009 "name" parameter to const char ** from char **. All callers updated.
10010 (find_pc_partial_function): Ditto.
10011 (cache_pc_function_name): Change type to const char * from char *.
10012 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10013 (find_pc_partial_function): Update.
10014 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10015 type of "name" parameter to const char * from char *.
10017 * arch-utils.c (generic_in_solib_return_trampoline): Change
10018 type of "name" parameter to const char * from char *.
10019 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10020 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10021 type of "name" parameter to const char * from char *.
10022 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10023 * gdbarch.c: Regenerate.
10024 * gdbarch.h: Regenerate.
10025 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10026 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10027 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10028 type of "name" parameter to const char * from char *.
10029 * skip.c (skip_function_pc): Ditto.
10030 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10031 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10032 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10033 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10034 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10035 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10036 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10037 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10038 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10040 2012-02-02 Pedro Alves <palves@redhat.com>
10042 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10043 the current inferior has no execution. Make sure the current
10044 remote process matches gdb's current inferior.
10046 2012-02-02 Tom Tromey <tromey@redhat.com>
10049 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10052 2012-02-02 Tom Tromey <tromey@redhat.com>
10055 * symtab.c (lookup_language_this): Set block_found.
10057 2012-02-01 Tom Tromey <tromey@redhat.com>
10060 * jit.c (struct jit_inferior_data): Rewrite.
10061 (struct jit_objfile_data): New.
10062 (get_jit_objfile_data): New function.
10063 (add_objfile_entry): Update.
10064 (jit_read_descriptor): Return int. Replace descriptor_addr
10065 argument with inf_data. Update. Don't call error.
10066 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10068 (jit_inferior_init): Don't look up descriptor. Don't call error.
10069 (jit_reset_inferior_data_and_breakpoints)
10070 (jit_inferior_created_observer): Remove.
10071 (jit_inferior_exit_hook): Update.
10072 (jit_executable_changed_observer): Remove.
10073 (jit_event_handler): Update.
10074 (free_objfile_data): Reset inferior data if needed.
10075 (_initialize_jit): Update.
10077 2012-02-01 Tom Tromey <tromey@redhat.com>
10079 * jit.c (bfd_open_from_target_memory): Move higher in file.
10081 2012-02-01 Tristan Gingold <gingold@adacore.com>
10083 * libunwind-frame.c (libunwind_load): Display message if dlopen
10086 2012-02-01 Gary Benson <gbenson@redhat.com>
10088 * symtab.h (symbol_found_callback_ftype): New typedef.
10089 (iterate_over_symbols): Use the above.
10090 * symtab.c (iterate_over_symbols): Likewise.
10091 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10092 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10093 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10094 (iterate_name_matcher): Document return values.
10095 (collect_one_symbol): Likewise.
10096 (collect_function_symbols): Likewise.
10097 (collect_symbols): Likewise.
10099 2012-02-01 Tom Tromey <tromey@redhat.com>
10101 * ada-lang.c (resolve_subexp): Update.
10102 (ada_lookup_symbol_list): Add 'full_search' argument.
10103 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10104 ada_lookup_symbol_list.
10105 (ada_lookup_encoded_symbol): Update.
10106 (get_var_value): Update.
10107 * ada-exp.y (block_lookup): Update.
10108 (write_var_or_type): Update.
10109 (write_name_assoc): Update.
10110 * ada-lang.h (ada_lookup_symbol_list): Update.
10112 2012-01-31 Tom Tromey <tromey@redhat.com>
10114 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10117 2012-01-31 Doug Evans <dje@google.com>
10119 * symtab.h: Remove outdated comment.
10120 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10122 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10124 Fix build error in Darwin port.
10125 * i386-darwin-nat.c: Include i386-nat.h.
10127 2012-01-30 Tom Tromey <tromey@redhat.com>
10129 PR breakpoints/13568:
10130 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10131 argument. Check for recursive includes.
10132 (dwarf_decode_macros): Create an include hash.
10134 2012-01-30 Michael Eager <eager@eagercon.com>
10136 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10137 * ppc-linux-tdep.c: Include glibc-tdep.h.
10138 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10139 (powerpc_linux_in_plt_stub): New function.
10140 (powerpc_linux_in_dynsym_resolve_code): New function.
10141 (ppc_skip_trampoline_code): New function.
10142 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10143 Use glibc_skip_solib_resolver.
10145 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10147 Code cleanup: Make 1440 bytes of data segment read-only.
10148 * arch-utils.c (endian_enum): Make it const char *const [].
10149 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10151 * breakpoint.c (always_inserted_enums): Likewise.
10152 * cli/cli-cmds.c (script_ext_enums): Likewise.
10153 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10154 enumlist parameter const char *const *.
10155 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10156 const char *const *.
10157 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10158 parameter const char *const *.
10159 * cris-tdep.c (cris_modes): Make it const char *const [].
10160 * filesystem.c (target_file_system_kinds): Likewise.
10161 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10162 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10163 (can_use_displaced_stepping_enum, scheduler_enums)
10164 (exec_direction_names): Likewise.
10165 * language.c (_initialize_language): Make the type_or_range_names and
10166 case_sensitive_names variables const char *const [].
10167 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10168 * python/python.c (python_excp_enums): Likewise.
10169 * remote.c (interrupt_sequence_modes): Likewise.
10170 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10171 * serial.c (logbase_enums): Likewise.
10172 * sh-tdep.c (sh_cc_enum): Likewise.
10173 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10175 * symtab.c (multiple_symbols_modes): Likewise.
10176 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10178 * utils.c (internal_problem_modes): Likewise.
10180 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10182 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10183 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10186 2012-01-27 Doug Evans <dje@google.com>
10188 * configure.ac (with_python): Fix absolute path handling for win32.
10189 * configure: Regenerate.
10191 2012-01-26 Doug Evans <dje@google.com>
10193 * symtab.c: Whitespace cleanup, no code changes.
10195 * symtab.c (lookup_symbol_in_language): Improve comment.
10196 (lookup_symbol_aux): Fix comment.
10198 * psymtab.c (add_psymbol_to_list): Result is now "void".
10199 * psympriv.h (add_psymbol_to_list): Update.
10201 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10203 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10205 Do not open script filenames twice.
10206 * cli/cli-cmds.c (source_script_from_stream): Pass to
10207 source_python_script also STREAM.
10208 * python/py-auto-load.c (source_section_scripts): Pass to
10209 source_python_script_for_objfile also STREAM.
10210 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10212 * python/python-internal.h (source_python_script_for_objfile): New
10213 parameter file, rename parameter file to filename.
10214 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10215 instead if !_WIN32. Update the function comment.
10216 (source_python_script, source_python_script_for_objfile)
10217 (source_python_script): New parameter file, rename parameter file to
10218 filename. Pass FILENAME to python_run_simple_file.
10219 * python/python.h (source_python_script): New parameter file, rename
10220 parameter file to filename.
10222 2012-01-26 Pedro Alves <palves@redhat.com>
10224 * corelow.c (core_has_fake_pid): Delete.
10225 (core_close): Delete references to `core_has_fake_pid'.
10226 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10227 (core_open): Delete references to `core_has_fake_pid'.
10228 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10229 the removed global.
10231 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10233 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10234 Remove language parameter from name_matcher. Adjust the comment.
10235 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10236 Remove language parameter.
10237 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10238 * linespec.c (iterate_name_matcher): Likewise.
10239 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10240 name_matcher. Adjust call accordingly.
10241 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10242 (maintenance_check_symtabs): Adjust type of parameter "fun".
10243 * psymtab.h (maintenance_check_symtabs): Likewise.
10245 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10247 * language.h (symbol_name_match_p_ftype): New typedef.
10248 (struct language_defn): Replace field la_symbol_name_compare
10249 by la_get_symbol_name_match_p.
10250 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10251 (ada_language_defn): Use it.
10252 * linespec.c (struct symbol_matcher_data): New type.
10253 (iterate_name_matcher): Rewrite.
10254 (iterate_over_all_matching_symtabs): Pass a pointer to
10255 a symbol_matcher_data struct to expand_symtabs_matching
10256 instead of just the lookup name.
10257 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10258 opencl-lang.c, p-lang.c, language.c: Delete field
10259 la_symbol_name_compare, and replace by NULL for new field
10260 la_get_symbol_name_match_p.
10261 * symfile.h (struct quick_symbol_functions): Update comment.
10263 2012-01-25 Tom Tromey <tromey@redhat.com>
10265 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10268 2012-01-24 Tom Tromey <tromey@redhat.com>
10271 * solib.c (update_solib_list): Update the program space's
10272 added_solibs and deleted_solibs fields.
10273 * progspace.h (struct program_space) <added_solibs,
10274 deleted_solibs>: New fields.
10275 (clear_program_space_solib_cache): Declare.
10276 * progspace.c (release_program_space): Call
10277 clear_program_space_solib_cache.
10278 (clear_program_space_solib_cache): New function.
10279 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10280 bpstat_stop_status. Use handle_solib_event.
10281 * breakpoint.c: Include gdb_regex.h.
10282 (print_solib_event): New function.
10283 (bpstat_print): Use print_solib_event.
10284 (bpstat_stop_status): Add special case for bp_shlib_event.
10285 (handle_solib_event): New function.
10286 (bpstat_what): Use handle_solib_event.
10287 (struct solib_catchpoint): New.
10288 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10289 (breakpoint_hit_catch_solib, check_status_catch_solib)
10290 (print_it_catch_solib, print_one_catch_solib)
10291 (print_mention_catch_solib, print_recreate_catch_solib): New
10293 (catch_solib_breakpoint_ops): New global.
10294 (catch_load_or_unload, catch_load_command_1)
10295 (catch_unload_command_1): New functions.
10296 (internal_bkpt_check_status): Add special case for
10298 (internal_bkpt_print_it): Use print_solib_event.
10299 (initialize_breakpoint_ops): Initialize
10300 catch_solib_breakpoint_ops.
10301 (_initialize_breakpoint): Register "catch load" and "catch
10303 * breakpoint.h (handle_solib_event): Declare.
10304 * NEWS: Add entry for "catch load" and "catch unload".
10306 2012-01-24 Tom Tromey <tromey@redhat.com>
10308 * ada-lang.c: Include gdb_vecs.h.
10309 * charset.c: Include gdb_vecs.h.
10310 * tracepoint.h: Include gdb_vecs.h.
10311 * gdb_vecs.h: New file.
10313 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10315 * breakpoint.c (breakpoint_hit_catch_fork)
10316 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10317 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10318 * infrun.c (inferior_has_forked, inferior_has_vforked)
10319 (inferior_has_execd, inferior_has_called_syscall): Delete.
10320 (handle_syscall_event): Get syscall_number from the execution
10321 control state's wait status.
10322 (wait_for_inferior): Don't clear syscall_number.
10324 2012-01-24 Pedro Alves <palves@redhat.com>
10326 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10327 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10328 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10329 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10331 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10332 false for events other than TARGET_SIGNAL_TRAP.
10333 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10334 Add `ws' parameter.
10335 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10336 events other than TARGET_SIGNAL_TRAP.
10337 (tracepoint_breakpoint_hit): Add `ws' parameter.
10338 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10340 (bpstat_stop_status): Same.
10341 (pc_at_non_inline_function): Same.
10342 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10343 to pass the current event's waitstatus to bpstat_stop_status
10344 and pc_at_non_inline_function.
10346 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10349 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10350 Update the function comment for it.
10351 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10352 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10355 2012-01-24 Pedro Alves <palves@redhat.com>
10357 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10358 outside `bs->stop' block.
10359 (bpstat_what): Rework bp_shlib_event handling.
10360 (internal_bkpt_check_status): If the breakpoint is a
10361 bp_shlib_event, then set bs->stop and bs->print if
10362 stop_on_solib_events is set.
10364 2012-01-24 Gary Benson <gbenson@redhat.com>
10366 Delete #if 0'd out code.
10367 * stack.c (print_frame_label_vars): Remove.
10368 (catch_info): Likewise.
10369 (_initialize_stack): Remove "info catch" command.
10370 * NEWS: Mention the above.
10372 2012-01-24 Pedro Alves <palves@redhat.com>
10374 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10376 (remote_notice_new_inferior): If the remote end doesn't support
10377 the multiprocess extensions, then the PID is fake.
10378 (add_current_inferior_and_thread): New.
10379 (remote_start_remote): Use it.
10380 (extended_remote_attach_1): Adjust.
10381 (extended_remote_create_inferior_1): Use
10382 add_current_inferior_and_thread.
10384 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10386 Fix watchpoints to be specific for each inferior.
10387 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10388 current_program_space.
10389 * i386-nat.c (i386_inferior_data_cleanup): New.
10390 (i386_inferior_data_get): Replace variable inf_data_local by an
10391 inferior_data call.
10392 (i386_use_watchpoints): Initialize i386_inferior_data.
10393 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10394 specific iterate_over_lwps.
10396 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10398 Fix watchpoints across inferior fork.
10399 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10400 comment for linux_nat_iterate_watchpoint_lwps.
10401 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10402 linux_nat_iterate_watchpoint_lwps.
10403 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10404 * i386-linux-nat.c (update_debug_registers_callback): Update the
10405 comment for linux_nat_iterate_watchpoint_lwps.
10406 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10407 linux_nat_iterate_watchpoint_lwps.
10408 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10409 * i386-nat.c: Include inferior.h.
10410 (dr_mirror): Remove.
10411 (i386_inferior_data, struct i386_inferior_data)
10412 (i386_inferior_data_get): New.
10413 (i386_debug_reg_state): Use i386_inferior_data_get.
10414 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10415 (i386_insert_watchpoint, i386_remove_watchpoint)
10416 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10417 (i386_remove_hw_breakpoint): New variable state, use
10418 i386_debug_reg_state instead of DR_MIRROR.
10419 * linux-nat.c (delete_lwp): New declaration.
10420 (num_lwps): Move here from downwards.
10421 (delete_lwp_cleanup): New.
10422 (linux_child_follow_fork): Create new child_lp, call
10423 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10425 (num_lwps): Move upwards.
10426 (linux_nat_iterate_watchpoint_lwps): New.
10427 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10428 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10430 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10434 2012-01-23 Pedro Alves <palves@redhat.com>
10436 * top.c (caution): Rename to ...
10437 (confirm): ... this.
10438 (show_caution): Rename to ...
10439 (show_confirm): ... this.
10440 (quit_cover): Adjust.
10441 (init_main): Adjust.
10442 * top.h (caution): Rename to ...
10443 (confirm): ... this.
10444 * utils.c (internal_vproblem, defaulted_query): Adjust.
10446 2012-01-23 Pedro Alves <palves@redhat.com>
10448 * top.c (caution): Update comment.
10449 (execute_command): Don't consider the current value of `caution'.
10451 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10453 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10455 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10457 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10458 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10459 * target.c (target_fileio_pwrite): Remove buffer address from
10461 (target_fileio_pread): Likewise.
10463 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10465 * NEWS: Document remote "info proc" and "generate-core-file".
10467 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10469 * gdbarch.sh (find_memory_regions): New callback.
10470 * gdbarch.c, gdbarch.h: Regenerate.
10472 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10473 callback before falling back to target method.
10475 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10476 (linux_target_install_ops): No longer install it.
10478 * linux-tdep.c (linux_find_memory_regions): New function.
10479 (linux_init_abi): Install it.
10481 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10483 * gdbarch.sh (make_corefile_notes): New architecture callback.
10484 * gdbarch.c: Regenerate.
10485 * gdbarch.h: Likewise.
10487 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10488 before target_make_corefile_notes. If NULL is returned, the
10489 target does not support core file generation.
10491 * linux-nat.c: Include "linux-tdep.h".
10492 (find_signalled_thread, find_stop_signal): Remove.
10493 (linux_nat_do_thread_registers): Likewise.
10494 (struct linux_nat_corefile_thread_data): Likewise.
10495 (linux_nat_corefile_thread_callback): Likewise.
10496 (iterate_over_spus): Likewise.
10497 (struct linux_spu_corefile_data): Likewise.
10498 (linux_spu_corefile_callback): Likewise.
10499 (linux_spu_make_corefile_notes): Likewise.
10500 (linux_nat_collect_thread_registers): New function.
10501 (linux_nat_make_corefile_notes): Replace contents by call to
10502 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10503 as native-only callback.
10505 * linux-tdep.h: Include "bfd.h".
10506 (struct regcache): Add forward declaration.
10507 (linux_collect_thread_registers_ftype): New typedef.
10508 (linux_make_corefile_notes): Add prototype.
10509 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10510 "regset.h", and "elf-bfd.h".
10511 (find_signalled_thread, find_stop_signal): New functions.
10512 (linux_spu_make_corefile_notes): Likewise.
10513 (linux_collect_thread_registers): Likewise.
10514 (struct linux_corefile_thread_data): New data structure.
10515 (linux_corefile_thread_callback): New funcion.
10516 (linux_make_corefile_notes): Likewise.
10517 (linux_make_corefile_notes_1): Likewise.
10518 (linux_init_abi): Install it.
10520 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10522 * gdbarch.sh (info_proc): New callback.
10523 * gdbarch.c, gdbarch.h: Regenerate.
10525 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10526 before falling back to the target info_proc callback.
10528 * linux-nat.c: Do not include "cli/cli-utils.h".
10529 (linux_nat_info_proc): Remove.
10530 (linux_target_install_ops): No longer install it.
10532 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10533 (read_mapping): New function.
10534 (linux_info_proc): Likewise.
10535 (linux_init_abi): Install it.
10537 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10539 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10540 * infcmd.c: (info_proc_cmd_1): New function.
10541 (info_proc_cmd): New function, moved here from equivalent routine
10542 orignally in linux-nat.c.
10543 (info_proc_cmd_mappings): Likewise.
10544 (info_proc_cmd_stat): Likewise.
10545 (info_proc_cmd_status): Likewise.
10546 (info_proc_cmd_cwd): Likewise.
10547 (info_proc_cmd_cmdline): Likewise.
10548 (info_proc_cmd_exe): Likewise.
10549 (info_proc_cmd_all): Likewise.
10550 (_initialize_infcmd): Install "info proc" command and subcommands.
10552 * target.h (struct target_ops): Add to_info_proc.
10553 (target_info_proc): Add prototype.
10554 * target.c (target_info_proc): New function.
10556 * procfs.c (procfs_info_proc): Add prototype.
10557 (info_proc_cmd): Rename into ...
10558 (procfs_info_proc): ... this. Update argument types as appropriate
10559 for a to_info_proc implementation. Handle "what" argument.
10560 (procfs_target): Install procfs_info_proc.
10561 (_initialize_procfs): No longer install "info proc" command.
10563 * linux-nat.c: (enum info_proc_what): Remove.
10564 (linux_nat_info_proc_cmd_1): Rename into ...
10565 (linux_nat_info_proc): ... this. Update argument types as appropriate
10566 for a to_info_proc implementation.
10567 (linux_nat_info_proc_cmd): Remove.
10568 (linux_nat_info_proc_cmd_mappings): Likewise.
10569 (linux_nat_info_proc_cmd_stat): Likewise.
10570 (linux_nat_info_proc_cmd_status): Likewise.
10571 (linux_nat_info_proc_cmd_cwd): Likewise.
10572 (linux_nat_info_proc_cmd_cmdline): Likewise.
10573 (linux_nat_info_proc_cmd_exe): Likewise.
10574 (linux_nat_info_proc_cmd_all): Likewise.
10575 (linux_target_install_ops): Install linux_nat_info_proc.
10576 (_initialize_linux_nat): No longer install "info proc" command
10579 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10581 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10582 * config.in, configure: Regenerate.
10584 * target.h (struct target_ops): Add to_fileio_readlink.
10585 (target_fileio_readlink): Add prototype.
10586 * target.c (target_fileio_readlink): New function.
10588 * inf-child.c: Conditionally include <sys/param.h>.
10589 (inf_child_fileio_readlink): New function.
10590 (inf_child_target): Install it.
10592 * remote.c (PACKET_vFile_readlink): New enum value.
10593 (remote_hostio_readlink): New function.
10594 (init_remote_ops): Install it.
10595 (_initialize_remote): Handle vFile:readlink packet type.
10597 2012-01-20 Pedro Alves <palves@redhat.com>
10598 Ulrich Weigand <ulrich.weigand@linaro.org>
10600 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10601 * config.in, configure: Regenerate.
10603 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10604 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10605 (target_fileio_open): Add prototype.
10606 (target_fileio_pwrite): Likewise.
10607 (target_fileio_pread): Likewise.
10608 (target_fileio_close): Likewise.
10609 (target_fileio_unlink): Likewise.
10610 (target_fileio_read_alloc): Likewise.
10611 (target_fileio_read_stralloc): Likewise.
10613 * target.c: Include "gdb/fileio.h".
10614 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10615 (default_fileio_target): New function.
10616 (target_fileio_open): Likewise.
10617 (target_fileio_pwrite): Likewise.
10618 (target_fileio_pread): Likewise.
10619 (target_fileio_close): Likewise.
10620 (target_fileio_unlink): Likewise.
10621 (target_fileio_close_cleanup): Likewise.
10622 (target_fileio_read_alloc_1): Likewise.
10623 (target_fileio_read_alloc): Likewise.
10624 (target_fileio_read_stralloc): Likewise.
10626 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10627 <fcntl.h>, and <unistd.h>.
10628 (inf_child_fileio_open_flags_to_host): New function.
10629 (inf_child_errno_to_fileio_error): Likewise.
10630 (inf_child_fileio_open): Likewise.
10631 (inf_child_fileio_pwrite): Likewise.
10632 (inf_child_fileio_pread): Likewise.
10633 (inf_child_fileio_close): Likewise.
10634 (inf_child_fileio_unlink): Likewise.
10635 (inf_child_target): Install to_fileio routines.
10637 * remote.c (init_remote_ops): Install to_fileio routines.
10639 2012-01-20 Pedro Alves <palves@redhat.com>
10640 Ulrich Weigand <ulrich.weigand@linaro.org>
10642 * remote.c (remote_multi_process_p): Only check for multi-process
10643 protocol feature, do not check for extended protocol.
10644 (remote_supports_multi_process): Check for extended protocol here.
10645 (set_general_process): Likewise.
10646 (extended_remote_kill): Likewise.
10647 (remote_pid_to_str): Likewise.
10648 (remote_query_supported): Always query multiprocess mode.
10650 2012-01-20 Pedro Alves <palves@redhat.com>
10651 Ulrich Weigand <ulrich.weigand@linaro.org>
10653 * inferior.h (struct inferior): Add fake_pid_p.
10654 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10655 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10656 magic_null_ptid since the remote side doesn't provide a real PID.
10658 2012-01-19 Tom Tromey <tromey@redhat.com>
10660 * NEWS: Combine the two Python sections.
10662 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10664 * target.h (target_close): Update comment on the target's unpush state.
10666 2012-01-19 Pedro Alves <palves@redhat.com>
10668 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10669 linux_nat_async directly instead of going through the target
10671 * target.c (unpush_target): Close target after unpushing it, not
10674 2012-01-19 Gary Benson <gbenson@redhat.com>
10676 * mdebugread.c (sort_blocks): Replace integer constants with ones
10677 derived from FIRST_LOCAL_BLOCK.
10679 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10680 Jan Kratochvil <jan.kratochvil@redhat.com>
10683 * symfile.c (find_separate_debug_file): New function.
10684 (terminate_after_last_dir_separator): Likewise.
10685 (find_separate_debug_file_by_debuglink): Also try realpath.
10686 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10687 * configure: Regenerate.
10688 * config.in: Regenerate.
10690 2012-01-18 Doug Evans <dje@google.com>
10692 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10693 (main.o): Remove rule.
10694 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10695 (--with-sysroot): Rewrite.
10696 * configure: Regenerate.
10697 * config.in: Regenerate.
10699 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10701 * parse.c (initialize_expout): New function.
10702 (reallocate_expout): Likewise.
10703 (parse_exp_in_context): Use `initialize_expout' and
10704 `reallocate_expout' when appropriate.
10706 2012-01-18 Pedro Alves <palves@redhat.com>
10708 * record.c (struct record_breakpoint, record_breakpoint_p)
10709 (record_breakpoints): New.
10710 (record_insert_breakpoint, record_remove_breakpoint): Manage
10711 record breakpoints list. Only remove breakpoints from the
10712 inferior if they had been inserted there in the first place.
10714 2012-01-17 Doug Evans <dje@google.com>
10716 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10717 if we know we don't have a file name to look for.
10719 2012-01-17 Pedro Alves <palves@redhat.com>
10721 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10722 the frame's stop reason is UNWIND_UNAVAILABLE.
10724 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10726 Fix compilation error.
10727 * m2-exp.y (yyerror): Use ANSI C prototype.
10729 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10731 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10732 (growbuf_by_size): Likewise.
10733 (yyerror): Likewise.
10734 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10735 (modblock): Remove variable (was #if 0'ed).
10736 (parse_number): Convert prototype from K&R to ANSI C.
10737 (yyerror): Likewise.
10738 * objc-exp.y (parse_number): Likewise.
10739 (yyerror): Likewise.
10740 (yylex): Remove #if 0'ed code.
10741 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10742 (yyerror): Likewise.
10744 2012-01-16 Tom Tromey <tromey@redhat.com>
10747 * symtab.h (compare_filenames_for_search): Declare.
10748 * symtab.c (compare_filenames_for_search): New function.
10749 (iterate_over_some_symtabs): Use it.
10750 * symfile.h (struct quick_symbol_functions)
10751 <map_symtabs_matching_filename>: Change spec.
10752 * psymtab.c (partial_map_symtabs_matching_filename): Use
10753 compare_filenames_for_search. Update for new spec.
10754 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10755 compare_filenames_for_search. Update for new spec.
10756 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10758 2012-01-16 Tom Tromey <tromey@redhat.com>
10761 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10762 (struct main_type) <flag_flag_enum>: New field.
10763 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10764 * NEWS: Add entries.
10765 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10767 * python/lib/gdb/printing.py (_EnumInstance): New class.
10768 (FlagEnumerationPrinter): Likewise.
10770 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10772 * breakpoint.c (create_sals_from_address_default): New function.
10773 (create_breakpoints_sal_default): Likewise.
10774 (decode_linespec_default): Likewise.
10775 (is_marker_spec): Removed.
10776 (strace_marker_p): New function.
10777 (init_breakpoint_sal): Using `strace_marker_p' instead of
10779 (create_breakpoint): Call method `create_sals_from_address' from
10780 breakpoint_ops, replacing code that created SALs conditionally
10781 on the type of the breakpoint. Call method `create_breakpoints_sal',
10782 replacing code that created breakpoints conditionally on the type
10784 (base_breakpoint_create_sals_from_address): New function.
10785 (base_breakpoint_create_breakpoints_sal): Likewise.
10786 (base_breakpoint_decode_linespec): Likewise.
10787 (base_breakpoint_ops): Add methods
10788 `base_breakpoint_create_sals_from_address',
10789 `base_breakpoint_create_breakpoints_sal' and
10790 `base_breakpoint_decode_linespec'.
10791 (bkpt_create_sals_from_address): New function.
10792 (bkpt_create_breakpoints_sal): Likewise.
10793 (bkpt_decode_linespec): Likewise.
10794 (tracepoint_create_sals_from_address): Likewise.
10795 (tracepoint_create_breakpoints_sal): Likewise.
10796 (tracepoint_decode_linespec): Likewise.
10797 (strace_marker_create_sals_from_address): Likewise.
10798 (strace_marker_create_breakpoints_sal): Likewise.
10799 (strace_marker_decode_linespec): Likewise.
10800 (strace_marker_breakpoint_ops): New variable.
10801 (addr_string_to_sals): Remove `marker_spec'. Call method
10802 `decode_linespec' from breakpoint_ops, replacing code that decoded
10803 an address string into a SAL. Use `strace_marker_p' instead of
10805 (strace_command): Decide whether we are dealing with a static
10806 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10807 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10808 * breakpoint.h (linespec_result, linespec_sals): New forward
10810 (breakpoint_ops) <create_sals_from_address>,
10811 <create_breakpoints_sal>, <decode_linespec>: New methods.
10813 2012-01-14 Doug Evans <dje@google.com>
10815 * NEWS: Update text for "maint set python print-stack".
10816 It is deprecated in gdb 7.4 and deleted in 7.5.
10818 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10820 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10821 including curses.h.
10823 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10825 * configure: Regenerate.
10826 * config.in: Regenerate.
10828 2012-01-12 Keith Seitz <keiths@redhat.com>
10831 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10832 (ANONYMOUS_UNION_NAME): Define.
10833 (is_path_expr_parent): New function.
10834 (get_path_expr_parent): New function.
10835 (is_anonymous_child): New function.
10836 (create_child_with_value): If the child is anonymous and without
10837 a name, assign an object name to it.
10838 (c_describe_child): Use get_path_expr_parent to determine
10839 the parent expression.
10840 If there field represents an anonymous struct or union and
10841 has no name, set an appropriate display name and expression.
10842 (cplus_describe_child): Likewise.
10844 2012-01-12 Pedro Alves <palves@redhat.com>
10846 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10847 available when %ebp is found to be zero (outermost).
10849 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10851 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10852 an internal gdb_static_assert.
10853 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10855 2012-01-11 Tom Tromey <tromey@redhat.com>
10858 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10859 catch" and "catch throw".
10861 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10863 * blockframe.c (block_innermost_frame): Start search from selected
10864 frame, if present, or otherwise the current frame.
10866 * c-exp.y (variable): Update innermost_block for
10867 'block COLONCOLON NAME' clause.
10868 * m2-exp.y (variable): Ditto.
10869 * objc-exp.y (variable): Ditto.
10871 2012-01-10 Tom Tromey <tromey@redhat.com>
10874 * python/python.c (finish_python_initialization): Set sys.argv.
10876 2012-01-10 Doug Evans <dje@google.com>
10878 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10879 "want_line_info". All callers updated.
10880 (dwarf_decode_lines_1): New function.
10881 (handle_DW_AT_stmt_list): Add function comment.
10882 New arg "want_line_info". All callers updated.
10883 (read_file_scope,read_type_unit_scope): Move comment from
10884 handle_DW_AT_stmt_list to here.
10886 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10888 Fix regression after libiberty/ update for GCC PR 6057 and others.
10889 * c-exp.y (operator) <OPERATOR DELETE>
10890 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10891 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10892 (make_builtin_type, make_name): New variable i, add gdb_assert.
10893 (operator) <OPERATOR NEW>: Update ARGS to 3.
10894 (operator) <OPERATOR DELETE>: Add trailing space.
10895 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10896 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10897 * cp-support.c (cp_canonicalize_string): Check NULL from
10898 cp_comp_to_string, call warning and return.
10900 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10902 Fix duplicate .o files after omitting libbfd.a.
10903 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10904 (SFILES): Add corelow.c.
10905 (COMMON_OBS): Add corelow.o.
10906 (ALLDEPFILES): Remove corelow.c.
10907 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10908 * config/alpha/alpha-osf3.mh: Likewise.
10909 * config/alpha/fbsd.mh: Likewise.
10910 * config/arm/nbsdaout.mh: Likewise.
10911 * config/arm/nbsdelf.mh: Likewise.
10912 * config/i386/i386gnu.mh: Likewise.
10913 * config/ia64/hpux.mh: Likewise.
10914 * config/ia64/linux.mh: Likewise.
10915 * config/m32r/linux.mh: Likewise.
10916 * config/m68k/linux.mh: Likewise.
10917 * config/mips/irix5.mh: Likewise.
10918 * config/mips/irix6.mh: Likewise.
10919 * config/pa/hpux.mh: Likewise.
10920 * config/pa/linux.mh: Likewise.
10921 * config/powerpc/aix.mh: Likewise.
10922 * config/sparc/linux.mh: Likewise.
10923 * config/sparc/linux64.mh: Likewise.
10924 * config/sparc/sol2.mh: Likewise.
10925 * config/vax/vax.mh: Likewise.
10926 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10927 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10928 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10929 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10930 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10931 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10932 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10933 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10934 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10935 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10936 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10937 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10938 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10939 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10940 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10941 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10942 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10943 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10944 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10945 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10946 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10947 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10948 corelow.o from gdb_target_obs.
10949 * corefile.c (core_target): Update the comment on NULL value.
10950 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10951 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10952 MATCHES. Drop YUMMY set on NULL.
10953 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10954 reclaim CORE_DATA if it is already NULL.
10956 2012-01-09 Doug Evans <dje@google.com>
10958 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10959 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10961 2012-01-09 Keith Seitz <keiths@redhat.com>
10963 * breakpoint.c (wrapper.h): Don't include.
10965 2012-01-09 Keith Seitz <keiths@redhat.com>
10967 * Makefile.in (SFILES): Remove wrapper.c.
10968 (HFILES_NO_SRCDIR): Remove wrapper.h.
10969 (COMMON_OBS): Remove wrapper.o.
10970 * cli/cli-interp.c: Don't inlude wrapper.h.
10971 * corelow.c: Likewise.
10972 (core_open): Replace gdb_target_find_new_threads with
10973 TRY_CATCH around target_find_new_threads.
10974 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10975 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10976 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10977 evaluate_expression.
10978 (varobj_set_value): Likewise for evaluate_expression and
10980 (install_new_variable): Likewise for value_fetch_lazy.
10981 (adjust_value_for_child_access): Likewise for value_ind.
10982 (c_describe_child): Likewise for value_subscript and
10984 (c_value_of_root): Likewise for evaluate_expression.
10985 * wrapper.c: Remove.
10986 * wrapper.h: Remove.
10988 2012-01-09 Doug Evans <dje@google.com>
10990 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10991 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10992 "abfd" args with "section". All callers updated.
10993 Error checking code moved ...
10994 (error_check_comp_unit_head): ... here. New function.
10995 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10996 Delete arg "abfd". New arg "type_offset". All callers updated.
10997 (create_debug_types_hash_table): Simplify by using
10998 read_and_check_type_unit_head.
11000 * parser-defs.h (namecopy): Delete.
11001 * parse.c (namecopy, namecopy_size): Move into copy_name.
11003 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11005 Partially fix duplicate .o files after omitting libbfd.a.
11006 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11007 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11008 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11009 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11010 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11011 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11012 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11014 2012-01-09 Pedro Alves <palves@redhat.com>
11016 * MAINTAINERS: Update my email address.
11018 2012-01-08 Doug Evans <dje@google.com>
11020 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11021 n_type_units. Rename type_comp_units to all_type_units.
11023 (add_signatured_type_cu_to_table): Renamed from
11024 add_signatured_type_cu_to_list. All callers updated.
11026 * gdbtypes.h (struct cplus_struct_type): Delete member
11027 nfn_fields_total. All uses removed.
11029 2012-01-06 Doug Evans <dje@google.com>
11031 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11033 (dwarf2_find_comp_unit): Delete.
11034 (process_psymtab_comp_unit): Make result "void".
11035 Delete args buffer, info_ptr, buffer_size, and replace with
11036 "section". All callers updated.
11037 (dwarf2_build_psymtabs_hard): Simplify.
11039 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11040 Thiago Jung Bauermann <bauerman@br.ibm.com>
11042 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11043 before `struct gdb_exception'.
11044 * breakpoint.c (update_global_location_list_nothrow)
11045 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11046 * cp-abi.c (value_rtti_type): Likewise.
11047 * cp-support.c (cp_validate_operator): Likewise.
11048 * infrun.c (insert_exception_resume_breakpoint)
11049 (check_exception_resume, keep_going): Likewise.
11050 * mi-interp.c (mi_breakpoint_created)
11051 (mi_breakpoint_modified): Likewise.
11052 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11053 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11054 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11056 2012-01-05 Doug Evans <dje@google.com>
11058 * dwarf2read.c (statement_prologue): Delete, unused.
11060 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11061 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11063 * dwarf2read.c (comp_unit_header): Delete, unused.
11065 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11067 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11068 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11070 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11072 * infrun.c (normal_stop): Don't skip calling the normal_stop
11073 observers if the thread was doing a multi-step, but stopped for
11074 some reason other than stepping.
11076 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11078 * cli/cli-decode.h: Add comments.
11079 (CMD_LIST_AMBIGUOUS): Moved to command.h
11080 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11081 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11082 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11083 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11084 (add_com, add_com_alias, add_info, add_info_alias)
11085 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11087 * command.h: Add and adjust comments.
11088 (CMD_LIST_AMBIGUOUS): Moved here.
11089 (help_cmd, help_cmd_list): Delete declarations.
11091 2012-01-04 Doug Evans <dje@google.com>
11093 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11094 All callers updated.
11095 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11096 Replace all arguments with "per_cu". All callers updated.
11098 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11100 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11101 New arg "per_cu". All callers updated.
11103 Delete #if 0'd out code.
11104 * language.c (binop_result_type): Delete.
11105 (simple_type, ordered_type, same_type, integral_type): Delete.
11106 (numeric_type, character_type, string_type, boolean_type): Delete.
11107 (float_type, structured_type): Delete.
11108 * language.h: Update.
11110 2012-01-04 Tom Tromey <tromey@redhat.com>
11112 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11114 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11116 * corefile.c (close_exec_file): Delete.
11117 (reopen_exec_file): Remove commented out code that seems related
11118 to close_exec_file, which is being deleted here.
11119 * inferior.h (close_exec_file): Delete.
11120 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11122 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11124 * ada-lang.c: #include "cli/cli-utils.h".
11125 (get_selections): Use skip_spaces.
11126 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11127 (catch_ada_exception_command_split): Use skip_spaces.
11128 (ada_decode_assert_location): Likewise.
11130 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11132 * linespec.c (decode_line_internal): Check for C++ or Java
11133 compound constructs only if the current language is C, C++
11136 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11139 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11140 Joel Brobecker <brobecker@adacore.com>
11141 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11142 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11144 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11145 fall through into AT_ENTRY_POINT.
11146 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11147 DUMMY_ADDR with it.
11148 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11149 PPC_INSN_SIZE skip to 3 times.
11151 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11153 * linespec.c (add_minsym): Preserve function descriptors.
11155 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11157 * breakpoint.c (all_locations_are_pending): Consider locations
11158 in program spaces executing during startup pending as well.
11160 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11162 Copyright year update in most files of the GDB Project.
11164 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11166 * copyright.sh: Delete.
11167 * copyright.py: Rewrite.
11169 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11171 * gnulib/extra/update-copyright: New file, imported from gnulib.
11173 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11175 * README (Copyright and License Notices): New section.
11177 2012-01-03 Tom Tromey <tromey@redhat.com>
11180 * python/py-value.c (valpy_dereference, valpy_get_address
11181 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11182 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11183 (valpy_absolute, valpy_richcompare): Free intermediate values.
11185 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11187 * ada-lang.c: Reformat the copyright notice.
11189 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11191 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11192 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11193 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11194 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11195 Revert this part of:
11196 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11197 Build gdb directly from *.o files not using libgdb.a.
11198 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11200 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11202 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11203 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11204 Reformat the copyright header.
11206 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11208 Revert this part of:
11209 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11210 Remove the gdbtui binary.
11211 * gdb.c (main): Remove args.interpreter_p initialization.
11212 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11213 * main.h (struct captured_main_args): Remove interpreter_p.
11215 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11217 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11219 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11221 * top.c (print_gdb_version): Update copyright year.
11223 2012-01-02 Yao Qi <yao@codesourcery.com>
11225 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11227 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11228 Joel Brobecker <brobecker@adacore.com>
11230 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11231 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11233 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11234 fall through into AT_ENTRY_POINT.
11235 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11236 DUMMY_ADDR with it.
11237 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11238 PPC_INSN_SIZE skip to 3 times.
11240 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11242 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11244 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11246 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11248 Build gdb directly from *.o files not using libgdb.a.
11249 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11250 (COMMON_OBS): Remove solib-target.o.
11251 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11252 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11253 (LIBGDB_OBS, libgdb.a): Move it above.
11254 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11255 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11256 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11257 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11258 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11259 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11260 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11261 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11262 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11263 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11264 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11265 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11266 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11267 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11268 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11269 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11270 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11271 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11272 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11273 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11274 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11275 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11276 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11277 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11278 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11279 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11280 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11282 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11284 Remove the gdbtui binary.
11285 * .gitignore (/gdbtui): Remove.
11286 * Makefile.in (TUI): Remove.
11287 (SUBDIR_TUI_OBS): Remove tui-main.o.
11288 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11289 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11290 (tui-main.o): Remove.
11291 (all_object_files): Remove tui-main.o.
11292 * NEWS: New note for the gdbtui removal.
11293 * configure: Rebuilt.
11294 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11295 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11296 CONFIG_UNINSTALL respectively.
11297 * gdb.c (main): Remove args.interpreter_p initialization.
11298 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11299 * main.h (struct captured_main_args): Remove interpreter_p.
11300 * tui/tui-main.c: Remove.
11302 2012-01-01 Doug Evans <dje@google.com>
11304 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11305 (dwarf2_physname, read_import_statement): Ditto.
11306 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11307 (process_structure_scope read_subroutine_type): Ditto.
11308 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11309 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11310 (dwarf2_fetch_die_location_block): Ditto.
11311 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11313 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11314 All callers updated.
11315 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11316 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11317 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11319 * dwarf2read.c (load_cu): Move assert to more useful location.
11321 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11322 All callers updated.
11324 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11325 (dwarf2_elf_names): Minor reformat.
11326 (dwarf2_per_cu_data): Tweak comment.
11327 (dwarf2_read_section): Fix comment.
11328 (create_all_comp_units): Fix comment.
11329 (load_full_comp_unit): Fix comment.
11330 (process_full_comp_unit): Fix comment.
11331 (read_signatured_type): Fix comment.
11333 For older changes see ChangeLog-2011.
11339 version-control: never