1 2012-11-08 Tom Tromey <tromey@redhat.com>
4 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
5 (zlib_decompress_section): Remove.
6 (gdb_bfd_map_section): Only check for compressed section
7 in mmap case. Use bfd_get_full_section_contents.
8 * osabi.c (check_note): Add 'sectsize' argument. Read
10 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
11 section data. Update for check_note change.
12 * xcoffread.c (xcoff_initial_scan): Use
13 bfd_get_full_section_contents.
14 * py-auto-load.c (auto_load_section_scripts): Use
15 bfd_get_full_section_contents.
16 * contrib/cc-with-tweaks.sh: Add -Z option.
18 2012-11-08 Tom Tromey <tromey@redhat.com>
20 * python/py-bpevent.c: Include defs.h.
21 * python/py-continueevent.c: Include defs.h.
22 * python/py-event.c: Include defs.h.
23 * python/py-event.h: Don't include defs.h.
24 * python/py-events.h: Don't include defs.h.
25 * python/py-evts.c: Include defs.h.
26 * python/py-exitedevent.c: Include defs.h.
27 * python/py-newobjfileevent.c: Include defs.h.
28 * python/py-signalevent.c: Include defs.h.
29 * python/py-stopevent.c: Include defs.h.
30 * python/py-threadevent.c: Include defs.h.
32 2012-11-08 Pierre Muller <muller@sourceware.org>
34 * update-web-ari.sh (print_heading): Add number of files
36 (nb_files): New variable counting the number of sources
37 files found by gdb_find.sh script.
38 (debug_awk): New variable to allow extra debug output.
39 (indexes): Add more information if DEBUG_AWK is set.
41 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
43 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
44 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
45 following the change in PLT call stubs on linker.
47 2012-11-08 Pierre Muller <muller@sourceware.org>
49 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
51 (AWK): Use = instead of == for sh test to avoid warning.
52 (Linux rule): Correct [:digit] into [[:digit:]].
53 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
54 (vasprintf rule): Adapt to common subdirectory moves.
55 (xasprintf rule): Idem.
56 (xvasprintf rule): Idem.
57 (var_boolean rule): Accept occurence in == or != test.
59 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
61 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
63 * tui/tui-hooks.c (tui_inferior_exit): New function.
64 (tui_detach_hook): Remove.
65 (tui_install_hooks): Install the inferior exit observer.
66 (tui_remove_hooks): Remove it.
68 2012-11-08 Yao Qi <yao@codesourcery.com>
71 * source.c (_initialize_source): Call add_com_alias to abbreviate
72 'forward-search' as 'fo'.
74 2012-11-07 Pedro Alves <palves@redhat.com>
76 * arm-tdep.c: Make defs.h be the first include.
77 * coff-pe-read.c: Ditto.
81 * ppcnbsd-nat.c: Ditto.
82 * ada-varobj.h: Don't include defs.h.
83 * i386-darwin-tdep.h: Ditto.
86 2012-11-07 Pedro Alves <palves@redhat.com>
88 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
91 2012-11-07 Pierre Muller <muller@sourceware.org>
93 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
94 File already uses "gdb_dirent.h" header.
96 2012-11-07 Yao Qi <yao@codesourcery.com>
98 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
101 2012-11-06 Tom Tromey <tromey@redhat.com>
103 * target.h (inferior_has_forked, inferior_has_vforked)
104 (inferior_has_execd, inferior_has_called_syscall): Remove
107 2012-11-06 Pierre Muller <muller@sourceware.org>
109 * remote.c (remote_insert_hw_breakpoint): ARI fix,
110 add missing internalization markup.
112 2012-11-06 Pedro Alves <palves@redhat.com>
116 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
118 2012-11-06 Pierre Muller <muller@sourceware.org>
120 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
123 2012-11-05 Joel Brobecker <brobecker@adacore.com>
125 * gnulib/update-gnulib.sh: New script.
127 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
129 * MAINTAINERS: Update my email address.
131 2012-11-05 Tom Tromey <tromey@redhat.com>
133 * frame.c (put_frame_register): Don't use temporary buffer.
135 2012-11-05 Pedro Alves <palves@redhat.com>
137 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
138 child. Clear 'pending_detach'.
139 * infrun.c (handle_vfork_child_exec_or_exit): Clear
140 'pending_detach' in the vfork parent.
142 2012-11-05 Doug Evans <dje@google.com>
144 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
145 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
146 * dwarf2read.c: #include "elf-bfd.h".
147 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
148 (dwop_section_names): Renamed from dwo_section names. All uses
149 updated. Add entries for .debug_cu_index, .debug_tu_index.
150 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
152 (struct dwp_sections): New type.
153 (struct virtual_dwo_sections): New type.
154 (struct dwp_hash_table): New type.
155 (struct dwp_file): New type.
156 (init_cutu_and_read_dies): Ensure DWO info/types section has been
157 read in. Handle DWOs coming from DWP files.
158 (lookup_dwo_file_slot): New function.
159 (dwarf2_locate_dwo_sections): Move definition closer to use.
160 (create_dwo_debug_info_hash_table_reader): Renamed from
161 create_debug_info_hash_table_reader. All callers updated.
162 (create_dwo_debug_info_hash_table): Renamed from
163 create_debug_info_hash_table. All callers updated.
164 (create_dwp_hash_table): New function.
165 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
166 (lookup_dwo_in_dwp): New function.
167 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
168 is_dwp. All callers updated.
169 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
170 (open_and_init_dwo_file): Renamed from init_dwo_file.
172 (lookup_dwo_file): Delete.
173 (dwarf2_locate_dwp_sections): New function.
174 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
175 (allocate_dwp_loaded_cutus_table): New function.
176 (open_and_init_dwp_file): New function.
177 (lookup_dwo_cutu): New function.
178 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
180 2012-11-03 Yao Qi <yao@codesourcery.com>
183 * breakpoint.c (trace_pass_set_count): Call
184 observer_notify_breakpoint_modified instead of
185 observer_notify_tracepoint_modified.
186 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
188 2012-11-02 Tom Tromey <tromey@redhat.com>
190 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
191 argument to complete_on_enum.
193 2012-11-02 Tom Tromey <tromey@redhat.com>
195 * configure: Rebuild.
196 * configure.ac (build_warnings): Add -Wempty-body.
197 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
198 * remote.c (handle_notification): Use braces for empty 'else' body.
199 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
201 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
203 * solib-som.c (som_relocate_section_addresses): Use braces
204 for empty 'else' body.
205 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
206 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
208 2012-11-02 Pedro Alves <palves@redhat.com>
212 * infrun.c (handle_inferior_event)
213 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
214 null_ptid before handling a vfork child exec or exit. Switch to
215 the event ptid afterwards.
217 2012-11-02 Yao Qi <yao@codesourcery.com>
219 * std-operator.def: Remove OP_LABELED.
220 * eval.c: Remove the declaration of 'get_label'.
222 (evaluate_struct_tuple): Remove code handling OP_LABELED.
224 Remove local variable 'variantno' and related code.
225 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
227 * expprint.c (print_subexp_standard): Likewise.
228 (dump_subexp_body_standard): Likewise.
229 * parse.c (operator_length_standard): Likewise.
231 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
233 Incorporate ARI web page generator into GDB sources.
234 * contrib/ari/create-web-ari-in-src.sh: New file.
235 * contrib/ari/gdb_ari.sh: New file.
236 * contrib/ari/gdb_find.sh: New file.
237 * contrib/ari/update-web-ari.sh: New file.
239 2012-10-31 Tom Tromey <tromey@redhat.com>
241 * gdbarch.c: Rebuild.
242 * gdbarch.sh: Remove references to gdbarch_swap.
243 * corelow.c (core_open): Remove obsolete comment.
245 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
248 * c-typeprint.c (c_print_type): Don't print a space for vector
249 types, this is handled within the suffix.
250 (c_type_print_varspec_suffix): Add a space to vector suffix.
252 2012-10-26 Pedro Alves <palves@redhat.com>
254 * amd64-tdep.c (amd64_relocate_instruction): Use
255 store_unsigned_integer instead of memcpy.
256 * i386-tdep.c (i386_relocate_instruction): Ditto.
258 2012-10-26 Pedro Alves <palves@redhat.com>
260 * infrun.c (handle_inferior_event): Merge handling of
261 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
264 2012-10-26 Pedro Alves <palves@redhat.com>
266 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
269 2012-10-26 Pedro Alves <palves@redhat.com>
271 * target.c (target_waitstatus_to_string): Handle
272 TARGET_WAITKIND_VFORK_DONE.
274 2012-10-26 Pedro Alves <palves@redhat.com>
276 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
277 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
279 2012-10-24 Tristan Gingold <gingold@adacore.com>
281 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
284 2012-10-24 Joel Brobecker <brobecker@adacore.com>
286 * ravenscar-thread.c (ravenscar_wait): Only update the list
287 of threads and inferior_ptid if the inferior is still alive.
289 2012-10-24 Joel Brobecker <brobecker@adacore.com>
291 * ada-lang.c (is_known_support_routine): Use lbasename when
292 matching the symtab's filename against
293 known_runtime_file_name_patterns.
295 2012-10-24 Joel Brobecker <brobecker@adacore.com>
297 * ada-lang.c (ada_same_array_size_p): New function.
298 (ada_promote_array_of_integrals): New function.
299 (coerce_for_assign): Add handling of arrays where the elements
300 are integrals of a smaller size than the size of the target
303 2012-10-24 Joel Brobecker <brobecker@adacore.com>
305 * doublest.c (convert_doublest_to_floatformat): Fix comparison
306 against maximum exponent value.
308 2012-10-24 Joel Brobecker <brobecker@adacore.com>
310 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
313 2012-10-24 Joel Brobecker <brobecker@adacore.com>
315 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
316 strip typedef layer when computing the fixed type's field type,
317 only when computing its size.
319 2012-10-24 Mark Kettenis <kettenis@gnu.org>
322 * i386-tdep.c (i386_return_value): Handle complex double and long
325 2012-10-24 Joel Brobecker <brobecker@adacore.com>
327 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
328 New local variable args_len.
329 Quote the name of the executable when computing the command line.
331 2012-10-23 Mark Kettenis <kettenis@gnu.org>
336 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
338 * amd64-tdep.c (amd64_classify): Classify complex types.
339 (amd64_return_value): Handle the COMPLEX_X87 class.
341 2012-10-23 Joel Brobecker <brobecker@adacore.com>
343 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
344 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
346 2012-10-23 Joel Brobecker <brobecker@adacore.com>
348 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
350 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
351 to amd64_windows_auto_wide_charset.
353 2012-10-23 Yao Qi <yao@codesourcery.com>
355 * event-top.c (mark_async_signal_handler_wrapper): Remove.
356 * event-top.h: Remove its declaration.
357 (async_request_quit): Call mark_async_signal_handler instead of
358 mark_async_signal_handler_wrapper.
359 (async_do_nothing, async_disconnect): Likewise.
360 (async_stop_sig): Likewise.
361 * remote.c (handle_remote_sigint): Likewise.
362 (handle_remote_sigint_twice): Likewise.
364 2012-10-23 Yao Qi <yao@codesourcery.com>
366 * event-top.c (sigint_token, sighup_token): Replace 'void *'
367 with 'static struct async_signal_handler *'.
368 (sighup_token, sigquit_token, sigstp_token): Likewise.
370 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
372 * gdbarch.sh (function_list): Use 'pstring' when printing
373 a variable which could return NULL.
374 * gdbarch.c: Regenerate.
376 2012-10-10 Joel Brobecker <brobecker@adacore.com>
377 Tom Tromey <tromey@redhat.com>
379 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
380 inneffective if condition by gdb assertion. Add function
383 2012-10-19 Joel Brobecker <brobecker@adacore.com>
385 * parser-defs.h (struct exp_descriptor): Document constraint
386 on return value for "op_name" callbacks.
388 2012-10-18 Tom Tromey <tromey@redhat.com>
390 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
391 * symtab.c (iterate_over_some_symtabs): Constify.
392 * source.h (symtab_to_fullname): Return 'const char *'.
393 * source.c (symtab_to_fullname): Return 'const char *'.
394 * python/py-symtab.c (stpy_fullname): Constify.
395 * cli/cli-cmds.c (edit_command): Constify.
396 * breakpoint.c (print_breakpoint_location)
397 (update_static_tracepoint): Constify.
399 2012-10-18 Tom Tromey <tromey@redhat.com>
401 * breakpoint.c (compare_breakpoints): Fix comparison.
403 2012-10-18 Tom Tromey <tromey@redhat.com>
405 * valprint.c (generic_emit_char, generic_printstr): Pass size of
406 gdb_wchar_t to convert_between_encodings.
408 2012-10-17 Yao Qi <yao@codesourcery.com>
410 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
411 more parameter 'inferior'.
412 * corefile.c (write_memory_with_notification): Caller update.
414 * mi/mi-cmd-var.c: Include "mi-main.h".
415 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
416 to 1 and restore it later.
417 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
418 and "data-write-memory-bytes.
419 * mi/mi-interp.c: Include objfiles.h.
420 (mi_interpreter_init): Call observer_attach_memory_changed.
421 (mi_memory_changed): New.
422 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
425 * NEWS: Mention new MI notification "memory-changed".
427 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
429 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
431 2012-10-15 Doug Evans <dje@google.com>
433 New option -nh: inhibit loading of ~/.gdbinit.
435 * main.c (captured_main): Recognize and process -nh.
436 (print_gdb_help): Mention -nh.
437 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
439 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
443 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
445 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
446 nor pc_regnum_from_eax.
447 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
448 nor pc_regnum_from_eax.
450 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
452 Fix entry values resolving in inlined frames.
453 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
454 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
457 2012-10-15 Joel Brobecker <brobecker@adacore.com>
459 * configure.ac: Build with -DMS_WIN64 if building with Python
460 enabled using GCC on amd64-windows.
461 * configure: Regenerate.
463 2012-10-15 Tom Tromey <tromey@redhat.com>
466 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
469 2012-10-15 Tom Tromey <tromey@redhat.com>
472 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
474 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
476 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
477 reset thread numbering back to 1.
479 2012-10-11 Doug Evans <dje@google.com>
481 PR breakpoints/14643.
482 * linespec.c (struct ls_parser): New member keyword_ok.
483 (linespec_lexer_lex_string): Add comment.
484 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
486 (parse_linespec): Set keyword_ok.
488 2012-10-10 Doug Evans <dje@google.com>
490 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
491 "0x" prefix on address in log message.
493 * dwarf2read.c (read_1_byte): Add const to buf parameter.
494 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
495 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
496 (lookup_dwo_file): Add const to dwo_name parameter.
497 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
499 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
501 Fix crash during stepping on ppc32.
502 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
505 2012-10-03 Doug Evans <dje@google.com>
508 * buildsym.c (buildsym_init): Reset using_directives to NULL.
510 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
512 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
513 output and use uint32_t not long to ensure 4 byte size.
515 2012-10-02 Joel Brobecker <brobecker@adacore.com>
517 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
520 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
522 * target.c (simple_search_memory): Include access length in
525 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
526 Edjunior Machado <emachado@linux.vnet.ibm.com>
529 * solib.c (solib_find): Prevent GDB from loading native libraries when
530 debugging a cross-target corefile.
532 2012-09-28 selven <pcthegreat@gmail.com>
534 Make definition match declaration.
536 * regcache.c (regcache_register_status): Change return type to
537 enum register_status.
539 2012-09-28 Yao Qi <yao@codesourcery.com>
541 * mi/mi-main.c (mi_cmd_data_write_memory): Call
542 write_memory_with_notification instead of write_memory.
543 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
544 instead of target_write_memory.
546 2012-09-28 Yao Qi <yao@codesourcery.com>
548 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
549 when the length of content is not an even number.
551 2012-09-27 Tom Tromey <tromey@redhat.com>
553 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
554 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
556 2012-09-27 Joel Brobecker <brobecker@adacore.com>
558 * sol-thread.c (sol_thread_fetch_registers)
559 (sol_thread_store_registers): Delete commented out code.
561 2012-09-27 Joel Brobecker <brobecker@adacore.com>
563 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
564 Move these functions to sparc-sol-thread.c.
565 * sparc-sol-thread.c: New file.
566 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
567 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
569 * configure: Regenerate.
571 2012-09-27 Joel Brobecker <brobecker@adacore.com>
573 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
574 Remove commented-out code.
576 2012-09-27 Joel Brobecker <brobecker@adacore.com>
578 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
579 Enable this code for sparc hosts only.
581 2012-09-27 Joel Brobecker <brobecker@adacore.com>
583 * procfs.h (procfs_find_LDT_entry): Add declaration.
584 * sol-thread.c (ps_lgetLDT): Delete local declaration of
585 function procfs_find_LDT_entry.
587 2012-09-27 Joel Brobecker <brobecker@adacore.com>
589 * procfs.c (proc_get_LDT_entry): Make static.
591 2012-09-27 Joel Brobecker <brobecker@adacore.com>
593 * procfs.c (proc_find_memory_regions): Fix declaration.
595 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
597 * amd64-tdep.c (amd64_return_value): Revert previous change
598 that used TYPE_LENGTH directly.
599 * bfin-tdep.c (bfin_extract_return_value): Likewise.
600 (bfin_store_return_value): Likewise.
601 * cris-tdep.c (cris_store_return_value): Likewise.
602 (cris_extract_return_value): Likewise.
603 * h8300-tdep.c (h8300_extract_return_value): Likewise.
604 * hppa-tdep.c (hppa64_return_value): Likewise.
605 * lm32-tdep.c (lm32_store_return_value): Likewise.
606 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
607 * spu-tdep.c (spu_value_from_register): Likewise.
608 * vax-tdep.c (vax_return_value): Likewise.
610 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
612 * gdbtypes.c (lookup_array_range_type): Expand parameters
613 LOW_BOUND and HIGH_BOUND to LONGEST.
614 (lookup_string_range_type): Likewise.
615 * gdbtypes.h (lookup_array_range_type): Likewise.
616 (lookup_string_range_type): Likewise.
617 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
618 Expand HIGHBOUND to ssize_t.
619 (value_string): Likewise.
620 * value.h (value_cstring): Expand parameter LEN to ssize_t.
621 (value_string): Likewise.
623 2012-09-27 Yao Qi <yao@codesourcery.com>
626 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
627 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
630 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
632 * procfs.c: Add gdb_bfd header.
633 * rs6000-nat.c: Likewise.
634 * solib-pa64.c: Likewise.
635 * spu-linux-nat.c: Likewise.
636 * windows-nat.c: Likewise.
638 2012-09-26 Tom Tromey <tromey@redhat.com>
640 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
642 2012-09-26 Tom Tromey <tromey@redhat.com>
644 * dwarf2read.c (mark_common_block_symbol_computed): New function.
645 (read_common_block): Handle child DIEs with
646 DW_AT_data_member_location.
647 (new_symbol_full): Add special case for common blocks.
649 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
650 Tom Tromey <tromey@redhat.com>
652 * dwarf2read.c (read_common_block): Rewrite.
653 (new_symbol_full): Handle DW_TAG_common_block.
654 * f-lang.c (head_common_list, find_common_for_function):
656 * f-lang.h (struct common_entry, struct saved_f77_common,
657 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
658 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
659 BLANK_COMMON_NAME_LOCAL): Remove.
660 (struct common_block): New.
661 * f-valprint.c (list_all_visible_commons): Remove.
662 (info_common_command_for_block): New function.
663 (info_common_command): Use it.
664 * stack.c (iterate_over_block_locals): Special case for
666 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
668 (struct general_symbol_info) <value.common_block>: New field.
669 (SYMBOL_VALUE_COMMON_BLOCK): New define.
671 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
672 Tom Tromey <tromey@redhat.com>
674 * f-lang.c (allocate_saved_bf_node,
675 allocate_saved_function_node, allocate_saved_f77_common_node,
676 allocate_common_entry_node, tail_common_list, current_common,
677 saved_bf_list, saved_bf_list_end, current_head_bf_list,
678 tmp_bf_ptr, add_common_block, add_common_entry,
679 find_first_common_named, patch_common_entries,
680 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
681 global_remote_debug, get_bf_for_fcn, saved_function_list,
682 saved_function_list_end, clear_function_list, struct saved_fcn,
683 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
684 SAVED_BF, SAVED_BF_PTR): Remove.
685 * f-lang.h (tail_common_list, current_common,
686 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
687 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
688 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
689 real_main_c_value): Remove.
690 * f-valprint.c (there_is_a_visible_common_named): Remove.
692 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
694 * breakpoint.c (update_global_location_list): Ignore previous
695 duplicate status of a breakpoint when starting a new scan for
696 duplicate breakpoints.
698 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
700 * arm-tdep.c (arm_skip_prologue): Extending producer check to
701 support LLVM compiler.
703 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
705 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
706 * bfin-tdep.c (bfin_extract_return_value): Likewise.
707 (bfin_store_return_value): Likewise.
708 * cris-tdep.c (cris_store_return_value): Likewise.
709 (cris_extract_return_value): Likewise.
710 * h8300-tdep.c (h8300_extract_return_value): Likewise.
711 * hppa-tdep.c (hppa64_return_value): Likewise.
712 * lm32-tdep.c (lm32_store_return_value): Likewise.
713 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
714 * spu-tdep.c (spu_value_from_register): Likewise.
715 * vax-tdep.c (vax_return_value): Likewise.
717 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
719 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
720 parameter LEN to ssize_t.
722 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
724 * ada-valprint.c (ada_val_print_1): Eliminate single-use
726 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
728 (alpha_store_return_value): Likewise.
729 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
730 (amd64_push_arguments): Likewise.
731 * ax-gdb.c (gen_trace_static_fields): Likewise.
732 (gen_traced_pop): Likewise.
733 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
734 * breakpoint.c (update_watchpoint): Likewise.
735 * findcmd.c (parse_find_args): Use local variable for type
737 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
738 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
739 (h8300_store_return_value): Likewise.
740 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
741 Use i386_darwin_arg_type_alignment directly.
742 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
743 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
744 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
745 (m68hc11_extract_return_value): Likewise.
746 * mep-tdep.c (mep_push_dummy_call): Likewise.
747 * printcmd.c (float_type_from_length): Likewise.
748 * s390-tdep.c (s390_value_from_register): Likewise.
749 * stack.c (read_frame_arg): Likewise.
750 * tracepoint.c (encode_actions_1): Likewise.
751 * valops.c (value_fetch_lazy): Use local variable for type
752 instead of length. Use TYPE_LENGTH directly.
753 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
755 2012-09-25 Joel Brobecker <brobecker@adacore.com>
757 * symtab.c (skip_prologue_sal): Fix typo in comment.
759 2012-09-25 Joel Brobecker <brobecker@adacore.com>
761 * linespec.c (create_sals_line_offset): Fix typo in comment.
763 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
765 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
766 use plongest to print the array size.
768 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
770 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
771 * p-valprint.c (pascal_type_print_base): Likewise.
773 2012-09-22 Yao Qi <yao@codesourcery.com>
775 * remote.c (remote_get_trace_status): Remove setting default
776 values of fields of 'ts'.
778 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
780 Fix internal error on canonicalization of clang types.
781 * cp-name-parser.y (operator): New comment at make_operator call for
782 new, delete, new[] and delete[].
783 (exp): Use "sizeof ". Add new comment at make_operator call.
785 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
787 Fix disassemble without parameters in tailcall frame.
788 * cli/cli-cmds.c (disassemble_current_function): Use
789 get_frame_address_in_block.
791 2012-09-21 Tom Tromey <tromey@redhat.com>
793 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
794 TYPE_CODE_UNION>: Unify, removing a goto.
796 2012-09-21 Tom Tromey <tromey@redhat.com>
798 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
800 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
802 * findvar.c (read_frame_register_value): Mark the result value as
803 optimized out if any of the input registers have been optimized out.
805 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
807 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
809 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
811 * eval.c (evaluate_subexp_standard): Eliminate single-use
814 2012-09-21 Yao Qi <yao@codesourcery.com>
816 * mi/mi-interp.c: Declare mi_record_changed.
817 (mi_interpreter_init): Call observer_attach_record_changed.
818 (mi_record_changed): New.
819 * record.c (record_open): Call observer_notify_record_changed.
820 (cmd_record_stop): Call observer_notify_record_changed.
823 2012-09-20 Tom Tromey <tromey@redhat.com>
826 * python/python.c (finalize_python): New function.
827 (_initialize_python): Make a final cleanup.
829 2012-09-19 Doug Evans <dje@google.com>
831 * buildsym.h (param_symbols): Delete, unused.
832 (context_stack): Delete member "params", unused.
833 * buildsym.c (push_context): Update.
834 * dwarf2read.c (read_func_scope): Update.
836 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
838 * sh-tdep.c (sh_register_convert_to_virtual)
839 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
840 all callers. Just do a memcpy if not the little-endian case.
842 * h8300-tdep.c (h8300_gdbarch_init): Invoke
843 set_gdbarch_double_format and set_gdbarch_long_double_format.
844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
845 set_gdbarch_double_format.
846 * sh-tdep.c (sh_gdbarch_init): Likewise.
848 * NEWS: Document the removal of SH's 'regs' command.
849 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
852 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
854 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
857 2012-09-18 Joel Brobecker <brobecker@adacore.com>
859 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
860 language when iterating over symbols.
862 2012-09-18 Yao Qi <yao@codesourcery.com>
864 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
865 (mi_interpreter_init): Call observer_attach_tsv_created and
866 observer_attach_tsv_deleted.
867 (mi_tsv_created, mi_tsv_deleted): New.
868 * tracepoint.c (delete_trace_state_variable): Call
869 observer_notify_tsv_deleted.
870 (trace_variable_command): Call observer_notify_tsv_created.
871 (delete_trace_variable_command): Call
872 observer_notify_tsv_deleted.
873 (create_tsv_from_upload): Call observer_notify_tsv_created.
876 2012-09-18 Yao Qi <yao@codesourcery.com>
878 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
879 if traceframe changed.
880 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
882 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
883 (mi_interpreter_init): Hook mi_traceframe_changed to observer
884 'traceframe_changed'.
885 (mi_traceframe_changed): New.
886 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
888 * NEWS: Mention the new MI notification.
890 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
892 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
894 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
896 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
897 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
898 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
899 Extend code also for PaX support. Convert all gdb_assert to warning
902 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
904 Implement auto-load user conveniences suggested by Doug Evans.
905 * auto-load.c: Include top.h.
906 (file_is_auto_load_safe): New variable advice_printed. Print advice.
907 (_initialize_auto_load): New variable scripts_directory_help. Mention
908 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
909 scripts-directory. Document in online help one can use also files for
910 set auto-load safe-path.
911 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
912 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
914 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
916 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
919 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
921 * m2-valprint.c (m2_print_array_contents): Eliminate variable
922 ELTLEN and use TYPE_LENGTH directly.
923 (m2_val_print): Likewise.
924 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
925 variable LEN and use TYPE_LENGTH directly.
926 (m68k_svr4_store_return_value): Likewise.
927 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
928 ARGLEN and use TYPE_LENGTH directly.
929 (mips_o64_push_dummy_call): Likewise.
930 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
931 variable LENGTH and use TYPE_LENGTH directly.
932 (s390_function_arg_float): Likewise.
933 (s390_function_arg_integer): Likewise.
934 (s390_push_dummy_call): Likewise.
935 (s390_return_value_convention): Likewise.
936 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
937 TYPE_LENGTH directly.
939 2012-09-17 Yao Qi <yao@codesourcery.com>
941 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
942 Update comment to add_setshow_integer_cmd.
943 * cli/cli-setshow.c (do_set_command): Handle case
944 'var_zuinteger_unlimited'.
945 (do_show_command): Likewise.
946 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
947 for command 'remotetimeout'.
948 * command.h (enum var_types): New zuinteger_unlimited. Update comment
950 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
951 for command 'set listsize'.
953 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
955 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
958 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
961 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
962 (frame_pop): Drop also TAILCALL_FRAME frames.
963 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
965 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
966 Pedro Alves <palves@redhat.com>
969 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
970 function start if we are already at function start. Both for
971 reverse-next and for reverse-step into function without line number
974 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
976 Code cleanup - rename 'inline' depth to 'artificial' depth.
977 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
978 frame_id_artificial_p, extend the comment.
979 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
980 * frame.c (fprint_frame_id): Rename at a user, change debug output
981 text to "artificial=".
982 (skip_inlined_frames): Rename to ...
983 (skip_artificial_frames): ... here. Extend the comment.
984 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
985 (frame_id_inlined_p): Rename to ...
986 (frame_id_artificial_p): ... here. Rename at a user.
987 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
988 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
990 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
992 (frame_id_inlined_p): Rename to ...
993 (frame_id_artificial_p): ... here.
994 * inline-frame.c (inline_frame_this_id): Rename at a user.
996 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
998 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
999 vector variables using vector_size syntax rather than array
1002 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1004 * valarith.c (value_concat): Replace unsafe ALLOCA with
1007 2012-09-14 Pedro Alves <palves@redhat.com>
1009 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1011 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1013 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1014 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1015 data-directory as appropriate.
1017 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1019 * printcmd.c (ui_printf): Eliminate single-use variable
1022 2012-09-14 Yao Qi <yao@codesourcery.com>
1023 Pedro Alves <palves@redhat.com>
1025 * valops.c (value_assign): Move observer_notify_target_changed
1026 below to replace reinit_frame_cache.
1028 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1030 Refactor Python "gdb" module into a proper Python package, by
1031 introducing a new "_gdb" module for code implemented in C, and
1032 using reload/__import__ instead of exec.
1033 * python/lib/gdb/__init__.py: Import * from _gdb.
1034 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1035 prompt_hook, sys.argv): Moved from finish_python_initialization.
1036 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1037 (packages, auto_load_packages): New list and function replacing
1038 module_dict and auto-loading code, using __file__ instead of
1039 gdb.PYTHONDIR and reload/__import__ instead of exec.
1040 (GdbSetPythonDirectory): Replacing function of the same name
1041 from finish_python_initialization, using reload/__import__ instead
1042 of exec, as well as call auto_load_packages.
1043 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1044 gdb_python_module and not gdb_module.
1045 * python/python-internal.h (gdb_python_module): Declare.
1046 * python/python.c (gdb_python_module): New global.
1047 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1048 (_initialize_python): Rename gdb module to _gdb.
1049 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1050 (finish_python_initialization): Move Python code to
1051 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1054 2012-09-13 Pedro Alves <palves@redhat.com>
1056 * Makefile.in (COMMON_OBS): Add registry.o.
1057 * registry.c: New file.
1058 * registry.h (struct registry_container): Declare.
1059 (registry_data_callback): New typedef.
1060 (struct registry_data, struct registry_data_registration, struct
1061 registry_data_registry): New type.
1062 (register_data_with_cleanup, registry_alloc_data)
1063 (registry_callback_adaptor, registry_clear_data)
1064 (registry_container_free_data, registry_set_data, registry_data):
1066 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1067 the new common structures and functions.
1068 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1071 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1073 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1074 there is an error inserting hardware breakpoints and use the
1075 error message from the target.
1077 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1078 Catch this exception and print the error message contained within. Do not
1079 print the default hardware error breakpoint message in this case.
1081 2012-09-12 Doug Evans <dje@google.com>
1083 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1086 2012-09-11 Doug Evans <dje@google.com>
1088 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1089 .gdb_index symbol attributes if there are none.
1091 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1093 * symtab.h (struct minimal_symbol) [has_size]: New field.
1094 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1095 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1096 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1097 minimal symbols if the symbol's size is actually known.
1098 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1099 of msymbol's size field. Add comment.
1100 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1101 SET_MSYMBOL_SIZE to set the minimal symbol size.
1103 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1105 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1106 minimal_symbol struct object, rather than setting some of its
1109 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1111 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1112 passed_a_ptr flag when displaying typedef types.
1114 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1116 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1117 the optimized_out flag is preserved.
1119 2012-09-10 Anthony Green <green@moxielogic.com>
1121 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1122 prologue changes in GCC.
1124 2012-09-10 Keith Seitz <keiths@redhat.com>
1127 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1128 (BOOL_CONVERSION_BADNESS): ... this.
1129 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1130 (rank_one_type): Allow all boolean conversions
1131 permitted by the standard.
1133 2012-09-06 Tom Tromey <tromey@redhat.com>
1135 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1136 Don't decref py_objfile.
1138 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1140 Do not enable -lmcheck by default when Python is enabled with
1142 * configure.ac: (python_has_threads) New variable, by testing
1143 if WITH_THREAD is defined in Python.h.
1144 Move --enable-lmcheck after --with-python.
1145 Do not enable -lmcheck by default if python_has_threads=yes.
1146 Warn if --enable-lmcheck and python_has_threads=yes.
1147 * configure: Regenerate.
1149 2012-08-31 Yao Qi <yao@codesourcery.com>
1151 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1152 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1153 Update some commands.
1154 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1155 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1158 2012-08-31 Yao Qi <yao@codesourcery.com>
1160 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1162 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1164 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1166 2012-08-29 Doug Evans <dje@google.com>
1168 * main.c (print_gdb_help): Remove reference to
1169 --use-deprecated-index-sections.
1171 2012-08-28 Yao Qi <yao@codesourcery.com>
1173 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1174 (init_cmds): Call add_setshow_uinteger_cmd for command
1175 'max-user-call-depth'.
1176 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1177 declaration of 'max_user_call_depth'.
1178 * frame.c (backtrace_limit): Add 'unsigned'.
1179 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1181 * remote.c (remoteaddresssize): Add 'unsigned'.
1182 (remote_address_masked): Change local var 'address_size' to
1184 (_initialize_remote): Call add_setshow_uinteger_cmd for
1185 'remoteaddresssize'.
1186 * top.c (history_size): Add 'unsigned'.
1187 (show_commands): Change local variables to 'unsigned'.
1188 (set_history_size_command): Don't check history_size is negative.
1189 Adjust the condition to call unstifle_history and set history_size
1192 2012-08-28 Pedro Alves <palves@redhat.com>
1196 * infcmd.c (default_print_one_register_info): New, factored out
1197 from default_print_registers_info.
1198 (default_print_registers_info): Use it. Mark value unavailable if
1200 (registers_info): Print user registers with
1201 default_print_one_register_info.
1203 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1206 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1207 is not NULL before referencing it.
1209 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1211 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1212 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1215 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1216 Jan Kratochvil <jan.kratochvil@redhat.com>
1218 * auto-load.c (auto_load_objfile_script): Rename to ...
1219 (auto_load_objfile_script_1): ... here, change variable realname to
1220 parameter realname, document it, add return value, add variable retval.
1221 (auto_load_objfile_script): New function.
1223 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1225 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1226 followed by a whitespace.
1228 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1232 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1233 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1236 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1238 * memattr.c (create_mem_region): Fix memory region overlapping
1241 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1243 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1244 with xmalloc/cleanup.
1245 * mt-tdep.c (mt_push_dummy_call): Likewise.
1246 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1247 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1249 2012-08-24 Yao Qi <yao@codesourcery.com>
1251 * jv-exp.y (push_expression_name): Add "." at the end of error
1254 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1256 Document how to return from "python-interactive" to GDB.
1257 * python/python.c (_initialize_python): Update documentation.
1259 2012-08-23 Pedro Alves <palves@redhat.com>
1261 * infrun.c (_initialize_infrun) <handle command help text>:
1262 Mention that multiple signals are supported.
1264 2012-08-23 Pedro Alves <palves@redhat.com>
1266 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1269 2012-08-23 Yao Qi <yao@codesourcery.com>
1271 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1272 (tfind_1): Don't call registers_changed, set_traceframe_num,
1273 and clear_traceframe_info.
1274 Call set_current_traceframe.
1275 (set_current_traceframe): call set_traceframe_num.
1277 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1279 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1280 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1282 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1284 Enable readline in Python in a GDB-specific way and block the
1285 standard Python readline module to prevent conflicts with GDB.
1286 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1287 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1288 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1289 * python/py-gdb-readline.c: New file.
1290 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1292 * python/python.c (_initialize_python): Call
1293 gdbpy_initialize_gdb_readline.
1295 2012-08-22 Keith Seitz <keiths@redhat.com>
1297 * defs.h: Include build-gnulib/config.h
1299 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1301 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1304 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1306 Add a new "python-interactive" command that starts a standard
1307 Python interactive prompt with "pi" as alias, and add "py" as
1308 an alias to "python".
1309 * NEWS: Mention the new commands.
1310 * python/python.c (eval_python_command): New function.
1311 (python_interactive_command): For "python-interactive" with
1312 arguments, call eval_python_command. For "python-interactive"
1313 without arguments, call PyRun_InteractiveLoop.
1314 (_initialize_python): Add "python-interactive" command with
1315 "pi" as alias, and add "py" as an alias to "python".
1317 2012-08-22 Tom Tromey <tromey@redhat.com>
1319 * defs.h (quit_flag): Don't declare.
1320 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1321 (QUIT): Use new functions.
1322 * event-top.c (command_handler): Use clear_quit_flag.
1323 (handle_sigint): Use set_quit_flag.
1324 (async_request_quit): Use check_quit_flag. Don't check
1326 * exceptions.c (throw_exception): Use clear_quit_flag.
1327 * main.c (captured_main): Use clear_quit_flag.
1328 * python/python.c (clear_quit_flag, set_quit_flag)
1329 (check_quit_flag): New functions.
1330 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1332 * remote.c (remote_wait_as): Use check_quit_flag,
1334 (remote_start_remote): Call QUIT.
1335 * symfile.c (load_progress): Use check_quit_flag.
1336 * top.c (command_loop): Use clear_quit_flag.
1337 (command_line_input): Call QUIT.
1338 * utils.c (quit_flag): Conditionally define.
1339 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1341 (prompt_for_continue): Call QUIT. Use quit, not
1343 * remote-mips.c (mips_expect_timeout): Call QUIT.
1344 * monitor.c (monitor_expect): Call QUIT.
1346 2012-08-22 Tom Tromey <tromey@redhat.com>
1348 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1349 (async_init_signals): Update.
1350 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1351 (SIGWINCH_HANDLER_BODY): Remove.
1353 2012-08-22 Tom Tromey <tromey@redhat.com>
1355 * jit.c (jit_object_close_impl): Don't malloc the objfile
1357 * objfiles.c (allocate_objfile): Don't malloc the objfile
1359 (free_objfile): Don't free the objfile name.
1360 * objfiles.h (struct objfile) <name>: Update comment.
1361 * symfile.c (reread_symbols): Fix reference counting. Don't
1362 malloc objfile name.
1364 2012-08-22 Tom Tromey <tromey@redhat.com>
1366 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1367 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1368 (symfile_bfd_open): Likewise.
1369 (generic_load): Likewise.
1370 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1371 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1373 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1375 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1376 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1377 (pmon_load_fast): Likewise.
1378 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1379 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1380 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1381 (macho_check_dsym): Likewise.
1382 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1383 (m32r_upload_command): Likewise.
1384 * gdb_bfd.h (gdb_bfd_cache): Declare.
1385 * gdb_bfd.c (struct gdb_bfd_data): New.
1386 (gdb_bfd_cache): New global.
1387 (struct gdb_bfd_cache_search): New.
1388 (hash_bfd): New function.
1390 (gdb_bfd_open): Likewise.
1391 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1392 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1394 * exec.c (exec_file_attach): Use gdb_bfd_open.
1395 * dsrec.c (load_srec): Use gdb_bfd_open.
1397 2012-08-22 Tom Tromey <tromey@redhat.com>
1399 * dwarf2read.c (macro_start_file): Update.
1400 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1401 (free_objfile_per_bfd_storage): Destroy macro_cache.
1402 (allocate_objfile, free_objfile): Update.
1403 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1405 (struct objfile) <macro_cache>: Remove.
1406 * symfile.c (reread_symbols): Update.
1407 * symmisc.c (print_symbol_bcache_statistics): Update.
1408 (print_objfile_statistics): Update.
1410 2012-08-22 Tom Tromey <tromey@redhat.com>
1412 * elfread.c (elf_symtab_read): Update.
1413 * objfiles.c (objfiles_bfd_data): New global.
1414 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1415 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1416 (allocate_objfile, free_objfile): Update.
1417 (_initialize_objfiles): Initialize objfiles_bfd_data.
1418 * objfiles.h (struct objfile_per_bfd_storage): New.
1419 (struct objfile) <per_bfd>: New field.
1420 <filename_cache>: Remove.
1421 (set_objfile_per_bfd): Declare.
1422 * symfile.c (reread_symbols): Update. Call
1423 set_objfile_per_bfd.
1424 (allocate_symtab): Update.
1425 * symmisc.c (print_symbol_bcache_statistics): Update.
1426 (print_objfile_statistics): Print the size of the BFD obstack.
1428 2012-08-22 Tom Tromey <tromey@redhat.com>
1430 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1431 * gdb_bfd.c: Use DEFINE_REGISTRY.
1432 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1433 (gdb_bfd_ref): Call bfd_alloc_data.
1434 (gdb_bfd_unref): Call bfd_free_data.
1436 2012-08-22 Tom Tromey <tromey@redhat.com>
1438 * registry.h (struct registry_fields): New.
1439 (REGISTRY_FIELDS): Redefine.
1440 (REGISTRY_ACCESS_FIELD): New macro.
1441 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1444 2012-08-22 Tom Tromey <tromey@redhat.com>
1446 * auto-load.c (_initialize_auto_load): Update.
1447 * solib-svr4.c (_initialize_svr4_solib): Update
1448 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1449 * solib-darwin.c (_initialize_darwin_solib): Update.
1450 * registry.h: New file.
1451 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1452 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1453 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1454 (register_program_space_data_with_cleanup)
1455 (register_program_space_data, program_space_alloc_data)
1456 (clear_program_space_data, set_program_space_data)
1457 (program_space_data): Don't declare.
1458 * progspace.c: Use DEFINE_REGISTRY.
1459 (struct program_space_data, struct
1460 program_space_data_registration, struct
1461 program_space_data_registry, program_space_data_registry)
1462 (register_program_space_data_with_cleanup)
1463 (register_program_space_data, program_space_alloc_data)
1464 (program_space_free_data, clear_program_space_data)
1465 (set_program_space_data, program_space_data): Remove.
1466 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1467 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1468 (register_objfile_data_with_cleanup, register_objfile_data)
1469 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1471 * objfiles.c: Use DEFINE_REGISTRY.
1472 (struct objfile_data, struct objfile_data_registration, struct
1473 objfile_data_registry, objfile_data_registry)
1474 (register_objfile_data_with_cleanup, register_objfile_data)
1475 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1476 (set_objfile_data, objfile_data): Remove.
1477 (_initialize_objfiles): Update.
1478 * jit.c (_initialize_jit): Update.
1479 * inflow.c (_initialize_inflow): Update.
1480 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1481 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1482 (register_inferior_data_with_cleanup, register_inferior_data)
1483 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1485 * inferior.c: Use DEFINE_REGISTRY.
1486 (struct inferior_data, struct inferior_data_registration, struct
1487 inferior_data_registry, inferior_data_registry)
1488 (register_inferior_data_with_cleanup, register_inferior_data)
1489 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1490 (set_inferior_data, inferior_data): Remove.
1491 * auxv.c (_initialize_auxv): Update.
1492 * ada-lang.c (_initialize_ada_language): Update.
1493 * breakpoint.c (_initialize_breakpoint): Update.
1494 * i386-nat.c (i386_use_watchpoints): Update.
1496 2012-08-22 Tom Tromey <tromey@redhat.com>
1498 * exec.c (exec_close, exec_file_attach): Update.
1499 (add_to_section_table): Initialize 'key' field.
1500 (add_target_sections, remove_target_sections): Add 'key' argument.
1501 * exec.h (add_target_sections, remove_target_sections): Add
1503 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1504 (reload_shared_libraries_1): Update.
1505 * target.h (struct target_section) <key>: New field.
1507 2012-08-22 Tom Tromey <tromey@redhat.com>
1509 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1511 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1513 * symfile.c (allocate_symtab): Use host_address_to_string
1514 function instead of cast of pointer to long which is not
1515 compatible with x86_64-w64-mingw32 build.
1517 2012-08-19 Andrew Pinski <apinski@cavium.com>
1519 * mips-tdep.c (is_octeon): New function.
1520 (is_octeon_bbit_op): New function.
1521 (mips32_next_pc): Handle Octeon's bbit instructions.
1522 (mips32_instruction_has_delay_slot): Likewise.
1524 2012-08-19 Andrew Pinski <apinski@cavium.com>
1526 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1527 before the function.
1529 2012-08-19 Andrew Pinski <apinski@cavium.com>
1531 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1533 2012-08-19 Keith Seitz <keiths@redhat.com>
1536 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1537 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1539 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1541 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1542 The typo broke "make TAGS".
1544 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1548 2012-08-17 Keith Seitz <keiths@redhat.com>
1551 * gdbtypes.c (strict_type_checking): New variable.
1552 (show_strict_type_checking): New function.
1553 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1554 if strict type checking is disabled.
1555 (_initialize_gdbtypes): Add "check type" subcommand.
1556 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1558 2012-08-17 Keith Seitz <keiths@redhat.com>
1560 * language.h (type_mode): Remove.
1561 (type_check): Remove.
1562 (struct language_defn): Remove la_type_check.
1563 (STRICT_TYPE): Remove unused macro.
1564 (type_error): Remove.
1565 * language.c (set_type_range_case): Renamed to ...
1566 (set_range_case): ... this. Update all callers.
1567 Remove type_mode/type_check.
1568 (type_mode): Remove.
1569 (type_check): Remove.
1570 (show_type_command): Remove.
1571 (set_type_command): Remove.
1572 (language_info): Remove type checking output.
1573 (type_error): Remove unused function.
1574 (range_error): Update comment.
1575 (unknown_language_defn): Remove la_type_check.
1576 (auto_language_defn): Likewise.
1577 (local_language_defn): Likewise.
1578 (_initialize_language): Remove "check type" subcommand.
1579 * ada-lang.c (ada_language_defn): Remove la_type_check.
1580 * c-lang.c (c_language_defn): Likewise.
1581 (cplus_language_defn): Likewise.
1582 (asm_language_defn): Likewise.
1583 (minimal_language_defn): Likewise.
1584 * d-lang.c (d_language_defn): Likewise.
1585 * f-lang.c (f_language_defn): Likewise.
1586 * go-lang.c (go_language_defn): Likewise.
1587 * jv-lang.c (java_language_defn): Likewise.
1588 * m2-lang.c (m2_language_defn): Likewise.
1589 * objc-lang.c (objc_language_defn): Likewise.
1590 * opencl-lang.c (opencl_language_defn): Likewise.
1591 * p-lang.c (pascal_language_defn): Likewise.
1593 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1595 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1597 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1599 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1601 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1602 using the regache. Use ia64_hpux_get_register_from_save_state_t
1603 to access the bsp and bspstore registers if not.
1605 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1607 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1608 * breakpoint.c (detach_breakpoints): Change pid parameter into
1609 a ptid. Adjust code accordingly.
1610 * infrun.c (handle_inferior_event): Delete variable child_pid.
1611 Update call to detach_breakpoints to pass the child ptid for
1613 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1614 assert that inferior_ptid's lwp is zero.
1615 (linux_handle_extended_wait): Update call to detach_breakpoints.
1616 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1619 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1621 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1622 parent, only call detach_breakpoints if tts.tts_event ==
1625 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1627 * dwarf2-frame.c (dwarf2_frame_cache): Use
1628 get_frame_address_in_block instead of get_frame_pc as
1629 the bound for executing the frame's FDE.
1631 2012-08-16 Yao Qi <yao@codesourcery.com>
1633 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1634 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1635 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1636 (c_type_print_varspec_suffix): Likewise.
1637 * eval.c (evaluate_subexp_standard): Likewise.
1638 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1639 (f_type_print_varspec_suffix): Likewise.
1640 * gdbtypes.c (is_scalar_type): Likewise.
1641 (recursive_dump_type): Likewise.
1642 * infcall.c (value_arg_coerce): Likewise.
1643 * m2-valprint.c (m2_val_print): Likewise.
1644 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1645 (pascal_type_print_varspec_suffix): Likewise.
1646 (pascal_type_print_base): Likewise.
1647 * p-valprint.c (pascal_val_print): Likewise.
1648 (pascal_val_print): Likewise.
1649 * valops.c (value_slice): Likewise.
1650 * valprint.c (scalar_type_p): Likewise.
1651 * valarith.c (value_bitstring_subscript): Remove.
1652 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1653 Remove comment on TYPE_CODE_BITSTRING.
1655 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1656 TYPE_CODE_BITSTRING.
1658 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1661 2012-08-16 Yao Qi <yao@codesourcery.com>
1663 * tracepoint.c (trace_find_none_command): Remove.
1664 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1666 2012-08-16 Yao Qi <yao@codesourcery.com>
1668 * remote.c (handle_notification): Remove parameter 'length'.
1669 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1671 2012-08-15 Keith Seitz <keiths@redhat.com>
1673 * gdbtypes.c (opaque_type_resolution): Make static.
1674 Add missing comment.
1675 (overload_debug): Add missing comment.
1676 (show_opaque_type_resolution): Likewise.
1677 (show_overload_debug): Likewise.
1678 (print_bit_vector): Remove unnecessary forward declaration.
1679 (print_arg_types): Likewise.
1680 (dump_fn_fieldlists): Likewise.
1681 (print_cplus_stuff): Likewise.
1683 2012-08-15 Tom Tromey <tromey@redhat.com>
1685 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1686 (gdb_bfd_ref): Initialize new field.
1687 (gdb_bfd_unref): Unref the archive BFD.
1688 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1691 2012-08-15 Tom Tromey <tromey@redhat.com>
1694 * python/py-bpevent.c (create_breakpoint_event_object): Update
1696 * python/py-event.c (evpy_add_attribute): Update comment.
1697 * python/py-exitedevent.c (create_exited_event_object): Fix
1698 reference counting and error handling.
1699 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1700 Fix reference counting.
1701 * python/py-signalevent.c (create_signal_event_object): Fix
1702 reference counting and error handling.
1703 * python/py-stopevent.c (emit_stop_event): Fix reference
1705 * python/py-threadevent.c (get_event_thread): Return a
1707 * python/py-type.c (convert_field): Fix reference counting.
1709 2012-08-15 Tom Tromey <tromey@redhat.com>
1711 * dwarf2read.c (dwarf_decode_macro_bytes)
1712 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1715 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1717 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1718 stepi, nexti, finish, next, step, jump, and continue commands.
1719 * infrun.c (_initialize_infrun): Update help text for the handle
1722 2012-08-14 Doug Evans <dje@google.com>
1724 * gdbtypes.c (struct extra): Delete, unused.
1726 * gdbtypes.c: Whitespace cleanup.
1727 (address_space_name_to_int): Remove "extern" from definition.
1728 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1730 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1731 TYPE_POINTER_TYPE (type).
1733 2012-08-14 Gary Benson <gbenson@redhat.com>
1735 * solib-svr4.c (svr4_free_library_list): Use free_so.
1737 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1739 * .gitignore: Add go-exp.c.
1741 2012-08-13 Doug Evans <dje@google.com>
1743 * value.c (show_convenience): Tweak comment.
1744 (_initialize_values): Mention convenience functions in the help text
1745 for "show convenience".
1747 2012-08-13 Yao Qi <yao@codesourcery.com>
1749 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1750 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1752 * eval.c (evaluate_subexp_standard): Likewise.
1753 * expprint.c (print_subexp_standard): Likewise.
1754 (dump_subexp_body_standard): Likewise.
1755 * parse.c (operator_length_standard): Likewise.
1757 2012-08-13 Yao Qi <yao@codesourcery.com>
1759 * std-operator.def: Remove OP_BITSTRING.
1760 * breakpoint.c (watchpoint_exp_is_const): Update.
1761 * eval.c (evaluate_subexp_standard): Remove handling to
1763 * expprint.c (print_subexp_standard): Likewise.
1764 (dump_subexp_body_standard): Likewise.
1765 * parse.c (operator_length_standard): Likewise.
1766 * valops.c (value_bitstring): Remove.
1767 * value.h: Remove the declaration of 'value_bitstring'.
1769 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1771 * linespec.c (find_methods): Remove unused variables `i1' and
1773 (decode_line_full): Likewise for `arg_start'.
1775 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1777 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1778 (zlib_decompress_section): Likewise for `section_data'.
1779 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1781 2012-08-10 Doug Evans <dje@google.com>
1783 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1784 * NEWS: Document them.
1785 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1787 * python/py-type.c (typy_array_1): New function.
1788 (typy_array): Call it.
1789 (typy_vector): New function.
1790 (type_object_methods): Add "vector".
1791 * python/lib/gdb/function/__init__.py: New file.
1792 * python/lib/gdb/function/strfns.py: New file.
1794 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1796 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1797 for TYPE_FIELD_BITPOS.
1798 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1800 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1803 * common/vec.h (VEC_merge): Define.
1804 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1805 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1806 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1807 * completer.c: Include gdb_signals.h.
1808 (signal_completer): Define.
1809 * completer.h (signal_completer): Add prototype.
1810 * infcmd.c (_initialize_infcmd): Assign the command
1811 completer for "signal" to handle_completer.
1812 * infrun.c: Include completer.h.
1813 (handle_completer): Define.
1814 (_initialize_infrun): Declare a new local variable c. Store the
1815 result of add_com("handle") to it. Assign the command
1816 completer for "handle" to handle_completer.
1818 2012-08-09 Yao Qi <yao@codesourcery.com>
1820 * cli/cli-decode.c (set_cmd_prefix): New.
1821 (lookup_cmd_for_prefixlist): New.
1822 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1823 of each cmd_list_element in *prefixlist.
1824 (add_setshow_cmd_full): set_cmd_prefix.
1825 (add_alias_cmd): Likewise.
1826 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1827 Declare 'auto_boolean_enums'.
1828 * cli/cli-setshow.c: Include "observer.h".
1829 (notify_command_param_changed_p): New.
1830 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1832 (do_setshow_command): Split it to ...
1833 (do_set_command, do_show_command): ... them. New.
1834 (do_set_command): Call observer_notify_command_param_changed if
1835 notify_command_param_changed_p returns true.
1836 (cmd_show_list): Caller update.
1837 * auto-load.c (set_auto_load_cmd): Likewise.
1838 * remote.c (show_remote_cmd): Likewise.
1839 * cli/cli-setshow.h: Update declarations.
1840 * top.c (execute_command): Call do_set_command and do_show_command.
1842 * NEWS: Mention new MI notification.
1843 * mi/mi-interp.c: Declare mi_command_param_changed.
1844 (mi_interpreter_init): Attach mi_command_param_changed to
1845 observer command_param_changed.
1846 (mi_command_param_changed): New.
1847 Remove mi_suppress_breakpoint_notifications.
1848 Define global variable mi_suppress_notification.
1849 (mi_breakpoint_created): Update.
1850 (mi_breakpoint_deleted): Likewise.
1851 (mi_breakpoint_modified): Likewise.
1852 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1853 'gdb-set' and set mi_suppress_notification.
1854 * mi/mi-main.h: (mi_suppress_notification): New struct.
1856 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1857 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1861 2012-08-09 Yao Qi <yao@codesourcery.com>
1863 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1864 (skiplist): Move it to skip.c.
1865 (init_cmd_lists): Remove code setting enablebreaklist and
1867 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1868 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1870 * gdbcmd.h: Likewise.
1871 * skip.c (_initialize_step_skip): Move 'skiplist' from
1874 2012-08-09 Yao Qi <yao@codesourcery.com>
1876 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1877 * gnu-nat.c, symfile.c: Likewise.
1879 2012-08-08 Aaron Gamble <agamble@google.com>
1881 * utils.c (prompt_for_continue_wait_time): New static global.
1882 (make_command_stats_cleanup): Initialize it.
1883 (report_command_stats): Subtract time waiting for user.
1884 (prompt_for_continue): Track time waiting for user.
1885 (defaulted_query): Track time waiting for user.
1887 2012-08-08 Doug Evans <dje@google.com>
1889 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1891 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1892 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1893 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1894 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1895 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1896 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1898 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1899 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1900 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1901 (dump_prefix_expression): Handle OP_TYPE.
1903 2012-08-08 Keith Seitz <keiths@redhat.com>
1905 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1908 2012-08-08 Doug Evans <dje@google.com>
1910 * linux-thread-db.c: #include "gdb_vecs.h".
1911 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1913 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1914 (thread_db_load_search): Use a vector to iterate over path elements.
1915 Handle text appearing after "$pdir".
1917 * gdb_string.h: Moved to ...
1918 * common/gdb_string.h: ... here.
1919 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1920 gdb_string.h and gdb_assert.h.
1922 2012-08-08 Yao Qi <yao@codesourcery.com>
1924 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1925 (tic6x_value_to_register): Likewise.
1926 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1927 and set_gdbarch_value_to_register.
1929 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1930 Jean-Marc Saffroy <saffroy@gmail.com>
1933 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1934 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1935 * gcore.c (gcore_create_callback): New function comment. Add modified
1936 parameter. Only write modified regions. Set SEC_READONLY exactly
1937 according to MODIFIED.
1938 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1939 the passed modified value to FUNC.
1940 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1941 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1942 first. New variables modified and has_anonymous. Parse the lines of
1943 smaps file. Add the passed MODIFIED value to FUNC.
1944 * procfs.c (find_memory_regions_callback): Add the passed modified
1947 2012-08-06 Tom Tromey <tromey@redhat.com>
1949 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1950 (dwarf2_frame_cache): Use it.
1951 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1952 cache initialization constraint.
1954 2012-08-06 Tom Tromey <tromey@redhat.com>
1957 * varobj.c (update_dynamic_varobj_children): Don't call
1960 2012-08-06 Tom Tromey <tromey@redhat.com>
1963 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1965 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1967 * NEWS: New entry for 'cd' default parameters.
1968 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1970 2012-08-03 Tom Tromey <tromey@redhat.com>
1972 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1975 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1977 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1978 to attempting lseek/write.
1979 (inf_child_fileio_pread): Likewise for pread.
1981 2012-08-02 Yao Qi <yao@codesourcery.com>
1983 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1984 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1985 add_setshow_zinteger_cmd.
1986 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1987 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1988 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1989 instead of add_setshow_zinteger_cmd.
1990 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1991 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1992 instead of add_setshow_zinteger_cmd.
1993 * frame.c (frame_debug): Add 'unsigned'.
1994 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1995 add_setshow_zinteger_cmd.
1996 * frame.h: Update the declaration of 'frame_debug'.
1997 * gdbtypes.c (overload_debug): Add 'unsigned'.
1998 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1999 add_setshow_zinteger_cmd.
2000 * inferior.h: Update declaration of 'debug_infrun'.
2001 * infrun.c (debug_infrun): Add 'unsigned'.
2002 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2003 add_setshow_zinteger_cmd.
2004 * jit.c (jit_debug): Add 'unsigned'.
2005 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2006 add_setshow_zinteger_cmd.
2007 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2008 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2009 instead of add_setshow_zinteger_cmd.
2010 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2011 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2012 add_setshow_zinteger_cmd.
2013 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2014 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2015 instead of add_setshow_zinteger_cmd.
2016 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2017 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2018 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2019 intead of add_setshow_zinteger_cmd.
2020 * mips-tdep.c (mips_debug): Add 'unsigned'.
2021 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2022 instead of add_setshow_zinteger_cmd.
2023 * monitor.c (monitor_debug): Add 'unsigned'.
2024 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2025 add_setshow_zinteger_cmd.
2026 * observer.c (observer_debug): Add 'unsigned'.
2027 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2028 add_setshow_zinteger_cmd.
2029 * parse.c (expressiondebug): Add 'unsigned'.
2030 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2031 add_setshow_zinteger_cmd.
2032 * record.c (record_debug): Add 'unsigned'.
2033 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2034 add_setshow_zinteger_cmd.
2035 * record.h: Update the declaration of 'record_debug'.
2036 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2037 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2038 add_setshow_zinteger_cmd.
2039 * serial.c (global_serial_debug_p): Add 'unsigned'.
2040 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2041 add_setshow_zinteger_cmd.
2042 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2043 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2044 add_setshow_zinteger_cmd.
2045 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2046 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2047 add_setshow_zinteger_cmd.
2048 * target.c (targetdebug): Add 'unsigned'.
2049 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2050 add_setshow_zinteger_cmd.
2051 * valops.c (overload_debug): Add 'unsigned'.
2052 * varobj.c (varobjdebug): Add 'unsigned'.
2053 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2054 add_setshow_zinteger_cmd.
2055 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2056 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2057 instead of add_setshow_zinteger_cmd.
2059 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2060 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2061 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2062 instead of add_setshow_zinteger_cmd.
2063 * gdbarch.c, gdbarch.h: Re-generated.
2065 2012-08-02 Yao Qi <yao@codesourcery.com>
2067 * nto-tdep.c: Don't include cli/cli-decode.h and
2069 (_initialize_nto_tdep): Remove.
2070 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2072 Remove macro nto_internal_debugging.
2074 2012-08-01 Richard Henderson <rth@redhat.com>
2076 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2077 (mep-*-*) [gdb_target_obs]: Likewise.
2079 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2081 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2082 linux_get_siginfo_type.
2084 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2088 (call_function_by_hand) <ON_STACK>: Call write_memory with
2089 gdbarch_breakpoint_from_pc, if possible.
2090 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2093 2012-07-31 Yao Qi <yao@codesourcery.com>
2095 * tracepoint.c: Add 'static' for some variables.
2097 2012-07-31 Yao Qi <yao@codesourcery.com>
2099 * go32-nat.c: Declare _initialize_go32_nat.
2100 * ser-go32.c: Declare _initialize_ser_dos.
2101 * top.c (do_chdir_cleanup): Add 'static'.
2103 2012-07-30 Keith Seitz <keiths@redhat.com>
2105 * linespec.c (linespec_lex_number): A number followed
2106 by quotes is a valid number, too.
2108 2012-07-30 Tom Tromey <tromey@redhat.com>
2110 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2112 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2114 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2115 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2117 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2119 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2120 invalid or reevaluated to prevent prevent references to possibly
2121 delete'd type objects being left in the varobj.
2123 2012-07-27 Tom Tromey <tromey@redhat.com>
2124 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 * copying.awk: Print buffer-read-only and vi ro markers.
2127 * copying.c: Rebuild.
2128 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2129 * gdbarch.c, gdbarch.h: Rebuild.
2130 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2131 buffer-read-only and vi ro markers.
2132 * features/arm-with-iwmmxt.c: Rebuild.
2133 * features/arm-with-m-fpa-layout.c: Rebuild.
2134 * features/arm-with-m-vfp-d16.c: Rebuild.
2135 * features/arm-with-m.c: Rebuild.
2136 * features/arm-with-neon.c: Rebuild.
2137 * features/arm-with-vfpv2.c: Rebuild.
2138 * features/arm-with-vfpv3.c: Rebuild.
2139 * features/i386/amd64-avx-linux.c: Rebuild.
2140 * features/i386/amd64-avx.c: Rebuild.
2141 * features/i386/amd64-linux.c: Rebuild.
2142 * features/i386/amd64.c: Rebuild.
2143 * features/i386/i386-avx-linux.c: Rebuild.
2144 * features/i386/i386-avx.c: Rebuild.
2145 * features/i386/i386-linux.c: Rebuild.
2146 * features/i386/i386-mmx-linux.c: Rebuild.
2147 * features/i386/i386-mmx.c: Rebuild.
2148 * features/i386/i386.c: Rebuild.
2149 * features/i386/x32-avx-linux.c: Rebuild.
2150 * features/i386/x32-avx.c: Rebuild.
2151 * features/i386/x32-linux.c: Rebuild.
2152 * features/i386/x32.c: Rebuild.
2153 * features/mips-dsp-linux.c: Rebuild.
2154 * features/mips-linux.c: Rebuild.
2155 * features/mips64-dsp-linux.c: Rebuild.
2156 * features/mips64-linux.c: Rebuild.
2157 * features/rs6000/powerpc-32.c: Rebuild.
2158 * features/rs6000/powerpc-32l.c: Rebuild.
2159 * features/rs6000/powerpc-403.c: Rebuild.
2160 * features/rs6000/powerpc-403gc.c: Rebuild.
2161 * features/rs6000/powerpc-405.c: Rebuild.
2162 * features/rs6000/powerpc-505.c: Rebuild.
2163 * features/rs6000/powerpc-601.c: Rebuild.
2164 * features/rs6000/powerpc-602.c: Rebuild.
2165 * features/rs6000/powerpc-603.c: Rebuild.
2166 * features/rs6000/powerpc-604.c: Rebuild.
2167 * features/rs6000/powerpc-64.c: Rebuild.
2168 * features/rs6000/powerpc-64l.c: Rebuild.
2169 * features/rs6000/powerpc-7400.c: Rebuild.
2170 * features/rs6000/powerpc-750.c: Rebuild.
2171 * features/rs6000/powerpc-860.c: Rebuild.
2172 * features/rs6000/powerpc-altivec32.c: Rebuild.
2173 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2174 * features/rs6000/powerpc-altivec64.c: Rebuild.
2175 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2176 * features/rs6000/powerpc-cell32l.c: Rebuild.
2177 * features/rs6000/powerpc-cell64l.c: Rebuild.
2178 * features/rs6000/powerpc-e500.c: Rebuild.
2179 * features/rs6000/powerpc-e500l.c: Rebuild.
2180 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2181 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2182 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2183 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2184 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2185 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2186 * features/rs6000/powerpc-vsx32.c: Rebuild.
2187 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2188 * features/rs6000/powerpc-vsx64.c: Rebuild.
2189 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2190 * features/rs6000/rs6000.c: Rebuild.
2191 * features/s390-linux32.c: Rebuild.
2192 * features/s390-linux32v1.c: Rebuild.
2193 * features/s390-linux32v2.c: Rebuild.
2194 * features/s390-linux64.c: Rebuild.
2195 * features/s390-linux64v1.c: Rebuild.
2196 * features/s390-linux64v2.c: Rebuild.
2197 * features/s390x-linux64.c: Rebuild.
2198 * features/s390x-linux64v1.c: Rebuild.
2199 * features/s390x-linux64v2.c: Rebuild.
2200 * features/tic6x-c62x-linux.c: Rebuild.
2201 * features/tic6x-c62x.c: Rebuild.
2202 * features/tic6x-c64x-linux.c: Rebuild.
2203 * features/tic6x-c64x.c: Rebuild.
2204 * features/tic6x-c64xp-linux.c: Rebuild.
2205 * features/tic6x-c64xp.c: Rebuild.
2207 2012-07-27 Tom Tromey <tromey@redhat.com>
2209 * c-exp.y (classify_name): Avoid assignment in condition.
2211 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2213 * amd64-windows-tdep.c: Include "frame.h".
2214 (amd64_windows_skip_trampoline_code): New function.
2215 (amd64_windows_init_abi): Add trampoline registration.
2217 2012-07-27 Yao Qi <yao@codesourcery.com>
2219 * tracepoint.c (cur_traceframe_number): Remove.
2220 (set_tfile_traceframe): Remove.
2221 (tfile_trace_find, tfile_fetch_registers): Update callers.
2222 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2223 (tfile_open, tfile_trace_find): Likewise.
2225 2012-07-27 Yao Qi <yao@codesourcery.com>
2227 * thread.c (switch_to_thread): Don't call registers_changed.
2229 2012-07-26 Tom Tromey <tromey@redhat.com>
2231 * Makefile.in (SFILES): Remove objc-exp.y.
2232 (YYFILES): Remove objc-exp.c.
2233 (YYOBJ): Remove objc-exp.o.
2234 (local-maintainer-clean): Don't mention objc-exp.c.
2235 * c-exp.y: Include objc-lang.h.
2236 (%union) <class>: New field.
2237 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2238 (exp): Clone subscript production for OBJC_LBRAC. Add various
2239 Objective C productions.
2240 (msglist, msgarglist, msgarg): New productions.
2241 (array_mod, func_mod, operator): Clone productions for
2243 (parse_string_or_char): Handle '@' strings.
2244 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2245 (classify_name): Check la_name_of_this. Recognize ObjC class
2247 * objc-exp.y: Remove.
2248 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2249 * objc-lang.h (objc_parse, objc_error): Don't declare.
2251 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2253 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2255 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2260 2012-07-26 Tom Tromey <tromey@redhat.com>
2262 * copying.c: Rebuild.
2263 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2266 2012-07-26 Tom Tromey <tromey@redhat.com>
2268 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2270 (print_objfile_statistics): Likewise.
2271 (maintenance_print_symbols): Likewise.
2272 (maintenance_print_msymbols): Likewise.
2273 (maintenance_print_objfiles): Likewise.
2274 * psymtab.c (print_partial_symbols): Call QUIT.
2275 (maintenance_print_psymbols): Likewise. Don't modify
2277 * copying.c (show_copying_command): Don't modify immediate_quit.
2278 (show_warranty_command): Likewise.
2279 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2281 2012-07-26 Keith Seitz <keiths@redhat.com>
2283 * linespec.c (linespec_lexer_lex_number): The input
2284 is also a valid number if the next character is a comma
2287 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2289 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2292 2012-07-26 Tristan Gingold <gingold@adacore.com>
2294 * machoread.c: Include gdb_bfd.h.
2296 2012-07-26 Tristan Gingold <gingold@adacore.com>
2298 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2301 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2303 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2305 (dwarf2_evaluate_loc_desc): Likewise.
2306 (dwarf2_loc_desc_needs_frame): Likewise.
2307 (locexpr_describe_location_1): Likewise.
2308 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2310 (struct dwarf2_loclist_baton): Likewise.
2311 * dwarf2read.c (struct dwarf_block): Likewise.
2312 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2313 (decode_locdesc): Expand SIZE and I to size_t.
2315 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2317 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2319 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2321 * doublest.c (convert_doublest_to_floatformat): If the exponent
2322 is too small, treat the value as zero. If the exponent is too
2323 large, treat the value as infinity.
2325 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2327 * configure.ac: Add --enable-lmcheck configure option.
2328 * configure: Regenerate.
2330 2012-07-25 Tom Tromey <tromey@redhat.com>
2332 * NEWS: Mention maint info bfds.
2333 * gdb_bfd.c (all_bfds): New global.
2334 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2335 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2338 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2340 * configure.tgt: Add v850*-*-rtems*.
2342 2012-07-25 Tom Tromey <tromey@redhat.com>
2344 * macrotab.c (macro_bcache_str): Remove cast.
2346 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2348 * linespec.c (linespec_lexer_lex_number): Update comments,
2349 change the return and add check to make sure the input is
2350 the decimal numbers.
2351 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2352 false, call linespec_lexer_lex_string.
2354 2012-07-24 Tom Tromey <tromey@redhat.com>
2356 * symfile.c (symbol_file_add): Don't open BFD twice.
2358 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2360 * breakpoint.c (create_breakpoint): Store condition for pending
2363 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2365 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2366 (m68k_return_value): Handle complex types like structures.
2367 (m68k_svr4_return_value): Likewise.
2369 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2371 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2372 parameters to bfd_get_section_name.
2374 2012-07-24 Yao Qi <yao@codesourcery.com>
2376 * cli/cli-setshow.c: Handle case 'var_uinteger'
2377 and 'var_zuninteger' together. Handle case 'var_integer' and
2378 'var_zinteger' together.
2380 2012-07-23 Keith Seitz <keiths@redhat.com>
2382 * linespec.c (convert_linespec_to_sal): Don't add
2383 any symbols to the result vector if symbol_to_sal
2386 2012-07-23 Keith Seitz <keiths@redhat.com>
2388 * linespec.c (decode_objc): Record the function name
2391 2012-07-23 Tom Tromey <tromey@redhat.com>
2393 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2395 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2396 (map_vmap): Acquire a reference to the BFD.
2398 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2400 * p-valprint.c (pascal_object_print_value): Replace potentially
2401 unsafe alloca with xmalloc/xfree.
2402 * valops.c (search_struct_method): Likewise.
2404 2012-07-23 Tom Tromey <tromey@redhat.com>
2406 * solib-svr4.c (enable_break): Update.
2407 * bfd-target.h (target_bfd_reopen): Update documentation.
2409 2012-07-23 Tom Tromey <tromey@redhat.com>
2411 * symfile.c (separate_debug_file_exists): Update.
2412 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2413 (reread_symbols): Update.
2414 * elfread.c (build_id_verify): Update.
2415 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2416 bfd_open_maybe_remote.
2418 2012-07-23 Tom Tromey <tromey@redhat.com>
2420 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2422 2012-07-23 Tom Tromey <tromey@redhat.com>
2424 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2426 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2428 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2429 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2431 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2432 * objfiles.c (allocate_objfile): Acquire a new reference.
2433 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2434 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2435 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2436 a cleanup for 'nbfd'.
2437 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2439 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2440 make a cleanup for 'abfd'.
2441 (symbol_file_add): Make a BFD cleanup.
2443 2012-07-23 Tom Tromey <tromey@redhat.com>
2445 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2446 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2447 * corelow.c (core_open): Use gdb_bfd_fopen.
2448 * dsrec.c (load_srec): Use gdb_bfd_openr.
2449 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2450 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2451 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2452 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2453 (gdb_bfd_fdopenr): New functions.
2454 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2455 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2456 (gdb_bfd_fdopenr): Declare.
2457 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2458 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2459 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2460 gdb_bfd_openr_next_archived_file.
2461 (macho_check_dsym): Use gdb_bfd_openr.
2462 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2463 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2464 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2465 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2467 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2468 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2469 gdb_bfd_openr_next_archived_file.
2470 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2472 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2474 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2475 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2476 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2477 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2478 (symfile_bfd_open): Use gdb_bfd_fopen.
2479 (generic_load): Use gdb_bfd_openr.
2480 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2482 2012-07-23 Tom Tromey <tromey@redhat.com>
2484 * bfd-target.c (target_bfd_reopen): Update.
2485 * cli/cli-dump.c (bfd_openr_with_cleanup)
2486 (bfd_openw_with_cleanup): Update.
2487 * corelow.c (core_open): Update.
2488 * dsrec.c (load_srec): Update.
2489 * exec.c (exec_file_attach): Update.
2490 * gcore.c (create_gcore_bfd): Update.
2491 * gdb_bfd.c (gdb_bfd_ref): Return void.
2492 (gdb_bfd_open): Update.
2493 * gdb_bfd.h (gdb_bfd_ref): Return void.
2495 * jit.c (jit_bfd_try_read_symtab): Update.
2496 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2497 * machoread.c (macho_symfile_read_all_oso): Update.
2498 (macho_check_dsym): Update.
2499 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2500 * remote-m32r-sdi.c (m32r_load): Update.
2501 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2502 * rs6000-nat.c (add_vmap): Update.
2503 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2505 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2506 * solib-spu.c (spu_bfd_open): Update.
2507 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2508 * spu-linux-nat.c (spu_bfd_open): Update.
2509 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2510 (generic_load): Update.
2511 * windows-nat.c (windows_make_so): Update.
2513 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2515 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2517 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2519 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2520 SIGTRAMP_FRAME unwinding.
2522 2012-07-20 Doug Evans <dje@google.com>
2524 * NEWS: Document new options "set/show use-deprecated-index-sections",
2525 and delete reference to --use-deprecated-index-sections.
2526 * symfile.h (use_deprecated_index_sections): Delete.
2527 * dwarf2read.c (use_deprecated_index_sections): Make static.
2528 (read_index_from_section): Update wording of how to load
2529 deprecated index sections.
2530 (_initialize_dwarf2_read): New options
2531 "set/show use-deprecated-index-sections".
2532 * main.c (captured_main): Delete --use-deprecated-index-sections.
2534 2012-07-20 Pedro Alves <palves@redhat.com>
2539 * infrun.c (handle_inferior_event) <new thread>: Don't special
2540 case minus_one_ptid.
2541 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2542 * linux-thread-db.c (thread_get_info_callback): Don't return early
2543 if the thread is zombie.
2544 (thread_from_lwp): Change return type to void. Rewrite stale
2546 (attach_thread): Don't return early if the thread is zombie,
2547 instead set its "dying" flag.
2548 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2549 (find_new_threads_callback): Don't return early if the thread is
2552 2012-07-20 Pedro Alves <palves@redhat.com>
2554 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2555 * target.c (target_wait): Likewise.
2556 (str_comma_list_concat_elem, do_option, target_options_to_string):
2558 * target.h (target_options_to_string): Declare.
2560 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2561 Tom Tromey <tromey@redhat.com>
2563 * dwarf2read.c (dwarf_decode_macros)
2564 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2565 DW_MACRO_GNU_transparent_include_alt>: New cases.
2566 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2567 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2569 2012-07-20 Tom Tromey <tromey@redhat.com>
2571 * dwarf2read.c (try_open_dwo_file): Don't call
2572 gdb_bfd_stash_filename.
2574 2012-07-20 Pedro Alves <palves@redhat.com>
2576 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2577 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2578 (i386_process_record): Tweak description comments.
2580 2012-07-20 Pedro Alves <palves@redhat.com>
2582 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2583 (i386_process_record): Use record_read_memory.
2584 * record.c (record_read_memory): New function.
2585 (record_arch_list_add_mem, record_exec_insn): Use
2587 * record.h (record_read_memory): Declare.
2589 2012-07-20 Yao Qi <yao@codesourcery.com>
2591 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2594 2012-07-19 Pedro Alves <palves@redhat.com>
2596 * record.c (record_resume): Ask the target beneath to report all
2599 2012-07-19 Doug Evans <dje@google.com>
2601 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2602 there's no section at address zero.
2603 (dwarf2_record_block_ranges): Ditto.
2605 2012-07-19 Yao Qi <yao@codesourcery.com>
2607 * command.h, remote.c: Fix a typo in comment.
2609 2012-07-19 Tom Tromey <tromey@redhat.com>
2612 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2613 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2614 OP_DECLTYPE>: New cases.
2615 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2616 (type_exp): Add new productions.
2617 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2619 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2621 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2622 OP_DECLTYPE>: New case.
2623 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2625 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2626 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2628 2012-07-19 Tom Tromey <tromey@redhat.com>
2630 * c-exp.y (enum token_flags): New.
2631 (struct token) <cxx_only>: Remove.
2633 (tokentab3, tokentab2, ident_tokens): Update.
2634 (lex_one_token): Update. Handle FLAG_SHADOW.
2636 2012-07-19 Tom Tromey <tromey@redhat.com>
2638 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2639 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2640 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2641 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2642 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2643 type_exp production where appropriate.
2644 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2645 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2646 <UNOP_MEMVAL_TYPE>: New case.
2647 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2648 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2649 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2650 <UNOP_MEMVAL_TYPE>: New case.
2651 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2652 UNOP_REINTERPRET_CAST>: Update.
2653 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2654 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2655 UNOP_REINTERPRET_CAST>: Update.
2656 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2657 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2658 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2661 2012-07-19 Yao Qi <yao@codesourcery.com>
2662 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2665 and case 'var_optional_filename' together.
2666 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2667 instead of add_setshow_optional_filename_cmd for setshow command
2668 'args'. Set completer for 'set args'.
2670 2012-07-18 Doug Evans <dje@google.com>
2672 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2673 * common/gdb_vecs.c: New file, contents from utils.c.
2674 * common/host-defs.h: New file, contents from defs.h.
2675 * utils.h: New file, contents from defs.h.
2676 * defs.h: Move all declarations of objects defined in utils.c
2677 to utils.h (except QUIT() and related).
2678 #include "utils.h", "host-defs.h".
2679 * probe.h (probe_p): Move here from gdb_vecs.h.
2680 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2681 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2682 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2683 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2684 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2685 (COMMON_OBS): Add gdb_vecs.o.
2686 (gdb_vecs.o): New rule.
2688 2012-07-18 Keith Seitz <keiths@redhat.com>
2690 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2691 parameter. If non-zero, use SYMNAME as the canonical name
2694 (convert_linespec_to_sals): Use add_sal_to_sals for
2696 (decode_line_full): No need to "fill in missing canonical names"
2697 anymore. Simply make cleanups for the allocated names.
2699 2012-07-18 Keith Seitz <keiths@redhat.com>
2701 * linespec.c (struct linespec): Constify expression,
2702 source_filename, function_name, and label_name.
2703 (symbol_not_found_error): Make all parameters const.
2704 (linespec_parser_delete): No need to check for NULL
2705 when using xfree. Cast const char * to char * for xfree.
2707 2012-07-18 Keith Seitz <keiths@redhat.com>
2709 * breakpoint.c (invalid_thread_id_error): New function.
2710 (find_condition_and_thread): Use invalid_thread_id_error.
2711 (watch_command_1): Likewise.
2713 2012-07-18 Tom Tromey <tromey@redhat.com>
2715 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2716 * contrib/cc-with-tweaks.sh: New file.
2718 2012-07-18 Tom Tromey <tromey@redhat.com>
2720 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2721 (locate_dwz_sections): Recognize .gdb_index.
2722 (create_cus_from_index_list): New function.
2723 (create_cus_from_index): Use it. Handle .dwz data.
2724 (read_index_from_section): New function, extracted from
2726 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2729 2012-07-18 Tom Tromey <tromey@redhat.com>
2731 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2732 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2733 <is_dwz>: New field.
2734 (struct dwz_file): New.
2735 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2736 (locate_dwz_sections, dwarf2_get_dwz_file)
2737 (get_abbrev_section_for_cu): New functions.
2738 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2739 (read_and_check_type_unit_head): Add abbrev_section argument.
2740 (create_debug_types_hash_table): Update.
2741 (init_cutu_and_read_dies): Use proper abbrev section.
2742 (init_cutu_and_read_dies_no_follow): Likewise.
2743 (set_partial_user): Do nothing if PST==NULL.
2744 (read_comp_units_from_section): New function.
2745 (create_all_comp_units): Use it.
2746 (scan_partial_symbols, partial_die_parent_scope): Update.
2747 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2748 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2749 (find_partial_die): Add offset_in_dwz argument. Update.
2750 (guess_partial_die_structure_name, fixup_partial_die): Update.
2751 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2752 DW_FORM_GNU_strp_alt.
2753 (read_indirect_string_from_dwz): New function.
2754 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2755 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2756 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2757 (follow_die_offset): Add offset_in_dwz argument.
2758 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2759 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2760 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2761 Handle new macro forms.
2762 (dwarf_decode_macros): Update.
2763 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2764 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2765 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2766 (create_debug_types_hash_table): Use correct abbrev section.
2767 (get_debug_line_section): New function.
2768 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2769 (process_full_comp_unit): Pass 'required' argument to
2770 end_symtab_get_static_block.
2771 * buildsym.h (end_symtab_get_static_block): Update.
2772 * buildsym.c (end_symtab_get_static_block): Add 'required'
2774 (end_symtab, end_expandable_symtab): Update.
2776 2012-07-18 Tom Tromey <tromey@redhat.com>
2778 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2780 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2781 (zlib_decompress_section): Remove.
2782 (dwarf2_read_section): Use gdb_bfd_map_section.
2783 (munmap_section_buffer): Remove.
2784 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2785 munmap_section_buffer.
2786 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2787 (struct gdb_bfd_section_data): New.
2788 (free_one_bfd_section): New function.
2789 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2790 (get_section_descriptor, zlib_decompress_section)
2791 (gdb_bfd_map_section): New functions.
2792 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2794 2012-07-18 Tom Tromey <tromey@redhat.com>
2796 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2798 2012-07-18 Tom Tromey <tromey@redhat.com>
2800 * gdb_bfd.c (struct gdb_bfd_data): New.
2801 (gdb_bfd_cache): New global.
2802 (struct gdb_bfd_cache_search): New.
2803 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2804 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2805 * gdb_bfd.h (gdb_bfd_open): Declare.
2807 2012-07-18 Tom Tromey <tromey@redhat.com>
2809 * utils.c (make_cleanup_bfd_unref): Rename from
2810 make_cleanup_bfd_close.
2811 * defs.h (make_cleanup_bfd_unref): Rename from
2812 make_cleanup_bfd_close.
2813 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2814 (bfd_openw_with_cleanup): Update.
2815 * corelow.c (core_open): Update.
2816 * dsrec.c (load_srec): Update.
2817 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2818 * remote-m32r-sdi.c (m32r_load): Update.
2819 * remote-mips.c (mips_load_srec): Update.
2820 (pmon_load_fast): Update.
2821 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2823 (darwin_bfd_open): Update.
2824 * solib.c (solib_bfd_fopen): Update.
2825 * symfile-mem.c (symbol_file_add_from_memory): Update.
2826 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2827 (symfile_bfd_open): Update.
2828 (generic_load): Update.
2830 2012-07-18 Tom Tromey <tromey@redhat.com>
2832 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2833 (pmon_load_fast): Likewise.
2834 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2835 (m32r_upload_command): Likewise.
2836 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2837 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2838 Use make_cleanup_bfd_close.
2840 2012-07-18 Tom Tromey <tromey@redhat.com>
2842 * symfile.c (symfile_bfd_open): Don't copy name. Call
2843 gdb_bfd_stash_filename.
2844 (load_command): Open the new BFD before freeing the old.
2845 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2846 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2847 Call gdb_bfd_stash_filename.
2848 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2849 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2850 gdb_bfd_stash_filename.
2851 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2852 Free found_pathname.
2853 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2854 gdb_bfd_stash_filename.
2855 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2856 * machoread.c (macho_add_oso_symfile): Call
2857 gdb_bfd_stash_filename.
2858 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2859 gdb_bfd_stash_filename.
2860 (macho_check_dsym): Don't copy filename. Call
2861 gdb_bfd_stash_filename.
2862 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2863 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2864 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2865 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2866 * exec.c (exec_close): Don't free the BFD's filename.
2867 (exec_file_attach): Don't copy the filename. Call
2868 gdb_bfd_stash_filename.
2869 * corelow.c (core_close): Don't free the BFD's filename.
2870 (core_open): Call gdb_bfd_stash_filename.
2871 * corefile.c (reopen_exec_file): Remove #if 0 code.
2872 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2874 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2876 2012-07-18 Tom Tromey <tromey@redhat.com>
2878 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2880 (free_dwo_file): Use gdb_bfd_unref.
2881 * cli/cli-dump.c: Include gdb_bfd.h.
2882 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2883 (bfd_openr_with_cleanup): Likewise.
2884 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2886 * utils.c: Include gdb_bfd.h.
2887 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2888 * symfile.c: Include gdb_bfd.h.
2889 (separate_debug_file_exists): Use gdb_bfd_unref.
2890 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2891 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2892 (generic_load): Use gdb_bfd_ref.
2893 (reread_symbols): Use gdb_bfd_unref.
2894 * symfile-mem.c: Include gdb_bfd.h.
2895 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2896 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2897 * solib.c: Include gdb_bfd.h.
2898 (solib_bfd_fopen): Use gdb_bfd_ref.
2899 (solib_bfd_open): Use gdb_bfd_unref.
2900 (free_so_symbols): Use gdb_bfd_unref.
2901 (reload_shared_libraries_1): Use gdb_bfd_unref.
2902 * solib-spu.c: Include gdb_bfd.h.
2903 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2904 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2906 * solib-frv.c: Include gdb_bfd.h.
2907 (enable_break2): Use gdb_bfd_unref.
2908 * solib-dsbt.c: Include gdb_bfd.h.
2909 (enable_break2): Use gdb_bfd_unref.
2910 * solib-darwin.c: Include gdb_bfd.h.
2911 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2913 (darwin_bfd_open): Use gdb_bfd_unref.
2914 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2915 * remote-mips.c: Include gdb_bfd.h.
2916 (mips_load_srec): Use gdb_bfd_ref.
2917 (pmon_load_fast): Use gdb_bfd_ref.
2918 * remote-m32r-sdi.c: Include gdb_bfd.h.
2919 (m32r_load): Use gdb_bfd_ref.
2920 * record.c: Include gdb_bfd.h.
2921 (record_save_cleanups): Use gdb_bfd_unref.
2922 (cmd_record_save): Use gdb_bfd_unref.
2923 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2925 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2926 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2927 * objfiles.c: Include gdb_bfd.h.
2928 (free_objfile): Use gdb_bfd_unref.
2929 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2931 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2932 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2933 (macho_check_dsym): Likewise.
2934 * m32r-rom.c: Include gdb_bfd.h.
2935 (m32r_load): Use gdb_bfd_ref.
2936 (m32r_upload_command): Use gdb_bfd_ref.
2937 * jit.c: Include gdb_bfd.h.
2938 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2939 * gdb_bfd.h: New file.
2940 * gdb_bfd.c: New file.
2941 * gcore.c: Include gdb_bfd.h.
2942 (create_gcore_bfd): Use gdb_bfd_ref.
2943 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2944 (gcore_command): Use gdb_bfd_unref.
2945 * exec.c: Include gdb_bfd.h.
2946 (exec_close): Use gdb_bfd_unref.
2947 (exec_close_1): Use gdb_bfd_unref.
2948 (exec_file_attach): Use gdb_bfd_ref.
2949 * elfread.c: Include gdb_bfd.h.
2950 (build_id_verify): Use gdb_bfd_unref.
2951 * dsrec.c: Include gdb_bfd.h.
2952 (load_srec): Use gdb_bfd_ref.
2953 * corelow.c: Include gdb_bfd.h.
2954 (core_close): Use gdb_bfd_unref.
2955 (core_open): Use gdb_bfd_ref.
2956 * bfd-target.c: Include gdb_bfd.h.
2957 (target_bfd_xclose): Use gdb_bfd_unref.
2958 (target_bfd_reopen): Use gdb_bfd_ref.
2959 * Makefile.in (SFILES): Add gdb_bfd.c.
2960 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2961 (COMMON_OBS): Add gdb_bfd.o.
2963 2012-07-18 Keith Seitz <keiths@redhat.com>
2965 * breakpoint.c (find_condition_and_thread): Initialize
2967 (create_breakpiont): find_condition_and_thread will now
2968 initialize COND_STRING, THREAD, and REST (and TASK).
2969 (addr_string_to_sals): Likewise.
2971 2012-07-18 Pedro Alves <palves@redhat.com>
2973 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2974 Pull the single step breakpoints out of the target.
2976 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2978 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2979 * stap-probe.c (compile_probe_arg): Likewise.
2981 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2983 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2984 (elf_compile_to_ax): Likewise.
2985 * infrun.c (insert_exception_resume_from_probe): Likewise.
2986 (check_exception_resume): Remove `objfile' variable.
2987 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2988 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2989 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2990 (compare_entries): Rename to...
2991 (compare_probes): ...this. Adjust function to work with
2992 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2994 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2996 (print_ui_out_info): Adjust argument to be `struct probe *'.
2997 (info_probes_for_ops): Adjust internal computations to use
2999 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3000 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3001 gen_info_probes_table_values>: Remove `objfile' argument.
3002 (struct probe) <objfile>: New field.
3003 (find_probe_by_pc): Remove `objfile' argument.
3004 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3005 (stap_get_probe_argument_count): Likewise.
3006 (stap_get_arg): Likewise.
3007 (stap_evaluate_probe_argument): Likewise.
3008 (stap_compile_to_ax): Likewise.
3009 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3010 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3011 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3012 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3013 sym_compile_to_ax>: Likewise.
3015 2012-07-18 Terry Guo <terry.guo@arm.com>
3018 * defs.h (GDB_MI_MSG_WIDTH): New.
3019 * ser_base (ser_base_read_error_fd): New function.
3020 (do_ser_base_readchar): Poll error file descriptor as well as
3022 (generic_readchar): Refactor error handling.
3024 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3026 * NEWS: Create a new section for the next release branch.
3027 Rename the section of the current branch, now that it has
3030 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3032 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3033 * version.in: Bump version to 7.5.50.20120718-cvs.
3035 2012-07-17 Keith Seitz <keiths@redhat.com>
3037 * linespec.c (linespec_parse_line_offset): Make parameter
3040 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3043 * f-valprint.c (info_common_command): New variable frame_id.
3044 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3045 * printcmd.c (print_variable_and_value): Extend function comment.
3046 Add comment for invalidated FRAME.
3047 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3048 FI form FRAME_ID after each print_frame_local_vars.
3049 (struct print_variable_and_value_data): Change frame to frame_id.
3050 (do_print_variable_and_value): New variable frame, initialize it from
3051 p->frame_id. Add comment for invalidated FRAME.
3052 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3053 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3054 for invalidated FRAME.
3056 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3057 Pedro Alves <palves@redhat.com>
3059 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3062 2012-07-16 Tom Tromey <tromey@redhat.com>
3064 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3066 2012-07-15 Doug Evans <dje@google.com>
3068 * dwarf2read.c (stmt_list_hash): New struct.
3069 (type_unit_group): Embed "per_cu" member, remove pointer.
3070 New union member "t", move member "tus" into it, all uses updated.
3071 New member "hash", replaces member "line_offset, all uses updated.
3072 (quick_file_names): Replace member "offset" with "hash", all uses
3074 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3075 (hash_file_name_entry, eq_file_name_entry): Call them.
3076 (hash_type_unit_group, eq_type_unit_group): Ditto.
3077 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3078 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3079 (dw2_get_file_names): Update.
3080 (create_type_unit_group): Replace "per_cu" arg with "cu".
3081 All callers updated. Fix "quick" (.gdb_index) handling.
3082 (get_type_unit_group): Replace "per_cu" arg with "cu".
3083 All callers updated.
3084 (build_type_unit_groups): Don't reset tu_stats.
3086 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3087 "tab_cur_size". Change member "tab" to be a htab_t.
3088 (create_filename_seen_cache): Update.
3089 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3090 (filename_seen): Update.
3092 2012-07-13 Doug Evans <dje@google.com>
3094 * symtab.c (filename_seen): Update comment.
3096 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3097 Doug Evans <dje@google.com>
3099 * buildsym.c (end_symtab_1): Split it to ...
3100 (end_symtab_get_static_block): ... this ...
3101 (end_symtab_from_static_block): ... and this function.
3102 (end_symtab, end_expandable_symtab): Call them.
3103 * buildsym.h (end_symtab_get_static_block)
3104 (end_symtab_from_static_block): New declarations.
3105 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3106 Set its valid CU ranges.
3108 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3110 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3111 DW_OP_GNU_parameter_ref.
3113 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3115 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3116 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3118 2012-07-13 Doug Evans <dje@google.com>
3120 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3121 (filename_seen_cache): New struct.
3122 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3123 (create_filename_seen_cache): New function.
3124 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3125 (filename_seen): Delete arg "first". New arg "cache". All callers
3127 (output_source_filename_data): New struct.
3128 (output_source_filename): Delete arg "first". New arg "data".
3129 All callers updated.
3130 (sources_info): Delete local "first". New locals "data", "cleanups".
3131 Rewrite to use filename_seen_cache.
3132 (add_partial_filename_data): Delete member "first". New member
3133 "filename_seen_cache". All uses updated.
3134 (make_source_files_completion_list): Rewrite to use
3135 filename_seen_cache.
3137 2012-07-12 Doug Evans <dje@google.com>
3139 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3141 2012-07-10 Doug Evans <dje@google.com>
3144 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3145 all_type_unit_groups, type_unit_groups, tu_stats.
3146 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3147 All uses updated. Add type_unit_group to union "s".
3148 (type_unit_group): New struct.
3149 (IS_TYPE_UNIT_GROUP): New macro.
3150 (abbrev_table): Delete unused member "section".
3151 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3152 (dw2_get_cu): Assert not used with type_unit_group.
3153 (dw2_get_primary_cu): New function.
3154 (dw2_build_type_unit_groups_reader): New function.
3155 (dw2_build_type_unit_groups): New function.
3156 (dw2_get_file_names): Assert not called on type units.
3157 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3158 Redo loop to iterate over type unit groups instead of type units.
3159 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3160 (read_abbrev_offset): New function.
3161 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3163 (create_partial_symtab): New function.
3164 (process_psymtab_comp_unit_reader): Assert not used with type units.
3165 Call create_partial_symtab.
3166 (process_psymtab_type_unit): Delete.
3167 (hash_type_unit_group, eq_type_unit_group): New functions.
3168 (allocate_type_unit_groups_table): New function.
3169 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3170 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3171 (create_type_unit_group, get_type_unit_group): New functions.
3172 (tu_abbrev_offset): New struct.
3173 (sort_tu_by_abbrev_offset): New function.
3174 (add_type_unit_group_to_table): New function.
3175 (build_type_unit_groups): New function.
3176 (build_type_psymtabs_reader): New function.
3177 (build_type_psymtab_dependencies): New function.
3178 (build_type_psymtabs): Rewrite.
3179 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3180 is seen in a type unit.
3181 (process_queue): Move symtab expansion debugging printfs here.
3182 Call process_full_type_unit for type units.
3183 (compute_symtab_includes): Assert not called for type units.
3184 (process_cu_includes): Don't call compute_symtab_includes for
3186 (process_full_type_unit): New function.
3187 (process_imported_unit_die): Flag an error if called for type units.
3188 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3189 updated. Assert not called for type units.
3190 (read_file_scope): Call dwarf2_start_symtab.
3191 (setup_type_unit_groups): New function.
3192 (read_type_unit_scope): Rewrite.
3193 (abbrev_table_read_table): Initialize abbrev_table->offset.
3194 (abbrev_table_free_cleanup): New function.
3195 (dwarf2_start_symtab): New function.
3196 (load_full_type_unit): Assert not called for type unit groups.
3197 * buildsym.c (finish_block_internal): New arg "expandable".
3198 All callers updated.
3199 (start_symtab): Move most contents to ...
3200 (restart_symtab): ... here. New function.
3201 (reset_symtab_globals): New function.
3202 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3203 Call reset_symtab_globals.
3204 (end_symtab, end_expandable_symtab): New functions.
3205 (set_missing_symtab, augment_type_symtab): New functions.
3206 * buildsym.h (end_expandable_symtab): Declare.
3207 (augment_type_symtab, restart_symtab): Declare.
3208 * psympriv.h (struct partial_symtab): New member "anonymous".
3209 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3211 (read_psymtabs_with_filename): Ditto.
3212 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3213 (expand_symtabs_matching_via_partial): Ditto.
3214 (dump_psymtab): Update.
3215 * dictionary.c (dict_add_pending): New function.
3216 * dictionary.h (dict_add_pending): Declare.
3218 2012-07-09 Doug Evans <dje@google.com>
3220 * buildsym.c (start_subfile): Remove unnecessary check for
3223 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3225 * dwarf2read.c (load_full_type_unit): Simplify.
3227 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3228 to struct signatured_type **. All uses updated.
3230 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3231 All callers updated.
3233 2012-07-09 Tom Tromey <tromey@redhat.com>
3235 * c-exp.y (check_parameter_typelist): New function.
3236 (parameter_typelist): Call it.
3237 * eval.c (make_params): Handle '(void)' case.
3238 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3241 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3243 * common/linux-ptrace.c: Include gdb_assert.h.
3244 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3245 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3247 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3249 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3250 * linux-nat.c (linux_child_post_attach)
3251 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3253 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3255 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3256 nptl <2.7 bug workaround for core files.
3258 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3260 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3262 (save_siginfo): Remove.
3263 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3265 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3266 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3267 * linux-nat.h (struct lwp_info): Remove field siginfo.
3269 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3271 Code cleanup for the next patch.
3272 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3273 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3275 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3276 (ia64_linux_stopped_data_address):
3277 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3279 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3280 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3281 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3284 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3287 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3288 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3290 2012-07-06 Tom Tromey <tromey@redhat.com>
3292 * c-exp.y (DOTDOTDOT): New token.
3293 (func_mod, exp): Use parameter_typelist.
3294 (parameter_typelist): New production.
3295 (tokentab3): Add "..." token.
3296 * eval.c (make_params): Handle varargs.
3297 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3300 2012-07-06 Tom Tromey <tromey@redhat.com>
3303 * c-exp.y (%union) <tvec>: Change type.
3304 (func_mod): Now uses <tvec> type.
3305 (exp): Update for tvec change.
3306 (direct_abs_decl): Push the typelist.
3307 (func_mod): Return a typelist.
3308 (nonempty_typelist): Update for tvec change.
3309 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3310 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3311 * parse.c (pop_type_list): New function.
3312 (push_typelist): New function.
3313 (follow_types): Handle tp_function_with_arguments.
3314 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3315 (enum type_pieces) <tp_function_with_arguments>: New constant.
3316 (union type_stack_elt) <typelist_val>: New field.
3317 (push_typelist): Declare.
3319 2012-07-06 Tom Tromey <tromey@redhat.com>
3321 * c-exp.y (%union) <type_stack>: New field.
3322 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3323 (ptr_operator_ts): New production.
3325 * parse.c (type_stack_reserve): New function.
3326 (check_type_stack_depth): Use it.
3327 (pop_type_stack, append_type_stack, push_type_stack)
3328 (get_type_stack, type_stack_cleanup): New functions.
3329 (follow_types): Handle tp_type_stack.
3330 (_initialize_parse): Simplify initialization.
3331 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3333 (union type_stack_elt) <stack_val>: New field.
3334 (get_type_stack, append_type_stack, push_type_stack)
3335 (type_stack_cleanup): Declare.
3337 2012-07-06 Tom Tromey <tromey@redhat.com>
3339 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3341 (struct type_stack): New.
3342 * parse.c (type_stack, type_stack_size, type_stack_depth):
3344 (type_stack): New global.
3345 (parse_exp_in_context, check_type_stack_depth)
3346 (insert_into_type_stack, insert_type, push_type, push_type_int)
3347 (insert_type_address_space, pop_type, pop_type_int)
3348 (_initialize_parse): Update.
3350 2012-07-06 Tom Tromey <tromey@redhat.com>
3352 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3355 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3357 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3359 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3360 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3363 alloca with xmalloc/xfree.
3365 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3367 * MAINTAINERS (Write After Approval): Add myself to the list.
3369 2012-07-05 Doug Evans <dje@google.com>
3371 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3373 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3375 * ax-gdb.c (cli/cli-utils.h): New include.
3376 (linespec.h): Ditto.
3377 (agent_eval_command_one): New function.
3378 (agent_command_1): Ditto.
3379 (agent_command): Call function agent_command_1.
3380 (agent_eval_command): Ditto.
3381 (_initialize_ax_gdb): Change help for "maint agent"
3382 and "maint agent-eval".
3384 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3386 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3387 * cli/cli-utils.c (check_for_argument): New function.
3388 * cli/cli-utils.h (check_for_argument): Ditto.
3390 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3392 * NEWS: Mention x32 ABI support.
3394 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3396 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3397 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3399 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3400 and pc_regnum_from_eax to -1. Update SP regnum from
3401 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3404 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3407 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3409 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3410 * dwarf2expr.h: Include gdbtypes.h.
3411 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3412 these forward declarations.
3413 (cu_offset, sect_offset): Move these ...
3414 * gdbtypes.h: Remove include dwarf2expr.h.
3415 (cu_offset, sect_offset): ... here.
3417 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3419 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3420 (amd64_linux_sigtramp_code): This.
3421 (amd64_x32_linux_sigtramp_code): New.
3422 (LINUX_SIGTRAMP_LEN): Updated.
3423 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3425 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3427 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3429 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3431 * config.in: Regenerate.
3432 * configure: Regenerate.
3433 * configure.ac: Remove check for gnu/libc-version.h.
3434 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3436 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3437 variables libc_version, libc_major and libc_minor. Replace sscanf by
3438 inferior_has_bug. Extend the comment.
3440 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 * linux-thread-db.c (inferior_has_bug): New function.
3443 (thread_db_find_new_threads_silently): Return boolean as checked by
3444 inferior_has_bug, describe it in the comments.
3445 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3446 earlier. Abort the initialization if it returned non-zero.
3447 (thread_db_new_objfile): Exclude debug files.
3448 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3451 2012-07-02 Doug Evans <dje@google.com>
3453 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3454 related to queue management.
3456 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3457 instead of "debug dwarf2-die" in debugging printfs.
3458 (create_debug_info_hash_table_reader): Ditto.
3459 (create_debug_info_hash_table): Ditto.
3460 (init_dwo_file): Ditto.
3461 (init_cutu_and_read_dies): Add debugging printf.
3462 (init_cutu_and_read_dies_no_follow): Ditto.
3463 (process_psymtab_comp_unit_reader): Ditto.
3465 2012-07-02 Stan Shebs <stan@codesourcery.com>
3467 Add target-side support for dynamic printf.
3468 * NEWS: Mention the additional style.
3469 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3470 (struct bp_location): New field cmd_bytecode.
3471 * breakpoint.c: Include format.h.
3472 (disconnected_dprintf): New global.
3473 (parse_cmd_to_aexpr): New function.
3474 (build_target_command_list): New function.
3475 (insert_bp_location): Call it.
3476 (remove_breakpoints_pid): Skip dprintf breakpoints.
3477 (print_one_breakpoint_location): Ditto.
3478 (dprintf_style_agent): New global.
3479 (dprintf_style_enums): Add dprintf_style_agent.
3480 (update_dprintf_command_list): Add agent case.
3481 (agent_printf_command): New function.
3482 (_initialize_breakpoint): Add new commands.
3483 * common/ax.def (printf): New bytecode.
3484 * ax.h (ax_string): Declare.
3485 * ax-gdb.h (gen_printf): Declare.
3486 * ax-gdb.c: Include cli-utils.h, format.h.
3487 (gen_printf): New function.
3488 (maint_agent_print_command): New function.
3489 (_initialize_ax_gdb): Add maint agent-printf command.
3490 * ax-general.c (ax_string): New function.
3491 (ax_print): Add printf disassembly.
3492 * Makefile.in (SFILES): Add format.c
3493 (COMMON_OBS): Add format.o.
3494 * common/format.h: New file.
3495 * common/format.c: New file.
3496 * printcmd.c: Include format.h.
3497 (ui_printf): Call parse_format_string.
3498 * remote.c (remote_state): New field breakpoint_commands.
3499 (PACKET_BreakpointCommands): New enum.
3500 (remote_breakpoint_commands_feature): New function.
3501 (remote_protocol_features): Add new BreakpointCommands entry.
3502 (remote_can_run_breakpoint_commands): New function.
3503 (remote_add_target_side_commands): New function.
3504 (remote_insert_breakpoint): Call it.
3505 (remote_insert_hw_breakpoint): Ditto.
3506 (_initialize_remote): Add new packet configuration for
3507 target-side breakpoint commands.
3508 * target.h (struct target_ops): New field
3509 to_can_run_breakpoint_commands.
3510 (target_can_run_breakpoint_commands): New macro.
3511 * target.c (update_current_target): Handle
3512 to_can_run_breakpoint_commands.
3514 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3516 Execute -ix and -iex only after system and user gdbinit files.
3517 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3518 processing down after gdbinit files.
3520 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Add fnmatch-gnu module.
3523 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3524 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3525 * gnulib/aclocal.m4: Regenerate.
3526 * gnulib/config.in: Regenerate.
3527 * gnulib/configure: Regenerate.
3528 * gnulib/import/dummy.c: Remove.
3529 * gnulib/import/Makefile.am: Regenerate.
3530 * gnulib/import/Makefile.in: Likewise.
3531 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3532 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3533 * gnulib/import/alloca.c: New file.
3534 * gnulib/import/alloca.in.h: Likewise.
3535 * gnulib/import/config.charset: Likewise.
3536 * gnulib/import/fnmatch.c: Likewise.
3537 * gnulib/import/fnmatch.in.h: Likewise.
3538 * gnulib/import/fnmatch_loop.c: Likewise.
3539 * gnulib/import/localcharset.c: Likewise.
3540 * gnulib/import/localcharset.h: Likewise.
3541 * gnulib/import/m4/alloca.m4: Likewise.
3542 * gnulib/import/m4/codeset.m4: Likewise.
3543 * gnulib/import/m4/configmake.m4: Likewise.
3544 * gnulib/import/m4/fcntl-o.m4: Likewise.
3545 * gnulib/import/m4/fnmatch.m4: Likewise.
3546 * gnulib/import/m4/glibc21.m4: Likewise.
3547 * gnulib/import/m4/localcharset.m4: Likewise.
3548 * gnulib/import/m4/locale-fr.m4: Likewise.
3549 * gnulib/import/m4/locale-ja.m4: Likewise.
3550 * gnulib/import/m4/locale-zh.m4: Likewise.
3551 * gnulib/import/m4/mbrtowc.m4: Likewise.
3552 * gnulib/import/m4/mbsinit.m4: Likewise.
3553 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3554 * gnulib/import/m4/mbstate_t.m4: Likewise.
3555 * gnulib/import/m4/stdbool.m4: Likewise.
3556 * gnulib/import/m4/wchar_h.m4: Likewise.
3557 * gnulib/import/m4/wctype_h.m4: Likewise.
3558 * gnulib/import/m4/wint_t.m4: Likewise.
3559 * gnulib/import/mbrtowc.c: Likewise.
3560 * gnulib/import/mbsinit.c: Likewise.
3561 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3562 * gnulib/import/mbsrtowcs-state.c: Likewise.
3563 * gnulib/import/mbsrtowcs.c: Likewise.
3564 * gnulib/import/ref-add.sin: Likewise.
3565 * gnulib/import/ref-del.sin: Likewise.
3566 * gnulib/import/stdbool.in.h: Likewise.
3567 * gnulib/import/streq.h: Likewise.
3568 * gnulib/import/strnlen1.c: Likewise.
3569 * gnulib/import/strnlen1.h: Likewise.
3570 * gnulib/import/verify.h: Likewise.
3571 * gnulib/import/wchar.in.h: Likewise.
3572 * gnulib/import/wctype.in.h: Likewise.
3574 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 Support shell wildcards for 'set auto-load safe-path'.
3577 * auto-load.c: Include fnmatch.h.
3578 (filename_is_in_dir): Rename to ...
3579 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3580 it. Update function comment. Rename dir_len to pattern_len. New
3581 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3582 messages. Use gdb_filename_fnmatch.
3583 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3585 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3586 * defs.h (gdb_filename_fnmatch): New declaration.
3587 * utils.c: Include fnmatch.h.
3588 (gdb_filename_fnmatch): New function.
3590 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3592 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3593 `-probe' and `-probe-stap' options.
3595 2012-07-01 Yao Qi <yao@codesourcery.com>
3597 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3598 always_inserted_off, and always_inserted_enums.
3599 Change always_inserted_mode's type to 'enum auto_boolean'.
3600 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3602 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3603 of add_setshow_enum_cmd.
3604 * infrun.c: Remove can_use_displaced_stepping_auto,
3605 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3606 can_use_displaced_stepping_enum.
3607 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3608 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3609 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3610 add_setshow_enum_cmd.
3612 2012-06-30 Doug Evans <dje@google.com>
3614 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3615 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3616 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3618 2012-06-29 Doug Evans <dje@google.com>
3620 * linespec.c: #include "stack.h".
3621 (decode_line_with_current_source): Moved here from symtab.c and
3622 renamed from decode_line_spec. All callers updated.
3623 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3624 renamed from decode_line_spec_1. All callers updated.
3625 * linespec.h (decode_line_with_current_source): Move declaration here
3626 from symtab.h and renamed from decode_line_spec.
3627 (decode_line_with_last_displayed): Move declaration here from symtab.h
3628 and renamed from decode_line_spec_1.
3629 * macrocmd.c: #include "linespec.h".
3630 * symtab.c: Remove #include "linespec.h".
3632 2012-06-28 Doug Evans <dje@google.com>
3634 * dwarf2read.c (get_cu_length): New function.
3635 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3636 (create_debug_types_hash_table): Ditto.
3637 (init_cutu_and_read_dies): Ditto.
3638 (init_cutu_and_read_dies_no_follow): Ditto.
3640 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3642 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3643 (struct abbrev_table): Define.
3644 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3646 (init_cutu_and_read_dies): Update.
3647 (abbrev_table_alloc_abbrev): New function. Replaces
3648 dwarf_alloc_abbrev. All callers updated.
3649 (abbrev_table_add_abbrev): New function.
3650 (abbrev_table_lookup_abbrev): New function. Replaces
3651 dwarf2_lookup_abbrev. All callers updated.
3652 (abbrev_table_read_table): New function. Contents moved here from
3653 dwarf2_read_abbrevs.
3654 (dwarf2_read_abbrevs): Call it.
3655 (abbrev_table_free): New function.
3656 (dwarf2_free_abbrev_table): Call it.
3658 2012-06-28 Stan Shebs <stan@codesourcery.com>
3660 * osdata.c (info_osdata_command): Filter out "Title" columns
3662 * common/linux-osdata.c (struct osdata_type): Add title field.
3663 (osdata_table): Add titles to each entry.
3664 (linux_command_xfer_osdata): Add a column for title data.
3666 2012-06-28 Stan Shebs <stan@codesourcery.com>
3668 Make logging work for MI.
3670 * interps.h (interp_set_logging_ftype): New typedef.
3671 (struct interp_procs): New field set_logging_proc.
3672 (current_interp_set_logging): Declare.
3673 * interps.c (current_interp_set_logging): New function.
3674 * cli/cli-logging.c: Include interps.h.
3675 (set_logging_redirect): Call current_interp_set_logging.
3676 (pop_output_files): Ditto.
3677 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3678 * mi/mi-console.h (mi_console_set_raw): Declare.
3679 * mi/mi-console.c (mi_console_set_raw): New function.
3680 * mi/mi-interp.c (saved_raw_stdout): New global.
3681 (mi_set_logging): New function.
3682 (_initialize_mi_interp): Add it to interp procs.
3684 2012-06-28 Doug Evans <dje@google.com>
3686 * symtab.c (lookup_symbol_aux_objfile): Use
3687 ALL_OBJFILE_PRIMARY_SYMTABS.
3689 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3691 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3693 * common/buffer.c: Include inttypes.h and stdint.h.
3694 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3696 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 Pedro Alves <palves@redhat.com>
3699 * gdbthread.h (ALL_THREADS): New macro.
3700 (thread_list): Declare.
3701 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3702 going, but instead fall through to the stepping handling.
3703 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3704 the passed in signal. Adjust debug output.
3705 (resume_callback): Rename to ...
3706 (linux_nat_resume_callback): ... this. Pass the thread's last
3707 stop signal, if in "pass" state.
3708 (linux_nat_resume): Adjust to rename.
3709 (stop_wait_callback): New assertion. Don't respawn signals;
3710 instead let the LWP remain with SIGNALLED set.
3711 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3712 * remote.c (append_pending_thread_resumptions): New.
3713 (remote_vcont_resume): Call it.
3714 * target.h (target_resume): Extend comment.
3716 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3718 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3720 2012-06-27 Doug Evans <dje@google.com>
3722 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3723 Delete have_addr_base, unused. All uses updated.
3724 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3725 (dwarf2_get_pc_bounds): Add ranges_base.
3726 (dwarf2_record_block_ranges): Ditto.
3728 2012-06-27 Tom Tromey <tromey@redhat.com>
3731 * varobj.c (varobj_create): Update.
3732 (varobj_set_value): Update.
3733 * tracepoint.c (validate_actionline): Update.
3734 (encode_actions_1): Update.
3735 * parse.c (parse_exp_1): Add 'pc' argument.
3736 (parse_exp_in_context): Add 'pc' argument. Change how
3737 expression_context_pc is set.
3738 (parse_expression): Update.
3739 (parse_field_expression): Update.
3740 * expression.h (parse_exp_1): Update.
3741 * eval.c (parse_to_comma_and_eval): Update.
3742 * breakpoint.c (set_breakpoint_condition): Update.
3743 (update_watchpoint): Update.
3744 (init_breakpoint_sal): Update
3745 (find_condition_and_thread): Update.
3746 (watch_command_1): Update.
3747 (update_breakpoint_locations): Update.
3748 * ada-lang.c (ada_read_renaming_var_value): Update.
3749 (create_excep_cond_exprs): Update.
3751 2012-06-27 Doug Evans <dje@google.com>
3753 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3756 2012-06-26 Doug Evans <dje@google.com>
3758 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3760 (error_check_comp_unit_head): New arg abbrev_section. All callers
3762 (read_and_check_comp_unit_head): Ditto.
3763 (read_and_check_type_unit_head): Ditto.
3765 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3767 New attribute 'last' for gdb.Symtab_and_line.
3768 * NEWS (Python Scripting): Add entry about the new attribute.
3769 * python/py-symtab.c (salpy_get_last): New function which
3770 implements the get method for the 'last' attribute of
3771 gdb.Symtab_and_line.
3772 (sal_object_getset): Add entry for the 'last' attribute.
3774 2012-06-26 Doug Evans <dje@google.com>
3776 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3777 (dwo_sections): Add macinfo, macro.
3778 (dwarf2_locate_dwo_sections): Watch for macro sections.
3779 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3780 All callers updated. Handle DWO files.
3782 * NEWS: Mention new options "set debug dwarf2-read" and
3783 "set debug symtab-create".
3784 * dwarf2read.c (dwarf2_read_debug): New static global.
3785 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3786 (process_queue): Ditto.
3787 (process_full_comp_unit): Ditto.
3788 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3789 * elfread.c (elf_symfile_read): Add debugging printf.
3790 * minsyms.c (install_minimal_symbols): Ditto.
3791 * psymtab.c (allocate_psymtab): Ditto.
3792 * symfile.c (allocate_symtab): Ditto.
3793 * symtab.c (symtab_create_debug): New global.
3794 (_initialize_symtab): Add new option "set debug symtab-create".
3795 * symtab.h (symtab_create_debug): Declare.
3797 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3798 (lookup_dwo_type_unit): Ditto.
3800 2012-06-26 Roland McGrath <roland@hack.frob.com>
3801 H.J. Lu <hongjiu.lu@intel.com>
3803 * amd64-linux-nat.c: Include <sys/user.h>.
3804 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3805 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3806 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3808 * configure.ac: Check if the fs_base and gs_base members of
3809 `struct user_regs_struct' exist.
3810 * config.in: Regenerated.
3811 * configure: Likewise.
3813 2012-06-25 Michael Eager <eager@eagercon.com>
3816 * python/python.c (gdbpy_write): Check for interrupted output.
3818 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3820 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3821 register as a stack alignment in ARM mode.
3823 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3825 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3826 * gnulib/config.in: Regenerate.
3827 * gnulib/configure: Likewise.
3828 * gnulib/import/m4/extensions.m4: Update it.
3829 * gnulib/import/m4/gnulib-common.m4: Likewise.
3830 * gnulib/import/m4/memmem.m4: Likewise.
3831 * gnulib/import/m4/mmap-anon.m4: Likewise.
3832 * gnulib/import/m4/multiarch.m4: Likewise.
3833 * gnulib/import/stdint.in.h: Likewise.
3835 2012-06-24 Yao Qi <yao@codesourcery.com>
3837 * corefile.c (write_memory_with_notification): New.
3838 * gdbcore.h: Declare write_memory_with_notification.
3839 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3840 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3841 * valops.c (value_assign): Likewise.
3842 * python/py-inferior.c (infpy_write_memory): Call
3843 'write_memory_with_notification'.
3845 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3847 * cc-with-index.sh: Use also -ex "set auto-load no".
3849 2012-06-23 Doug Evans <dje@google.com>
3852 * NEWS: Document additions to .gdb_index.
3853 * dwarf2read.c: #include "gdb/gdb-index.h".
3854 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3855 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3856 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3857 (dwarf2_read_index): Recognize version 7.
3858 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3859 block_kind, domain): All callers updated.
3860 (dw2_find_symbol_file): Handle new index CU values.
3861 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3862 (add_index_entry): New args is_static, kind. All callers updated.
3863 (offset_type_compare, uniquify_cu_indices): New functions
3864 (symbol_kind): New function.
3865 (write_psymtabs_to_index): Remove duplicate CU values.
3866 (write_psymtabs_to_index): Write .gdb_index version 7.
3868 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3870 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3871 * configure: Regenerate.
3873 2012-06-20 Yao Qi <yao@codesourcery.com>
3875 * python/py-inferior.c: Update comments of infpy_read_memory
3876 and infpy_write_memory.
3878 2012-06-19 Tom Tromey <tromey@redhat.com>
3881 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3882 (push_type_address_space): Remove.
3883 * parse.c (insert_into_type_stack): New function.
3884 (insert_type): Likewise.
3885 (insert_type_address_space): Rename from push_type_address_space.
3886 Insert tp_space_identifier.
3887 * c-exp.y (ptr_operator): New production.
3888 (abs_decl): Use ptr_operator.
3889 (space_identifier): Call insert_type_address_space.
3890 (ptype): Don't use const_or_volatile_or_space_identifier.
3891 (const_or_volatile_noopt): Call insert_type.
3892 (conversion_type_id, conversion_declarator): New productions.
3893 (operator): Use conversion_type_id.
3895 2012-06-18 Doug Evans <dje@google.com>
3897 * symtab.h (minimal_symbol): New member created_by_gdb.
3898 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3900 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3901 (search_symbols): Call it instead of lookup_symbol.
3902 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3904 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3905 Adjust address for DW_OP_GNU_addr_index.
3906 * dwarf2expr.h (dwarf_expr_context): Update comment.
3907 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3908 all callers updated. Handle TLS vars described with
3909 DW_OP_GNU_const_index.
3910 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3911 and DW_OP_GNU_const_index.
3912 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3914 * block.c (find_block_in_blockvector): Make explicit the fact that we
3915 ignore GLOBAL_BLOCK.
3917 2012-06-18 Tom Tromey <tromey@redhat.com>
3919 * c-exp.y (operator): Remove trailing space after "delete" and
3922 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3923 Jan Kratochvil <jan.kratochvil@redhat.com>
3925 Switch i386 and derived targets to ON_STACK.
3926 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3927 (amd64_dicos_init_abi): Remove its installment.
3928 * dicos-tdep.c (dicos_init_abi): Remove the
3929 set_gdbarch_call_dummy_location call. Update the comment here.
3930 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3931 (i386_dicos_init_abi): Remove its installment.
3932 * i386-tdep.c (i386_push_dummy_code): New function.
3933 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3934 i386_push_dummy_code.
3936 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3938 Remove stale dummy frames.
3939 * breakpoint.c: Include dummy-frame.h.
3940 (longjmp_breakpoint_ops): New variable.
3941 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3942 bp_longjmp_call_dummy.
3943 (bpstat_what, bptype_string, print_one_breakpoint_location)
3944 (init_bp_location): Support bp_longjmp_call_dummy.
3945 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3946 (set_longjmp_breakpoint_for_call_dummy)
3947 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3949 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3950 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3951 FIXME comment and extend the other comment for bp_call_dummy.
3952 (set_longjmp_breakpoint_for_call_dummy)
3953 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3954 * dummy-frame.c: Include gdbthread.h.
3955 (pop_dummy_frame_bpt): New function.
3956 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3957 (dummy_frame_discard): New function.
3958 (cleanup_dummy_frames): Update the comment about longjmps.
3959 * dummy-frame.h (dummy_frame_discard): New declaration.
3960 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3961 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3962 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3963 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3964 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3965 keep_going if IS_LONGJMP and there is no other reason to stop.
3967 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3969 * remote-sim.c (sim_command_completer): Initialize
3972 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3974 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3975 * dwarf2loc.c (call_site_parameter_matches): Support
3976 CALL_SITE_PARAMETER_PARAM_OFFSET.
3977 (needs_dwarf_reg_entry_value): Push stub value.
3978 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3979 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3980 * gdbtypes.h (enum call_site_parameter_kind): New item
3981 CALL_SITE_PARAMETER_PARAM_OFFSET.
3982 (struct call_site.parameter.u): New field param_offset.
3984 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3986 Code cleanup: Generalize call_site.parameter key.
3987 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3988 variable dwarf_reg. New variable kind_u. Update parameters to
3989 push_dwarf_reg_entry_value.
3990 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3991 * dwarf2expr.h (enum call_site_parameter_kind)
3992 (union call_site_parameter_u): Forward declarations.
3993 (struct dwarf_expr_context_funcs): Update parameters and their
3994 description for push_dwarf_reg_entry_value.
3995 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3996 * dwarf2loc.c (call_site_parameter_matches): New function.
3997 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3998 description. Use call_site_parameter_matches.
3999 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4000 Update parameters and their description.
4001 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4002 New variable kind_u. Adjust the caller for updated parameters.
4003 (needs_dwarf_reg_entry_value): Update parameters.
4004 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4005 instead of attr. Update for the changed fields of struct
4006 call_site_parameter.
4007 * gdbtypes.h: Include dwarf2expr.h.
4008 (enum call_site_parameter_kind): New.
4009 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4010 fb_offset into new union u.
4012 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4014 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4015 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4018 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4020 * amd64-linux-nat.c (compat_x32_clock_t): New.
4021 (compat_x32_siginfo_t): Likewise.
4022 (compat_x32_siginfo_from_siginfo): Likewise.
4023 (siginfo_from_compat_x32_siginfo): Likewise.
4024 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4025 and siginfo_from_compat_x32_siginfo for x32.
4027 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4029 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4031 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4033 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4034 instead of gdbarch_ptr_bit.
4035 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4036 (amd64_supply_native_gregset): Likewise.
4037 (amd64_collect_native_gregset): Likewise.
4038 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4039 (amd64_supply_xsave): Likewise.
4040 (amd64_collect_fxsave): Likewise.
4041 (amd64_collect_xsave): Likewise.
4043 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4045 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4046 (amd64_linux_read_description): Check DS segment register for
4049 2012-06-15 Tom Tromey <tromey@redhat.com>
4051 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4052 init_cutu_and_read_dies.
4054 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4056 * MAINTAINERS (Write After Approval): Add myself to the list.
4058 2012-06-15 Tom Tromey <tromey@redhat.com>
4060 * valops.c (value_find_oload_method_list): Now static.
4061 * value.h (value_find_oload_method_list): Don't declare.
4063 2012-06-15 Tom Tromey <tromey@redhat.com>
4065 * valops.c (find_overload_match): Use value_ind.
4067 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4069 * infrun.c (handle_inferior_event): Correct indentation.
4071 2012-06-14 Doug Evans <dje@google.com>
4073 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4074 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4076 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4077 updated. Handle DEBUG_LOC_START_LENGTH.
4078 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4079 (loclist_describe_location): Ditto.
4081 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4084 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4085 after hiding inline functions.
4087 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4089 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4090 _initialize_inf_ttrace.
4092 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4094 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4095 _initialize_hppa_hpux_nat.
4097 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4099 * remote-sim.c (sim_command_completer): Change type of return
4100 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4102 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4103 Jan Kratochvil <jan.kratochvil@redhat.com>
4106 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4107 stack on a 16-byte boundary.
4109 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4111 * jit.c (finalize_symtab): Set function's return type to 'void' by
4114 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4115 H.J. Lu <hongjiu.lu@intel.com>
4117 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4118 Move bits common to both the classic LP64 and the new x32 ILP32
4120 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4121 (amd64_x32_linux_init_abi): New function.
4122 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4125 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4126 * i386-tdep.c (i386_pseudo_register_name): Make public.
4127 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4128 * amd64-tdep.c (amd64_dword_names): Add "eip".
4129 (amd64_x32_pseudo_register_type): New function
4130 (amd64_x32_init_abi): New function.
4132 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 * inferior.h (struct inferior_suspend_state): Comment out.
4136 (struct inferior): Comment out the field suspend.
4137 * infrun.c (struct infcall_suspend_state): Comment out the field
4139 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4142 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4144 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4145 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4146 function comment. Return ERROR for unresolved cases. Implement
4147 returning proper NAME.
4148 (yylex): Accept also NAME from classify_inner_name.
4149 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4150 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4152 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4154 2012-06-13 Tom Tromey <tromey@redhat.com>
4156 * breakpoint.c (condition_completer): New function.
4157 (_initialize_breakpoint): Use it.
4158 * value.c (complete_internalvar): New function.
4159 * value.h (complete_internalvar): Declare.
4161 2012-06-13 Tom Tromey <tromey@redhat.com>
4163 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4164 * breakpoint.c (catch_syscall_completer): Return a VEC.
4165 * cli/cli-cmds.c (complete_command): Update.
4166 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4167 (complete_on_enum): Likewise.
4168 * command.h: Include gdb_vecs.h.
4169 (completer_ftype): Change return type.
4170 (complete_on_cmdlist, complete_on_enum): Likewise.
4171 * completer.c (noop_completer, filename_completer)
4172 (location_completer): Return a VEC.
4173 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4175 (expression_completer, complete_line_internal, complete_line)
4176 (command_completer): Return a VEC.
4177 (gdb_completion_word_break_characters, line_completion_function):
4179 * completer.h: Include gdb_vecs.h.
4180 (complete_line, noop_completer, filename_completer)
4181 (expression_completer, location_completer, command_completer):
4183 * f-lang.c (f_word_break_characters): Return a VEC.
4184 * interps.c (interpreter_completer): Return a VEC.
4185 * language.h (struct language_defn)
4186 <la_make_symbol_completion_list>: Return a VEC.
4187 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4188 * symtab.c (free_completion_list): Take a VEC.
4189 (return_val_size, return_val_index): Remove.
4190 (return_val): Now a VEC.
4191 (completion_list_add_name): Update.
4192 (default_make_symbol_completion_list_break_on)
4193 (default_make_symbol_completion_list, make_symbol_completion_list)
4194 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4196 (add_filename_to_list): Update.
4197 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4199 (maybe_add_partial_symtab_filename): Update.
4200 (make_source_files_completion_list): Return a VEC.
4201 * symtab.h (default_make_symbol_completion_list_break_on)
4202 (default_make_symbol_completion_list, make_symbol_completion_list)
4203 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4204 (make_source_files_completion_list): Update.
4206 2012-06-13 Tom Tromey <tromey@redhat.com>
4208 * breakpoint.c (add_catch_command): Use completer_ftype.
4209 * breakpoint.h: Include command.h.
4210 (add_catch_command): Use completer_ftype.
4211 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4212 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4213 Use completer_ftype.
4214 * command.h (completer_ftype): New typedef.
4215 (set_cmd_completer): Use it.
4216 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4219 2012-06-13 Pedro Alves <palves@redhat.com>
4221 Partial revert of previous change.
4223 * serial.c (scb_base): New global.
4224 (serial_for_fd): New.
4225 (serial_open, serial_fdopen_ops): Link new serial in open serials
4227 (do_serial_close): Unlink serial from the open serials chain.
4229 2012-06-12 Pedro Alves <palves@redhat.com>
4231 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4233 (prepare_for_detach): No longer context switch here in non-stop
4235 (fetch_inferior_event): Ditto.
4236 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4237 to the event thread before removing breakpoints. Switch to the
4238 event thread before inserting breakpoints and resuming.
4239 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4240 event thread before resuming.
4241 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4242 Switch to the event thread before removing breakpoints.
4244 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4246 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4247 special characters correctly for the Windows shells. See
4248 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4250 [!__MINGW32__]: Remove extra double quote character from special
4253 2012-06-11 Stan Shebs <stan@codesourcery.com>
4255 * ui-out.h: Remove #if 0 declarations.
4256 * ui-out.c: Remove #if 0 functions.
4258 2012-06-11 Pedro Alves <palves@redhat.com>
4260 * ser-base.c (run_async_handler_and_reschedule): New.
4261 (fd_event, push_event): Use it.
4262 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4263 reference count to 1.
4264 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4266 (serial_is_open, serial_ref, serial_unref): New.
4267 * serial.h (serial_open): Adjust comment.
4268 (serial_is_open): Declare.
4269 (serial_close): Adjust comment.
4270 (serial_ref, serial_unref) Declare.
4271 (struct serial): New field 'refcnt'.
4273 2012-06-11 Pedro Alves <palves@redhat.com>
4275 Remove #if 0'd "connect" command, and unnecessary associated
4276 refcounting and serial reuse bits.
4278 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4279 * serial.c (last_serial_opened): Delete.
4281 (serial_open): Adjust.
4282 (serial_for_fd): Delete.
4283 (serial_fdopen_ops, do_serial_close): Adjust.
4284 (serial_fdopen_ops): Adjust.
4286 2012-06-11 Pedro Alves <palves@redhat.com>
4288 * serial.c (do_serial_close): Remove early return when SCB is
4291 2012-06-11 Tom Tromey <tromey@redhat.com>
4293 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4295 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4297 Fix regression by the "ambiguous linespec" series.
4298 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4299 get_last_displayed_symtab and get_last_displayed_line and depending
4302 2012-06-11 Tom Tromey <tromey@redhat.com>
4304 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4305 (dw2_find_symbol_file): Use it.
4307 2012-06-11 Michael Eager <eager@eagercon.com>
4309 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4310 * mips-linux-tdep.h (mips_signals): New
4312 2012-06-11 Tom Tromey <tromey@redhat.com>
4314 * infrun.c (handle_inferior_event)
4315 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4317 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4318 exception logic in all cases. Update comments.
4319 (insert_longjmp_resume_breakpoint): Set the exception resume
4322 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4324 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4326 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4328 * valarith.c (binop_types_user_defined_p): Fix a typo.
4330 2012-06-08 Yao Qi <yao@codesourcery.com>
4331 Chung-Lin Tang <cltang@codesourcery.com>
4333 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4334 * arch-utils.h: Declare.
4335 * gdbarch.sh: Add return_in_first_hidden_param_p.
4336 * gdbarch.c, gdbarch.h: Regenerated.
4337 * infcall.c (call_function_by_hand): Call
4338 gdbarch_return_in_first_hidden_param_p instead of
4339 language_pass_by_reference.
4341 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4342 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4343 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4344 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4345 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4346 `cplus_return_struct_by_reference'.
4347 (tic6x_return_value): Handle language cplusplus.
4348 (tic6x_return_in_first_hidden_param_p): New.
4349 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4351 2012-06-07 Doug Evans <dje@google.com>
4353 * dwarf2read.c (dwarf2_cu): Add comment.
4355 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4357 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4359 (mips_eabi_push_dummy_call): Likewise.
4360 (mips_n32n64_push_dummy_call): Likewise.
4361 (mips_o32_push_dummy_call): Likewise.
4362 (mips_o64_push_dummy_call): Likewise.
4364 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4366 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4368 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4370 * mips-tdep.c (mips_pseudo_register_type): Use
4371 mips_float_register_p.
4373 2012-06-06 Pedro Alves <palves@redhat.com>
4375 * infrun.c (handle_inferior_event): Remove calls to
4376 reinit_frame_cache that follow a context_switch call.
4378 2012-06-06 Pedro Alves <palves@redhat.com>
4380 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4381 context_switch and remove stale comment.
4383 2012-06-06 Pedro Alves <palves@redhat.com>
4385 * infrun.c (struct execution_control_state): Remove
4386 `new_thread_event' field.
4387 (handle_inferior_event): Simplify new threads handling; don't
4388 resume the inferior if we find a new thread.
4390 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4392 * NEWS: Document the deprecation of SH's 'regs' command.
4393 * inferior.h (all_registers_info): Add function declaration.
4394 * sh-tdep.c (sh_show_regs): Remove variable.
4395 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4396 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4397 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4398 (sh_show_regs_command): Remove functions.
4399 (sh_gdbarch_init): Don't set sh_show_regs.
4400 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4401 'info all-registers'.
4402 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4403 (sh64_show_regs): Remove functions.
4404 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4406 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4408 * configure.ac: Move development=true below AC_INIT.
4409 * configure: Regenerate.
4411 2012-06-05 Stan Shebs <stan@codesourcery.com>
4413 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4416 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4418 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4419 argument as ssize_t.
4420 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4421 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4422 * target.c (target_read_stack, target_write_memory)
4423 (target_write_raw_memory): Likewise.
4424 * target.h (target_read_stack, target_write_memory)
4425 (target_write_raw_memory): Likewise.
4427 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4430 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4431 * target.c (target_read_memory): Change LEN to ssize_t.
4432 * target.h (target_read_memory): Change LEN to ssize_t.
4434 2012-06-05 Pedro Alves <palves@redhat.com>
4438 * breakpoint.c (until_break_command): Only fetch the selected
4439 frame after decode_line_1.
4441 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4443 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4444 event breakpoint at _start, __start or main if a program
4445 interpreter is not found.
4447 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4449 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4451 * windows-tdep.c: #include "objfiles.h".
4452 (windows_iterate_over_objfiles_in_search_order): New function.
4453 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4454 iterate_over_objfiles_in_search_order gdbarch method to
4455 windows_iterate_over_objfiles_in_search_order.
4456 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4458 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4460 * gdbarch.sh: Add generation of
4461 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4462 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4463 (iterate_over_objfiles_in_search_order): New gdbarch method.
4464 * gdbarch.h, gdbarch.c: Regenerate.
4465 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4467 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4469 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4470 out of lookup_symbol_aux_symtabs.
4471 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4472 call to lookup_symbol_aux_objfile.
4473 (struct global_sym_lookup_data): New type.
4474 (lookup_symbol_global_iterator_cb): New function.
4475 (lookup_symbol_global): Search for symbol using
4476 gdbarch_iterate_over_objfiles_in_search_order and
4477 lookup_symbol_global_iterator_cb.
4478 * findvar.c (struct minsym_lookup_data): New type.
4479 (minsym_lookup_iterator_cb): New function.
4480 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4481 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4482 and minsym_lookup_iterator_cb.
4484 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4486 Revert the following patch:
4487 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4488 try locating the symbol in the symbol's own objfile first, before
4489 extending the search to all objfiles.
4490 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4491 out of lookup_symbol_aux_symtabs.
4492 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4493 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4494 Do not search EXCLUDE_OBJFILE.
4495 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4496 (lookup_symbol_global): Search for matches in the block's objfile
4497 first, before searching all other objfiles.
4499 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4501 * breakpoint.c (find_condition_and_thread): Stop parsing
4502 as soon as the first invalid keyword is found.
4504 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4506 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4508 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4510 * config/djgpp/djcheck.sh: Add copyright header.
4512 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4514 * copyright.py (update_files, main): Fix path to update-copyright
4517 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4519 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4520 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4521 for which a reminder to update by hand is printed.
4523 2012-06-04 Doug Evans <dje@google.com>
4525 * buildsym.c (make_blockvector): Add comment.
4527 2012-06-04 Pedro Alves <palves@redhat.com>
4529 * arch-utils.c (default_gdb_signal_from_target): Delete.
4530 * arch-utils.h (default_gdb_signal_from_target): Delete.
4531 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4532 gdbarch_gdb_signal_from_target_p.
4533 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4535 * gdbarch.h: Regenerate.
4536 * gdbarch.c: Regenerate.
4538 2012-06-04 Pedro Alves <palves@redhat.com>
4540 * gdbarch.sh (gdb_signal_from_target): Mention that the
4541 implementation of the method must be host independent.
4542 * gdbarch.h: Regenerate.
4544 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4546 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4548 (target_read_memory_bfd): New function.
4549 (symbol_file_add_from_memory): Use it.
4551 2012-06-03 Doug Evans <dje@google.com>
4553 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4555 (basic_lookup_transparent_type): Ditto.
4557 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4558 (ALL_PRIMARY_SYMTABS): Use it.
4559 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4560 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4561 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4562 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4563 (basic_lookup_transparent_type): Ditto.
4565 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4567 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4568 it to optimize resolution of demangled name.
4570 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4572 * configure.ac (development): Define new variable.
4573 Call AC_CHECK_LIB for mcheck if $development.
4574 (ERROR_ON_WARNING): Enable it by default only if $development.
4575 * config.in: Regenerate.
4576 * configure: Regenerate.
4578 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4580 * target.c (target_read_memory): Make LEN argument as size_t.
4581 * target.h (target_read_memory): Likewise.
4583 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4585 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4587 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4589 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4590 BookE interface for PowerPC server processors if not available
4591 in the Linux Kernel.
4593 2012-05-31 Keith Seitz <keiths@redhat.com>
4595 * linespec.c (decode_objc): Add cleanup to free
4597 (find_linespec_symbols): Add cleanup to free CLASSES.
4598 * symfile.c (find_separate_debug_file_by_debuglink): Add
4599 cleanup to free DEBUGLINK.
4600 * ui-out.c (clear_header_list): No need to check if
4601 HEADER_NEXT.COLHDR is NULL.
4602 Free HEADER_NEXT.COL_NAME.
4604 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4606 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4609 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4611 * configure.host (gdb_host_cpu): Handle tilegx*.
4612 (gdb_host): Handle tilegx-*-linux*.
4613 * tilegx-linux-nat.c: New file.
4614 * config/tilegx/linux.mh: New file.
4616 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4618 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4619 tilegx-linux-tdep.o.
4620 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4621 tilegx-linux-tdep.c.
4622 * configure.tgt: Handle tilegx-*-linux*.
4623 * tilegx-tdep.h: New file.
4624 * tilegx-tdep.c: New file.
4625 * tilegx-linux-tdep.c: New file.
4626 * regformats/reg-tilegx.dat: New file.
4628 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4630 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4631 accounting of hw watchpoints on ppc.
4633 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4635 * source.c (openp): Expand tilde in path entries.
4637 2012-05-29 Doug Evans <dje@google.com>
4639 * buildsym.c (block_compar): Fix comment.
4640 (end_symtab): Fix and clarify some comments.
4642 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4643 cleanup_undefined_types.
4644 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4645 All callers updated.
4647 2012-05-29 Tom Tromey <tromey@redhat.com>
4649 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4651 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4652 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4654 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4657 2012-05-29 Tristan Gingold <gingold@adacore.com>
4659 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4660 (struct darwin_info): ... New struct.
4661 (solib_darwin_pspace_data): New variable.
4662 (darwin_pspace_data_cleanup): New function.
4663 (get_darwin_info): Likewise.
4664 (darwin_dyld_version_ok, darwin_load_image_infos)
4665 (darwin_solib_get_all_image_info_addr_at_init)
4666 (darwin_solib_read_all_image_info_addr): Add info argument.
4668 (darwin_current_sos): Use per pspace structure.
4669 (darwin_solib_create_inferior_hook): Likewise.
4670 (darwin_clear_solib): Likewise.
4671 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4673 2012-05-28 Pedro Alves <palves@redhat.com>
4675 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4676 block that uses them. Clear ecss before handling each event.
4678 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4680 * solib-svr4.c (svr4_current_sos): New comment on
4681 svr4_current_sos_via_xfer_libraries fall back.
4683 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4686 it as a fallback for TYPE_IS_OPAQUE.
4687 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4688 symbols for lookup_symbol.
4690 2012-05-24 John Steele Scott <toojays@toojays.net>
4692 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4693 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4694 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4695 (check_producer): ... this new function, which also checks for ICC
4696 and caches the result.
4697 (producer_is_icc): New function.
4698 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4701 2012-05-24 Pedro Alves <palves@redhat.com>
4705 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4706 (default_gdb_signal_to_target): ... this. Add comment.
4707 (default_gdb_signal_from_host): Rename to ...
4708 (default_gdb_signal_from_target): ... this. Add comment.
4709 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4710 (default_gdb_signal_to_target): ... this.
4711 (default_gdb_signal_from_host): Rename to ...
4712 (default_gdb_signal_from_target): ... this.
4713 * corelow.c (core_open): Adjust to naming change. Replace comment.
4714 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4715 (gdb_signal_from_target): ... this. Adjust to
4716 default_gdb_signal_from_host naming change. Extend comment.
4717 (gdb_signal_to_host): Rename to ...
4718 (gdb_signal_to_target): ... this. Adjust to
4719 default_gdb_signal_to_host naming change.
4720 * gdbarch.h, gdbarch.c: Renegerate.
4722 2012-05-24 Pedro Alves <palves@redhat.com>
4726 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4728 2012-05-24 Pedro Alves <palves@redhat.com>
4732 Replace target_signal with gdb_signal throughout.
4734 2012-05-24 Pedro Alves <palves@redhat.com>
4738 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4739 string, instead of reusing the va_list argument.
4741 2012-05-24 Tom Tromey <tromey@redhat.com>
4743 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4746 2012-05-23 Doug Evans <dje@google.com>
4748 * symtab.c (search_symbols): Formatting fixes.
4749 (print_symbol_info): Formatting fixes.
4751 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4752 int64_t change to leb128 API.
4753 (read_encoded_value, decode_frame_entry_1): Ditto.
4754 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4755 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4756 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4757 (execute_stack_op): Ditto.
4758 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4759 (safe_read_uleb128, safe_read_sleb128): Ditto.
4760 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4761 (dwarf2_compile_expr_to_ax): Ditto.
4762 (locexpr_describe_location_piece): Ditto.
4763 (disassemble_dwarf_expression): Ditto.
4764 (locexpr_describe_location_1): Ditto.
4766 2012-05-23 Stan Shebs <stan@codesourcery.com>
4767 Kwok Cheung Yeung <kcy@codesourcery.com>
4769 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4770 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4771 (mi-cmd-info.o): New rule.
4772 * osdata.h (info_osdata_command): New declaration.
4773 * osdata.c (info_osdata_command): Change to non-static.
4774 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4775 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4776 * mi/mi-cmd-info.c: New file.
4778 2012-05-23 Doug Evans <dje@google.com>
4780 * symtab.c (search_symbols): Pass NULL for file_matcher to
4781 expand_symtabs_matching if there are no files to match.
4783 * gdbtypes.c (lookup_typename): Simplify.
4785 2012-05-23 Pedro Alves <palves@redhat.com>
4787 * arch-utils.h (default_target_signal_to_host): Delete.
4788 * arch-utils.c (default_target_signal_to_host): Delete.
4789 * gdbarch.sh (target_signal_to_host): Remove.
4790 * gdbarch.h, gdbarch.c: Regenerate.
4792 2012-05-22 Doug Evans <dje@google.com>
4794 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4796 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4797 (execute_cfa_program): Update to match API of leb128 functions.
4798 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4800 (read_unsigned_leb128, read_signed_leb128): Delete.
4801 (read_initial_length): Change type of buf argument to
4803 (read_encoded_value): Update to match API of leb128 functions.
4804 (decode_frame_entry): Change result to "const gdb_byte *", and
4805 similarly for "start" parameter.
4806 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4807 (dwarf2_build_frame_info): Change local frame_ptr to
4809 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4810 read_uleb128, read_sleb128. All callers updated.
4811 (safe_skip_leb128): New function.
4812 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4813 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4814 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4815 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4816 read_uleb128, read_sleb128.
4817 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4818 (execute_stack_op): Update to match API of leb128 functions.
4819 * dwarf2expr.h: #include "leb128.h".
4820 (read_uleb128, read_sleb128): Delete.
4821 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4822 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4823 * dwarf2loc.c (debug_loc_kind): New enum.
4824 (decode_debug_loc_addresses): New function.
4825 (decode_debug_loc_dwo_addresses): New function.
4826 (dwarf2_find_location_expression): Rewrite.
4827 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4828 (locexpr_describe_location_piece): Ditto.
4829 (disassemble_dwarf_expression): Ditto.
4830 (locexpr_describe_location_1): Ditto.
4831 (loclist_describe_location): Rewrite.
4832 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4833 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4834 (dwarf2_section_buffer_overflow_complaint): Renamed from
4835 dwarf2_macros_too_long_complaint. All callers updated.
4836 (skip_leb128): Delete.
4837 (init_cu_die_reader): Initialize reader->buffer_end.
4838 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4839 (skip_form_bytes): New arg buffer_end. All callers updated.
4840 Replace call to skip_leb128 with gdb_skip_leb128.
4841 (skip_unknown_opcode): New arg mac_end. All callers updated.
4842 (fill_in_loclist_baton): Initialize baton->from_dwo.
4844 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4846 * mips-linux-nat.c (mips_linux_read_description): Use a more
4847 verbose error message.
4849 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4851 * NEWS: Add MIPS/Linux DSP support.
4852 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4853 (SIGCONTEXT_DSPCTL): New macro.
4854 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4855 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4856 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4857 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4858 (N64_SIGCONTEXT_HI3): Likewise.
4859 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4860 (N64_SIGCONTEXT_LO3): Likewise.
4861 (N64_SIGCONTEXT_DSPCTL): Likewise.
4862 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4863 (mips_linux_o32_sigframe_init): Handle DSP registers.
4864 (mips_linux_n32n64_sigframe_init): Likewise.
4866 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4868 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4871 2012-05-22 Pedro Alves <palves@redhat.com>
4873 * target.h (store_waitstatus): Move declaration ...
4874 * inf-child.h (store_waitstatus): ... here.
4875 * target.c: Move inclusion of gdb_wait.h, and ...
4876 (store_waitstatus): ... this ...
4877 * inf-child.c: ... here.
4878 * linux-nat.c: Include inf-child.h.
4879 * rs6000-nat.c: Include inf-child.h.
4880 * spu-linux-nat.c: Include inf-child.h.
4882 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4884 * tracepoint.c (start_tracing): Add missing i18n markup.
4885 (stop_tracing, set_trace_user): Ditto.
4886 (set_trace_notes, set_trace_stop_notes): Ditto.
4888 2012-05-21 Tom Tromey <tromey@redhat.com>
4891 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4893 * value.h (value_cast_pointers): Update.
4894 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4895 (value_cast): Update.
4896 (update_search_result): New function.
4897 (do_search_struct_field): New, from search_struct_field. Check
4898 for ambiguous results.
4899 (search_struct_field): Rewrite.
4900 * infcall.c (value_arg_coerce): Update.
4901 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4902 value_cast_pointers.
4903 * ada-lang.c (ada_convert_actual): Update.
4905 2012-05-21 Tom Tromey <tromey@redhat.com>
4907 * macroexp.c (macro_stringify): Terminate the string.
4909 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4911 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4913 * auto-load.c (auto_load_expand_dir_vars): New function.
4914 (auto_load_safe_path_vec_update): Use it, remove the
4915 substitute_path_component call thanks to it.
4916 (auto_load_objfile_script): Remove the debug_file_directory processing.
4917 Use auto_load_expand_dir_vars, remove the substitute_path_component
4919 * configure: Regenerate.
4920 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4921 path. Escape $ also for $debugdir.
4922 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4923 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4925 2012-05-20 Doug Evans <dje@google.com>
4927 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4928 before use. Check for symtab->includes == NULL before scanning it.
4930 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4932 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4934 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4936 * NEWS: Add microMIPS support and "set mips compression",
4937 "show mips compression" commands.
4938 * mips-tdep.h (mips_isa): New enum.
4939 (gdbarch_tdep): Add mips_isa.
4940 (mips_pc_is_mips16): Update prototype.
4941 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4942 * mips-tdep.c (mips_compression_mips16): New variable.
4943 (mips_compression_micromips): Likewise.
4944 (mips_compression_strings): Likewise.
4945 (mips_compression_string): Likewise.
4946 (is_mips16_isa, is_micromips_isa): New functions.
4947 (is_mips16_addr): Rename to...
4948 (is_compact_addr): ... this.
4949 (unmake_mips16_addr): Likewise to...
4950 (unmake_compact_addr): ... this.
4951 (make_mips16_addr): Likewise to...
4952 (make_compact_addr): ... this.
4953 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4955 (mips_elf_make_msymbol_special): Handle microMIPS code.
4956 (msymbol_is_special): Rename to...
4957 (msymbol_is_mips16): ... this.
4958 (mips_make_symbol_special, mips_pc_is_mips16): Update
4960 (msymbol_is_mips, msymbol_is_micromips): New functions.
4961 (mips16_to_32_reg): Rename to...
4962 (mips_reg3_to_reg): ... this.
4963 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4964 (mips_pc_isa): Likewise.
4965 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4967 (mips_fetch_instruction): Pass return status instead of printing
4968 an error message if requested. Handle microMIPS code. Bail out
4970 (micromips_op): New macro.
4971 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4972 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4973 (b6s4_op, b7s3_reg): Likewise.
4974 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4975 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4976 (mips_insn_size): New function.
4977 (mips32_next_pc): Update mips_fetch_instruction call.
4978 (micromips_relative_offset7): New function.
4979 (micromips_relative_offset10): Likewise.
4980 (micromips_relative_offset16): Likewise.
4981 (micromips_pc_insn_size): Likewise.
4982 (micromips_bc1_pc): Likewise.
4983 (micromips_next_pc): Likewise.
4984 (unpack_mips16): Update mips_fetch_instruction call.
4985 (extended_mips16_next_pc): Update according to change to
4987 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4989 (mips16_scan_prologue): Update mips_fetch_instruction call.
4990 Update according to change to mips16_to_32_reg.
4991 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4992 (mips_insn16_frame_base_sniffer): Likewise.
4993 (micromips_decode_imm9): New function.
4994 (micromips_scan_prologue): Likewise.
4995 (mips_micro_frame_cache): Likewise.
4996 (mips_micro_frame_this_id): Likewise.
4997 (mips_micro_frame_prev_register): Likewise.
4998 (mips_micro_frame_sniffer): Likewise.
4999 (mips_micro_frame_unwind): New variable.
5000 (mips_micro_frame_base_address): New function.
5001 (mips_micro_frame_base): New variable.
5002 (mips_micro_frame_base_sniffer): New function.
5003 (mips32_scan_prologue): Update mips_fetch_instruction call.
5004 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5005 rather than for MIPS16.
5006 (mips_insn32_frame_base_sniffer): Likewise.
5007 (mips_addr_bits_remove): Handle microMIPS code.
5008 (deal_with_atomic_sequence): Rename to...
5009 (mips_deal_with_atomic_sequence): ... this. Update the type
5010 of the variable used to hold an instruction. Remove the ISA bit
5011 check. Update mips_fetch_instruction call.
5012 (micromips_deal_with_atomic_sequence): New function.
5013 (deal_with_atomic_sequence): Likewise.
5014 (mips_about_to_return): Handle microMIPS code. Update
5015 mips_fetch_instruction call.
5016 (heuristic_proc_start): Check for the standard MIPS ISA rather
5017 than for MIPS16. Update mips_pc_is_mips16 and
5018 mips_fetch_instruction calls. Handle microMIPS code.
5019 (mips_push_dummy_code): Handle microMIPS code.
5020 (mips_eabi_push_dummy_call): Likewise.
5021 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5022 (mips_o64_push_dummy_call): Handle microMIPS code.
5023 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5024 (is_delayed): Remove function.
5025 (mips_single_step_through_delay): Replace the call to is_delayed
5026 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5027 Handle microMIPS code.
5028 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5030 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5032 (micromips_in_function_epilogue_p): New function.
5033 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5035 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5037 (gdb_print_insn_mips): Likewise.
5038 (mips_breakpoint_from_pc): Likewise.
5039 (mips_remote_breakpoint_from_pc): New function.
5040 (mips32_instruction_has_delay_slot): Simplify making use of the
5041 updated mips_fetch_instruction interface.
5042 (micromips_instruction_has_delay_slot): New function.
5043 (mips16_instruction_has_delay_slot): Simplify making use of the
5044 updated mips_fetch_instruction interface.
5045 (mips_adjust_breakpoint_address): Check for the standard MIPS
5046 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5047 calls. Handle microMIPS code.
5048 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5049 (mips_skip_trampoline_code): Handle microMIPS code.
5050 (global_mips_compression): New function.
5051 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5052 file flags. Register the microMIPS remote breakpoint handler
5053 and heuristic frame unwinder.
5054 (show_mips_compression): New function.
5055 (_initialize_mips_tdep): Add the "set mips compression" and
5056 "show mips compression" commands.
5058 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5063 * amd64-darwin-tdep.c:
5064 * arm-symbian-tdep.c:
5068 * bfin-linux-tdep.c:
5075 * dwarf2-frame-tailcall.c:
5104 * microblaze-tdep.c:
5105 * mips-linux-tdep.c:
5113 * python/py-finishbreakpoint.c:
5114 * python/py-inferior.c:
5115 * python/py-infthread.c:
5119 * remote-m32r-sdi.c:
5123 * rs6000-aix-tdep.c:
5149 * amd64-darwin-tdep.c:
5150 * arm-symbian-tdep.c:
5151 * arm-tdep.c: Delete unused variables.
5153 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5155 Rename $ddir to $datadir.
5156 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5157 * auto-load.c (auto_load_safe_path_vec_update)
5158 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5159 * configure: Regenerate.
5160 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5161 Likewise. Remove the 'use $ddir' help string.
5163 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5165 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5166 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5168 2012-05-18 Tom Tromey <tromey@redhat.com>
5171 * valprint.h (struct value_print_options) <symbol_print>: New
5173 * valprint.c (user_print_options): Add default for symbol_print.
5174 (show_symbol_print): New function.
5175 (generic_val_print): Respect symbol_print.
5176 (_initialize_valprint): Add "print symbol" setting.
5177 * f-valprint.c (f_val_print): Respect symbol_print.
5178 * c-valprint.c (c_val_print): Respect symbol_print.
5180 * printcmd.c (print_address_symbolic): Return int. Ignore some
5182 (print_address_demangle): Return int.
5183 * defs.h: (print_address_symbolic): Return int.
5184 * value.h (print_address_demangle): Return int.
5186 2012-05-18 Tom Tromey <tromey@redhat.com>
5188 * valprint.c (val_print_string): Don't print leading space.
5189 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5190 print space before string or vtbl.
5191 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5193 * jv-valprint.c (java_value_print): Print space before string.
5194 * go-valprint.c (print_go_string): Print space before string.
5195 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5196 space before string.
5197 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5198 space before string or vtbl.
5199 * auxv.c (fprint_target_auxv): Print space after address.
5201 2012-05-18 Tom Tromey <tromey@redhat.com>
5203 * printcmd.c (print_address_demangle): Remove special case for 0.
5205 2012-05-18 Tom Tromey <tromey@redhat.com>
5207 * printcmd.c (print_address_demangle): Add 'opts' argument.
5208 * p-valprint.c (pascal_val_print): Update.
5209 * jv-valprint.c (java_val_print): Update.
5211 * valprint.c (generic_val_print): Update.
5212 (print_function_pointer_address): Add 'options' argument. Remove
5213 'addressprint' argument. Update.
5214 * m2-valprint.c (print_unpacked_pointer): Update.
5215 * gnu-v3-abi.c (print_one_vtable): Update.
5216 (gnuv3_print_method_ptr): Update.
5217 * f-valprint.c (f_val_print): Update.
5218 * cp-valprint.c (cp_print_value_fields): Update.
5219 * valprint.h (print_function_pointer_address): Update.
5220 * c-valprint.c (c_val_print): Update.
5222 2012-05-18 Tom Tromey <tromey@redhat.com>
5224 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5225 directly corresponding to the found psymtab.
5226 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5227 (dw2_find_pc_sect_symtab): Use it.
5228 * block.h (blockvector_contains_pc): Declare.
5229 * block.c (find_block_in_blockvector): New function.
5230 (blockvector_for_pc_sect): Use it.
5231 (blockvector_contains_pc): New function.
5233 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5235 * mips-tdep.h (mips_write_pc): New prototype.
5236 * mips-tdep.c (mips_write_pc): Make external, add description.
5237 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5240 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5242 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5244 (mips_unwind_pc, mips_write_pc): Likewise.
5245 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5248 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5250 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5251 proc_warn, proc_error, proc_get_status, proc_flags,
5252 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5253 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5254 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5255 proc_stop_process, proc_wait_for_stop, proc_run_process,
5256 proc_set_traced_signals, proc_set_traced_faults,
5257 proc_set_traced_sysentry, proc_set_traced_sysexit,
5258 proc_set_held_signals, proc_get_held_signals,
5259 proc_get_traced_signals, proc_get_traced_faults,
5260 proc_get_traced_sysentry, proc_get_traced_sysexit,
5261 proc_clear_current_fault, proc_set_current_signal,
5262 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5263 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5264 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5265 proc_get_current_thread, proc_get_current_thread,
5266 proc_get_current_thread, proc_update_threads,
5267 proc_update_threads, proc_update_threads, proc_update_threads,
5268 proc_iterate_over_threads, procfs_find_new_threads,
5269 procfs_pid_to_str): Make static. Remove advance declaration.
5270 (proc_cursig): Make static. Conditionalized defintion on
5271 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5272 (proc_syscall, proc_set_kill_on_last_close,
5273 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5274 proc_get_pending_signals, proc_get_signal_actions,
5275 proc_trace_signal, proc_ignore_signal): Delete.
5277 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5279 * coffread.c (cs_section_address): Passing proper argument for
5280 `bfd_get_section_vma'.
5281 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5282 `bfd_get_section_flags'.
5283 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5284 `bfd_get_section_vma'.
5286 2012-05-16 Tom Tromey <tromey@redhat.com>
5289 * macrotab.h: (macro_define_special): Declare.
5290 (enum macro_special_kind): New.
5291 (struct macro_definition) <argc, replacement>: Update comments.
5292 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5293 (macro_define_object_internal): New function.
5294 (macro_define_object): Use it.
5295 (macro_define_special): New function.
5296 (fixup_definition): New function.
5297 (macro_lookup_definition, foreach_macro_in_scope)
5298 (foreach_macro): Use fixup_definition.
5299 * macroexp.h (macro_stringify): Declare.
5300 * macroexp.c (free_buffer_return_text): New function.
5301 (stringify): Constify "arg".
5302 (macro_stringify): New function.
5303 * dwarf2read.c (macro_start_file): Call macro_define_special.
5305 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5306 Maciej W. Rozycki <macro@mips.com>
5308 * breakpoint.h (bp_location): Add related_address member.
5309 * inferior.h (get_return_value): Take a pointer to struct value
5310 instead of struct type for the function requested.
5311 * value.h (using_struct_return): Likewise.
5312 * gdbarch.sh (return_value): Take a pointer to struct value
5313 instead of struct type for the function requested.
5314 * breakpoint.c (set_breakpoint_location_function): Initialize
5315 related_address for bp_gnu_ifunc_resolver breakpoints.
5316 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5317 requested function's address to gdbarch_return_value.
5318 * eval.c (evaluate_subexp_standard): Pass the requested
5319 function's address to using_struct_return.
5320 * infcall.c (call_function_by_hand): Pass the requested
5321 function's address to using_struct_return and
5322 gdbarch_return_value.
5323 * infcmd.c (get_return_value): Take a pointer to struct value
5324 instead of struct type for the function requested.
5325 (print_return_value): Update accordingly.
5326 (finish_command_continuation): Likewise.
5327 * stack.c (return_command): Pass the requested function's
5328 address to using_struct_return and gdbarch_return_value.
5329 * value.c (using_struct_return): Take a pointer to struct value
5330 instead of struct type for the function requested. Pass the
5331 requested function's address to gdbarch_return_value.
5332 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5333 New function_value member, replacing function_type.
5334 (bpfinishpy_dealloc): Update accordingly.
5335 (bpfinishpy_pre_stop_hook): Likewise.
5336 (bpfinishpy_init): Likewise. Record the requested function's
5338 * mips-tdep.c (mips_fval_reg): New enum.
5339 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5340 words put in GP registers.
5341 (mips_o64_push_dummy_call): Update a comment.
5342 (mips_o32_return_value): Take a pointer to struct value instead
5343 of struct type for the function requested and use it to check if
5344 using the MIPS16 calling convention. Return the designated
5345 general purpose registers for floating-point values returned in
5347 (mips_o64_return_value): Likewise.
5348 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5349 (ppc_sysv_abi_broken_return_value): Likewise.
5350 (ppc64_sysv_abi_return_value): Likewise.
5351 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5352 value instead of struct type for the function requested.
5353 * amd64-tdep.c (amd64_return_value): Likewise.
5354 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5355 * arm-tdep.c (arm_return_value): Likewise.
5356 * avr-tdep.c (avr_return_value): Likewise.
5357 * bfin-tdep.c (bfin_return_value): Likewise.
5358 * cris-tdep.c (cris_return_value): Likewise.
5359 * frv-tdep.c (frv_return_value): Likewise.
5360 * h8300-tdep.c (h8300_return_value): Likewise.
5361 (h8300h_return_value): Likewise.
5362 * hppa-tdep.c (hppa32_return_value): Likewise.
5363 (hppa64_return_value): Likewise.
5364 * i386-tdep.c (i386_return_value): Likewise.
5365 * ia64-tdep.c (ia64_return_value): Likewise.
5366 * iq2000-tdep.c (iq2000_return_value): Likewise.
5367 * lm32-tdep.c (lm32_return_value): Likewise.
5368 * m32c-tdep.c (m32c_return_value): Likewise.
5369 * m32r-tdep.c (m32r_return_value): Likewise.
5370 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5371 * m68k-tdep.c (m68k_return_value): Likewise.
5372 (m68k_svr4_return_value): Likewise.
5373 * m88k-tdep.c (m88k_return_value): Likewise.
5374 * mep-tdep.c (mep_return_value): Likewise.
5375 * microblaze-tdep.c (microblaze_return_value): Likewise.
5376 * mn10300-tdep.c (mn10300_return_value): Likewise.
5377 * moxie-tdep.c (moxie_return_value): Likewise.
5378 * mt-tdep.c (mt_return_value): Likewise.
5379 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5380 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5381 (ppc_sysv_abi_broken_return_value): Likewise.
5382 (ppc64_sysv_abi_return_value): Likewise.
5383 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5384 * rl78-tdep.c (rl78_return_value): Likewise.
5385 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5386 * rx-tdep.c (rx_return_value): Likewise.
5387 * s390-tdep.c (s390_return_value): Likewise.
5388 * score-tdep.c (score_return_value): Likewise.
5389 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5390 (sh_return_value_fpu): Likewise.
5391 * sh64-tdep.c (sh64_return_value): Likewise.
5392 * sparc-tdep.c (sparc32_return_value): Likewise.
5393 * sparc64-tdep.c (sparc64_return_value): Likewise.
5394 * spu-tdep.c (spu_return_value): Likewise.
5395 * tic6x-tdep.c (tic6x_return_value): Likewise.
5396 * v850-tdep.c (v850_return_value): Likewise.
5397 * vax-tdep.c (vax_return_value): Likewise.
5398 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5399 * xtensa-tdep.c (xtensa_return_value): Likewise.
5400 * gdbarch.c: Regenerate.
5401 * gdbarch.h: Regenerate.
5403 2012-05-15 Tom Tromey <tromey@redhat.com>
5405 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5407 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5409 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5410 of command in two error message.
5412 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5414 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5416 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5418 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5420 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5422 * NEWS (show auto-load scripts-directory): Add forgotten command.
5424 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5426 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5429 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5431 * amd64-tdep.c: Include features/i386/x32.c and
5432 features/i386/x32-avx.c.
5433 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5434 initialize_tdesc_x32_avx.
5436 2012-05-14 Stan Shebs <stan@codesourcery.com>
5439 * breakpoint.h (enum bptype): New type bp_dprintf.
5440 (struct breakpoint): New field extra_string.
5441 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5442 (create_breakpoint): Add extra_string arg.
5443 * breakpoint.c (dprintf_breakpoint_ops): New.
5444 (is_breakpoint): Add bp_dprintf.
5445 (bpstat_what): Add dprintf case.
5446 (bptype_string): Ditto.
5447 (print_one_breakpoint_location): Ditto.
5448 (init_bp_location): Ditto.
5449 (bkpt_print_mention): Ditto.
5450 (dprintf_style_enums): New array.
5451 (dprintf_style): New global.
5452 (dprintf_function): New global.
5453 (dprintf_channel): New global.
5454 (update_dprintf_command_list): New function.
5455 (update_dprintf_commands): New function.
5456 (init_breakpoint_sal): Add extra_string argument, handle it.
5457 (create_breakpoint_sal): Add extra_string argument.
5458 (create_breakpoints_sal): Add extra_string argument, update callers.
5459 (find_condition_and_thread): Add extra argument.
5460 (create_breakpoint): Add extra_string argument, record it.
5461 (dprintf_command): New function.
5462 (break_command_1): Add arg to create_breakpoint call.
5463 (handle_gnu_v3_exceptions): Ditto.
5464 (trace_command): Ditto.
5465 (ftrace_command): Ditto.
5466 (strace_command): Ditto.
5467 (bkpt_print_mention): Add dprintf case.
5468 (create_breakpoint_sal_default): Add extra_string argument.
5469 (_initialize_breakpoint): Add new commands.
5470 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5471 * python/py-breakpoint.c (bppy_init): Ditto.
5472 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5474 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5476 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5478 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5480 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5483 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5485 Add a new function gdb.find_pc_line to the Python API.
5486 * NEWS (Python Scripting): Add entry about the new function.
5487 * python/python.c (gdbpy_find_pc_line): New function which
5488 implements gdb.find_pc_line.
5489 (GdbMethods): Add entry for the new function.
5491 2012-05-12 Pedro Alves <palves@redhat.com>
5493 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5494 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5496 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5498 * inferior.c: Include completer.h
5499 (initialize_inferiors): Set completer of add-inferior to
5502 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5504 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5505 gdbarch_ptr_bit for x32 core dump.
5507 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5509 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5510 and features/i386/x32-avx-linux.c.
5512 2012-05-11 Stan Shebs <stan@codesourcery.com>
5513 Kwok Cheung Yeung <kcy@codesourcery.com>
5515 * NEWS: Describe new info os commands.
5516 * common/linux-osdata.c (PID_T, TIME_T): Define.
5517 (MAX_PID_T_STRLEN): New.
5518 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5520 (command_from_pid): Add comment. Change to use PID_T.
5521 (commandline_from_pid): Change to use PID_T.
5522 (user_from_pid): Add comment.
5523 (get_process_owner): Add comment. Change to use PID_T and
5525 (get_number_of_cpu_cores): Add comment.
5526 (get_cores_used_by_process): Add comment. Change to use PID_T and
5528 (linux_xfer_osdata_processes): Change to use PID_T and
5530 (compare_processes): New function.
5531 (linux_xfer_osdata_processgroups): New function.
5532 (linux_xfer_osdata_threads): Change to use PID_T.
5533 (linux_xfer_osdata_fds): New function.
5534 (format_socket_state, print_sockets): New functions.
5535 (union socket_addr): New union.
5536 (linux_xfer_osdata_isockets): New function.
5537 (time_from_time_t, group_from_gid): New functions.
5538 (linux_xfer_osdata_shm): New function.
5539 (linux_xfer_osdata_sem): New function.
5540 (linux_xfer_osdata_msg): New function.
5541 (linux_xfer_osdata_modules): New function.
5542 (osdata_table): Add new entries.
5543 * common/buffer.c (buffer_xml_printf): Add support for long and
5544 long long format specifiers.
5546 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5548 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5549 (tdesc_x32_avx_linux): Likewise.
5551 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5553 Implement multi-component --with-auto-load-dir.
5554 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5556 (--with-auto-load-safe-path): Update the default value description.
5557 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5559 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5560 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5561 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5562 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5563 "set auto-load scripts-directory".
5564 * config.in: Regenerate.
5565 * configure: Regenerate.
5566 * configure.ac (--with-auto-load-dir): New configure option.
5567 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5569 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5571 Provide $ddir substitution for --with-auto-load-safe-path.
5572 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5574 * auto-load.c: Include observer.h.
5575 (auto_load_safe_path_vec_update): Call substitute_path_component for
5576 each component. New variable ddir_subst.
5577 (auto_load_gdb_datadir_changed): New function.
5578 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5579 AUTO_LOAD_SAFE_PATH. New comment.
5580 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5581 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5582 * config.in: Regenerate.
5583 * configure: Regenerate.
5584 * configure.ac (--auto-load-safe-path): Rename
5585 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5586 GDB_DATADIR/auto-load.
5587 * defs.h (substitute_path_component): New declaration.
5588 * top.c: Include observer.h.
5589 (set_gdb_datadir): New function.
5590 (init_main): Install it for "set data-directory".
5591 * utils.c (substitute_path_component): New function.
5593 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5595 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5596 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5597 DEBUG_FILE_DIRECTORY. Handle multiple components of
5598 DEBUG_FILE_DIRECTORY.
5600 2012-05-10 Tom Tromey <tromey@redhat.com>
5602 * dwarf2read.c (recursively_write_psymbols): New function.
5603 (write_psymtabs_to_index): Use it.
5605 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5607 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5608 (load_partial_comp_unit): Update.
5609 (queue_comp_unit): Add argument 'pretend_language'.
5610 (process_queue): Update.
5611 (psymtab_to_symtab_1): Skip dependencies that have a user.
5612 (load_partial_comp_unit_reader): Give meaning to the 'data'
5614 (load_full_comp_unit): Add 'pretend_language' argument.
5615 (process_full_comp_unit): Add 'pretend_language' argument. Set
5617 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5619 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5620 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5622 (prepare_one_comp_unit): Add 'pretend_language' argument.
5624 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5625 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5626 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5627 (dw2_do_instantiate_symtab): Check whether symtab was read in
5629 (dw2_instantiate_symtab): Add assertion. Call
5630 process_cu_includes.
5631 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5632 (partial_symtab_p): New typedef.
5633 (set_partial_user): New function.
5634 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5635 (scan_partial_symbols): Add imported CU to imported_symtabs.
5636 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5637 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5638 (get_symtab, recursively_compute_inclusions)
5639 (compute_symtab_includes, process_cu_includes)
5640 (process_imported_unit_die): New functions.
5641 (process_die) <DW_TAG_imported_unit>: New case.
5642 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5644 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5646 (struct partial_die_info) <locdesc>: Remove.
5648 (process_psymtab_comp_unit): Add 'read_partial' argument.
5650 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5651 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5652 (add_partial_symbol): Update.
5653 (process_die): Handle DW_TAG_partial_unit.
5654 (read_file_scope): Update comment.
5655 (load_partial_dies): Handle DW_TAG_imported_unit.
5656 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5657 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5659 2012-05-10 Tom Tromey <tromey@redhat.com>
5661 * cc-with-dwz.sh: New file.
5663 2012-05-10 Tom Tromey <tromey@redhat.com>
5665 * symtab.h (struct symtab) <includes, user>: New fields.
5666 * block.h (struct block_iterator) <d, idx, which>: New fields.
5667 * block.c (initialize_block_iterator, find_iterator_symtab)
5668 (block_iterator_step, block_iter_name_step)
5669 (block_iter_match_step): New functions.
5670 (block_iterator_first, block_iterator_next)
5671 (block_iter_name_first, block_iter_name_next)
5672 (block_iter_match_first, block_iter_match_next): Rewrite.
5673 (get_block_symtab): New function.
5675 2012-05-10 Tom Tromey <tromey@redhat.com>
5677 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5679 * jit.c (finalize_symtab): Use allocate_global_block,
5681 * buildsym.c (finish_block_internal): New function, from old
5683 (finish_block): Rewrite.
5684 (end_symtab): Use finish_block_internal, set_block_symtab.
5685 * block.h (struct global_block): New.
5686 (allocate_global_block, set_block_symtab): Declare.
5687 * block.c (allocate_global_block, set_block_symtab): New
5690 2012-05-10 Tom Tromey <tromey@redhat.com>
5692 * psymtab.c (partial_map_expand_apply): Add assertion.
5693 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5694 (psymtab_to_symtab): Find unshared psymtab.
5695 (dump_psymtab): Print including psymtabs.
5696 (recursively_search_psymtabs): New function.
5697 (expand_symtabs_matching_via_partial): Use it.
5698 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5700 (enum psymtab_search_status): New.
5702 2012-05-10 Tom Tromey <tromey@redhat.com>
5704 * tracepoint.c (scope_info): Update.
5705 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5706 (find_pc_sect_symtab, search_symbols)
5707 (default_make_symbol_completion_list_break_on)
5708 (make_file_symbol_completion_list): Update.
5709 * symmisc.c (dump_symtab_1): Update.
5710 * stack.c (print_frame_args, iterate_over_block_locals)
5711 (print_frame_labels, iterate_over_block_arg_vars): Update.
5712 * python/py-block.c (block_object) <dict>: Remove.
5714 <iter>: Change type.
5715 (blpy_iter): Update.
5716 (blpy_block_syms_iternext): Update.
5717 * psymtab.c (map_block): Use block iterators.
5718 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5719 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5720 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5721 * infrun.c (check_exception_resume): Update.
5722 * cp-support.c (make_symbol_overload_list_block): Update.
5723 * coffread.c (patch_opaque_types): Update.
5724 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5725 * block.h (struct block_iterator): New.
5726 (block_iterator_first, block_iterator_next, block_iter_name_first)
5727 (block_iter_name_next, block_iter_match_first)
5728 (block_iter_match_next): Declare.
5729 (ALL_BLOCK_SYMBOLS): Redefine.
5730 * block.c (block_iterator_first, block_iterator_next)
5731 (block_iter_name_first, block_iter_name_next)
5732 (block_iter_match_first, block_iter_match_next): New functions.
5733 * ada-lang.c (ada_add_block_symbols)
5734 (ada_make_symbol_completion_list): Use block iterator.
5736 2012-05-10 Tom Tromey <tromey@redhat.com>
5738 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5739 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5740 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5741 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5742 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5745 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5747 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5748 print-file-var-lib2.c, print-file-var-main.c and
5749 print-file-var.exp (located in gdb/testsuite/gdb.base).
5751 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5753 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5754 try locating the symbol in the symbol's own objfile first, before
5755 extending the search to all objfiles.
5756 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5757 out of lookup_symbol_aux_symtabs.
5758 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5759 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5760 Do not search EXCLUDE_OBJFILE.
5761 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5762 (lookup_symbol_global): Search for matches in the block's objfile
5763 first, before searching all other objfiles.
5765 2012-05-10 Tristan Gingold <gingold@adacore.com>
5767 * printcmd.c (set_command): Add pre/post inc/dec.
5769 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5771 * gdb.1: Document -ex option.
5773 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5775 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5776 * inferior.h (AT_SYMBOL): Delete.
5778 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5780 * mips-tdep.c (mips_push_dummy_code): New function.
5781 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5782 ON_STACK and install mips_push_dummy_code as our gdbarch
5783 push_dummy_code routine.
5785 2012-05-09 Pedro Alves <palves@redhat.com>
5787 * target.c (set_maintenance_target_async_permitted): Rename to ...
5788 (set_target_async_command): ... this.
5789 (show_maintenance_target_async_permitted): Rename to ...
5790 (show_target_async_command): ... this.
5791 (initialize_targets): Adjust.
5793 2012-05-08 Doug Evans <dje@google.com>
5795 * go-exp.y (classify_name): Add missing assignment of fields of
5798 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5800 Display the ">" prompt in interactive mode while reading canned
5801 commands, even when the current interpreter is MI.
5803 * interps.c (interp_set_temp): New function.
5805 * interps.h (interp_set_temp): Add prototype.
5807 * cli/cli-script.c (restore_interp): New cleanup function.
5808 (read_command_lines): Temporarily override the current interpreter
5809 with CLI and arrange for restoring the original one.
5811 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5813 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5815 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5817 * probe.c (parse_probes): Move conditional to check for
5818 debuginfo files from here...
5819 * stap-probe.c (stap_get_probes): ... to here.
5821 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5822 H.J. Lu <hongjiu.lu@intel.com>
5824 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5825 `movl %esp, %ebp' for the X32 ABI.
5827 2012-05-07 Tom Tromey <tromey@redhat.com>
5829 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5831 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5832 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5833 (dwarf_stack_op_name): Remove.
5834 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5835 (decode_locdesc): Use get_DW_OP_name.
5836 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5837 (dwarf2_compile_expr_to_ax): Likewise.
5838 (disassemble_dwarf_expression): Likewise.
5839 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5841 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5843 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5844 (sh_linux_sigtramp_cache): New function.
5845 (sh_linux_sigreturn_init): New function.
5846 (sh_linux_rt_sigreturn_init): New function.
5847 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5849 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5851 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5852 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5853 (sh_linux_init_abi): Add init calls to register new tramp_frame
5854 definitions under 32-bit SH, update comments.
5856 2012-05-07 Pedro Alves <palves@redhat.com>
5860 * amd64-linux-tdep.c: Include glibc-tdep.h.
5861 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5862 gdbarch_skip_solib_resolver callback.
5864 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5866 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5867 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5868 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5869 (add_auto_load_safe_path): Change the error message.
5870 (_initialize_auto_load): Change the "safe-path" help text.
5871 * configure: Regenerate
5872 * configure.ac (--without-auto-load-safe-path): Set
5873 WITH_AUTO_LOAD_SAFE_PATH to /.
5875 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5877 * stap-probe.h: Do not include unecessary `probe.h'.
5879 2012-05-05 Alan Modra <amodra@gmail.com>
5881 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5882 bfd_und_section_ptr.
5883 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5884 and bfd_com_section_ptr.
5886 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5888 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5890 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5892 * windows-nat.h (segment_register_p_ftype): New typedef.
5893 (windows_set_segment_register_p): Add declaration.
5894 * windows-nat.c (segment_register_p): New static global.
5895 (windows_set_segment_register_p): New function.
5896 (do_windows_fetch_inferior_registers): Add special handling
5897 for segment registers.
5898 * amd64-windows-nat.c: #include "amd64-tdep.h".
5899 (amd64_windows_segment_register_p): New function.
5900 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5901 * i386-windows-nat.c: #include "i386-tdep.h".
5902 (i386_windows_segment_register_p): New function.
5903 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5905 2012-05-04 Tristan Gingold <gingold@adacore.com>
5907 * printcmd.c (set_command): Emit a warning if the expression is not
5910 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5912 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5915 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5917 * stap-probe.c (stap_is_operator): Change declaration.
5918 (stap_get_opcode): Change return value.
5919 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5920 `stap_parse_argument_1'.
5922 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5924 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5927 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5929 Add two new methods global_block and static_block to gdb.Symtab
5931 * NEWS (Python scripting): Add entry about the new methods.
5932 * python/py-symtab.c (stpy_global_block): New function which
5933 implements the gdb.Symtab.global_block() method.
5934 (stpy_static_block): New function which implements the
5935 gdb.Symtab.static_block() method.
5936 (symtab_object_methods): Add entries for the two new methods.
5938 2012-05-03 Doug Evans <dje@google.com>
5940 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5943 2012-05-03 Yao Qi <yao@codesourcery.com>
5945 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5947 (i386_process_record): Ditto.
5949 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5951 * infcall.c (unwind_on_signal_p): Make static.
5953 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5955 * sol-thread.c (solaris_pid_to_str): Make static.
5956 (_initialize_sol_thread): Add prototype.
5958 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5960 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5962 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5964 * MAINTAINERS: Remove myself.
5966 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5968 Fix --without-auto-load-safe-path for MS-Windows host platform.
5969 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5971 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5973 * gdb_curses.h: Undefine KEY_EVENT before including curses
5974 headers. Move "#undef MOUSE_MOVED" before any curses header
5977 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5979 * features/i386/i386-mmx-linux.c: Regenerate.
5980 * features/rs6000/powerpc-32.c: Likewise.
5981 * features/rs6000/powerpc-32l.c: Likewise.
5982 * features/rs6000/powerpc-403.c: Likewise.
5983 * features/rs6000/powerpc-403gc.c: Likewise.
5984 * features/rs6000/powerpc-405.c: Likewise.
5985 * features/rs6000/powerpc-505.c: Likewise.
5986 * features/rs6000/powerpc-601.c: Likewise.
5987 * features/rs6000/powerpc-602.c: Likewise.
5988 * features/rs6000/powerpc-603.c: Likewise.
5989 * features/rs6000/powerpc-604.c: Likewise.
5990 * features/rs6000/powerpc-64.c: Likewise.
5991 * features/rs6000/powerpc-64l.c: Likewise.
5992 * features/rs6000/powerpc-750.c: Likewise.
5993 * features/rs6000/powerpc-860.c: Likewise.
5994 * features/rs6000/powerpc-e500.c: Likewise.
5995 * features/rs6000/powerpc-e500l.c: Likewise.
5996 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5997 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5998 * features/rs6000/rs6000.c: Likewise.
6000 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6002 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6004 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6005 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6006 (stap_parse_argument) <e>: Likewise.
6007 (handle_stap_probe) <byte_order>: Likewise.
6009 2012-04-30 Doug Evans <dje@google.com>
6011 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6012 init_and_read_dies_worker. All callers updated.
6013 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6014 replaced with init_cutu_and_read_dies.
6015 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6016 (find_partial_die): Remove FIXME. Don't free current CU.
6018 2012-04-30 Sterling Augustine <saugustine@google.com>
6020 * contrib: New directory.
6021 * contrib/test_pubnames_and_indexes.py: New file.
6023 2012-04-30 Doug Evans <dje@google.com>
6025 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6026 All callers updated.
6027 (init_cu_die_reader): Verify the section is non-empty.
6028 (dwarf_decode_line_header): Don't dereference section->asection
6029 until we know the section is present.
6031 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6033 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6036 2012-04-29 Yao Qi <yao@codesourcery.com>
6038 * gdb-code-style.el: New hook gdb-markup-hook
6039 and gdb-comment-hook.
6041 2012-04-28 Doug Evans <dje@google.com>
6043 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6044 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6046 * symfile.h (dwarf2_debug_sections): New member addr.
6047 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6048 (ctx_no_get_addr_index): New function.
6049 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6050 (ctx_no_get_addr_index): Declare.
6051 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6052 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6053 (dwarf_expr_ctx_funcs): Update.
6054 (needs_get_addr_index): New function.
6055 (needs_frame_ctx_funcs): Update.
6056 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6057 * dwarf2read.c: #include "gdbcore.h".
6058 (dwarf2_per_objfile): New members addr, dwo_files.
6059 (dwarf2_elf_names): Add entry for addr.
6060 (struct dwo_section_names): New type.
6061 (dwo_section_names): New static global.
6062 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6063 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6064 old debug_types_section member updated to use this.
6065 Rename member debug_types_section to info_or_types_section,
6067 (signatured_type): Rename member type_offset to type_offset_in_tu,
6068 all uses updated. New member type_offset_in_section.
6069 (struct dwo_sections): New type.
6070 (struct dwo_unit): New type.
6071 (struct dwo_file): New type.
6072 (die_reader_specs): New member dwo_file.
6073 (dwarf2_locate_sections): Watch for .debug_addr.
6074 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6075 (dwarf2_read_section): Get bfd of section from bfd's asection,
6077 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6078 (create_signatured_type_table_from_index): Initialize
6079 sig_type->info_or_types_section.
6080 (dw2_get_file_names): Statement lists for type units with DWO files
6081 live in the DWO file.
6082 (create_debug_types_hash_table): New function.
6083 (create_all_type_units): Rewrite.
6084 (init_cu_die_reader): New arg dwo_file, all callers updated.
6085 (init_and_read_dies_worker): Get section from
6086 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6087 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6088 continue reading the CU/TU from there.
6089 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6090 updated. Get section from this_cu->info_or_types_section.
6091 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6092 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6093 DW_FORM_GNU_str_index.
6094 (hash_dwo_file, eq_dwo_file): New functions.
6095 (allocate_dwo_file_hash_table): New function.
6096 (hash_dwo_unit, eq_dwo_unit): New functions.
6097 (allocate_dwo_unit_table): New function.
6098 (dwarf2_locate_dwo_sections): New function.
6099 (struct create_dwo_info_table_data): New type.
6100 (create_debug_info_hash_table_reader): New function.
6101 (create_debug_info_hash_table): New function.
6102 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6103 (lookup_dwo_file): New function.
6104 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6105 (free_dwo_file, free_dwo_file_cleanup): New functions.
6106 (free_dwo_file_from_slot, free_dwo_files): New functions.
6107 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6108 (dwarf2_record_block_ranges): Ditto.
6109 (read_partial_die): Ditto.
6110 (process_enumeration_scope): Update to use type_offset_in_section.
6111 (read_full_die_1): New function.
6112 (read_full_die): Rewrite.
6113 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6114 DW_FORM_GNU_str_index.
6115 (read_addr_index_1, read_addr_index): New functions.
6116 (read_addr_index_from_leb128): New function.
6117 (struct dwarf2_read_addr_index_data): New type.
6118 (dwarf2_read_addr_index_reader): New function.
6119 (dwarf2_read_addr_index): New function.
6120 (read_str_index): New function.
6121 (leb128_size): New function.
6122 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6123 If processing a type unit from a DWO file, get the line section
6125 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6126 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6127 DW_FORM_GNU_str_index.
6128 (lookup_die_type): Check whether section offset of type's die is
6129 known before looking it up. Remove assert. Condition can
6130 legimately happen for inter-cu type references.
6131 (dwarf_attr_name): Handle Fission attributes.
6132 (dwarf_form_name): Handle Fission forms.
6133 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6134 DW_FORM_GNU_str_index.
6135 (follow_die_sig): Update to use type_offset_in_section.
6136 (decode_locdesc): New case DW_OP_GNU_addr_index.
6137 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6138 DW_FORM_GNU_str_index.
6139 (cu_debug_loc_section): New function.
6140 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6141 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6142 Free DWO files if present.
6143 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6145 Refactor DIE reading.
6146 * dwarf2read.c (dwarf2_per_objfile): Replace members
6147 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6148 (die_reader_specs): New member "die_section". Temporarily make
6149 member "buffer" non-const, pending constifying all info_ptr uses.
6150 (die_reader_func_ftype): New typedef.
6151 (dw2_get_file_names_reader): New function.
6152 (dw2_get_file_names): Rewrite.
6153 (read_and_check_type_unit_head): Rename arg type_offset to
6155 (create_all_type_units): Improve debugging message.
6156 Improve dummy type unit check.
6157 (init_cu_die_reader): New arg "section". All callers updated.
6158 (init_and_read_dies_worker): New function.
6159 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6160 (init_cutu_and_read_dies_no_follow): New function.
6161 (init_cutu_and_read_dies_simple): New function.
6162 (process_psymtab_comp_unit_reader): New function.
6163 (process_psymtab_comp_unit): Delete args section,
6164 is_debug_types_section. Rewrite. All callers updated.
6165 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6166 All callers updated. Rewrite.
6167 (load_partial_comp_unit_reader): New function.
6168 (load_partial_comp_unit): Rewrite.
6169 (skip_children): New arg reader. Delete args buffer, cu.
6170 All callers updated.
6171 (skip_one_die): New arg reader. Delete args buffer, cu.
6172 All callers updated.
6173 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6174 All callers updated.
6175 (load_full_comp_unit_reader): New function.
6176 (load_full_comp_unit): Rewrite.
6177 (read_comp_unit): Delete.
6178 (read_die_and_children_1): Delete, contents moved ...
6179 (read_die_and_children): ... here.
6180 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6181 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6182 All callers updated.
6183 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6184 All callers updated.
6185 (find_partial_die): Rewrite load_all_dies support.
6186 (read_attribute_value): New arg reader. Delete args abfd, cu.
6187 All callers updated.
6188 (read_attribute): New arg reader. Delete args abfd, cu.
6189 All callers updated.
6190 (load_full_type_unit): Add assert.
6191 (read_signatured_type_reader): New function.
6192 (read_signatured_type): Rewrite.
6193 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6194 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6195 All callers updated. Set per_cu->cu = NULL after freeing it.
6196 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6197 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6198 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6199 (set_die_type): Update.
6200 (get_die_type_at_offset): Update.
6201 (read_file_scope): Call prepare_one_comp_unit.
6202 (read_type_unit_scope): Ditto.
6203 (prepare_one_comp_unit): Set producer if present.
6205 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6207 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6208 gettext function on `error'.
6210 2012-04-27 Doug Evans <dje@google.com>
6212 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6215 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6216 Tom Tromey <tromey@redhat.com>
6218 * breakpoint.c (struct breakpoint_objfile_data)
6219 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6220 <exception_probes>: New fields.
6221 (free_breakpoint_probes): New function.
6222 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6223 `_Unwind_DebugHook'.
6224 (create_exception_master_breakpoint): Likewise.
6225 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6226 * infrun.c: Including necessary header files for handling SystemTap
6228 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6229 via SystemTap probes.
6230 (check_exception_resume): Remove `func' argument. Handle exception
6231 unwinding breakpoint set via a SystemTap probe.
6232 (insert_exception_resume_from_probe): New function.
6234 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6235 Tom Tromey <tromey@redhat.com>
6236 Jan Kratochvil <jan.kratochvil@redhat.com>
6238 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6239 (COMMON_OBS): Likewise.
6240 (HFILES_NO_SRCDIR): Add `probe'.
6241 * NEWS: Mention support for static and SystemTap probes.
6242 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6243 SystemTap probes' arguments parser.
6244 * arm-linux-tdep.c: Including headers needed to perform the parsing
6245 of SystemTap probes' arguments.
6246 (arm_stap_is_single_operand): New function.
6247 (arm_stap_parse_special_token): Likewise.
6248 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6249 probes' arguments parser.
6250 * ax-gdb.c (require_rvalue): Removing static declaration.
6251 (gen_expr): Likewise.
6252 * ax-gdb.h (gen_expr): Declaring function.
6253 (require_rvalue): Likewise.
6254 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6255 (bkpt_probe_breakpoint_ops): New variable.
6256 (momentary_breakpoint_from_master): Set the `probe' value.
6257 (add_location_to_breakpoint): Likewise.
6258 (break_command_1): Using proper breakpoint_ops according to the
6259 argument passed by the user in the command line.
6260 (bkpt_probe_insert_location): New function.
6261 (bkpt_probe_remove_location): Likewise.
6262 (bkpt_probe_create_sals_from_address): Likewise.
6263 (bkpt_probe_decode_linespec): Likewise.
6264 (tracepoint_probe_create_sals_from_address): Likewise.
6265 (tracepoint_probe_decode_linespec): Likewise.
6266 (tracepoint_probe_breakpoint_ops): New variable.
6267 (trace_command): Using proper breakpoint_ops according to the
6268 argument passed by the user in the command line.
6269 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6270 static probes on breakpoints and tracepoints.
6271 * breakpoint.h (struct bp_location) <probe>: New field.
6272 * cli-utils.c (skip_spaces_const): New function.
6273 (extract_arg): Likewise.
6274 * cli-utils.h (skip_spaces_const): Likewise.
6275 (extract_arg): Likewise.
6276 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6277 * configure.ac: Append `stap-probe.o' to be generated when ELF
6279 * configure: Regenerate.
6280 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6281 * elfread.c: Include `probe.h' and `arch-utils.h'.
6282 (probe_key): New variable.
6283 (elf_get_probes): New function.
6284 (elf_get_probe_argument_count): Likewise.
6285 (elf_evaluate_probe_argument): Likewise.
6286 (elf_compile_to_ax): Likewise.
6287 (elf_symfile_relocate_probe): Likewise.
6288 (stap_probe_key_free): Likewise.
6289 (elf_probe_fns): New variable.
6290 (elf_sym_fns): Add `sym_probe_fns' value.
6291 (elf_sym_fns_lazy_psyms): Likewise.
6292 (elf_sym_fns_gdb_index): Likewise.
6293 (_initialize_elfread): Initialize objfile cache for static
6295 * gdb_vecs.h (struct probe): New forward declaration.
6296 (probe_p): New VEC declaration.
6297 * gdbarch.c: Regenerate.
6298 * gdbarch.h: Regenerate.
6299 * gdbarch.sh (stap_integer_prefix): New variable.
6300 (stap_integer_suffix): Likewise.
6301 (stap_register_prefix): Likewise.
6302 (stap_register_suffix): Likewise.
6303 (stap_register_indirection_prefix): Likewise.
6304 (stap_register_indirection_suffix): Likewise.
6305 (stap_gdb_register_prefix): Likewise.
6306 (stap_gdb_register_suffix): Likewise.
6307 (stap_is_single_operand): New function.
6308 (stap_parse_special_token): Likewise.
6309 (struct stap_parse_info): Forward declaration.
6310 * i386-tdep.c: Including headers needed to perform the parsing
6311 of SystemTap probes' arguments.
6312 (i386_stap_is_single_operand): New function.
6313 (i386_stap_parse_special_token): Likewise.
6314 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6315 probes' arguments parser.
6316 * i386-tdep.h (i386_stap_is_single_operand): New function.
6317 (i386_stap_parse_special_token): Likewise.
6318 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6319 * mipsread.c (ecoff_sym_fns): Likewise.
6320 * objfiles.c (objfile_relocate1): Support relocation for static
6322 * parse.c (prefixify_expression): Remove static declaration.
6323 (initialize_expout): Likewise.
6324 (reallocate_expout): Likewise.
6325 * parser-defs.h (initialize_expout): Declare function.
6326 (reallocate_expout): Likewise.
6327 (prefixify_expression): Likewise.
6328 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6329 of SystemTap probes' arguments.
6330 (ppc_stap_is_single_operand): New function.
6331 (ppc_stap_parse_special_token): Likewise.
6332 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6333 probes' arguments parser.
6334 * probe.c: New file, for generic statically defined probe support.
6335 * probe.h: Likewise.
6336 * s390-tdep.c: Including headers needed to perform the parsing of
6337 SystemTap probes' arguments.
6338 (s390_stap_is_single_operand): New function.
6339 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6340 probes' arguments parser.
6341 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6342 * stap-probe.c: New file, for SystemTap probe support.
6343 * stap-probe.h: Likewise.
6344 * symfile.h: Include `gdb_vecs.h'.
6345 (struct sym_probe_fns): New struct.
6346 (struct sym_fns) <sym_probe_fns>: New field.
6347 * symtab.c (init_sal): Initialize `probe' field.
6348 * symtab.h (struct probe): Forward declaration.
6349 (struct symtab_and_line) <probe>: New field.
6350 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6352 (stop_tracing): Likewise.
6353 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6355 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6356 Tom Tromey <tromey@redhat.com>
6358 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6359 and to compile agent expressions.
6360 * infrun.c (siginfo_make_value): New argument `ignore'.
6361 (siginfo_funcs): New struct.
6362 (_initialize_infrun): New argument when calling
6363 `create_internalvar_type_lazy'.
6364 * thread.c (thread_id_make_value): New argument `ignore'.
6365 (thread_funcs): New struct.
6366 (_initialize_thread): New argument when calling
6367 `create_internalvar_type_lazy'.
6368 * tracepoint.c (sdata_make_value): New argument `ignore'.
6369 (sdata_funcs): New struct.
6370 (_initialize_tracepoint): New argument when calling
6371 `create_internalvar_type_lazy'.
6372 * value.c (make_value): New struct.
6373 (create_internalvar_type_lazy): New argument `data'.
6374 (compile_internalvar_to_ax): New function.
6375 (value_of_internalvar): Properly handling `make_value' case.
6376 (clear_internalvar): Likewise.
6377 (show_convenience): Adding `TRY_CATCH' block.
6378 * value.h (internalvar_make_value): Delete, replace by...
6379 (struct internalvar_funcs): ... this.
6380 (create_internalvar_type_lazy) <fun>: Delete argument.
6381 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6382 (compile_internalvar_to_ax): New function.
6383 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6384 (tlb_funcs): New struct.
6385 (_initialize_windows_tdep): New argument when calling
6386 `create_internalvar_type_lazy'.
6388 2012-04-27 Mark Wielaard <mjw@redhat.com>
6390 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6391 see whether it is an address or a constant offset from DW_AT_low_pc.
6392 (dwarf2_record_block_ranges): Likewise.
6393 (read_partial_die): Likewise.
6395 2012-04-26 Mark Wielaard <mjw@redhat.com>
6397 * MAINTAINERS (Write After Approval): Add myself to the list.
6399 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6401 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6402 (proc_prettyprint_signal): Likewise.
6403 (proc_prettyprint_faultset): Likewise.
6404 (proc_prettyprint_fault): Likewise.
6405 (proc_prettyprint_actionset): Likewise.
6406 (proc_prettyprint_flags): Move to new proc-flags.c section.
6407 (proc_prettyfprint_flags): New prototype.
6408 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6409 (proc_syscall, proc_cursig): Likewise.
6410 (proc_set_kill_on_last_close): Likewise.
6411 (proc_unset_kill_on_last_close): Likewise.
6412 (proc_set_watchpoint): Make static.
6413 (proc_delete_dead_threads): Likewise.
6414 (procfs_set_watchpoint): Likewise.
6415 (_initialize_procfs): Add prototype.
6416 * proc-events.c: Include proc-utils.h.
6417 (init_syscall_table): Make static.
6418 * proc-api.c (_initialize_proc_api): Add prototype.
6419 * proc-flags.c: Include proc-utils.h.
6421 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6423 * configure.ac: Add AC_ARG_PROGRAM.
6424 * configure: Regenerate.
6426 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6428 Fix DW_AT_lower_bound defaults for DWARF-4+.
6429 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6430 high. New variable low_default_is_valid. Implement DWARF-4+
6431 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6432 no default by the DWARF standard.
6434 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6435 Maciej W. Rozycki <macro@codesourcery.com>
6437 * infrun.c (handle_inferior_event): Move the check for return
6438 trampolines ahead of the check for function trampolines.
6439 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6440 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6441 (mips_str_mips16_ret_stub): Likewise.
6442 (mips_str_call_fp_stub): Likewise.
6443 (mips_str_call_stub): Likewise.
6444 (mips_str_fn_stub): Likewise.
6445 (mips_str_pic): Likewise.
6446 (mips_in_frame_stub): New function.
6447 (mips_unwind_pc): Return the return address rather than the PC
6448 if the PC of an intermediate frame is inside a call thunk.
6449 (mips_is_stub_suffix): New function.
6450 (mips_is_stub_mode): Likewise.
6451 (mips_get_mips16_fn_stub_pc): Likewise.
6452 (mips_skip_mips16_trampoline_code): Update to handle all the
6453 currently generated stub types. Don't recurse into __fn_stub
6454 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6455 Use cooked register accesses.
6456 (mips_in_return_stub): Reintroduce function.
6457 (mips_skip_trampoline_code): Traverse trampolines recursively.
6458 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6460 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6464 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6466 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6467 * features/arm-with-m-vfp-d16.xml: New file. Describes
6468 Cortex-M with VFPv4-sp-d16 FPU register layout.
6469 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6470 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6471 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6472 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6473 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6475 2012-04-25 Doug Evans <dje@google.com>
6477 * cli/cli-decode.c (print_doc_line): Use stream instead of
6480 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6482 * features/arm-with-iwmmxt.c: Regenerate.
6483 * features/arm-with-m-fpa-layout.c: Likewise.
6484 * features/arm-with-m.c: Likewise.
6485 * features/arm-with-neon.c: Likewise.
6486 * features/arm-with-vfpv2.c: Likewise.
6487 * features/arm-with-vfpv3.c: Likewise.
6488 * features/mips-dsp-linux.c: Likewise.
6489 * features/mips-linux.c: Likewise.
6490 * features/mips64-dsp-linux.c: Likewise.
6491 * features/mips64-linux.c: Likewise.
6492 * features/s390-linux32.c: Likewise.
6493 * features/s390-linux32v1.c: Likewise.
6494 * features/s390-linux32v2.c: Likewise.
6495 * features/s390-linux64.c: Likewise.
6496 * features/s390-linux64v1.c: Likewise.
6497 * features/s390-linux64v2.c: Likewise.
6498 * features/s390x-linux64.c: Likewise.
6499 * features/s390x-linux64v1.c: Likewise.
6500 * features/s390x-linux64v2.c: Likewise.
6501 * features/tic6x-c62x-linux.c: Likewise.
6502 * features/tic6x-c62x.c: Likewise.
6503 * features/tic6x-c64x-linux.c: Likewise.
6504 * features/tic6x-c64x.c: Likewise.
6505 * features/tic6x-c64xp-linux.c: Likewise.
6506 * features/tic6x-c64xp.c: Likewise.
6507 * target-descriptions.c: Only generate `field_type' and `type'
6508 variables when needed.
6510 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6512 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6514 2012-04-25 Doug Evans <dje@google.com>
6516 Initial pass at Go language support.
6518 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6520 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6521 (YYFILES): Add go-exp.c.
6522 (YYOBJ): Add go-exp.o.
6523 (local-maintainer-clean): Delete go-exp.c.
6524 * defs.h (enum language): Add language_go.
6525 * dwarf2read.c: #include "go-lang.h".
6526 (fixup_go_packaging): New function.
6527 (process_full_comp_unit): Call it when processing Go CUs.
6528 (dwarf2_physname): Add Go support.
6529 (read_file_scope): Handle missing language spec for GNU Go.
6530 (set_cu_language): Handle DW_LANG_Go.
6531 * go-exp.y: New file.
6532 * go-lang.h: New file.
6533 * go-lang.c: New file.
6534 * go-typeprint.c: New file.
6535 * go-valprint.c: New file.
6536 * symtab.c: #include "go-lang.h".
6537 (symbol_set_language): Handle language_go.
6538 (symbol_find_demangled_name, symbol_set_names): Ditto.
6539 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6541 2012-04-24 Jim Meyering <meyering@redhat.com>
6543 avoid a few strncpy-induced buffer overruns
6544 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6545 fname and psargs before trying to concatenate.
6546 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6547 "name" before applying strchr.
6549 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6551 * CONTRIBUTE: Use unified diff instead of context diff when
6554 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6556 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6557 code. Handle JR.HB correctly.
6559 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6562 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6563 with the other MIPS16 helpers.
6565 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6567 * observer.sh: Conditionally declare `args', thus cleaning up
6568 unused instances of this variable.
6570 2012-04-24 Yao Qi <yao@codesourcery.com>
6572 Revert this patch to allow breakpoint always-inserted
6574 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6575 * breakpoint.c: Include record.h.
6576 (breakpoints_always_inserted_mode): Return false when the record
6579 * breakpoint.c (iterate_over_bp_locations): New.
6580 * breakpoint.h: Declare.
6581 New typedef walk_bp_location_callback.
6582 * record.c (record_open): Call record_init_record_breakpoints.
6583 (record_sync_record_breakpoints): New.
6584 (record_init_record_breakpoints): New.
6585 * NEWS: Mention supporting breakpoint always-inserted mode in
6588 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6590 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6593 2012-04-24 Yao Qi <yao@codesourcery.com>
6595 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6596 (is_catchpoint): ... it.
6597 (print_one_breakpoint_location): Caller update.
6598 * breakpoint.h: Update declaration.
6600 2012-04-23 David S. Miller <davem@davemloft.net>
6602 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6604 2012-04-23 Tom Tromey <tromey@redhat.com>
6606 * buildsym.c (add_free_pendings): Remove.
6607 * buildsym.h (add_free_pendings): Remove.
6609 2012-04-23 Doug Evans <dje@google.com>
6611 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6612 attr.u.unsnd instead of attr.u.addr.
6613 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6614 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6616 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6617 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6619 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6621 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6623 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6624 (mips_o32_return_value): Likewise.
6625 (mips_o64_return_value): Likewise.
6627 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6629 * ada-lang.c (ada_evaluate_subexp): Add cases for
6630 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6631 their treatment in eval.c.
6633 2012-04-21 David S. Miller <davem@davemloft.net>
6635 * sparc-tdep.c (X_DISP10): Define.
6636 (sparc_analyze_control_transfer): Handle compare-and-branch.
6638 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6640 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6641 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6643 2012-04-20 Nigel Stephens <nigel@mips.com>
6644 Maciej W. Rozycki <macro@codesourcery.com>
6646 * mips-tdep.c (mips_float_register_p): New function.
6647 (mips_convert_register_float_case_p): Use mips_float_register_p.
6648 (mips_register_type): Likewise.
6649 (mips_print_register): Likewise.
6650 (print_gp_register_row): Likewise.
6651 (mips_print_registers_info): Likewise.
6653 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6655 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6658 2012-04-20 Andrew Pinski <apinski@cavium.com>
6660 * MAINTAINERS (Write After Approval): Add myself to the list.
6662 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6664 * MAINTAINERS: Update my e-mail address.
6666 2012-04-20 Pedro Alves <palves@redhat.com>
6668 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6670 * configure: Regenerate.
6672 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6674 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6676 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6678 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6680 Fix compilation compatibility with python-2.4
6681 * python/py-type.c (convert_field): Cast ADDRSTRING for
6682 PyObject_SetAttrString as non-const. New comment.
6684 2012-04-19 Tom Tromey <tromey@redhat.com>
6686 * top.c (quit_target): Use all_cleanups.
6687 * main.c (captured_command_loop): Use all_cleanups.
6688 * exceptions.c (throw_exception): Use all_cleanups.
6690 2012-04-19 Pedro Alves <palves@redhat.com>
6692 * Makefile.in (GNULIB_BUILDDIR): New.
6693 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6694 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6695 (CLEANDIRS). Remove gnulib/import.
6696 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6698 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6699 (gnulib/import/Makefile): Replace gnulib/import with
6700 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6701 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6702 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6703 acx_configure_dir.m4.
6704 * acinclude.m4: Include acx_configure_dir.m4.
6705 * acx_configure_dir.m4: New file.
6706 * aclocal.m4: Regenerate.
6707 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6708 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6709 (GNULIB): New variable.
6710 (GNULIB_STDINT_H): Adjust.
6711 (AC_OUTPUT): Don't output gnulib/Makefile.
6712 * gdb/defs.h: Include build-gnulib/config.h.
6713 * aclocal.m4: Regenerate.
6714 * config.in: Regenerate.
6715 * configure: Regenerate.
6717 * gnulib/Makefile.in: New file.
6718 * gnulib/configure.ac: New file.
6719 * gnulib/aclocal.m4: New file.
6720 * gnulib/config.in: New file.
6721 * gnulib/configure: New file.
6722 * gnulib/: Re-run gnulib-tool to adjust.
6724 2012-04-19 Doug Evans <dje@google.com>
6726 * cleanups.h (struct cleanup): Move to cleanups.c.
6727 (make_cleanup_dtor_ftype): New typedef.
6728 (make_cleanup_dtor): Use it.
6729 (ALL_CLEANUPS): Replace with ...
6730 (all_cleanups): ... this. Declare. All uses updated.
6731 * cleanups.c: #include "gdb_assert.h".
6732 (sentinel_cleanup): New static global.
6733 (SENTINEL_CLEANUP): Define.
6734 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6735 (make_my_cleanup2): Assert result is non-NULL.
6736 (all_cleanups): New function.
6737 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6740 2012-04-19 Pedro Alves <palves@redhat.com>
6742 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6743 Adjust paths to gnulib imported files.
6745 2012-04-19 Pedro Alves <palves@redhat.com>
6747 * gnulib/: Move whole directory ...
6748 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6749 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6750 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6751 (aclocal_m4_deps): Adjust.
6752 * aclocal.m4: Regenerate.
6753 * configure: Regenerate.
6754 * configure.ac: Adjust AC_OUTPUT output.
6756 2012-04-19 Yao Qi <yao@codesourcery.com>
6758 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6760 * vec.c: Move it ...
6761 * common/vec.c: ... here.
6762 * vec.h: Move it ...
6763 * common/vec.h: ... here.
6765 2012-04-19 Yao Qi <yao@codesourcery.com>
6767 * gdb-code-style.el: New.
6769 2012-04-18 Pedro Alves <palves@redhat.com>
6771 Update gnulib from latest git.
6772 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6774 * gnulib/Makefile.am: Update.
6775 * gnulib/dummy.c: Update.
6776 * gnulib/extra/arg-nonnull.h: Update.
6777 * gnulib/extra/c++defs.h: Update.
6778 * gnulib/extra/update-copyright: Update.
6779 * gnulib/extra/warn-on-use.h: Update.
6780 * gnulib/inttypes.in.h: Update.
6781 * gnulib/m4/00gnulib.m4: Update.
6782 * gnulib/m4/extensions.m4: Update.
6783 * gnulib/m4/gnulib-cache.m4: Update.
6784 * gnulib/m4/gnulib-common.m4: Update.
6785 * gnulib/m4/gnulib-comp.m4: Update.
6786 * gnulib/m4/gnulib-tool.m4: Update.
6787 * gnulib/m4/include_next.m4: Update.
6788 * gnulib/m4/inttypes-pri.m4: Update.
6789 * gnulib/m4/inttypes.m4: Update.
6790 * gnulib/m4/longlong.m4: Update.
6791 * gnulib/m4/memchr.m4: Update.
6792 * gnulib/m4/memmem.m4: Update.
6793 * gnulib/m4/mmap-anon.m4: Update.
6794 * gnulib/m4/multiarch.m4: Update.
6795 * gnulib/m4/onceonly.m4: Update.
6796 * gnulib/m4/stddef_h.m4: Update.
6797 * gnulib/m4/stdint.m4: Update.
6798 * gnulib/m4/string_h.m4: Update.
6799 * gnulib/m4/warn-on-use.m4: Update.
6800 * gnulib/m4/wchar_h.m4: Update.
6801 * gnulib/m4/wchar_t.m4: Update.
6802 * gnulib/m4/wint_t.m4: Update.
6803 * gnulib/memchr.c: Update.
6804 * gnulib/memmem.c: Update.
6805 * gnulib/stddef.in.h: Update.
6806 * gnulib/stdint.in.h: Update.
6807 * gnulib/str-two-way.h: Update.
6808 * gnulib/string.in.h: Update.
6809 * gnulib/wchar.in.h: Update.
6811 * gnulib/extra/arg-nonnull.h: Delete.
6812 * gnulib/extra/c++defs.h: Delete.
6813 * gnulib/extra/warn-on-use.h: Delete.
6814 * gnulib/m4/wchar_h.m4: Delete.
6815 * gnulib/m4/wint_t.m4: Delete.
6816 * gnulib/wchar.in.h: Delete.
6818 * gnulib/extra/snippets/arg-nonnull.h: New.
6819 * gnulib/extra/snippets/c++defs.h: New.
6820 * gnulib/extra/snippets/warn-on-use.h: New.
6822 * aclocal.m4: Regenerate.
6823 * config.in: Regenerate.
6824 * configure: Regenerate.
6825 * gnulib/Makefile.in: Regenerate.
6827 2012-04-18 Pedro Alves <palves@redhat.com>
6829 Reimport the update-copyright module from gnulib
6830 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6832 * configure: Regenerate.
6833 * gnulib/Makefile.am: Update.
6834 * gnulib/Makefile.in: Regenerate.
6835 * gnulib/extra/update-copyright: Update.
6836 * gnulib/m4/gnulib-cache.m4: Update.
6837 * gnulib/m4/gnulib-comp.m4: Update.
6839 2012-04-18 Tristan Gingold <gingold@adacore.com>
6841 * configure.ac (aix): Put -lpthread into libs.
6842 * configure: Regenerate.
6844 2012-04-18 Tom Tromey <tromey@redhat.com>
6846 * linespec.c (convert_linespec_to_sals): Don't use
6848 (compare_msymbols): Arguments are minsym_and_objfile, not
6849 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6851 2012-04-18 Pedro Alves <palves@redhat.com>
6853 Revert gnulib/ part of:
6854 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6855 Copyright year update in most files (performed by copyright.sh).
6857 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6859 Fix 64-bit constants on 32-bit hosts.
6860 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6861 from unsigned long to ULONGEST.
6862 (read_signed_leb128): Change declaration return type from long to
6864 (dwarf2_const_value_attr): Change declaration parameter value from long
6866 (dwarf2_compute_name): Change variable value from long to LONGEST.
6867 (read_unsigned_leb128): Change return type, variable result and some
6868 casts from unsigned long to ULONGEST.
6869 (read_signed_leb128): Change return type, variable result and some
6870 casts from long to LONGEST.
6871 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6872 value from long to LONGEST.
6873 (dwarf2_const_value): Change variable value from long to LONGEST.
6874 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6875 plongest and hex_string.
6876 * symtab.h (struct general_symbol_info): Change ivalue from long to
6877 LONGEST, remove the comment.
6878 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6879 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6881 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6884 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6885 * ada-lang.c (ada_discrete_type_high_bound)
6886 (ada_discrete_type_low_bound): Fix function comment. Use
6887 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6888 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6889 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6890 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6891 Use TYPE_FIELD_ENUMVAL.
6892 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6893 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6894 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6895 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6897 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6898 * dwarf2read.c (process_enumeration_scope): Likewise.
6899 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6901 (class StructMainTypePrettyPrinter): Support also
6902 FIELD_LOC_KIND_ENUMVAL.
6903 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6905 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6906 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6907 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6908 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6910 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6911 accommodate enumval.
6912 (struct call_site): Adjust loc_kind to accommodate enumval.
6913 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6914 (TYPE_FIELD_ENUMVAL): New macros.
6915 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6916 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6918 * p-typeprint.c (pascal_type_print_base): Likewise.
6919 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6921 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6922 * python/py-type.c (convert_field): New variable addrstring. Use
6923 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6924 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6925 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6926 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6928 * valprint.c (generic_val_print): Likewise.
6930 2012-04-17 Doug Evans <dje@google.com>
6932 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6934 * dwarf2read.c: Whitespace fixes.
6935 (lookup_signatured_type): Tweak comment.
6936 (get_die_type_at_offset): Fix comment.
6938 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6940 * xcoffread.c (xcoff_secnum_to_sections): New function.
6941 (secnum_to_section, secnum_to_bfd_section): Reimplement
6942 using xcoff_secnum_to_sections. Rename "secnum" parameter
6944 (RECORD_MINIMAL_SYMBOL): Delete.
6945 (record_minimal_symbol): New function.
6946 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6947 by call to record_minimal_symbol and set misc_func_recorded
6948 to 1. Set last_csect_sec to the XCOFF section index instead
6949 of GDB's section_offset index. Update calls to
6950 prim_record_minimal_symbol_and_info to pass the BFD section
6953 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6955 * xcoffread.c (read_xcoff_symtab): Delete variables
6956 last_csect_val and last_csect_sec and associated code.
6958 2012-04-17 Doug Evans <dje@google.com>
6960 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6961 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6962 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6963 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6965 * cleanups.h: New file.
6966 * cleanups.c: New file.
6967 * Makefile.in (SFILES): Add cleanups.c.
6968 (HFILES_NO_SRCDIR): Add cleanups.h.
6969 (COMMON_OBS): Add cleanups.o.
6970 * defs.h (struct cleanup): Moved to cleanups.h.
6971 (do_cleanups,do_final_cleanups): Ditto.
6972 (discard_cleanups,discard_final_cleanups): Ditto
6973 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6974 (save_cleanups,save_final_cleanups): Ditto.
6975 (restore_cleanups,restore_final_cleanups): Ditto.
6976 (null_cleanup): Ditto.
6977 (make_my_cleanup,make_my_cleanup2): Ditto.
6978 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6979 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6980 (do_cleanups,do_final_cleanups): Ditto.
6981 (discard_cleanups,discard_final_cleanups): Ditto
6982 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6983 (save_cleanups,save_final_cleanups): Ditto.
6984 (restore_cleanups,restore_final_cleanups): Ditto.
6985 (null_cleanup): Ditto.
6986 (make_my_cleanup,make_my_cleanup2): Ditto.
6987 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6989 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6991 (make_cleanup_dyn_string_delete): Ditto.
6992 (make_cleanup_ui_file_delete): Ditto.
6993 (make_cleanup_ui_out_redirect_pop): Ditto.
6994 (make_cleanup_free_section_addr_info): Ditto.
6995 (make_cleanup_restore_integer): Ditto.
6996 (make_cleanup_unpush_target): Ditto.
6997 (make_cleanup_value_free_to_mark): Ditto.
6998 (make_cleanup_value_free): Ditto.
6999 (make_cleanup_free_so): Ditto.
7001 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7003 New option "set debug auto-load".
7004 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7005 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7006 (auto_load_safe_path_vec_update)
7007 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7009 (file_is_auto_load_safe): New parameters debug_fmt and ....
7010 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7011 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7012 caller by explanatory string.
7013 (_initialize_auto_load): Register "set debug auto-load".
7014 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7016 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7017 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7018 by explanatory string.
7019 * main.c (captured_main): Likewise.
7020 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7021 (source_section_scripts): Likewise.
7023 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7025 New option "set auto-load safe-path".
7026 * NEWS: New commands "set auto-load safe-path"
7027 and "show auto-load safe-path".
7028 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7029 (auto_load_safe_path, auto_load_safe_path_vec)
7030 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7031 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7032 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7033 (source_gdb_script_for_objfile): New variable is_safe. Call
7034 file_is_auto_load_safe. Return if it is not.
7035 (struct loaded_script): New field loaded.
7036 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7037 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7038 output "Missing" to "No".
7039 (_initialize_auto_load): New variable cmd. Initialize
7040 auto_load_safe_path. Register "set auto-load safe-path",
7041 "show auto-load safe-path" and "add-auto-load-safe-path".
7042 * auto-load.h (maybe_add_script): Add parameter loaded.
7043 (file_is_auto_load_safe): New declaration.
7044 * config.in: Regenerate.
7045 * configure: Regenerate.
7046 * configure.ac: New parameters --with-auto-load-safe-path
7047 and --without-auto-load-safe-path.
7048 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7049 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7050 * main.c (captured_main): Check file_is_auto_load_safe for
7052 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7053 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7054 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7057 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7059 auto-load: Implementation.
7060 * NEWS: New descriptions for "info auto-load",
7061 "info auto-load gdb-scripts", "info auto-load python-scripts",
7062 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7063 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7064 and "show auto-load-scripts". New description for "set auto-load",
7065 "show auto-load", "set auto-load gdb-scripts",
7066 "show auto-load gdb-scripts", "set auto-load python-scripts",
7067 "show auto-load python-scripts", "set auto-load local-gdbinit",
7068 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7069 "show auto-load libthread-db".
7070 * auto-load.c: Remove include python/python-internal.h. Add includes
7071 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7073 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7074 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7075 (gdbpy_global_auto_load): Rename to ...
7076 (global_auto_load): ... here.
7077 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7078 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7079 (script_language_gdb, source_gdb_script_for_objfile): New.
7080 (struct loaded_script): New field language.
7081 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7083 (maybe_add_script): Add parameter language. Drop redundant
7084 entry.full_path initialization. Initialize entry.language and
7086 (auto_load_objfile_script): Change parameter suffix to language.
7087 Remove the call of maybe_add_script.
7088 Call language->source_script_for_objfile.
7089 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7091 (collect_matching_scripts): Adjust it for
7092 struct collect_matching_scripts_data.
7093 (auto_load_info_scripts_pattern_nl): New variable.
7094 (info_auto_load_scripts): Rename to ...
7095 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7096 for struct collect_matching_scripts_data.
7097 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7098 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7099 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7100 (auto_load_info_cmdlist_get): New.
7101 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7102 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7103 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7104 "info auto-load local-gdbinit".
7105 * auto-load.h (struct script_language): New.
7106 (gdbpy_global_auto_load): Rename to ...
7107 (global_auto_load): ... here.
7108 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7109 (auto_load_local_gdbinit_loaded): New declarations.
7110 (maybe_add_script): New parameter language.
7111 (auto_load_objfile_script): Change parameter suffix to language.
7112 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7113 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7114 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7116 * linux-thread-db.c: Include auto-load.h and ctype.h.
7117 (auto_load_thread_db, show_auto_load_thread_db): New.
7118 (struct thread_db_info): New field filename.
7119 (delete_thread_db_info): Call xfree for FILENAME.
7120 (try_thread_db_load): Initialize FILENAME.
7121 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7122 if !AUTO_LOAD_THREAD_DB.
7123 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7124 (_initialize_thread_db): Install auto_load_thread_db
7125 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7126 as "info auto-load libthread-db".
7127 * main.c (captured_main): Rename gdbpy_global_auto_load to
7128 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7129 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7130 (print_gdb_help): Extend the help for 'local init file'.
7131 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7132 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7133 (auto_load_scripts): Rename to ...
7134 (auto_load_python_scripts): ... here, update the comment.
7135 (gdbpy_load_auto_script_for_objfile): New declaration.
7136 (show_auto_load_python_scripts, script_language_python)
7137 (gdbpy_load_auto_script_for_objfile): New.
7138 (source_section_scripts): Refactor the code.
7139 (load_auto_scripts_for_objfile): Rename to ...
7140 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7141 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7142 (info_auto_load_python_scripts): New.
7143 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7144 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7145 Register "set auto-load-scripts" as its deprecated alias. Register
7146 "info auto-load python-scripts". Register "info auto-load-scripts" as
7147 its deprecated alias.
7148 (load_auto_scripts_for_objfile): Rename to ...
7149 (gdbpy_load_auto_scripts_for_objfile): ... here.
7150 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7151 (gdbpy_load_auto_scripts_for_objfile): ... here.
7153 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7155 auto-load: Move files.
7156 * Makefile.in (SFILES): Add auto-load.c.
7157 (HFILES_NO_SRCDIR): Add auto-load.h.
7158 (COMMON_OBS): Add auto-load.o.
7159 (distclean): Change .gdbinit for gdb-gdb.gdb.
7160 * auto-load.c: New file, with parts from python/py-auto-load.c.
7161 * auto-load.h: New file, with parts from python/python.h.
7162 * configure: Regenerate.
7163 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7164 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7165 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7166 * main.c: Include auto-load.h.
7167 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7168 command.h, observer.h and progspace.h to auto-load.c. Add include
7170 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7171 (struct loaded_script, auto_load_pspace_data)
7172 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7173 (hash_loaded_script_entry, eq_loaded_script_entry)
7174 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7175 (maybe_add_script): Move to auto-load.c.
7176 (source_section_scripts): Change maybe_add_script parameters passing,
7177 use script_not_found_warning_print.
7178 (clear_section_scripts, auto_load_objfile_script)
7179 (auto_load_new_objfile, loaded_script_ptr)
7180 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7181 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7182 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7183 auto_load_new_objfile and info_auto_load_scripts initizations to
7185 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7187 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7190 * charset.c (find_charset_names): Remove variables ix and elt.
7191 Use free_char_ptr_vec.
7192 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7193 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7194 debugdir_end. New variable debugdir_len.
7195 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7196 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7198 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7199 and elt. Use free_char_ptr_vec.
7200 * source.c (add_path): Remove variables argv, arg and argv_index.
7201 New variables dir_vec, back_to, ix and name.
7202 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7203 make_cleanup_freeargv. Remove variable separator. Simplify the code
7204 no longer expecting DIRNAME_SEPARATOR.
7205 (openp): Remove variable p, p1 and len. New variables dir_vec,
7206 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7207 no longer expecting DIRNAME_SEPARATOR.
7208 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7209 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7211 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7212 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7213 (dirnames_to_char_ptr_vec): New functions.
7215 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7218 * source.c (add_path): Remove always true conditional 'p == 0' and
7219 unindent its code block.
7221 2012-04-17 Pedro Alves <palves@redhat.com>
7223 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7224 (FIELD_BITPOS_LVAL): ... this.
7225 (FIELD_BITPOS): New.
7226 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7227 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7228 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7230 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7232 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7233 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7234 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7237 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7239 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7240 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7241 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7242 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7243 * jv-lang.c (java_link_class_type): Likewise, once.
7244 * stabsread.c (read_enum_type): Likewise.
7246 2012-04-16 Yao Qi <yao@codesourcery.com>
7248 * common/agent.c (agent_run_command): Add one more parameter `len'.
7250 * common/agent.h: Update declaration.
7251 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7253 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7255 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7258 * value.c (value_actual_type): New function.
7259 * value.h (value_actual_type): New declaration.
7260 * varobj.c (update_type_if_necessary): New function.
7261 (varobj_create): Call value_actual_type instead of
7263 (install_dynamic_child): distinct changed and type changed MI variable
7265 (update_dynamic_varobj_children): Updated for install_dynamic_child
7266 change. All callers updated.
7267 (varobj_update): Support for MI variable object type change if
7268 the value changed and RTTI is used to determine the type.
7269 (create_child_with_value): Call value_actual_type instead of
7271 (adjust_value_for_child_access): Extended with a new parameter which
7272 specify whether the given value should be casted to enclosing type.
7273 All callers updated.
7275 2012-04-14 Yao Qi <yao@codesourcery.com>
7277 Import gnulib module inttypes from git
7278 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7279 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7280 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7281 gnulib/m4/inttypes-pri.m4
7282 * aclocal.m4, config.in, configure: Regenerated.
7283 * gnulib/Makefile.am: Update.
7284 * gnulib/Makefile.in: Update.
7285 * gnulib/m4/gnulib-cache.m4: Update.
7286 * gnulib/m4/gnulib-comp.m4: Update.
7287 * gnulib/inttypes.in.h: New.
7288 * gnulib/m4/inttypes-pri.m4: New.
7289 * gnulib/m4/inttypes.m4: New.
7291 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7293 * infrun.c (resume): Update PC address to the real PC after
7294 preparing to do displaced stepping.
7296 2012-04-12 Doug Evans <dje@google.com>
7298 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7299 All callers updated.
7301 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7303 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7305 2012-04-12 Doug Evans <dje@google.com>
7307 * dwarf2read.c (create_all_type_units): Renamed from
7308 create_debug_types_hash_table. All callers updated.
7310 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7311 local type_sig to sig_type, type_offset to type_offset_in_tu.
7312 (hash_signatured_type): Renamed from hash_type_signature,
7313 all callers updated.
7314 (eq_signatured_type): Renamed from eq_type_signature,
7315 all callers updated.
7316 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7317 (process_enumeration_scope): Ditto.
7318 (lookup_signatured_type_at_offset): Ditto.
7319 (load_full_type_unit, read_signatured_type): Ditto.
7321 2012-04-12 Yao Qi <yao@codesourcery.com>
7323 * remote.c (async_remote_interrupt): Correct function name in
7325 (async_remote_interrupt_twice): Ditto.
7327 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7329 * source.c (find_and_open_source): Consistently pass resulting
7330 full path through xfullpath.
7332 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7334 Provide more specific displaced-stepping memory error message.
7335 * infrun.c (displaced_step_prepare): New variable status. Call
7336 target_read_memory instead of read_memory, provide more specific
7339 2012-04-11 Tristan Gingold <gingold@adacore.com>
7342 * darwin-nat.c (darwin_execvp): Revert previous patch.
7344 2012-04-11 Tristan Gingold <gingold@adacore.com>
7347 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7350 2012-04-11 Tristan Gingold <gingold@adacore.com>
7352 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7355 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7357 New command 'explore' which helps explore values and types in
7359 * NEWS: Add an entry about the new 'explore' command.
7360 * data-directory/Makefile.in: Add gdb/command/explore.py
7361 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7362 command using the GDB Python API.
7364 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7366 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7367 extension in jump target calculation.
7369 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7371 * mips-tdep.c (mips32_next_pc): Handle JALX.
7373 2012-04-10 Yao Qi <yao@codesourcery.com>
7375 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7377 2012-04-10 Yao Qi <yao@codesourcery.com>
7379 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7380 and gnulib/m4/gnulib-tool.m4.
7382 2012-04-10 Doug Evans <dje@google.com>
7384 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7385 (load_partial_dies): Clarify comment.
7386 (find_partial_die): Support rereading type units.
7387 Clarify CU handling, if we know offset is in CU, don't search for the
7388 containing CU. Add comment regarding memory waste.
7390 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7392 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7393 i386/x32-avx and i386/x32-avx-linux.
7394 (i386/x32-expedite): New.
7395 (i386/x32-linux-expedite): Likewise.
7396 (i386/x32-avx-expedite): Likewise.
7397 (i386/x32-avx-linux-expedite): Likewise.
7398 ($(outdir)/i386/x32.dat): Likewise.
7399 ($(outdir)/i386/x32-linux.dat): Likewise.
7400 ($(outdir)/i386/x32-avx.dat): Likewise.
7401 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7403 * features/i386/x32-avx-linux.xml: New file.
7404 * features/i386/x32-avx.xml: Likewise.
7405 * features/i386/x32-core.xml: Likewise.
7406 * features/i386/x32-linux.xml: Likewise.
7407 * features/i386/x32.xml: Likewise.
7409 * features/i386/x32-avx-linux.c: New. Generated.
7410 * features/i386/x32-avx.c: Likewise.
7411 * features/i386/x32-linux.c: Likewise.
7412 * features/i386/x32.c: Likewise.
7413 * regformats/i386/x32-avx-linux.dat: Likewise.
7414 * regformats/i386/x32-avx.dat: Likewise.
7415 * regformats/i386/x32-linux.dat: Likewise.
7416 * regformats/i386/x32.dat: Likewise.
7418 2012-04-10 Tristan Gingold <gingold@adacore.com>
7420 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7421 code to kill the inferior.
7423 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7425 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7427 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7429 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7430 (yyvsp): New defines.
7431 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7433 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7435 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7437 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7439 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7442 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7444 * sparc64-tdep.c (sparc64_store_arguments)
7445 (sparc64_store_arguments): Fix coding style.
7447 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7449 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7450 complex floats, adjust some related comments and tighten a related
7452 (sparc64_extract_return_value): Handle complex floats.
7454 2012-04-07 Doug Evans <dje@google.com>
7456 * dwarf2read.c (load_partial_dies): Change condition to assert.
7458 2012-04-06 Doug Evans <dje@google.com>
7460 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7463 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7465 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7467 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7468 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7471 2012-04-05 Keith Seitz <keiths@redhat.com>
7473 * linespec.c (decode_compound): Remove.
7474 (enum offset_relative_sign): New enum.
7475 (struct line_offset): New struct.
7476 (struct linespec): New struct.
7477 (struct linespec_state): Move file_symtabs,
7478 user_filename, and user_function into struct linespec.
7479 Make result an anonymous struct holding vectors of
7480 symbolp and minsym_and_objfile_d.
7481 Add language member.
7482 (enum ls_token_type): New enum.
7483 (linespec_keywords): New array.
7484 (struct ls_token): New struct.
7485 (struct ls_parser): New struct.
7486 (linespec_lexer_lex_number): New function.
7487 (linespec_lexer_lex_keyword): New function.
7488 (is_ada_operator): New function.
7489 (skip_quote_char): New function.
7490 (copy_token_string): New function.
7491 (is_closing_quote_enclosed): New function.
7492 (find_parameter_list_end): New function.
7493 (linespec_lexer_lex_string): New function.
7494 (linespec_lexer_lex_one): New function.
7495 (linespec_lexer_consume_token): New function.
7496 (linespec_lexer_peek_token): New function.
7497 (cplusplus_error): Remove unused function.
7498 (find_methods): Update comment.
7499 (find_toplevel_char): Return const.
7500 (is_objc_method_format): Remove unused function.
7501 (find_toplevel_string): New function.
7502 (is_linespec_boundary): Remove.
7503 (symbol_not_found_error): New function.
7504 (find_method_overload_end): Remove function.
7505 (unexpected_linespec_error): New function.
7506 (keep_name_info): Remove.
7507 (linespec_parse_line_offset): New function.
7508 (linespec_parse_basic): New function.
7509 (canonicalize_linespec): New function.
7510 (decode_line_internal): Remove.
7511 (create_sals_line_offset): New function adapted from
7513 (convert_linespec_to_sals): New function.
7514 (parse_linespec): New function.
7515 (linespec_parser_new): New function.
7516 (linespec_state_destructor): Change parameter type to
7517 struct linespec_state *.
7518 Add language parameter.
7519 Remove freeing of moved members.
7520 (linespec_parser_delete): New function.
7521 (decode_line_full): Use parse_linespec and linespec_parser_new.
7522 (decode_line_1): Likewise.
7523 (decode_indirect): Rename to ...
7524 (linespec_expression_to_pc): ... this and rewrite
7525 to simply find CORE_ADDR, storing this result for later
7527 (locate_first_half): Remove.
7528 (deocde_objc): Add parameter LS.
7529 Initialize new struct collect_info members.
7530 Handle minimal symbols, too.
7531 (decode_compound): Delete.
7532 (lookup_prefix_sym): Rewrite.
7533 (compare_msymbols): New function.
7534 (find_method): Rewrite.
7535 Do not call cplusplus_error.
7536 (symtabs_from_filename): Rewrite.
7537 (collect_function_symbols): Delete.
7538 (find_function_symbols): Rewrite without ARGPTR-style
7540 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7541 (decode_dollar): Adapted and renamed to ...
7542 (linespec_parse_variable): ... this.
7543 (find_linespec_symbols): New function.
7544 (decode_label): Adapted and renamed to ...
7545 (find_label_symbols): ... this.
7546 (decode_digits_list_mode): Add and use LS argument.
7547 (decode_digits_ordinary): Likewise.
7548 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7549 If in list mode, allow any symbol class. Otherwise, only
7550 permit LOC_BLOCK symbols.
7551 (minsym_found): Update comments.
7552 (search_minsyms_for_name): Do not convert the matching symbol
7553 into a SAL. Simply push the symbol and objfile into the
7555 (decode_variable): Delete. Contents adapted into
7556 find_linespec_symbols.
7558 * cp-support.c (SKIP_SPACE): Remove.
7559 (operator_tokens): Remove unused global.
7560 (cp_validate_operator): Remove.
7561 * cp-support.h (cp_validate_operator): Remove declaration.
7563 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7565 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7566 for TYPE_VPTR_FIELDNO.
7567 * valprint.c (valprint_check_validity): Make it global, move the
7568 function comment ...
7569 * value.h (valprint_check_validity): ... to this new declaration.
7571 2012-04-02 Tristan Gingold <gingold@adacore.com>
7573 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7574 the STATE32 api for i386 state.
7575 (i386_darwin_store_inferior_registers): Likewise.
7577 2012-04-02 Tristan Gingold <gingold@adacore.com>
7579 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7581 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7584 2012-04-02 Tristan Gingold <gingold@adacore.com>
7587 * darwin-nat.c (darwin_execvp): Set binary preference.
7589 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7591 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7593 2012-03-30 Tom Tromey <tromey@redhat.com>
7595 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7596 of TRY_CATCH. Fix error handling.
7597 * python/py-value.c (convert_value_from_python): Move 'old'
7598 declaration to innermost scope.
7600 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7601 Andrey Smirnov <andrew.smirnov@gmail.com>
7603 -Wshadow warning fix.
7604 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7605 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7606 Adjust code accordingly.
7608 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7610 * ada-lang.c (symbol_completion_add): Rename parameter
7611 "encoded" into "encoded_p". Ajust code and documentation
7614 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7615 Andrey Smirnov <andrew.smirnov@gmail.com>
7617 -Wshadow warning fix.
7618 * ada-lang.c (symbol_completion_add): Rename parameter
7619 "wild_match" into wild_match_p. Update code and documentation
7622 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7624 * ada-lang.c (symbol_completion_match): Rename parameter
7625 "encoded" into "encoded_p". Ajust code and documentation
7628 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7629 Andrey Smirnov <andrew.smirnov@gmail.com>
7631 -Wshadow warning fix.
7632 * ada-lang.c (symbol_completion_match): Rename parameter
7633 "wild_match" into "wild_match_p". Adjust code and function
7634 documentation accordingly.
7636 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7637 Andrey Smirnov <andrew.smirnov@gmail.com>
7639 -Wshadow warning fix.
7640 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7641 "symbol_info" into "info". Adjust code accordingly.
7642 (ada_lookup_symbol): Likewise.
7644 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7646 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7647 of this function's documentation.
7649 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7650 Andrey Smirnov <andrew.smirnov@gmail.com>
7652 -Wshadow warning fix.
7653 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7654 variable into "wild_match_p". Adjust code accordingly.
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_add_local_symbols): Rename "wild_match"
7661 parameter into "wild_match_p". Adjust code accordingly.
7662 Document this parameter in the function description.
7664 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7665 Andrey Smirnov <andrew.smirnov@gmail.com>
7667 -Wshadow warning fix.
7668 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7669 "wild_match" parameter to "wild_match_p" (-Wshadow).
7671 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7673 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7674 in function documentation.
7676 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7677 Andrey Smirnov <andrew.smirnov@gmail.com>
7679 -Wshadow warning fix.
7680 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7681 variable into wild_match_p. Adjust code accordingly.
7683 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7684 Andrey Smirnov <andrew.smirnov@gmail.com>
7686 * ada-valprint.c (ada_val_print_1): Move the code handling
7687 TYPE_CODE_ENUM inside its own lexical block. Declare
7688 variables len and val there, instead of in the function's
7689 top level block. Avoid declaring deref_val again in a way
7690 that shadows another variable of the same name declared
7691 in one of the up-level blocks. Just re-use the up-level
7694 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7696 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7697 Replace block_found argument by symbol_info. Adjust
7698 implementation accordingly. Add function documentation.
7699 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7701 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7702 * ada-exp.y (write_object_renaming): Adjust to new
7703 ada_lookup_encoded_symbol API.
7705 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7707 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7710 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7712 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7713 (v850_register_name): Add the mpu and fpu register names.
7714 (v850e_register_name): Add the mpu and fpu register names.
7715 (v850e2_register_name): New function.
7716 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7719 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7721 * NEWS: Add entry for Ada varobj support.
7723 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7725 * varobj.c (default_value_is_changeable_p): New function,
7726 extracted from varobj_value_is_changeable_p. Add declaration.
7727 (ada_value_is_changeable_p): New function, extracted from
7728 varobj_value_is_changeable_p. Add declaration.
7729 (struct language_specific): New field "value_is_changeable_p".
7730 (languages): Add entries for new field.
7731 (varobj_create): Set language before calling install_new_value.
7732 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7733 "value_is_changeable_p" language callback.
7735 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7737 * ada-varobj.h, ada-varobj.c: New files.
7738 * Makefile.in (SFILES): Add ada-varobj.c.
7739 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7740 (COMMON_OBS): Add ada-varobj.o.
7742 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7744 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7745 (struct language_specific): New field "value_has_mutated".
7746 (languages): Set field "value_has_mutated" in each entry of array.
7747 (varobj_value_has_mutated): New function.
7748 (varobj_udpdate): Add handling of type mutation.
7749 (value_of_root): Add handling of type mutation.
7750 (ada_value_has_mutated): New function.
7752 2012-03-28 Pedro Alves <palves@redhat.com>
7754 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7755 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7757 2012-03-28 Tom Tromey <tromey@redhat.com>
7759 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7760 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7763 2012-03-28 Tom Tromey <tromey@redhat.com>
7765 * .dir-locals.el: New file.
7767 2012-03-28 Pedro Alves <palves@redhat.com>
7769 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7771 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7773 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7776 2012-03-27 Pedro Alves <palves@redhat.com>
7778 Eliminate struct ui_stream.
7780 * ui-out.h (struct ui_stream): Delete.
7781 (ui_out_field_stream): Adjust prototype.
7782 (ui_out_stream_new, ui_out_stream_delete)
7783 (make_cleanup_ui_out_stream_delete): Delete declarations.
7784 * ui-out.c (ui_out_field_stream): Change prototype to take a
7785 ui_file instead of a ui_stream. Adjust.
7786 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7787 (make_cleanup_ui_out_stream_delete): Delete.
7788 * breakpoint.c (print_breakpoint_location)
7789 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7790 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7791 * disasm.c (dump_insns): Ditto.
7792 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7794 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7795 ui_stream/ui_out_stream_new.
7796 * infcmd.c (print_return_value): Ditto.
7797 * osdata.c (info_osdata_command): Don't allocate a local
7799 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7800 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7801 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7802 allocate a local ui_stream.
7803 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7804 instead of ui_stream/ui_out_stream_new.
7805 (list_args_or_locals): Don't allocate a local ui_stream.
7806 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7807 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7808 ui_stream/ui_out_stream_new.
7809 * cli/cli-setshow.c (do_setshow_command): Ditto.
7811 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7813 * arm-linux-tdep.c (arm_linux_init_abi): Call
7814 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7815 * arm-tdep.c (arm_process_record): New function.
7816 (deallocate_reg_mem): New function.
7817 (decode_insn): New function.
7818 (thumb_record_branch): New function.
7819 (thumb_record_ldm_stm_swi(): New function.
7820 (thumb_record_misc): New function.
7821 (thumb_record_ld_st_stack): New function.
7822 (thumb_record_ld_st_imm_offset): New function.
7823 (thumb_record_ld_st_reg_offset(): New function.
7824 (thumb_record_add_sub_cmp_mov): New function.
7825 (thumb_record_shift_add_sub): New function.
7826 (arm_record_coproc_data_proc): New function.
7827 (arm_record_coproc): New function.
7828 (arm_record_b_bl): New function.
7829 (arm_record_ld_st_multiple): New function.
7830 (arm_record_ld_st_reg_offset): New function.
7831 (arm_record_ld_st_imm_offset): New function.
7832 (arm_record_data_proc_imm): New function.
7833 (arm_record_data_proc_misc_ld_str): New function.
7834 (arm_record_extension_space): New function.
7835 (arm_record_strx): New function.
7836 (sbo_sbz): New function.
7837 (struct insn_decode_record): New structure for arm insn record.
7838 (REG_ALLOC): New macro for reg allocations.
7839 (MEM_ALLOC): New macro for memory allocations.
7840 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7842 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7844 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7845 (store_register): Likewise.
7847 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7849 * MAINTAINERS (Write After Approval): Add myself to the list.
7851 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7853 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7854 Describe also the option "auto".
7856 2012-03-22 Richard Henderson <rth@redhat.com>
7858 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7859 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7861 2012-03-22 Richard Henderson <rth@redhat.com>
7863 * jit.c (jit_read_code_entry): Compute alignment and offset of
7864 int64_t member before computing entry_size.
7866 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7868 Python scripting: Add new method Value.referenced_value to
7869 gdb.Value which can dereference pointer as well as reference
7871 * NEWS: Add entry under 'Python scripting' about the new method
7872 Value.referenced_value on gdb.Value objects.
7873 * python/py-value.c (valpy_referenced_value): New function
7874 defining a new method on gdb.Value objects which can dereference
7875 pointer and reference values.
7877 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7879 * MAINTAINERS (Write After Approval): Add myself to the list.
7881 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7883 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7884 in addition to "main".
7886 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7888 * expression.h (op_name): Add declaration.
7889 * expprint.c (op_name): Remove declaration. Make non-static.
7890 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7892 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7894 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7896 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7897 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7898 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7899 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7900 (linux_nat_get_siginfo): Likewise.
7901 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7902 (linux_nat_get_siginfo): Likewise.
7903 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7904 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7905 * procfs.c (gdb_siginfo_t): Likewise.
7907 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7909 * .gitignore: Ignore more files.
7911 2012-03-20 Pedro Alves <palves@redhat.com>
7913 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7916 2012-03-20 Yao Qi <yao@codesourcery.com>
7918 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7921 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7923 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7924 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7925 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7927 * dwarf2expr.h (cu_offset, sect_offset): New types.
7928 (struct dwarf_expr_context_funcs) <dwarf_call>
7929 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7931 (struct dwarf_expr_context) <len>: Improve the comment.
7932 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7933 cu_offset and sect_offset.
7934 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7935 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7936 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7937 * dwarf2loc.h: Include dwarf2expr.h.
7938 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7940 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7941 Improve the comment.
7942 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7943 (struct signatured_type, struct line_header, struct partial_die_info)
7944 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7945 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7946 (get_die_type_at_offset, create_cus_from_index)
7947 (create_signatured_type_table_from_index, dw2_get_file_names)
7948 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7949 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7950 (create_debug_types_hash_table, process_psymtab_comp_unit)
7951 (load_partial_comp_unit, create_all_comp_units)
7952 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7953 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7954 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7955 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7956 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7957 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7958 (find_partial_die, read_attribute_value, lookup_die_type)
7959 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7960 (is_ref_attr): New function comment.
7961 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7962 Use cu_offset and sect_offset.
7963 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7964 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7965 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7966 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7967 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7968 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7969 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7972 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7975 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7976 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7978 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7980 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7982 * NEWS: Describe new options --init-command=FILE, -ix and
7983 --init-eval-command=COMMAND, -iex.
7984 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7985 CMDARG_INIT_COMMAND.
7986 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7987 "init-command", "init-eval-command", "ix" and "iex" to the variable
7988 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7989 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7990 (print_gdb_help): Describe --init-command=FILE, -ix and
7991 --init-eval-command=COMMAND, -iex.
7993 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 * main.c (struct cmdarg): Move it here from main. Add more comments.
7997 (cmdarg_s, VEC (cmdarg_s)): New.
7998 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7999 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8000 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8001 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8004 2012-03-19 Tom Tromey <tromey@redhat.com>
8006 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8008 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8011 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8014 2012-03-16 Chris January <chris.january@allinea.com>
8016 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8019 2012-03-16 Chris January <chris.january@allinea.com>
8021 * source.c (add_path): Use memmove instead of strcpy because the
8024 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8026 * value.h (set_value_parent): Add declaration.
8027 * value.c (set_value_parent): New function.
8028 (value_address): If VALUE->PARENT is not NULL, then use it as
8029 the base address instead of VALUE->LOCATION.address.
8030 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8031 the same as OBJ's address. Adjust V's offset accordingly.
8034 2012-03-16 Gary Benson <gbenson@redhat.com>
8036 PR breakpoints/10738
8037 * dwarf2read.c (use_deprecated_index_sections): New global.
8038 (struct partial_die_info): New member may_be_inlined.
8039 (read_partial_die): Set may_be_inlined where appropriate.
8040 (add_partial_subprogram): Add partial symbols for partial
8041 DIEs that may be inlined.
8042 (new_symbol_full): Add inlined subroutines to the current
8044 (write_psymtabs_to_index): Bump version number.
8045 (dwarf2_read_index): Read only version 6 indices unless
8046 use_deprecated_index_sections is set.
8047 * linespec.c (symbol_and_data_callback): New structure.
8048 (iterate_inline_only): New function.
8049 (iterate_over_all_matching_symtabs): New argument
8050 "include_inline". If nonzero, also call the callback for
8051 symbols representing inlined subroutines.
8052 (lookup_prefix_sym): Pass extra argument to the above.
8053 (find_function_symbols): Likewise.
8054 (add_matching_symbols_to_info): Likewise.
8055 * NEWS: Mention that GDB can now set breakpoints on inlined
8058 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8060 * p-typeprint.c (pascal_type_print_method_args):
8061 Fix display of parameter of methods.
8063 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8065 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8066 Add missing prototype.
8068 2012-03-16 Yao Qi <yao@codesourcery.com>
8069 Jan Kratochvil <jan.kratochvil@redhat.com>
8071 Fix false compilation warning.
8072 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8074 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8075 Pedro Alves <pedro@codesourcery.com>
8077 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8078 (arm_register_g_packet_guesses): New function.
8079 (arm_gdbarch_init): Don't force a target description with
8080 registers when the executable is detected as M-profile. Instead
8081 set gdbarch->tdep->is_m. Register `g' packet guesses.
8082 (_initialize_arm_tdep): Initialize the new target description.
8083 * features/arm-with-m-fpa-layout.xml: New description.
8084 * features/arm-with-m-fpa-layout.c: New, generated.
8086 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8088 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8089 Update function description.
8090 (insert_bp_location): Do not wipe bl->target_info out.
8091 * mem-break.c: #include "gdb_string.h".
8092 (default_memory_insert_breakpoint): Do not call target_read_memory
8093 with a pointer to the breakpoint's shadow_contents buffer. Use
8094 a local buffer instead.
8095 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8097 2012-03-15 Tom Tromey <tromey@redhat.com>
8099 * NEWS: Mention "info vtbl", not "info vtable".
8100 * cp-support.c (info_vtbl_command): Fix comment.
8101 (_initialize_cp_support): Fix text.
8103 2012-03-15 Tom Tromey <tromey@redhat.com>
8105 * cp-valprint.c (cp_print_value_fields): Use
8106 print_function_pointer_address for vtable slot.
8108 2012-03-15 Tom Tromey <tromey@redhat.com>
8110 * gnu-v3-abi.c (struct value_and_voffset): New.
8111 (hash_value_and_voffset, eq_value_and_voffset)
8112 (compare_value_and_voffset, compute_vtable_size)
8113 (print_one_vtable, gnuv3_print_vtable): New functions.
8114 (init_gnuv3_ops): Initialize 'print_vtable' field.
8115 * cp-support.c (info_vtbl_command): New function.
8116 (_initialize_cp_support): Add "info vtbl".
8117 * cp-abi.h (cplus_print_vtable): Declare.
8118 (struct cp_abi_ops) <print_vtable>: New field.
8119 * cp-abi.c (cplus_print_vtable): New function.
8122 2012-03-15 Tom Tromey <tromey@redhat.com>
8124 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8125 iterate_over_symbols.
8127 2012-03-14 Doug Evans <dje@google.com>
8129 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8130 DW_OP_GNU_parameter_ref.
8132 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8134 Fix double prompt of 'interpreter-exec mi'.
8135 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8136 (mi_interpreter_resume): use it.
8137 (mi_execute_command_input_handler): New function.
8138 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8139 mi_execute_command_input_handler.
8141 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8143 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8145 (darwin_debug_port_info): Make static.
8146 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8147 * machoread.c (_initialize_machoread): Add prototype.
8148 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8149 (i386_darwin_set_control, i386_darwin_get_control)
8150 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8151 i386_darwin_get_status, i386_darwin_get_control):
8152 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8154 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8156 * ax-gdb.c (gen_usual_unary): Remove special handling of
8157 enum and bool types.
8159 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8161 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8163 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8165 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8167 2012-03-13 Chris January <chris.january@allinea.com>
8169 * aix-thread.c (fill_sprs): Store the floating point registers
8170 at the correct offsets into vals.
8172 2012-03-13 Doug Evans <dje@google.com>
8174 * NEWS: Mention symbol-reloading has been deleted.
8175 * symfile.c (symbol_reloading): Delete.
8176 (show_symbol_reloading): Delete.
8177 (_initialize_symfile): Delete set/show symbol-reloading.
8179 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8180 read_in_chain until we have successfully read it in.
8181 (load_full_comp_unit): Ditto.
8182 (read_signatured_type): Add comment.
8184 2012-03-13 Chris January <chris.january@allinea.com>
8186 * stabsread.c (fix_common_block): Change type of valu argument
8189 2012-03-13 Chris January <chris.january@allinea.com>
8191 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8194 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8196 * common/linux-procfs.c (linux_proc_get_int): New, from
8197 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8199 (linux_proc_get_tgid): Only call linux_proc_get_int.
8200 (linux_proc_get_tracerpid): New.
8201 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8202 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8203 linux_proc_pid_has_state.
8204 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8205 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8206 (linux_ptrace_attach_warnings): New.
8207 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8209 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8210 (linux_nat_attach): New variables ex, buffer, message and message_s.
8211 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8213 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8215 * Makefile.in (linux-ptrace.o): New.
8216 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8218 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8219 * common/linux-ptrace.c: New file.
8220 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8221 * config/arm/linux.mh: Likewise.
8222 * config/i386/linux.mh: Likewise.
8223 * config/i386/linux64.mh: Likewise.
8224 * config/ia64/linux.mh: Likewise.
8225 * config/m32r/linux.mh: Likewise.
8226 * config/m68k/linux.mh: Likewise.
8227 * config/mips/linux.mh: Likewise.
8228 * config/pa/linux.mh: Likewise.
8229 * config/powerpc/linux.mh: Likewise.
8230 * config/powerpc/ppc64-linux.mh: Likewise.
8231 * config/powerpc/spu-linux.mh: Likewise.
8232 * config/s390/s390.mh: Likewise.
8233 * config/sparc/linux.mh: Likewise.
8234 * config/sparc/linux64.mh: Likewise.
8235 * config/xtensa/linux.mh: Likewise.
8236 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8237 common/linux-procfs.c.
8238 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8240 2012-03-13 Hui Zhu <teawater@gmail.com>
8241 Pedro Alves <palves@redhat.com>
8243 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8244 CREATE_BREAKPOINT_FLAGS_INSERTED.
8245 (create_breakpoint_sal, create_breakpoints_sal)
8246 (base_breakpoint_create_breakpoints_sal)
8247 (tracepoint_create_breakpoints_sal)
8248 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8250 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8251 (ftrace_command, strace_command): Adjust.
8252 (create_tracepoint_from_upload): Pass
8253 CREATE_BREAKPOINT_FLAGS_INSERTED.
8254 * breakpoint.h (enum breakpoint_create_flags): New.
8255 (create_breakpoint): New flags parameter.
8256 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8257 * python/py-breakpoint.c (bppy_init): Adjust.
8258 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8259 * spu-tdep.c (spu_catch_start): Adjust.
8261 2012-03-13 Pedro Alves <palves@redhat.com>
8262 Hui Zhu <teawater@gmail.com>
8263 Yao Qi <yao@codesourcery.com>
8265 * remote.c (struct remote_state): New field `starting_up'.
8266 (remote_start_remote): Set and clear it.
8267 (remote_can_download_tracepoint): If starting up, return false.
8269 2012-03-13 Yao Qi <yao@codesourcery.com>
8271 * inferior.h (struct inferior): Remove fields any_syscall_count,
8272 syscalls_counts and total_syscalls_count. Move them to new
8273 struct catch_syscall_inferior_data in breakpoint.c.
8274 * breakpoint.c: Call DEF_VEC_I(int).
8275 (struct catch_syscall_inferior_data): New.
8276 (get_catch_syscall_inferior_data): New.
8277 (catch_syscall_inferior_data_cleanup): New.
8278 (insert_catch_syscall): Update to access data in
8279 struct catch_syscall_inferior_data.
8280 (insert_catch_syscall): Likewise.
8281 (remove_catch_syscall): Likewise.
8282 (remove_catch_syscall): Likewise.
8283 (is_syscall_catchpoint_enabled): Likewise.
8284 (add_catch_command): Likewise.
8285 (_initialize_breakpoint): Register cleanup.
8286 * breakpoint.h: Removed DEF_VEC_I(int).
8287 * dwarf2loc.c: Call DEF_VEC_I(int).
8288 * mi/mi-main.c: Likewise.
8290 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8292 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8294 2012-03-12 Chris January <chris.january@allinea.com>
8296 * aix-thread.c (_initialize_aix_thread): Add prototype.
8297 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8298 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8300 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8302 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8303 include of "amd64-nat.h".
8305 2012-03-12 Tom Tromey <tromey@redhat.com>
8307 * buildsym.c (record_pending_block): Now static.
8308 * buildsym.h: (record_pending_block): Remove.
8310 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8312 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8314 2012-03-09 Tom Tromey <tromey@redhat.com>
8316 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8317 producer_is_gxx_lt_4_6>: New fields.
8318 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8320 2012-03-09 Tom Tromey <tromey@redhat.com>
8322 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8324 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8326 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8329 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8331 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8333 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8335 Fix -Wmissing-prototypes build.
8336 * arm-linux-nat.c (get_thread_id): Make it static.
8337 * xtensa-linux-nat.c (get_thread_id): Likewise.
8339 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8341 * server.c (process_point_options): If a conditional expression
8342 is found, only print a message if remote_debug is nonzero.
8344 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8346 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8347 of internal error for unknown/unsupported types.
8349 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8351 Fix CU relative vs. absolute DIE offsets.
8352 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8353 offset to offset_in_cu.
8354 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8356 (dwarf2_fetch_die_location_block): Rename parameter offset to
8357 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8359 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8361 * libunwind-frame.c: Rename to ...
8362 * ia64-libunwind-tdep.c: ... here.
8363 * libunwind-frame.h: Rename to ...
8364 * ia64-libunwind-tdep.h: ... here.
8365 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8366 ia64-libunwind-tdep.h.
8367 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8368 * README (--with-libunwind): Rename to ...
8369 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8370 * config.in: Regenerate.
8371 * configure: Regenerate.
8372 * configure.ac: New option --with-libunwind-ia64, make the
8373 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8374 Remove AC_DEFINE for HAVE_LIBUNWIND.
8375 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8376 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8377 Rename libunwind-frame in the general comment.
8378 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8379 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8380 Move forward declarations inside #ifndef. Rename libunwind-frame in
8381 the general comment.
8382 * ia64-tdep.c: Rename libunwind-frame.h #include to
8383 ia64-libunwind-tdep.h.
8384 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8385 (ia64_libunwind_descr): Rename libunwind-frame to
8386 ia64-libunwind-tdep in these function comments.
8387 * ia64-tdep.h: Rename libunwind-frame.h #include to
8388 ia64-libunwind-tdep.h.
8389 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8390 ia64-libunwind-tdep in that data comment.
8392 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8394 * libunwind-frame.h (struct frame_unwind): New declaration.
8396 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8398 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8399 "set breakpoint condition-evaluation" command.
8401 2012-03-08 Tristan Gingold <gingold@adacore.com>
8403 * sparc-stub.c: Move to stubs/
8404 * sh-stub.c: Likewise.
8405 * m68k-stub.c: Likewise.
8406 * m32r-stub.c: Likewise.
8407 * i386-stub.c: Likewise.
8409 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8411 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8412 linux_get_siginfo_type.
8414 * m68klinux-nat.c: Include "gdb_proc_service.h".
8415 (PTRACE_GET_THREAD_AREA): Define.
8416 (ps_get_thread_area): New function.
8418 2012-03-08 Yao Qi <yao@codesourcery.com>
8420 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8422 (remote_query_attached): Likewise.
8423 (remote_static_tracepoint_marker_at): Likewise.
8424 (remote_set_permissions): Likewise.
8425 (remote_detach_1, extended_remote_attach_1): Likewise.
8426 (send_g_packet, remote_vkill): Likewise.
8427 (extended_remote_disable_randomization): Likewise.
8428 (remote_add_target_side_condition): Likewise.
8429 (remote_insert_breakpoint): Likewise.
8430 (remote_remove_breakpoint): Likewise.
8431 (remote_insert_watchpoint): Likewise.
8432 (remote_remove_watchpoint): Likewise.
8433 (remote_insert_hw_breakpoint): Likewise.
8434 (remote_insert_hw_breakpoint): Likewise.
8435 (remote_remove_hw_breakpoint): Likewise.
8436 (remote_download_command_source): Likewise.
8437 (remote_download_tracepoint): Likewise.
8438 (remote_download_trace_state_variable): Likewise.
8439 (remote_disable_tracepoint): Likewise.
8440 (remote_trace_set_readonly_regions): Likewise.
8441 (remote_get_tracepoint_status): Likewise.
8442 (remote_trace_find): Likewise.
8443 (remote_get_trace_state_variable_value): Likewise.
8444 (remote_set_disconnected_tracing): Likewise.
8445 (remote_set_circular_trace_buffer): Likewise.
8446 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8447 (remote_use_agent): Likewise.
8448 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8451 2012-03-07 Pedro Alves <palves@redhat.com>
8453 * NEWS: Mention QProgramSignals.
8454 * inferior.h (update_signals_program_target): Declare.
8455 * infrun.c: (update_signals_program_target): New.
8456 (handle_command): Update the target of the new program signals
8458 * remote.c (PACKET_QProgramSignals): New enum.
8459 (last_program_signals_packet): New global.
8460 (remote_program_signals): New.
8461 (remote_start_remote): Update the target with the program signals
8463 (remote_protocol_features): Add entry for QPassSignals.
8464 (remote_open_1): Free anc clear last_program_signals_packet.
8465 (init_remote_ops): Install remote_program_signals.
8466 * target.c (update_current_target): Adjust.
8467 (target_program_signals): New.
8468 * target.h (struct target_ops) <to_program_signals>: New field.
8469 (target_program_signals): Declare.
8471 2012-03-07 Pedro Alves <palves@redhat.com>
8473 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8476 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8478 * m68klinux-nat.c (getregs_supplies): Make static.
8479 (getfpregs_supplies): Likewise.
8480 (have_ptrace_getregs): Likewise.
8482 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8484 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8485 in call to get_die_type_at_offset.
8487 2012-03-06 Stan Shebs <stan@codesourcery.com>
8489 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8490 * mi/mi-cmd-disas.c: Ditto.
8491 * mi/mi-cmd-env.c: Ditto.
8492 * mi/mi-cmd-file.c: Ditto.
8493 * mi/mi-cmd-stack.c: Ditto.
8494 * mi/mi-cmd-target.c: Ditto.
8495 * mi/mi-cmd-var.c: Ditto.
8496 * mi/mi-cmds.c: Ditto.
8497 * mi/mi-cmds.h: Ditto.
8498 * mi/mi-console.c: Ditto.
8499 * mi/mi-getopt.c: Ditto.
8500 * mi/mi-getopt.h: Ditto.
8501 * mi/mi-interp.c: Ditto.
8502 * mi/mi-main.c: Ditto.
8503 * mi/mi-out.c: Ditto.
8504 * mi/mi-parse.c: Ditto.
8505 * mi/mi-parse.h: Ditto.
8506 * mi/mi-symbol-cmds.c: Ditto.
8508 * mi/mi-getopt.h: Move mi_opt struct up.
8509 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8511 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8513 2012-03-06 Tom Tromey <tromey@redhat.com>
8515 * proc-service.c (ps_pglobal_lookup): Set the current program
8518 2012-03-06 Pedro Alves <palves@redhat.com>
8520 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8522 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8524 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8526 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8529 * common/linux-osdata.c (linux_common_core_of_thread): New function
8531 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8532 call by linux_common_core_of_thread.
8533 (linux_nat_core_of_thread_1): Remove.
8534 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8535 * linux-thread-db.c: Include linux-osdata.h.
8536 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8537 linux_common_core_of_thread.
8539 2012-03-05 Tom Tromey <tromey@redhat.com>
8541 * value.c (value_primitive_field): Don't fetch contents for
8544 2012-03-05 Tom Tromey <tromey@redhat.com>
8546 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8548 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8550 * s390-nat.c: Include "gregset.h".
8552 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8554 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8555 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8556 (libunwind_load): New variable so_error, use it for dlerror. Try to
8557 load also LIBUNWIND_SO_7.
8559 2012-03-05 Pedro Alves <palves@redhat.com>
8561 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8562 is not NULL, and remove resulting dead code.
8564 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8566 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8567 prologue to sh_analyze_prologue.
8568 (sh_analyze_prologue): Make better use of such an upper limit, and
8569 generally be more cautious about accessing memory.
8571 2012-03-05 Tom Tromey <tromey@redhat.com>
8573 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8574 _initialize_ia64_hpux_tdep.
8576 2012-03-05 Pedro Alves <palves@redhat.com>
8580 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8581 the register state is clear, supply explicit zero, instead of
8582 marking the register unavailable.
8584 2012-03-05 Tristan Gingold <gingold@adacore.com>
8586 * NEWS: Mention OpenVMS ia64 new target.
8588 2012-03-05 Tristan Gingold <gingold@adacore.com>
8590 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8591 (ia64_unw_accessors, ia64_unw_rse_accessors)
8592 (ia64_libunwind_descr): Declare.
8593 * ia64-vms-tdep.c: New file.
8594 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8595 (ia64_libunwind_descr): Make them public.
8596 * configure.tgt: Add ia64-*-*vms*.
8597 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8598 (ALLDEPFILES): Add ia64-vms-tdep.c
8600 2012-03-05 Tristan Gingold <gingold@adacore.com>
8602 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8603 * remote.c (PACKET_qXfer_uib): New enum value.
8604 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8605 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8606 (_initialize_remote): Call add_packet_config_cmd for
8609 2012-03-05 Tristan Gingold <gingold@adacore.com>
8611 * osabi.c (gdb_osabi_names): Add OpenVMS.
8612 (generic_elf_osabi_sniffer): Likewise.
8613 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8615 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8617 Removed unused code.
8618 * libunwind-frame.c (libunwind_frame_unwind)
8619 (libunwind_frame_base_address): Remove.
8620 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8622 2012-03-04 Yao Qi <yao@codesourcery.com>
8624 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8625 remove trailing new line.
8626 (agent_run_command, agent_run_command): Add _ markup.
8627 (agent_capability_check): Likewise.
8629 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8631 * breakpoint.c (set_condition_evaluation_mode): Set
8632 CONDITION_EVALUATION_MODE unconditionally.
8634 2012-03-03 Yao Qi <yao@codesourcery.com>
8636 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8637 * common/agent.h: Update declaration.
8638 * inf-child.c (inf_child_use_agent): New.
8639 (inf_child_can_use_agent): New.
8640 (inf_child_target): Initialize fields `to_use_agent'
8641 and `to_can_use_agent'.
8642 * agent.c (agent_new_objfile): New.
8643 (_initialize_agent): Add agent_new_objfile to new_objfile
8646 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8648 (linux_target_install_ops): Initialize field
8649 `to_static_tracepoint_markers_by_strid'.
8650 * remote.c (free_current_marker): Move it to ...
8651 * tracepoint.c (free_current_marker): ... here. New.
8652 (cleanup_target_stop): New.
8653 * tracepoint.h: Declare free_current_marker.
8654 * NEWS: Add one entry about `info static-tracepoint-marker'.
8656 2012-03-03 Yao Qi <yao@codesourcery.com>
8658 * common/agent.c (agent_loaded_p): New.
8659 (agent_look_up_symbols): New global.
8660 * common/agent.h: Declare agent_loaded_p.
8662 2012-03-03 Yao Qi <yao@codesourcery.com>
8664 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8665 (agent_capability_check, agent_capability_invalidate): New.
8666 (symbol_list): New array element.
8667 * common/agent.h (enum agent_capa): New.
8668 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8670 2012-03-03 Yao Qi <yao@codesourcery.com>
8672 * target.h (struct target_ops) <to_use_agent>: New field.
8673 (struct target_ops) <to_can_use_agent>: New field.
8674 (target_use_agent, target_can_use_agent): New macro.
8675 * target.c (update_current_target): Update.
8676 * remote.c: New enum `PACKET_QAgent'.
8677 (remote_protocol_features): Add a new element.
8678 (remote_use_agent, remote_can_use_agent): New.
8679 (init_remote_ops): Initialize field `can_use_agent' with
8680 remote_can_use_agent. Intiailize field `use_agent' with
8682 * common/agent.c (use_agent): New global.
8683 * common/agent.h: Declare it.
8684 * tracepoint.c (info_static_tracepoint_markers_command): Add
8686 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8687 (COMMON_OBS): Add common/agent.o and agent.o
8688 (common-agent.o): New rule.
8691 2012-03-03 Yao Qi <yao@codesourcery.com>
8693 * common/agent.c: New.
8694 * common/agent.h: New.
8695 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8697 * configure, configh.in: Regenerated.
8699 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8701 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8702 unless it exists for this architecture.
8704 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8706 * language.h (struct language_defn): New "method" la_read_var_value.
8707 * findvar.c: #include "language.h".
8708 (default_read_var_value): Renames read_var_value. Rewrite
8709 function description.
8710 (read_var_value): New function.
8711 * value.h (default_read_var_value): Add prototype.
8712 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8714 (ada_language_defn): Add entry for la_read_var_value.
8715 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8716 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8717 language_defn structures to add entry for new la_read_var_value
8720 2012-03-02 Tom Tromey <tromey@redhat.com>
8721 Pedro Alves <palves@redhat.com>
8723 PR breakpoints/13776:
8724 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8726 (delete_longjmp_breakpoint_at_next_stop): New.
8727 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8728 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8729 before deleting the inferior. Add comments.
8730 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8731 breakpoints immediately, but only on next stop. Move that code
8732 next to where we mark other breakpoints for deletion.
8734 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8736 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8738 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8741 2012-03-02 Pedro Alves <palves@redhat.com>
8743 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8745 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8747 Fix -Wmissing-prototypes build.
8748 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8749 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8750 (gdbsim_has_memory): Likewise.
8752 2012-03-02 Yao Qi <yao@codesourcery.com>
8754 Fix -Wmissing-prototypes build.
8755 * charset.c (phony_iconv_open): Make static.
8756 (phony_iconv_close, phony_iconv): Likewise.
8757 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8758 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8760 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8761 * ser-mingw.c (create_select_thread): Make static.
8762 * windows-termcap.c (tgetent): New prototype.
8763 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8765 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8767 Fix -Wmissing-prototypes build.
8768 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8769 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8770 (_initialize_loadable): New prototypes.
8772 2012-03-02 Doug Evans <dje@google.com>
8774 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8775 abbrev table, read_comp_unit will do it.
8777 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8779 Fix -Wmissing-prototypes build.
8780 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8781 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8782 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8783 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8784 (_initialize_arm_symbian_tdep): New prototype.
8785 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8786 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8787 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8789 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8790 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8792 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8793 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8794 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8796 * moxie-tdep.c (moxie_process_record): Likewise.
8797 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8798 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8799 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8800 (_initialize_rl78_tdep): New prototype.
8801 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8802 (_initialize_rx_tdep): New prototype.
8803 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8804 (_initialize_darwin_solib): New prototype.
8805 * solib-spu.c: Include solib-spu.h.
8806 (_initialize_spu_solib): New prototype.
8807 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8808 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8809 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8810 (tic6x_software_single_step): Make it static.
8811 (_initialize_tic6x_tdep): New prototype.
8813 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8815 Fix -Wmissing-prototypes build.
8816 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8817 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8819 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8821 Fix -Wmissing-prototypes build.
8822 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8823 (frv_have_stopped_data_address): Remove.
8825 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8827 Fix -Wmissing-prototypes build.
8828 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8829 * sh-tdep.c: Include sh64-tdep.h.
8830 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8831 * sh64-tdep.c: Include sh64-tdep.h.
8832 * sh64-tdep.h: New file.
8834 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8836 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8838 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8840 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8841 sp_regnum once the gdbarch_init_osabi hook has been called.
8843 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8845 * mips-tdep.c (mips32_bc1_pc): New function.
8846 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8847 BPOSGE32 and BPOSGE64 instructions.
8848 (deal_with_atomic_sequence): Likewise.
8849 (mips32_instruction_has_delay_slot): Likewise.
8851 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8852 Chris Dearman <chris@mips.com>
8853 Maciej W. Rozycki <macro@codesourcery.com>
8854 Joseph Myers <joseph@codesourcery.com>
8856 * features/mips-dsp.xml: New file.
8857 * features/mips64-dsp.xml: New file.
8858 * features/mips-dsp-linux.xml: New file.
8859 * features/mips64-dsp-linux.xml: New file.
8860 * features/Makefile (WHICH): Add mips-dsp-linux and
8862 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8863 * features/mips-dsp-linux.c: New file.
8864 * features/mips64-dsp-linux.c: New file.
8865 * regformats/mips-dsp-linux.dat: New file.
8866 * regformats/mips64-dsp-linux.dat: New file.
8867 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8869 (mips64_linux_register_addr): Likewise.
8870 (mips64_linux_regsets_fetch_registers): Likewise.
8871 (mips64_linux_regsets_store_registers): Likewise.
8872 (mips64_linux_fetch_registers): Update call to
8873 mips64_linux_regsets_fetch_registers.
8874 (mips64_linux_store_registers): Update call to
8875 mips64_linux_regsets_store_registers.
8876 (mips_linux_read_description): Probe for DSP registers.
8877 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8878 and initialize_tdesc_mips64_dsp_linux.
8879 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8880 Remove padding of no longer used embedded register slots.
8881 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8882 (MIPS_RESTART_REGNUM): Redefine enum value.
8883 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8885 (mips_tx39_reg_names): Likewise.
8886 (mips_linux_reg_names): New array of register names for Linux
8888 (mips_register_name): Check for a null pointer in
8889 mips_processor_reg_names and return an empty string.
8890 (mips_register_type): Exclude embedded registers for the IRIX
8892 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8893 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8895 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8896 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8897 (mips_gdbarch_init): Likewise. Initialize internal register
8898 indices for the Linux ABI. Use dynamic numbers to refer to
8899 registers, as applicable, while parsing the target description.
8900 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8902 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8904 * frame.h (read_frame_register_unsigned): Fix typo in function
8907 2012-03-01 Pedro Alves <palves@redhat.com>
8909 * jit-reader.in [!__cplusplus]
8910 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8912 2012-03-01 Pedro Alves <palves@redhat.com>
8914 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8915 * configure: Regenerate.
8917 2012-03-01 Pedro Alves <palves@redhat.com>
8919 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8920 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8921 (ftrace_command, strace_command): Make static.
8922 * d-lang.c (_initialize_d_language): Declare.
8923 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8924 * dwarf2loc.c (_initialize_dwarf2loc):
8925 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8926 * exec.c (exec_get_section_table): Make static.
8927 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8928 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8929 * inferior.c (remove_inferior_command, add_inferior_command)
8930 (clone_inferior_command): Make static.
8931 * linux-nat.c (linux_nat_thread_address_space)
8932 (linux_nat_core_of_thread): Make static.
8933 * linux-tdep.c (_initialize_linux_tdep): Declare.
8934 * objc-lang.c (_initialize_objc_lang): Declare.
8935 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8937 (_initialize_opencl_language): Declare.
8938 * record.c (_initialize_record): Declare.
8939 * remote.c (demand_private_info, remote_get_tib_address)
8940 (remote_supports_cond_tracepoints)
8941 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8943 * skip.c (_initialize_step_skip): Declare.
8944 * symtab.c (skip_prologue_using_lineinfo): Make static.
8945 * tracepoint.c (delete_trace_state_variable)
8946 (trace_variable_command, delete_trace_variable_command)
8947 (get_uploaded_tsv, find_matching_tracepoint_location)
8948 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8950 * value.c (pack_unsigned_long): Make static.
8951 * varobj.c (varobj_ensure_python_env): Make static.
8952 * windows-tdep.c (_initialize_windows_tdep): Declare.
8953 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8955 2012-03-01 Pedro Alves <palves@redhat.com>
8957 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8959 (linux_init_abi): Install it as has_shared_address_space gdbarch
8962 2012-03-01 Pedro Alves <palves@redhat.com>
8964 * observer.c (observer_test_first_notification_function)
8965 (observer_test_second_notification_function)
8966 (observer_test_third_notification_function): Add declarations.
8968 2012-03-01 Pedro Alves <palves@redhat.com>
8970 * common/signals.c (default_target_signal_to_host)
8971 (default_target_signal_from_host): Move ...
8972 * arch-utils.c: ... here.
8973 * arch-utils.h (default_target_signal_to_host)
8974 (default_target_signal_from_host): Declare.
8976 * common/signals.c (target_signal_from_command): Move ...
8977 * infrun.c: ... here.
8978 * inferior.h (target_signal_from_command): Declare.
8979 * target.h (target_signal_from_command)
8980 (default_target_signal_from_host, default_target_signal_to_host):
8981 Delete declarations.
8983 * common/signals.c (_initialize_signals): Delete.
8985 2012-03-01 Pedro Alves <palves@redhat.com>
8987 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8988 both __cplusplus and !__cplusplus.
8990 2012-03-01 Pedro Alves <palves@redhat.com>
8992 * psymtab.c (find_and_open_source): Delete declaration.
8993 * source.c (find_and_open_source): Move comment ...
8994 * source.h (find_and_open_source): ... to this new declaration.
8996 2012-03-01 Pedro Alves <palves@redhat.com>
8998 * inline-frame.c: Include inline-frame.h.
9000 2012-03-01 Pedro Alves <palves@redhat.com>
9002 * tui/tui-data.c (set_gen_win_origin): Delete.
9003 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9004 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9006 2012-03-01 Pedro Alves <palves@redhat.com>
9008 * remote.c (encode_actions): Delete declaration.
9009 * tracepoint.c (encode_actions): Make extern.
9010 * tracepoint.h (encode_actions): Declare.
9012 2012-03-01 Pedro Alves <palves@redhat.com>
9014 * python/py-breakpoint.c: Include python.h.
9015 * python/py-continueevent.c (create_continue_event_object): Make
9017 * python/py-lazy-string.c (stpy_get_type): Make static.
9018 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9020 * python/py-utils.c (unicode_to_target_python_string): Make
9022 * python/py-value.c: Include python.h.
9024 2012-03-01 Pedro Alves <palves@redhat.com>
9026 * inferior.c (delete_threads_of_inferior): Delete.
9028 2012-03-01 Pedro Alves <palves@redhat.com>
9030 Import fallback definitions from glibc.
9032 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9033 ps_prochandle): Forward declare.
9034 (ps_err_e): Use glibc's comments.
9035 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9036 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9037 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9038 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9039 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9040 (struct ps_prochandle): Adjust comment.
9042 2012-03-01 Pedro Alves <palves@redhat.com>
9044 * ada-lang.c (ada_modulus_from_name): Delete.
9045 * ada-lex.l (lexer_init): Make static.
9047 2012-03-01 Pedro Alves <palves@redhat.com>
9051 * frame.c (read_frame_register_unsigned): New.
9052 * frame.h (read_frame_register_unsigned): Declare.
9053 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9055 (print_i387_control_word): New parameter `control_p'. Handle it.
9056 (i387_print_float_info): Handle unavailable float registers.
9058 2012-03-01 Keith Seitz <keiths@redhat.com>
9060 * linespec.c (decode_line_2): Sort the list of methods
9061 alphabetically before presenting the user with a selection
9064 2012-03-01 Doug Evans <dje@google.com>
9066 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9068 (dwarf2_read_abbrevs): Remove corresponding initialization.
9070 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9072 * NEWS: Mention new python command class gdb.COMMAND_USER.
9073 * cli/cli-cmds.c (show_user): Print error when used on a python
9075 (init_cli_cmds): Update documentation strings for "show user" and
9076 "set/show max-user-call-depth" to clarify that it does not apply to
9078 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9080 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9082 * top.c (execute_command): Only execute a user-defined command as a
9083 legacy macro if c->user_commands is set.
9085 2012-03-01 Tom Tromey <tromey@redhat.com>
9087 * valprint.h (struct generic_val_print_decorations): New.
9088 (generic_val_print): Declare.
9089 * valprint.c (generic_val_print): New function.
9090 * p-valprint.c (p_decorations): New global.
9091 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9092 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9093 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9094 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9095 * m2-valprint.c (m2_decorations): New global.
9096 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9097 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9098 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9099 TYPE_CODE_ERROR>: Call generic_val_print.
9100 * f-valprint.c (f_decorations): New global.
9101 (f_val_print): Use print_function_pointer_address.
9102 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9103 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9104 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9106 * c-valprint.c (c_decorations): New global.
9107 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9108 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9109 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9110 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9111 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9112 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9115 2012-03-01 Tom Tromey <tromey@redhat.com>
9117 * valprint.c (val_print): Update.
9118 * p-valprint (pascal_val_print): Return void.
9119 * p-lang.h (pascal_val_print): Return void.
9120 * m2-valprint.c (m2_val_print): Return void.
9121 * m2-lang.h (m2_val_print): Return void.
9122 * language.h (struct language_defn) <la_val_print>: Return void.
9123 * language.c (unk_lang_val_print): Return void.
9124 * jv-valprint.c (java_val_print): Return void.
9125 * jv-lang.h (java_val_print): Return void.
9126 * f-valprint.c (f_val_print): Return void.
9127 * f-lang.h (f_val_print): Return void.
9128 * d-valprint.c (d_val_print): Return void.
9129 (dynamic_array_type): Update.
9130 * d-lang.h (d_val_print): Return void.
9131 * c-valprint.c (c_val_print): Return void.
9132 * c-lang.h (c_val_print): Return void.
9133 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9135 * ada-lang.h (ada_val_print): Return void.
9137 2012-03-01 Tom Tromey <tromey@redhat.com>
9139 * value.h (val_print): Return void.
9140 * valprint.c (val_print): Return void.
9142 2012-03-01 Tom Tromey <tromey@redhat.com>
9144 * value.h (common_val_print): Return void.
9145 * valprint.c (common_val_print): Return void.
9147 2012-03-01 Tom Tromey <tromey@redhat.com>
9149 * value.h (value_print): Return void.
9150 * valprint.c (value_print): Return void.
9151 * p-valprint.c (pascal_value_print): Return void.
9152 * p-lang.h (pascal_value_print): Return void.
9153 * language.h (struct language_defn) <la_value_print>: Return
9155 * language.c (unk_lang_value_print): Return void.
9156 * jv-valprint.c (java_value_print): Return void.
9157 * jv-lang.h (java_value_print): Return void.
9158 * f-valprint.c (c_value_print): Don't declare.
9160 * c-valprint.c (c_value_print): Return void.
9161 * c-lang.h (c_value_print): Return void.
9162 * ada-valprint.c (ada_value_print): Return void.
9163 * ada-lang.h (ada_value_print): Return void.
9165 2012-03-01 Tom Tromey <tromey@redhat.com>
9167 * value.c (value_primitive_field): Handle virtual base classes.
9169 2012-03-01 Tom Tromey <tromey@redhat.com>
9171 * gdbtypes.h (struct vbase): Remove.
9173 2012-03-01 Tom Tromey <tromey@redhat.com>
9175 * c-valprint.c (print_function_pointer_address): Move...
9176 * valprint.c: ... here. Make non-static.
9177 * m2-valprint.c (print_function_pointer_address): Remove.
9178 * valprint.h (print_function_pointer_address): Declare.
9180 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9182 * NEWS: Document the fact that one can provide a condition when
9183 creating an Ada exception catchpoint.
9185 2012-03-01 Tom Tromey <tromey@redhat.com>
9187 * valprint.c (val_print_type_code_flags): Fix placement of
9190 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9192 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9193 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9194 environment variable before calling update-copyright.
9196 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9198 * gnulib/extra/update-copyright: Update to the latest from
9199 gnulib's git repository.
9200 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9201 variable to 2 instead of 1.
9203 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9205 * varobj.c (c_value_of_variable): Remove dead code.
9207 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9209 * ada-lex.p (processId): Do not modify already encoded IDs.
9210 Update function documentation.
9212 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9214 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9215 "name" with "struct symbol *name_sym".
9216 * ada-exp.y (write_var_or_type): Update call to
9217 ada_find_renaming_symbol.
9218 "name" with "struct symbol *name_sym". Adjust Implementation
9219 accordingly. Adjust the function documentation.
9221 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9223 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9224 * ada-lang.c (ada_find_any_type): Add advance declaration.
9225 Make static. Replace ada_find_any_symbol by
9226 ada_find_any_type_symbol.
9227 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9228 Improve function description. Make static.
9229 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9230 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9232 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9234 * ada-lang.c (struct tag_args): Delete.
9235 (ada_get_tsd_type): Function body moved up in source file.
9236 (ada_tag_name_1, ada_tag_name_2): Delete.
9237 (ada_get_tsd_from_tag): New function.
9238 (ada_tag_name_from_tsd): New function.
9239 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9240 to determine the tag name.
9242 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9244 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9246 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9249 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9251 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9253 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9255 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9258 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9260 * ada-lang.c (constrained_packed_array_type): If there is a
9261 parallel XA type, use it to determine the array index type.
9263 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9265 * ada-valprint.c (ada_val_print_1): If our value is a reference
9266 to an array descriptor, dereference it before converting it
9269 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9271 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9272 creating fixed value.
9273 (ada_value_ind, ada_coerce_ref, assign_component)
9274 (ada_evaluate_subexp): Remove call to unwrap_value before
9275 call to ada_to_fixed_value.
9277 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9279 * ada-lang.c (to_fixed_array_type): Set result's type name.
9281 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9283 * ada-lang.c (catch_ada_exception_command_split): Add new
9284 argument cond_string. Add support for condition at end of
9285 "catch exception" commands.
9286 (ada_decode_exception_location): Add new argument cond_string.
9287 Update call to catch_ada_exception_command_split.
9288 (create_ada_exception_catchpoint): Add new argument cond_string.
9289 Set the breakpoint condition if needed.
9290 (catch_ada_exception_command): Update call to
9291 ada_decode_exception_location.
9292 (ada_decode_assert_location): Add function documentation.
9293 Add support for condition at end of "catch assert" command.
9294 (catch_assert_command): Update calls to ada_decode_assert_location
9295 and create_ada_exception_catchpoint.
9297 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9299 Fix disp-step-syscall.exp: fork: single step over fork.
9300 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9301 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9302 comment, change parameters gdbarch and ptid to regcache. Remove
9303 parameter regcache, initialize gdbarch from regcache here.
9304 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9306 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9308 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9309 'syscall'. Make the 'int' check more strict.
9311 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9313 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9314 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9315 (i386_linux_intx80_sysenter_syscall_record): ... here.
9316 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9317 Use the renamed function name.
9319 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9321 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9322 * breakpoint.c (until_break_command): Likewise.
9323 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9324 * infcall.c (call_function_by_hand): Likewise.
9325 * infcmd.c (finish_forward): Likewise.
9326 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9328 2012-02-28 Tristan Gingold <gingold@adacore.com>
9330 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9331 avoid variable assignments inside condition.
9333 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9335 Fix static analysis issue found by cppcheck.
9336 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9337 uninitialized BUF for size 2.
9339 2012-02-27 Chris Dearman <chris@mips.com>
9340 Nathan Froyd <froydnj@codesourcery.com>
9341 Maciej W. Rozycki <macro@codesourcery.com>
9343 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9344 (mips16_instruction_has_delay_slot): Likewise.
9345 (mips_segment_boundary): Likewise.
9346 (mips_adjust_breakpoint_address): Likewise.
9347 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9349 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9350 Maciej W. Rozycki <macro@codesourcery.com>
9352 * infrun.c (handle_inferior_event): Don't proceed through
9353 shared library trampolines if stepping at the machine
9356 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9358 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9361 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9363 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9364 (sh_stub_unwind_sniffer): New functions.
9365 (sh_stub_unwind): New variable.
9366 (sh_gdbarch_init): Wire everything.
9368 2012-02-27 Pedro Alves <palves@redhat.com>
9370 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9371 (linux_nat_post_attach_wait): Adjust to use
9372 linux_proc_pid_is_stopped.
9373 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9374 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9375 based on pid_is_stopped from both linux-nat.c and
9376 gdbserver/linux-low.c, and renamed.
9378 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9380 * remote.c (remote_watchpoint_addr_within_range): New function.
9381 (init_remote_ops): Use it.
9383 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9385 * target.h (target_watchpoint_addr_within_range): Document macro.
9387 2012-02-24 Pedro Alves <palves@redhat.com>
9389 * stack.c (set_last_displayed_sal): Issue internal_error instead
9390 of warning, and issue it after clearing the last displayed sal.
9392 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9393 Pedro Alves <palves@redhat.com>
9395 * breakpoint.c (until_break_command): Install breakpoints after
9396 all frame manipulations.
9398 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9400 * remote.c (remote_supports_cond_breakpoints): New forward
9402 (remote_add_target_side_condition): New function.
9403 (remote_insert_breakpoint): Add target-side breakpoint
9404 conditional if supported.
9405 (remote_insert_hw_breakpoint): Likewise.
9406 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9409 * target.c (update_current_target): Inherit
9410 to_supports_evaluation_of_breakpoint_conditions.
9411 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9413 * target.h (struct target_ops)
9414 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9415 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9417 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9418 (condition_evaluation_both, condition_evaluation_auto,
9419 condition_evaluation_host, condition_evaluation_target,
9420 condition_evaluation_enums, condition_evaluation_mode_1,
9421 condition_evaluation_mode): New static globals.
9422 (translate_condition_evaluation_mode): New function.
9423 (breakpoint_condition_evaluation_mode): New function.
9424 (gdb_evaluates_breakpoint_condition_p): New function.
9425 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9426 (mark_breakpoint_modified): New function.
9427 (mark_breakpoint_location_modified): New function.
9428 (set_condition_evaluation_mode): New function.
9429 (show_condition_evaluation_mode): New function.
9430 (bp_location_compare_addrs): New function.
9431 (get_first_location_gte_addr): New helper function.
9432 (set_breakpoint_condition): Free condition bytecode if locations
9433 has become unconditional. Call mark_breakpoint_modified (...).
9434 (condition_command): Call update_global_location_list (1) for
9436 (breakpoint_xfer_memory): Use is_breakpoint (...).
9437 (is_breakpoint): New function.
9438 (parse_cond_to_aexpr): New function.
9439 (build_target_condition_list): New function.
9440 (insert_bp_location): Handle target-side conditional
9441 breakpoints and call build_target_condition_list (...).
9442 (update_inserted_breakpoint_locations): New function.
9443 (insert_breakpoint_locations): Handle target-side conditional
9445 (bpstat_check_breakpoint_conditions): Add comment.
9446 (bp_condition_evaluator): New function.
9447 (bp_location_condition_evaluator): New function.
9448 (print_breakpoint_location): Print information on where the condition
9450 (print_one_breakpoint_location): Likewise.
9451 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9452 breakpoint location.
9453 (force_breakpoint_reinsertion): New functions.
9454 (update_global_location_list): Handle target-side breakpoint
9456 Reinsert locations that are already inserted if conditions have
9458 (bp_location_dtor): Free agent expression bytecode.
9459 (disable_breakpoint): Call mark_breakpoint_modified (...).
9460 Call update_global_location_list (...) with parameter 1 for breakpoints.
9461 (disable_command): Call mark_breakpoint_location_modified (...).
9462 Call update_global_location_list (...) with parameter 1 for breakpoints.
9463 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9464 (enable_command): mark_breakpoint_location_modified (...).
9465 (_initialize_breakpoint): Update documentation and add
9466 condition-evaluation breakpoint subcommand.
9468 * breakpoint.h: Include ax.h.
9469 (condition_list): New data structure.
9470 (condition_status): New enum.
9471 (bp_target_info) <cond_list>: New field.
9472 (bp_location) <condition_changed, cond_bytecode>: New fields.
9473 (is_breakpoint): New prototype.
9475 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9477 * remote.c (remote_state) <cond_breakpoints>: New field.
9478 (PACKET_ConditionalBreakpoints): New enum.
9479 (remote_cond_breakpoint_feature): New function.
9480 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9481 (remote_supports_cond_breakpoints): New function.
9482 (_initialize_remote): Add new packet configuration for
9483 target-side conditional breakpoints.
9485 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9487 * NEWS: Mention target-side conditional breakpoint support,
9488 new condition-evaluation breakpoint subcommand and remote
9491 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9493 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9496 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9498 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9499 (after_prologue): Remove.
9501 2012-02-23 Tom Tromey <tromey@redhat.com>
9503 * jv-valprint.c (java_val_print): Remove dead code.
9505 2012-02-23 Tristan Gingold <gingold@adacore.com>
9507 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9508 known_tasks_element and known_tasks_length fields.
9509 (read_known_tasks_array): Change argument type. Use pointer type
9510 and number of elements from DATA. Adjust.
9511 (read_known_tasks_list): Likewise.
9512 (get_known_tasks_addr): Remove.
9513 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9514 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9515 type and array length. Merge former get_known_tasks_addr code.
9517 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9520 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9521 it after set_momentary_breakpoint.
9523 2012-02-22 Sterling Augustine <saugustine@google.com>
9526 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9528 2012-02-22 Gary Benson <gbenson@redhat.com>
9530 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9531 (find_slot_in_mapped_hash): Likewise.
9533 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9536 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9537 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9538 * configure: Regenerate.
9540 2012-02-21 Tristan Gingold <gingold@adacore.com>
9541 Pedro Alves <palves@redhat.com>
9543 * ia64-tdep.c: Do not include libunwind-ia64.h.
9544 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9545 Include libunwind-ia64.h instead of libunwind.h.
9546 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9547 for libunwind.h existence.
9548 * configure, config.in: Regenerate.
9550 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9552 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9553 instead of value_rtti_target_type.
9554 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9555 instead of value_rtti_target_type.
9556 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9557 value_rtti_target_type.
9558 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9559 (value_rtti_target_type): Rename to ...
9560 (value_rtti_indirect_type): ... here and make it indirect. Update
9562 * value.c (readjust_indirect_value_type): New function.
9563 (coerce_ref): Support for enclosing type setting for references
9564 with readjust_indirect_value_type.
9565 * value.h (readjust_value_type): New declaration.
9566 (value_rtti_target_type): Rename to ...
9567 (value_rtti_indirect_type): ... here.
9569 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9571 * MAINTAINERS (Write After Approval): Add myself to the list.
9573 2012-02-20 Doug Evans <dje@google.com>
9575 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9576 Rename objfile_p_char parameter to objfilep.
9577 (build_objfile_section_table): Result is now void. All callers
9579 * objfiles.h (struct objfile): Tweak comments, whitespace.
9580 (build_objfile_section_table): Update.
9582 * elfread.c (elf_symfile_segments): Fix warning text.
9584 2012-02-20 Tom Tromey <tromey@redhat.com>
9587 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9588 particular set of file names once.
9589 (dw2_map_symbol_filenames): Likewise.
9591 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9594 * main.c (write_files): Remove the declaration.
9595 (external_editor_command): Move the declaration ...
9596 [GDBTK] (external_editor_command): ... here. Fix the comment.
9598 2012-02-20 Tom Tromey <tromey@redhat.com>
9600 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9603 2012-02-20 Tristan Gingold <gingold@adacore.com>
9605 * darwin-nat.h (enum darwin_msg_state): Add comments.
9607 2012-02-20 Tristan Gingold <gingold@adacore.com>
9609 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9612 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9614 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9615 between function description and implementation.
9617 2012-02-17 Tom Tromey <tromey@redhat.com>
9620 * python/py-event.c (event_object_getset): New global.
9621 (event_object_type): Reference it.
9622 * python/py-type.c (field_object_getset): New global.
9623 (field_object_type): Reference it.
9624 * python/python-internal.h (gdb_py_generic_dict): Declare.
9625 * python/py-utils.c (gdb_py_generic_dict): New function.
9627 2012-02-17 Tristan Gingold <gingold@adacore.com>
9629 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9631 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9633 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9634 TYPE_CALLING_CONVENTION annotation.
9636 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9638 * MAINTAINERS: Add rx to target ISA section.
9639 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9640 (ALLDEPFILES): Add rx-tdep.c.
9642 2012-02-16 Tom Tromey <tromey@redhat.com>
9644 * symfile.c (symbol_file_add_main_1): Use inferior's
9646 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9647 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9649 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9651 (follow_exec): Use inferior's symfile_flags.
9652 * inferior.h (struct inferior) <symfile_flags>: New field.
9654 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9657 * remote-sim.c (gdbsim_create_inferior): Call error() when
9658 sim_create_inferior() fails.
9660 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9662 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9664 2012-02-16 Tom Tromey <tromey@redhat.com>
9667 * thread.c (struct current_thread_cleanup) <was_removable>: New
9669 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9670 (make_cleanup_restore_current_thread): Initialize new field.
9672 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9674 * MAINTAINERS: Add rl78 to target ISA section.
9675 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9676 (ALLDEPFILES): Add rl78-tdep.c.
9677 * NEWS: Mention rl78 as a new target.
9679 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9681 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9683 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9685 2012-02-15 Tom Tromey <tromey@redhat.com>
9688 * infcmd.c (registers_info): Print just the current register's
9691 2012-02-15 Tom Tromey <tromey@redhat.com>
9693 * python/py-symbol.c (sympy_value): Use _().
9695 2012-02-15 Pedro Alves <palves@redhat.com>
9697 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9698 output to be like native targets'.
9699 (remote_pid_to_str): Special case the null ptid.
9701 2012-02-14 Stan Shebs <stan@codesourcery.com>
9703 * NEWS: Mention enable count command.
9704 * breakpoint.h (struct breakpoint): New field enable_count.
9705 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9706 (enable_breakpoint): Add arg to call.
9707 (struct disp_data): New struct.
9708 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9709 (do_map_enable_once_breakpoint): Create a struct and pass it.
9710 (do_map_enable_delete_breakpoint): Ditto.
9711 (do_map_enable_count_breakpoint): New function.
9712 (enable_count_command): New function.
9713 (bpstat_stop_status): Decrement enable_count.
9714 (print_one_breakpoint_location): Report enable count.
9715 (_initialize_breakpoint): Add enable count command.
9717 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9719 * rl78-tdep.c (reggroups.h): Include.
9720 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9721 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9722 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9723 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9724 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9725 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9726 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9727 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9728 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9729 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9730 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9731 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9732 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9733 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9734 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9735 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9736 beginning of register list.
9737 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9738 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9739 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9740 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9741 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9742 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9743 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9744 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9745 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9746 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9747 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9748 the pseudo registers. Rearrange other pseudo registers too so
9749 that the bank registers appear at the end.
9750 (rl78_register_type): Account for the fact that the byte sized
9751 bank registers are now pseudo-registers.
9752 (rl78_register_name): Rearrange the register name array. Make
9753 initial set of raw banked registers inaccessible.
9754 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9755 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9756 case for copying bytes back and forth between raw and pseudo
9757 versions of the banked registers. Update other cases to reflect
9759 (rl78_return_value): Update to account for changed names of
9761 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9762 rl78_register_sim_regno().
9764 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9766 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9767 the name parameter being passed to find_pc_partial_function().
9769 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9771 * MAINTAINERS: Step down from being ia64 target maintainer.
9773 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9775 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9776 compilation warning.
9778 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9780 Fix crash on loaded shlibs without loaded exec_bfd.
9781 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9782 (set_section_command): Replace exec_bfd by p->bfd.
9784 2012-02-10 Tom Tromey <tromey@redhat.com>
9786 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9787 when we have a C++ qualified name.
9789 2012-02-10 Pedro Alves <palves@redhat.com>
9791 * inferior.c (inferior_pid_to_str): New.
9792 (print_inferior, inferior_command): Use it.
9794 2012-02-10 Pedro Alves <palves@redhat.com>
9796 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9798 * configure: Regenerate.
9800 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9802 * linespec.c (decode_line_internal): Fix comment correctness.
9804 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9807 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9808 * amd64bsd-nat.c: Add support for debug registers (adapted from
9810 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9811 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9812 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9813 (amd64bsd_dr_get_control): New functions.
9814 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9815 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9816 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9817 watchpoints initialization.
9818 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9820 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9822 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9824 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9826 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9828 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9830 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9832 * language.h (symbol_name_cmp_ftype): Renames
9833 symbol_name_match_p_ftype.
9834 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9835 la_get_symbol_name_match_p.
9836 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9837 ada_get_symbol_name_match_p. Update comment.
9838 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9839 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9840 Renames symbol_name_match_p. Update field type.
9841 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9842 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9843 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9844 "la_get_symbol_name_cmp" in comments.
9845 * language.c: Likewise.
9847 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9849 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9851 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9852 (amd64_sol2_gregset32_reg_offs): Likewise.
9854 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9856 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9857 of the returned BFD is allocated by GDB.
9859 2012-02-07 Tom Tromey <tromey@redhat.com>
9862 * python/python-internal.h (frame_object_type): Declare.
9863 * python/py-symbol.c (sympy_needs_frame): New function.
9864 (sympy_value): New function.
9865 (symbol_object_getset): Add "needs_frame".
9866 (symbol_object_methods): Add "value".
9867 * python/py-frame.c (frame_object_type): No longer static.
9869 2012-02-07 Tom Tromey <tromey@redhat.com>
9872 * python/py-symbol.c (sympy_line): New function.
9873 (symbol_object_getset): Add "line".
9875 2012-02-07 Tom Tromey <tromey@redhat.com>
9877 * charset.c (find_charset_names): Check 'in' against NULL.
9879 2012-02-06 Doug Evans <dje@google.com>
9881 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9882 and fields.name members from char * to const char *. All uses updated.
9883 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9884 from char * to const char *. All uses updated.
9885 (type_name_no_tag): Update.
9886 (lookup_unsigned_typename, lookup_signed_typename): Update.
9887 * gdbtypes.c (type_name_no_tag): Change result type
9888 from char * to const char *. All callers updated.
9889 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9890 name parameter from char * to const char *.
9891 * symtab.h (struct cplus_specific): Change type of demangled_name
9892 member from char * to const char *. All uses updated.
9893 (struct general_symbol_info): Change type of name and
9894 mangled_lang.demangled_name members from char * to const char *.
9896 (symbol_get_demangled_name, symbol_natural_name): Update.
9897 (symbol_demangled_name, symbol_search_name): Update.
9898 * symtab.c (symbol_get_demangled_name): Change result type
9899 from char * to const char *. All callers updated.
9900 (symbol_natural_name, symbol_demangled_name): Ditto.
9901 (symbol_search_name): Ditto.
9902 (completion_list_add_name): Change type of symname,sym_text,
9903 text,word parameters from char * to const char *.
9904 (completion_list_objc_symbol): Change type of sym_text,
9905 text,word parameters from char * to const char *.
9906 * ada-lang.c (find_struct_field): Change type of name parameter
9907 from char * to const char *.
9908 (encoded_ordered_before): Similarly for N0,N1 parameters.
9909 (old_renaming_is_invisible): Similarly for function_name parameter.
9910 (ada_type_name): Change result type from char * to const char *.
9911 All callers updated.
9912 * ada-lang.h (ada_type_name): Update.
9913 * buildsym.c (hashname): Change type of name parameter
9914 from char * to const char *.
9915 * buildsym.h (hashname): Update.
9916 * dbxread.c (end_psymtab): Change type of include_list parameter
9917 from char ** to const char **.
9918 * dwarf2read.c (determine_prefix): Change result type
9919 from char * to const char *. All callers updated.
9920 * f-lang.c (find_common_for_function): Change type of name, funcname
9921 parameters from char * to const char *.
9922 * f-lang.c (find_common_for_function): Update.
9923 * f-valprint.c (list_all_visible_commons): Change type of funcname
9924 parameters from char * to const char *.
9925 * gdbarch.sh (static_transform_name): Change type of name parameter
9926 and result from char * to const char *.
9927 * gdbarch.c: Regenerate.
9928 * gdbarch.h: Regenerate.
9929 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9930 of name parameter from char * to const char *.
9931 * jv-lang.c (java_primitive_type_from_name): Ditto.
9932 (java_demangled_signature_length): Similarly for signature parameter.
9933 (java_demangled_signature_copy): Ditto.
9934 (java_demangle_type_signature): Ditto.
9935 * jv-lang.h (java_primitive_type_from_name): Update.
9936 (java_demangle_type_signature): Update.
9937 * objc-lang.c (specialcmp): Change type of a,b parameters
9938 from char * to const char *.
9939 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9940 from char * to const char *. All callers updated.
9941 * p-lang.h (is_pascal_string_type): Update.
9942 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9943 of name parameter from char * to const char *.
9944 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9945 * utils.c (fprintf_symbol_filtered): Ditto.
9946 * defs.h (fprintf_symbol_filtered): Update.
9947 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9948 * stabsread.h (end_psymtab): Update.
9949 * stack.c (find_frame_funname): Change type of funname parameter
9950 from char ** to const char **.
9951 * stack.h (find_frame_funname): Update.
9952 * typeprint.c (type_print): Change type of varstring parameter
9953 from char * to const char *.
9954 * value.h (type_print): Update.
9955 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9956 from char * to const char *. All callers updated.
9957 (xcoff_end_psymtab): Change type of include_list parameter
9958 from char ** to const char **. All callers updated.
9959 (swap_sym): Similarly for name parameter. All callers updated.
9960 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9962 (process_coff_symbol): Use xstrdup.
9963 * stabsread.c (stabs_method_name_from_physname): Renamed from
9964 update_method_name_from_physname. Change result type from void
9965 to char *. All callers updated.
9966 (read_member_functions): In has_destructor case, store name in objfile
9967 obstack instead of malloc space. In !has_stub case, fix mem leak.
9969 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9971 * configure: Rebuild.
9972 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9975 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9977 * configure.tgt (rl78-*-elf): New target.
9978 * rl78-tdep.c: New file.
9980 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9982 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9983 and continue the loop. Add QUIT statement.
9985 2012-02-03 Tom Tromey <tromey@redhat.com>
9988 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9989 bfd_lookup_symbol_from_symtab.
9990 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9991 gdb_bfd_lookup_symbol_from_symtab.
9993 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9995 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9996 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9997 symbol. Add assertion that sym2 is never NULL.
9999 2012-02-02 Doug Evans <dje@google.com>
10001 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10002 "name" parameter to const char ** from char **. All callers updated.
10003 (find_pc_partial_function): Ditto.
10004 (cache_pc_function_name): Change type to const char * from char *.
10005 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10006 (find_pc_partial_function): Update.
10007 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10008 type of "name" parameter to const char * from char *.
10010 * arch-utils.c (generic_in_solib_return_trampoline): Change
10011 type of "name" parameter to const char * from char *.
10012 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10013 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10014 type of "name" parameter to const char * from char *.
10015 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10016 * gdbarch.c: Regenerate.
10017 * gdbarch.h: Regenerate.
10018 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10019 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10020 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10021 type of "name" parameter to const char * from char *.
10022 * skip.c (skip_function_pc): Ditto.
10023 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10024 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10025 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10026 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10027 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10028 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10029 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10030 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10031 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10033 2012-02-02 Pedro Alves <palves@redhat.com>
10035 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10036 the current inferior has no execution. Make sure the current
10037 remote process matches gdb's current inferior.
10039 2012-02-02 Tom Tromey <tromey@redhat.com>
10042 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10045 2012-02-02 Tom Tromey <tromey@redhat.com>
10048 * symtab.c (lookup_language_this): Set block_found.
10050 2012-02-01 Tom Tromey <tromey@redhat.com>
10053 * jit.c (struct jit_inferior_data): Rewrite.
10054 (struct jit_objfile_data): New.
10055 (get_jit_objfile_data): New function.
10056 (add_objfile_entry): Update.
10057 (jit_read_descriptor): Return int. Replace descriptor_addr
10058 argument with inf_data. Update. Don't call error.
10059 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10061 (jit_inferior_init): Don't look up descriptor. Don't call error.
10062 (jit_reset_inferior_data_and_breakpoints)
10063 (jit_inferior_created_observer): Remove.
10064 (jit_inferior_exit_hook): Update.
10065 (jit_executable_changed_observer): Remove.
10066 (jit_event_handler): Update.
10067 (free_objfile_data): Reset inferior data if needed.
10068 (_initialize_jit): Update.
10070 2012-02-01 Tom Tromey <tromey@redhat.com>
10072 * jit.c (bfd_open_from_target_memory): Move higher in file.
10074 2012-02-01 Tristan Gingold <gingold@adacore.com>
10076 * libunwind-frame.c (libunwind_load): Display message if dlopen
10079 2012-02-01 Gary Benson <gbenson@redhat.com>
10081 * symtab.h (symbol_found_callback_ftype): New typedef.
10082 (iterate_over_symbols): Use the above.
10083 * symtab.c (iterate_over_symbols): Likewise.
10084 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10085 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10086 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10087 (iterate_name_matcher): Document return values.
10088 (collect_one_symbol): Likewise.
10089 (collect_function_symbols): Likewise.
10090 (collect_symbols): Likewise.
10092 2012-02-01 Tom Tromey <tromey@redhat.com>
10094 * ada-lang.c (resolve_subexp): Update.
10095 (ada_lookup_symbol_list): Add 'full_search' argument.
10096 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10097 ada_lookup_symbol_list.
10098 (ada_lookup_encoded_symbol): Update.
10099 (get_var_value): Update.
10100 * ada-exp.y (block_lookup): Update.
10101 (write_var_or_type): Update.
10102 (write_name_assoc): Update.
10103 * ada-lang.h (ada_lookup_symbol_list): Update.
10105 2012-01-31 Tom Tromey <tromey@redhat.com>
10107 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10110 2012-01-31 Doug Evans <dje@google.com>
10112 * symtab.h: Remove outdated comment.
10113 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10115 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10117 Fix build error in Darwin port.
10118 * i386-darwin-nat.c: Include i386-nat.h.
10120 2012-01-30 Tom Tromey <tromey@redhat.com>
10122 PR breakpoints/13568:
10123 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10124 argument. Check for recursive includes.
10125 (dwarf_decode_macros): Create an include hash.
10127 2012-01-30 Michael Eager <eager@eagercon.com>
10129 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10130 * ppc-linux-tdep.c: Include glibc-tdep.h.
10131 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10132 (powerpc_linux_in_plt_stub): New function.
10133 (powerpc_linux_in_dynsym_resolve_code): New function.
10134 (ppc_skip_trampoline_code): New function.
10135 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10136 Use glibc_skip_solib_resolver.
10138 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10140 Code cleanup: Make 1440 bytes of data segment read-only.
10141 * arch-utils.c (endian_enum): Make it const char *const [].
10142 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10144 * breakpoint.c (always_inserted_enums): Likewise.
10145 * cli/cli-cmds.c (script_ext_enums): Likewise.
10146 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10147 enumlist parameter const char *const *.
10148 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10149 const char *const *.
10150 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10151 parameter const char *const *.
10152 * cris-tdep.c (cris_modes): Make it const char *const [].
10153 * filesystem.c (target_file_system_kinds): Likewise.
10154 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10155 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10156 (can_use_displaced_stepping_enum, scheduler_enums)
10157 (exec_direction_names): Likewise.
10158 * language.c (_initialize_language): Make the type_or_range_names and
10159 case_sensitive_names variables const char *const [].
10160 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10161 * python/python.c (python_excp_enums): Likewise.
10162 * remote.c (interrupt_sequence_modes): Likewise.
10163 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10164 * serial.c (logbase_enums): Likewise.
10165 * sh-tdep.c (sh_cc_enum): Likewise.
10166 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10168 * symtab.c (multiple_symbols_modes): Likewise.
10169 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10171 * utils.c (internal_problem_modes): Likewise.
10173 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10175 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10176 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10179 2012-01-27 Doug Evans <dje@google.com>
10181 * configure.ac (with_python): Fix absolute path handling for win32.
10182 * configure: Regenerate.
10184 2012-01-26 Doug Evans <dje@google.com>
10186 * symtab.c: Whitespace cleanup, no code changes.
10188 * symtab.c (lookup_symbol_in_language): Improve comment.
10189 (lookup_symbol_aux): Fix comment.
10191 * psymtab.c (add_psymbol_to_list): Result is now "void".
10192 * psympriv.h (add_psymbol_to_list): Update.
10194 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10196 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10198 Do not open script filenames twice.
10199 * cli/cli-cmds.c (source_script_from_stream): Pass to
10200 source_python_script also STREAM.
10201 * python/py-auto-load.c (source_section_scripts): Pass to
10202 source_python_script_for_objfile also STREAM.
10203 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10205 * python/python-internal.h (source_python_script_for_objfile): New
10206 parameter file, rename parameter file to filename.
10207 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10208 instead if !_WIN32. Update the function comment.
10209 (source_python_script, source_python_script_for_objfile)
10210 (source_python_script): New parameter file, rename parameter file to
10211 filename. Pass FILENAME to python_run_simple_file.
10212 * python/python.h (source_python_script): New parameter file, rename
10213 parameter file to filename.
10215 2012-01-26 Pedro Alves <palves@redhat.com>
10217 * corelow.c (core_has_fake_pid): Delete.
10218 (core_close): Delete references to `core_has_fake_pid'.
10219 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10220 (core_open): Delete references to `core_has_fake_pid'.
10221 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10222 the removed global.
10224 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10226 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10227 Remove language parameter from name_matcher. Adjust the comment.
10228 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10229 Remove language parameter.
10230 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10231 * linespec.c (iterate_name_matcher): Likewise.
10232 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10233 name_matcher. Adjust call accordingly.
10234 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10235 (maintenance_check_symtabs): Adjust type of parameter "fun".
10236 * psymtab.h (maintenance_check_symtabs): Likewise.
10238 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10240 * language.h (symbol_name_match_p_ftype): New typedef.
10241 (struct language_defn): Replace field la_symbol_name_compare
10242 by la_get_symbol_name_match_p.
10243 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10244 (ada_language_defn): Use it.
10245 * linespec.c (struct symbol_matcher_data): New type.
10246 (iterate_name_matcher): Rewrite.
10247 (iterate_over_all_matching_symtabs): Pass a pointer to
10248 a symbol_matcher_data struct to expand_symtabs_matching
10249 instead of just the lookup name.
10250 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10251 opencl-lang.c, p-lang.c, language.c: Delete field
10252 la_symbol_name_compare, and replace by NULL for new field
10253 la_get_symbol_name_match_p.
10254 * symfile.h (struct quick_symbol_functions): Update comment.
10256 2012-01-25 Tom Tromey <tromey@redhat.com>
10258 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10261 2012-01-24 Tom Tromey <tromey@redhat.com>
10264 * solib.c (update_solib_list): Update the program space's
10265 added_solibs and deleted_solibs fields.
10266 * progspace.h (struct program_space) <added_solibs,
10267 deleted_solibs>: New fields.
10268 (clear_program_space_solib_cache): Declare.
10269 * progspace.c (release_program_space): Call
10270 clear_program_space_solib_cache.
10271 (clear_program_space_solib_cache): New function.
10272 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10273 bpstat_stop_status. Use handle_solib_event.
10274 * breakpoint.c: Include gdb_regex.h.
10275 (print_solib_event): New function.
10276 (bpstat_print): Use print_solib_event.
10277 (bpstat_stop_status): Add special case for bp_shlib_event.
10278 (handle_solib_event): New function.
10279 (bpstat_what): Use handle_solib_event.
10280 (struct solib_catchpoint): New.
10281 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10282 (breakpoint_hit_catch_solib, check_status_catch_solib)
10283 (print_it_catch_solib, print_one_catch_solib)
10284 (print_mention_catch_solib, print_recreate_catch_solib): New
10286 (catch_solib_breakpoint_ops): New global.
10287 (catch_load_or_unload, catch_load_command_1)
10288 (catch_unload_command_1): New functions.
10289 (internal_bkpt_check_status): Add special case for
10291 (internal_bkpt_print_it): Use print_solib_event.
10292 (initialize_breakpoint_ops): Initialize
10293 catch_solib_breakpoint_ops.
10294 (_initialize_breakpoint): Register "catch load" and "catch
10296 * breakpoint.h (handle_solib_event): Declare.
10297 * NEWS: Add entry for "catch load" and "catch unload".
10299 2012-01-24 Tom Tromey <tromey@redhat.com>
10301 * ada-lang.c: Include gdb_vecs.h.
10302 * charset.c: Include gdb_vecs.h.
10303 * tracepoint.h: Include gdb_vecs.h.
10304 * gdb_vecs.h: New file.
10306 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10308 * breakpoint.c (breakpoint_hit_catch_fork)
10309 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10310 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10311 * infrun.c (inferior_has_forked, inferior_has_vforked)
10312 (inferior_has_execd, inferior_has_called_syscall): Delete.
10313 (handle_syscall_event): Get syscall_number from the execution
10314 control state's wait status.
10315 (wait_for_inferior): Don't clear syscall_number.
10317 2012-01-24 Pedro Alves <palves@redhat.com>
10319 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10320 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10321 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10322 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10324 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10325 false for events other than TARGET_SIGNAL_TRAP.
10326 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10327 Add `ws' parameter.
10328 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10329 events other than TARGET_SIGNAL_TRAP.
10330 (tracepoint_breakpoint_hit): Add `ws' parameter.
10331 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10333 (bpstat_stop_status): Same.
10334 (pc_at_non_inline_function): Same.
10335 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10336 to pass the current event's waitstatus to bpstat_stop_status
10337 and pc_at_non_inline_function.
10339 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10342 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10343 Update the function comment for it.
10344 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10345 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10348 2012-01-24 Pedro Alves <palves@redhat.com>
10350 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10351 outside `bs->stop' block.
10352 (bpstat_what): Rework bp_shlib_event handling.
10353 (internal_bkpt_check_status): If the breakpoint is a
10354 bp_shlib_event, then set bs->stop and bs->print if
10355 stop_on_solib_events is set.
10357 2012-01-24 Gary Benson <gbenson@redhat.com>
10359 Delete #if 0'd out code.
10360 * stack.c (print_frame_label_vars): Remove.
10361 (catch_info): Likewise.
10362 (_initialize_stack): Remove "info catch" command.
10363 * NEWS: Mention the above.
10365 2012-01-24 Pedro Alves <palves@redhat.com>
10367 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10369 (remote_notice_new_inferior): If the remote end doesn't support
10370 the multiprocess extensions, then the PID is fake.
10371 (add_current_inferior_and_thread): New.
10372 (remote_start_remote): Use it.
10373 (extended_remote_attach_1): Adjust.
10374 (extended_remote_create_inferior_1): Use
10375 add_current_inferior_and_thread.
10377 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10379 Fix watchpoints to be specific for each inferior.
10380 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10381 current_program_space.
10382 * i386-nat.c (i386_inferior_data_cleanup): New.
10383 (i386_inferior_data_get): Replace variable inf_data_local by an
10384 inferior_data call.
10385 (i386_use_watchpoints): Initialize i386_inferior_data.
10386 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10387 specific iterate_over_lwps.
10389 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10391 Fix watchpoints across inferior fork.
10392 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10393 comment for linux_nat_iterate_watchpoint_lwps.
10394 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10395 linux_nat_iterate_watchpoint_lwps.
10396 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10397 * i386-linux-nat.c (update_debug_registers_callback): Update the
10398 comment for linux_nat_iterate_watchpoint_lwps.
10399 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10400 linux_nat_iterate_watchpoint_lwps.
10401 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10402 * i386-nat.c: Include inferior.h.
10403 (dr_mirror): Remove.
10404 (i386_inferior_data, struct i386_inferior_data)
10405 (i386_inferior_data_get): New.
10406 (i386_debug_reg_state): Use i386_inferior_data_get.
10407 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10408 (i386_insert_watchpoint, i386_remove_watchpoint)
10409 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10410 (i386_remove_hw_breakpoint): New variable state, use
10411 i386_debug_reg_state instead of DR_MIRROR.
10412 * linux-nat.c (delete_lwp): New declaration.
10413 (num_lwps): Move here from downwards.
10414 (delete_lwp_cleanup): New.
10415 (linux_child_follow_fork): Create new child_lp, call
10416 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10418 (num_lwps): Move upwards.
10419 (linux_nat_iterate_watchpoint_lwps): New.
10420 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10421 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10423 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10427 2012-01-23 Pedro Alves <palves@redhat.com>
10429 * top.c (caution): Rename to ...
10430 (confirm): ... this.
10431 (show_caution): Rename to ...
10432 (show_confirm): ... this.
10433 (quit_cover): Adjust.
10434 (init_main): Adjust.
10435 * top.h (caution): Rename to ...
10436 (confirm): ... this.
10437 * utils.c (internal_vproblem, defaulted_query): Adjust.
10439 2012-01-23 Pedro Alves <palves@redhat.com>
10441 * top.c (caution): Update comment.
10442 (execute_command): Don't consider the current value of `caution'.
10444 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10446 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10448 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10450 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10451 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10452 * target.c (target_fileio_pwrite): Remove buffer address from
10454 (target_fileio_pread): Likewise.
10456 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10458 * NEWS: Document remote "info proc" and "generate-core-file".
10460 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10462 * gdbarch.sh (find_memory_regions): New callback.
10463 * gdbarch.c, gdbarch.h: Regenerate.
10465 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10466 callback before falling back to target method.
10468 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10469 (linux_target_install_ops): No longer install it.
10471 * linux-tdep.c (linux_find_memory_regions): New function.
10472 (linux_init_abi): Install it.
10474 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10476 * gdbarch.sh (make_corefile_notes): New architecture callback.
10477 * gdbarch.c: Regenerate.
10478 * gdbarch.h: Likewise.
10480 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10481 before target_make_corefile_notes. If NULL is returned, the
10482 target does not support core file generation.
10484 * linux-nat.c: Include "linux-tdep.h".
10485 (find_signalled_thread, find_stop_signal): Remove.
10486 (linux_nat_do_thread_registers): Likewise.
10487 (struct linux_nat_corefile_thread_data): Likewise.
10488 (linux_nat_corefile_thread_callback): Likewise.
10489 (iterate_over_spus): Likewise.
10490 (struct linux_spu_corefile_data): Likewise.
10491 (linux_spu_corefile_callback): Likewise.
10492 (linux_spu_make_corefile_notes): Likewise.
10493 (linux_nat_collect_thread_registers): New function.
10494 (linux_nat_make_corefile_notes): Replace contents by call to
10495 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10496 as native-only callback.
10498 * linux-tdep.h: Include "bfd.h".
10499 (struct regcache): Add forward declaration.
10500 (linux_collect_thread_registers_ftype): New typedef.
10501 (linux_make_corefile_notes): Add prototype.
10502 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10503 "regset.h", and "elf-bfd.h".
10504 (find_signalled_thread, find_stop_signal): New functions.
10505 (linux_spu_make_corefile_notes): Likewise.
10506 (linux_collect_thread_registers): Likewise.
10507 (struct linux_corefile_thread_data): New data structure.
10508 (linux_corefile_thread_callback): New funcion.
10509 (linux_make_corefile_notes): Likewise.
10510 (linux_make_corefile_notes_1): Likewise.
10511 (linux_init_abi): Install it.
10513 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10515 * gdbarch.sh (info_proc): New callback.
10516 * gdbarch.c, gdbarch.h: Regenerate.
10518 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10519 before falling back to the target info_proc callback.
10521 * linux-nat.c: Do not include "cli/cli-utils.h".
10522 (linux_nat_info_proc): Remove.
10523 (linux_target_install_ops): No longer install it.
10525 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10526 (read_mapping): New function.
10527 (linux_info_proc): Likewise.
10528 (linux_init_abi): Install it.
10530 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10532 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10533 * infcmd.c: (info_proc_cmd_1): New function.
10534 (info_proc_cmd): New function, moved here from equivalent routine
10535 orignally in linux-nat.c.
10536 (info_proc_cmd_mappings): Likewise.
10537 (info_proc_cmd_stat): Likewise.
10538 (info_proc_cmd_status): Likewise.
10539 (info_proc_cmd_cwd): Likewise.
10540 (info_proc_cmd_cmdline): Likewise.
10541 (info_proc_cmd_exe): Likewise.
10542 (info_proc_cmd_all): Likewise.
10543 (_initialize_infcmd): Install "info proc" command and subcommands.
10545 * target.h (struct target_ops): Add to_info_proc.
10546 (target_info_proc): Add prototype.
10547 * target.c (target_info_proc): New function.
10549 * procfs.c (procfs_info_proc): Add prototype.
10550 (info_proc_cmd): Rename into ...
10551 (procfs_info_proc): ... this. Update argument types as appropriate
10552 for a to_info_proc implementation. Handle "what" argument.
10553 (procfs_target): Install procfs_info_proc.
10554 (_initialize_procfs): No longer install "info proc" command.
10556 * linux-nat.c: (enum info_proc_what): Remove.
10557 (linux_nat_info_proc_cmd_1): Rename into ...
10558 (linux_nat_info_proc): ... this. Update argument types as appropriate
10559 for a to_info_proc implementation.
10560 (linux_nat_info_proc_cmd): Remove.
10561 (linux_nat_info_proc_cmd_mappings): Likewise.
10562 (linux_nat_info_proc_cmd_stat): Likewise.
10563 (linux_nat_info_proc_cmd_status): Likewise.
10564 (linux_nat_info_proc_cmd_cwd): Likewise.
10565 (linux_nat_info_proc_cmd_cmdline): Likewise.
10566 (linux_nat_info_proc_cmd_exe): Likewise.
10567 (linux_nat_info_proc_cmd_all): Likewise.
10568 (linux_target_install_ops): Install linux_nat_info_proc.
10569 (_initialize_linux_nat): No longer install "info proc" command
10572 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10574 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10575 * config.in, configure: Regenerate.
10577 * target.h (struct target_ops): Add to_fileio_readlink.
10578 (target_fileio_readlink): Add prototype.
10579 * target.c (target_fileio_readlink): New function.
10581 * inf-child.c: Conditionally include <sys/param.h>.
10582 (inf_child_fileio_readlink): New function.
10583 (inf_child_target): Install it.
10585 * remote.c (PACKET_vFile_readlink): New enum value.
10586 (remote_hostio_readlink): New function.
10587 (init_remote_ops): Install it.
10588 (_initialize_remote): Handle vFile:readlink packet type.
10590 2012-01-20 Pedro Alves <palves@redhat.com>
10591 Ulrich Weigand <ulrich.weigand@linaro.org>
10593 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10594 * config.in, configure: Regenerate.
10596 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10597 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10598 (target_fileio_open): Add prototype.
10599 (target_fileio_pwrite): Likewise.
10600 (target_fileio_pread): Likewise.
10601 (target_fileio_close): Likewise.
10602 (target_fileio_unlink): Likewise.
10603 (target_fileio_read_alloc): Likewise.
10604 (target_fileio_read_stralloc): Likewise.
10606 * target.c: Include "gdb/fileio.h".
10607 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10608 (default_fileio_target): New function.
10609 (target_fileio_open): Likewise.
10610 (target_fileio_pwrite): Likewise.
10611 (target_fileio_pread): Likewise.
10612 (target_fileio_close): Likewise.
10613 (target_fileio_unlink): Likewise.
10614 (target_fileio_close_cleanup): Likewise.
10615 (target_fileio_read_alloc_1): Likewise.
10616 (target_fileio_read_alloc): Likewise.
10617 (target_fileio_read_stralloc): Likewise.
10619 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10620 <fcntl.h>, and <unistd.h>.
10621 (inf_child_fileio_open_flags_to_host): New function.
10622 (inf_child_errno_to_fileio_error): Likewise.
10623 (inf_child_fileio_open): Likewise.
10624 (inf_child_fileio_pwrite): Likewise.
10625 (inf_child_fileio_pread): Likewise.
10626 (inf_child_fileio_close): Likewise.
10627 (inf_child_fileio_unlink): Likewise.
10628 (inf_child_target): Install to_fileio routines.
10630 * remote.c (init_remote_ops): Install to_fileio routines.
10632 2012-01-20 Pedro Alves <palves@redhat.com>
10633 Ulrich Weigand <ulrich.weigand@linaro.org>
10635 * remote.c (remote_multi_process_p): Only check for multi-process
10636 protocol feature, do not check for extended protocol.
10637 (remote_supports_multi_process): Check for extended protocol here.
10638 (set_general_process): Likewise.
10639 (extended_remote_kill): Likewise.
10640 (remote_pid_to_str): Likewise.
10641 (remote_query_supported): Always query multiprocess mode.
10643 2012-01-20 Pedro Alves <palves@redhat.com>
10644 Ulrich Weigand <ulrich.weigand@linaro.org>
10646 * inferior.h (struct inferior): Add fake_pid_p.
10647 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10648 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10649 magic_null_ptid since the remote side doesn't provide a real PID.
10651 2012-01-19 Tom Tromey <tromey@redhat.com>
10653 * NEWS: Combine the two Python sections.
10655 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10657 * target.h (target_close): Update comment on the target's unpush state.
10659 2012-01-19 Pedro Alves <palves@redhat.com>
10661 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10662 linux_nat_async directly instead of going through the target
10664 * target.c (unpush_target): Close target after unpushing it, not
10667 2012-01-19 Gary Benson <gbenson@redhat.com>
10669 * mdebugread.c (sort_blocks): Replace integer constants with ones
10670 derived from FIRST_LOCAL_BLOCK.
10672 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10673 Jan Kratochvil <jan.kratochvil@redhat.com>
10676 * symfile.c (find_separate_debug_file): New function.
10677 (terminate_after_last_dir_separator): Likewise.
10678 (find_separate_debug_file_by_debuglink): Also try realpath.
10679 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10680 * configure: Regenerate.
10681 * config.in: Regenerate.
10683 2012-01-18 Doug Evans <dje@google.com>
10685 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10686 (main.o): Remove rule.
10687 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10688 (--with-sysroot): Rewrite.
10689 * configure: Regenerate.
10690 * config.in: Regenerate.
10692 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10694 * parse.c (initialize_expout): New function.
10695 (reallocate_expout): Likewise.
10696 (parse_exp_in_context): Use `initialize_expout' and
10697 `reallocate_expout' when appropriate.
10699 2012-01-18 Pedro Alves <palves@redhat.com>
10701 * record.c (struct record_breakpoint, record_breakpoint_p)
10702 (record_breakpoints): New.
10703 (record_insert_breakpoint, record_remove_breakpoint): Manage
10704 record breakpoints list. Only remove breakpoints from the
10705 inferior if they had been inserted there in the first place.
10707 2012-01-17 Doug Evans <dje@google.com>
10709 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10710 if we know we don't have a file name to look for.
10712 2012-01-17 Pedro Alves <palves@redhat.com>
10714 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10715 the frame's stop reason is UNWIND_UNAVAILABLE.
10717 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10719 Fix compilation error.
10720 * m2-exp.y (yyerror): Use ANSI C prototype.
10722 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10724 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10725 (growbuf_by_size): Likewise.
10726 (yyerror): Likewise.
10727 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10728 (modblock): Remove variable (was #if 0'ed).
10729 (parse_number): Convert prototype from K&R to ANSI C.
10730 (yyerror): Likewise.
10731 * objc-exp.y (parse_number): Likewise.
10732 (yyerror): Likewise.
10733 (yylex): Remove #if 0'ed code.
10734 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10735 (yyerror): Likewise.
10737 2012-01-16 Tom Tromey <tromey@redhat.com>
10740 * symtab.h (compare_filenames_for_search): Declare.
10741 * symtab.c (compare_filenames_for_search): New function.
10742 (iterate_over_some_symtabs): Use it.
10743 * symfile.h (struct quick_symbol_functions)
10744 <map_symtabs_matching_filename>: Change spec.
10745 * psymtab.c (partial_map_symtabs_matching_filename): Use
10746 compare_filenames_for_search. Update for new spec.
10747 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10748 compare_filenames_for_search. Update for new spec.
10749 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10751 2012-01-16 Tom Tromey <tromey@redhat.com>
10754 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10755 (struct main_type) <flag_flag_enum>: New field.
10756 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10757 * NEWS: Add entries.
10758 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10760 * python/lib/gdb/printing.py (_EnumInstance): New class.
10761 (FlagEnumerationPrinter): Likewise.
10763 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10765 * breakpoint.c (create_sals_from_address_default): New function.
10766 (create_breakpoints_sal_default): Likewise.
10767 (decode_linespec_default): Likewise.
10768 (is_marker_spec): Removed.
10769 (strace_marker_p): New function.
10770 (init_breakpoint_sal): Using `strace_marker_p' instead of
10772 (create_breakpoint): Call method `create_sals_from_address' from
10773 breakpoint_ops, replacing code that created SALs conditionally
10774 on the type of the breakpoint. Call method `create_breakpoints_sal',
10775 replacing code that created breakpoints conditionally on the type
10777 (base_breakpoint_create_sals_from_address): New function.
10778 (base_breakpoint_create_breakpoints_sal): Likewise.
10779 (base_breakpoint_decode_linespec): Likewise.
10780 (base_breakpoint_ops): Add methods
10781 `base_breakpoint_create_sals_from_address',
10782 `base_breakpoint_create_breakpoints_sal' and
10783 `base_breakpoint_decode_linespec'.
10784 (bkpt_create_sals_from_address): New function.
10785 (bkpt_create_breakpoints_sal): Likewise.
10786 (bkpt_decode_linespec): Likewise.
10787 (tracepoint_create_sals_from_address): Likewise.
10788 (tracepoint_create_breakpoints_sal): Likewise.
10789 (tracepoint_decode_linespec): Likewise.
10790 (strace_marker_create_sals_from_address): Likewise.
10791 (strace_marker_create_breakpoints_sal): Likewise.
10792 (strace_marker_decode_linespec): Likewise.
10793 (strace_marker_breakpoint_ops): New variable.
10794 (addr_string_to_sals): Remove `marker_spec'. Call method
10795 `decode_linespec' from breakpoint_ops, replacing code that decoded
10796 an address string into a SAL. Use `strace_marker_p' instead of
10798 (strace_command): Decide whether we are dealing with a static
10799 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10800 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10801 * breakpoint.h (linespec_result, linespec_sals): New forward
10803 (breakpoint_ops) <create_sals_from_address>,
10804 <create_breakpoints_sal>, <decode_linespec>: New methods.
10806 2012-01-14 Doug Evans <dje@google.com>
10808 * NEWS: Update text for "maint set python print-stack".
10809 It is deprecated in gdb 7.4 and deleted in 7.5.
10811 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10813 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10814 including curses.h.
10816 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10818 * configure: Regenerate.
10819 * config.in: Regenerate.
10821 2012-01-12 Keith Seitz <keiths@redhat.com>
10824 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10825 (ANONYMOUS_UNION_NAME): Define.
10826 (is_path_expr_parent): New function.
10827 (get_path_expr_parent): New function.
10828 (is_anonymous_child): New function.
10829 (create_child_with_value): If the child is anonymous and without
10830 a name, assign an object name to it.
10831 (c_describe_child): Use get_path_expr_parent to determine
10832 the parent expression.
10833 If there field represents an anonymous struct or union and
10834 has no name, set an appropriate display name and expression.
10835 (cplus_describe_child): Likewise.
10837 2012-01-12 Pedro Alves <palves@redhat.com>
10839 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10840 available when %ebp is found to be zero (outermost).
10842 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10844 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10845 an internal gdb_static_assert.
10846 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10848 2012-01-11 Tom Tromey <tromey@redhat.com>
10851 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10852 catch" and "catch throw".
10854 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10856 * blockframe.c (block_innermost_frame): Start search from selected
10857 frame, if present, or otherwise the current frame.
10859 * c-exp.y (variable): Update innermost_block for
10860 'block COLONCOLON NAME' clause.
10861 * m2-exp.y (variable): Ditto.
10862 * objc-exp.y (variable): Ditto.
10864 2012-01-10 Tom Tromey <tromey@redhat.com>
10867 * python/python.c (finish_python_initialization): Set sys.argv.
10869 2012-01-10 Doug Evans <dje@google.com>
10871 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10872 "want_line_info". All callers updated.
10873 (dwarf_decode_lines_1): New function.
10874 (handle_DW_AT_stmt_list): Add function comment.
10875 New arg "want_line_info". All callers updated.
10876 (read_file_scope,read_type_unit_scope): Move comment from
10877 handle_DW_AT_stmt_list to here.
10879 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10881 Fix regression after libiberty/ update for GCC PR 6057 and others.
10882 * c-exp.y (operator) <OPERATOR DELETE>
10883 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10884 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10885 (make_builtin_type, make_name): New variable i, add gdb_assert.
10886 (operator) <OPERATOR NEW>: Update ARGS to 3.
10887 (operator) <OPERATOR DELETE>: Add trailing space.
10888 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10889 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10890 * cp-support.c (cp_canonicalize_string): Check NULL from
10891 cp_comp_to_string, call warning and return.
10893 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10895 Fix duplicate .o files after omitting libbfd.a.
10896 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10897 (SFILES): Add corelow.c.
10898 (COMMON_OBS): Add corelow.o.
10899 (ALLDEPFILES): Remove corelow.c.
10900 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10901 * config/alpha/alpha-osf3.mh: Likewise.
10902 * config/alpha/fbsd.mh: Likewise.
10903 * config/arm/nbsdaout.mh: Likewise.
10904 * config/arm/nbsdelf.mh: Likewise.
10905 * config/i386/i386gnu.mh: Likewise.
10906 * config/ia64/hpux.mh: Likewise.
10907 * config/ia64/linux.mh: Likewise.
10908 * config/m32r/linux.mh: Likewise.
10909 * config/m68k/linux.mh: Likewise.
10910 * config/mips/irix5.mh: Likewise.
10911 * config/mips/irix6.mh: Likewise.
10912 * config/pa/hpux.mh: Likewise.
10913 * config/pa/linux.mh: Likewise.
10914 * config/powerpc/aix.mh: Likewise.
10915 * config/sparc/linux.mh: Likewise.
10916 * config/sparc/linux64.mh: Likewise.
10917 * config/sparc/sol2.mh: Likewise.
10918 * config/vax/vax.mh: Likewise.
10919 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10920 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10921 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10922 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10923 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10924 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10925 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10926 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10927 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10928 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10929 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10930 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10931 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10932 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10933 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10934 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10935 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10936 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10937 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10938 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10939 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10940 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10941 corelow.o from gdb_target_obs.
10942 * corefile.c (core_target): Update the comment on NULL value.
10943 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10944 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10945 MATCHES. Drop YUMMY set on NULL.
10946 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10947 reclaim CORE_DATA if it is already NULL.
10949 2012-01-09 Doug Evans <dje@google.com>
10951 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10952 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10954 2012-01-09 Keith Seitz <keiths@redhat.com>
10956 * breakpoint.c (wrapper.h): Don't include.
10958 2012-01-09 Keith Seitz <keiths@redhat.com>
10960 * Makefile.in (SFILES): Remove wrapper.c.
10961 (HFILES_NO_SRCDIR): Remove wrapper.h.
10962 (COMMON_OBS): Remove wrapper.o.
10963 * cli/cli-interp.c: Don't inlude wrapper.h.
10964 * corelow.c: Likewise.
10965 (core_open): Replace gdb_target_find_new_threads with
10966 TRY_CATCH around target_find_new_threads.
10967 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10968 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10969 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10970 evaluate_expression.
10971 (varobj_set_value): Likewise for evaluate_expression and
10973 (install_new_variable): Likewise for value_fetch_lazy.
10974 (adjust_value_for_child_access): Likewise for value_ind.
10975 (c_describe_child): Likewise for value_subscript and
10977 (c_value_of_root): Likewise for evaluate_expression.
10978 * wrapper.c: Remove.
10979 * wrapper.h: Remove.
10981 2012-01-09 Doug Evans <dje@google.com>
10983 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10984 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10985 "abfd" args with "section". All callers updated.
10986 Error checking code moved ...
10987 (error_check_comp_unit_head): ... here. New function.
10988 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10989 Delete arg "abfd". New arg "type_offset". All callers updated.
10990 (create_debug_types_hash_table): Simplify by using
10991 read_and_check_type_unit_head.
10993 * parser-defs.h (namecopy): Delete.
10994 * parse.c (namecopy, namecopy_size): Move into copy_name.
10996 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10998 Partially fix duplicate .o files after omitting libbfd.a.
10999 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11000 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11001 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11002 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11003 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11004 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11005 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11007 2012-01-09 Pedro Alves <palves@redhat.com>
11009 * MAINTAINERS: Update my email address.
11011 2012-01-08 Doug Evans <dje@google.com>
11013 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11014 n_type_units. Rename type_comp_units to all_type_units.
11016 (add_signatured_type_cu_to_table): Renamed from
11017 add_signatured_type_cu_to_list. All callers updated.
11019 * gdbtypes.h (struct cplus_struct_type): Delete member
11020 nfn_fields_total. All uses removed.
11022 2012-01-06 Doug Evans <dje@google.com>
11024 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11026 (dwarf2_find_comp_unit): Delete.
11027 (process_psymtab_comp_unit): Make result "void".
11028 Delete args buffer, info_ptr, buffer_size, and replace with
11029 "section". All callers updated.
11030 (dwarf2_build_psymtabs_hard): Simplify.
11032 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11033 Thiago Jung Bauermann <bauerman@br.ibm.com>
11035 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11036 before `struct gdb_exception'.
11037 * breakpoint.c (update_global_location_list_nothrow)
11038 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11039 * cp-abi.c (value_rtti_type): Likewise.
11040 * cp-support.c (cp_validate_operator): Likewise.
11041 * infrun.c (insert_exception_resume_breakpoint)
11042 (check_exception_resume, keep_going): Likewise.
11043 * mi-interp.c (mi_breakpoint_created)
11044 (mi_breakpoint_modified): Likewise.
11045 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11046 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11047 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11049 2012-01-05 Doug Evans <dje@google.com>
11051 * dwarf2read.c (statement_prologue): Delete, unused.
11053 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11054 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11056 * dwarf2read.c (comp_unit_header): Delete, unused.
11058 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11060 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11061 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11063 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11065 * infrun.c (normal_stop): Don't skip calling the normal_stop
11066 observers if the thread was doing a multi-step, but stopped for
11067 some reason other than stepping.
11069 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11071 * cli/cli-decode.h: Add comments.
11072 (CMD_LIST_AMBIGUOUS): Moved to command.h
11073 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11074 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11075 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11076 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11077 (add_com, add_com_alias, add_info, add_info_alias)
11078 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11080 * command.h: Add and adjust comments.
11081 (CMD_LIST_AMBIGUOUS): Moved here.
11082 (help_cmd, help_cmd_list): Delete declarations.
11084 2012-01-04 Doug Evans <dje@google.com>
11086 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11087 All callers updated.
11088 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11089 Replace all arguments with "per_cu". All callers updated.
11091 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11093 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11094 New arg "per_cu". All callers updated.
11096 Delete #if 0'd out code.
11097 * language.c (binop_result_type): Delete.
11098 (simple_type, ordered_type, same_type, integral_type): Delete.
11099 (numeric_type, character_type, string_type, boolean_type): Delete.
11100 (float_type, structured_type): Delete.
11101 * language.h: Update.
11103 2012-01-04 Tom Tromey <tromey@redhat.com>
11105 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11107 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11109 * corefile.c (close_exec_file): Delete.
11110 (reopen_exec_file): Remove commented out code that seems related
11111 to close_exec_file, which is being deleted here.
11112 * inferior.h (close_exec_file): Delete.
11113 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11115 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11117 * ada-lang.c: #include "cli/cli-utils.h".
11118 (get_selections): Use skip_spaces.
11119 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11120 (catch_ada_exception_command_split): Use skip_spaces.
11121 (ada_decode_assert_location): Likewise.
11123 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11125 * linespec.c (decode_line_internal): Check for C++ or Java
11126 compound constructs only if the current language is C, C++
11129 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11132 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11133 Joel Brobecker <brobecker@adacore.com>
11134 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11135 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11137 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11138 fall through into AT_ENTRY_POINT.
11139 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11140 DUMMY_ADDR with it.
11141 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11142 PPC_INSN_SIZE skip to 3 times.
11144 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11146 * linespec.c (add_minsym): Preserve function descriptors.
11148 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11150 * breakpoint.c (all_locations_are_pending): Consider locations
11151 in program spaces executing during startup pending as well.
11153 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11155 Copyright year update in most files of the GDB Project.
11157 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11159 * copyright.sh: Delete.
11160 * copyright.py: Rewrite.
11162 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11164 * gnulib/extra/update-copyright: New file, imported from gnulib.
11166 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11168 * README (Copyright and License Notices): New section.
11170 2012-01-03 Tom Tromey <tromey@redhat.com>
11173 * python/py-value.c (valpy_dereference, valpy_get_address
11174 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11175 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11176 (valpy_absolute, valpy_richcompare): Free intermediate values.
11178 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11180 * ada-lang.c: Reformat the copyright notice.
11182 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11184 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11185 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11186 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11187 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11188 Revert this part of:
11189 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11190 Build gdb directly from *.o files not using libgdb.a.
11191 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11193 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11195 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11196 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11197 Reformat the copyright header.
11199 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11201 Revert this part of:
11202 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11203 Remove the gdbtui binary.
11204 * gdb.c (main): Remove args.interpreter_p initialization.
11205 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11206 * main.h (struct captured_main_args): Remove interpreter_p.
11208 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11210 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11212 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11214 * top.c (print_gdb_version): Update copyright year.
11216 2012-01-02 Yao Qi <yao@codesourcery.com>
11218 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11220 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11221 Joel Brobecker <brobecker@adacore.com>
11223 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11224 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11226 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11227 fall through into AT_ENTRY_POINT.
11228 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11229 DUMMY_ADDR with it.
11230 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11231 PPC_INSN_SIZE skip to 3 times.
11233 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11235 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11237 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11239 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11241 Build gdb directly from *.o files not using libgdb.a.
11242 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11243 (COMMON_OBS): Remove solib-target.o.
11244 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11245 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11246 (LIBGDB_OBS, libgdb.a): Move it above.
11247 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11248 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11249 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11250 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11251 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11252 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11253 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11254 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11255 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11256 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11257 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11258 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11259 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11260 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11261 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11262 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11263 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11264 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11265 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11266 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11267 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11268 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11269 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11270 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11271 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11272 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11273 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11275 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11277 Remove the gdbtui binary.
11278 * .gitignore (/gdbtui): Remove.
11279 * Makefile.in (TUI): Remove.
11280 (SUBDIR_TUI_OBS): Remove tui-main.o.
11281 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11282 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11283 (tui-main.o): Remove.
11284 (all_object_files): Remove tui-main.o.
11285 * NEWS: New note for the gdbtui removal.
11286 * configure: Rebuilt.
11287 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11288 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11289 CONFIG_UNINSTALL respectively.
11290 * gdb.c (main): Remove args.interpreter_p initialization.
11291 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11292 * main.h (struct captured_main_args): Remove interpreter_p.
11293 * tui/tui-main.c: Remove.
11295 2012-01-01 Doug Evans <dje@google.com>
11297 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11298 (dwarf2_physname, read_import_statement): Ditto.
11299 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11300 (process_structure_scope read_subroutine_type): Ditto.
11301 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11302 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11303 (dwarf2_fetch_die_location_block): Ditto.
11304 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11306 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11307 All callers updated.
11308 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11309 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11310 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11312 * dwarf2read.c (load_cu): Move assert to more useful location.
11314 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11315 All callers updated.
11317 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11318 (dwarf2_elf_names): Minor reformat.
11319 (dwarf2_per_cu_data): Tweak comment.
11320 (dwarf2_read_section): Fix comment.
11321 (create_all_comp_units): Fix comment.
11322 (load_full_comp_unit): Fix comment.
11323 (process_full_comp_unit): Fix comment.
11324 (read_signatured_type): Fix comment.
11326 For older changes see ChangeLog-2011.
11332 version-control: never