1 2012-11-15 Pierre Muller <muller@sourceware.org>
3 * configure.ac (AC_HEADER_STAT): Remove.
4 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
5 and corresponding code.
6 * configure: Regenerate.
7 * config.in: Regenerate.
9 2012-11-15 Pierre Muller <muller@sourceware.org>
11 ARI xasprintf rule fixes.
12 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
14 (open_and_init_dwp_file): Ditto.
16 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
18 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
21 2012-11-14 Tom Tromey <tromey@redhat.com>
23 * configure, config.in: Rebuild.
24 * configure.ac: Don't check for ctype.h, time.h.
25 * expprint.c: Don't use HAVE_CTYPE_H.
27 2012-11-13 Tom Tromey <tromey@redhat.com>
29 * gdbarch.h, gdbarch.c: Rebuild.
30 * gdbarch.sh (set_target_gdbarch): Rename from
31 deprecated_target_gdbarch_select_hack.
32 * arch-utils.c (gdbarch_update_p): Update.
33 (set_gdbarch_from_file): Update.
35 2012-11-14 Pierre Muller <muller@sourceware.org>
37 * MAINTAINERS (Responsible Maintainers/misc): Add myself
38 as responsible of contrib/ari directory.
40 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
41 Yao Qi <yao@codesourcery.com>
43 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
45 (arm_m_exception_cache, arm_m_exception_this_id)
46 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
47 (arm_m_exception_unwind): New.
48 (arm_gdbarch_init): Register arm_m_exception_unwind.
50 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
52 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
53 parameter COUNT, for pattern filling of memory regions.
56 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
58 * disasm.h (DISASSEMBLY_FILENAME): New macro.
59 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
60 to print_source_lines ().
61 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
63 * source.c (print_source_lines_base): Prefix source line with
64 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
66 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
68 * symtab.h (print_source_lines_flags): New enum.
69 * source.c (print_source_lines_base): Change noerror to flags.
70 (print_source_lines): Change noerror to flags.
72 2012-11-13 Pierre Muller <muller@sourceware.org>
74 ARI fixes: Avoid sprintf function use rule.
75 * charset.c (convert_between_encodings): Use xsnprintf.
76 * cli-out.c (cli_field_int): Likewise.
77 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
78 * expprint.c (op_name_standard): Likewise.
79 * frv-tdep.c (set_variant_num_gprs): Likewise.
80 (set_variant_num_fprs): Likewise.
81 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
82 * nto-tdep.c (nto_find_and_open_solib): Likewise.
83 (nto_init_solib_absolute_prefix): Likewise.
84 * source.c (init_source_path): Likewise.
85 (print_source_lines_base): Likewise.
86 * valprint.c (print_wchar): Likewise.
87 * mi/mi-out.c (mi_field_int): Likewise.
88 windows-nat.c (windows_pid_to_exec_file): Likewise.
89 (windows_create_inferior): Likewise.
90 (_initialize_check_for_gdb_ini): Likewise.
92 2012-11-12 Joel Brobecker <brobecker@adacore.com>
94 * frame.h (deprecated_frame_register_read): Renames
96 * frame.c (deprecated_frame_register_read): Renames
97 frame_register_read. Update all callers.
98 * i386-tdep.c: Update all callers of frame_register_read.
101 * mips-tdep.c: Likewise.
102 * mt-tdep.c: Likewise.
103 * sh64-tdep.c: Likewise.
105 2012-11-12 Joel Brobecker <brobecker@adacore.com>
107 * frame.h (frame_register_read): Remove FIXME comment.
108 * frame.c (frame_register_read): Add suggestion explaining
109 which function to use in place of this one.
111 2012-11-12 Tom Tromey <tromey@redhat.com>
113 * python/python.c (start_type_printers): Initialize 'result_obj'.
115 2012-11-12 Tom Tromey <tromey@redhat.com>
118 * data-directory/Makefile.in (PYTHON_FILES): Add
120 * python/lib/gdb/command/type_printers.py: New file.
121 * python/lib/gdb/command/types.py (TypePrinter): New class.
122 (_get_some_type_recognizers, get_type_recognizers,
123 apply_type_recognizers, register_type_printer): New
125 * python/py-objfile.c (objfile_object) <type_printers>: New
127 (objfpy_dealloc): Decref new field.
128 (objfpy_new): Set new field.
129 (objfpy_get_type_printers, objfpy_set_type_printers): New
131 (objfile_to_objfile_object): Set new field.
132 (objfile_getset): Add "type_printers".
133 * python/py-progspace.c (pspace_object) <type_printers>: New
135 (pspy_dealloc): Decref new field.
136 (pspy_new): Set new field.
137 (pspy_get_type_printers, pspy_set_type_printers): New functions.
138 (pspace_to_pspace_object): Set new field.
139 (pspace_getset): Add "type_printers".
140 * python/python.c (start_type_printers, apply_type_printers,
141 free_type_printers): New functions.
142 (_initialize_python): Set gdb.type_printers.
143 * python/python.h (start_type_printers, apply_type_printers,
144 free_type_printers): Declare.
145 * typeprint.c (type_print_raw_options, default_ptype_flags):
146 Update for new fields.
147 (do_free_global_table, create_global_typedef_table,
148 find_global_typedef): New functions.
149 (find_typedef_in_hash): Use find_global_typedef.
150 (whatis_exp): Use create_global_typedef_table. Change cleanup
152 * typeprint.h (struct type_print_options) <global_typedefs,
153 global_printers>: New fields.
155 2012-11-12 Tom Tromey <tromey@redhat.com>
157 * c-typeprint.c (find_typedef_for_canonicalize,
158 print_name_maybe_canonical): New functions.
159 (c_print_type): Look up type name.
160 (cp_type_print_derivation_info): Add flags argument. Use
161 print_name_maybe_canonical.
162 (cp_type_print_method_args): Add wrapping.
163 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
164 (c_type_print_template_args): New function.
165 (c_type_print_base): Change wrapping. Use
166 print_name_maybe_canonical.
167 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
169 * gdbtypes.c (types_equal): No longer static.
170 * gdbtypes.h (types_equal): Declare.
171 * typeprint.c (type_print_raw_options, default_ptype_flags):
173 (struct typedef_hash_table): New.
174 (hash_typedef_field, eq_typedef_field,
175 recursively_update_typedef_hash, add_template_parameters,
176 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
177 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
178 copy_typedef_hash, find_typedef_in_hash): New functions.
179 * typeprint.h (struct type_print_options) <local_typedefs>:
181 (recursively_update_typedef_hash, add_template_parameters,
182 create_typedef_hash, free_typedef_hash,
183 make_cleanup_free_typedef_hash, copy_typedef_hash,
184 find_typedef_in_hash): Declare.
186 2012-11-12 Tom Tromey <tromey@redhat.com>
188 * cp-support.c (inspect_type,
189 replace_typedefs_qualified_name, replace_typedefs): Add
190 finder, data arguments. Call as needed.
191 (cp_canonicalize_string_full): New function.
192 (cp_canonicalize_string_no_typedefs): Rewrite.
193 * cp-support.h (canonicalization_ftype): New typedef.
194 (cp_canonicalize_string_full): Declare.
196 2012-11-12 Tom Tromey <tromey@redhat.com>
199 * c-typeprint.c (c_type_print_base): Handle print_method and
200 print_typedefs flags.
201 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
202 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
204 * typeprint.c (type_print_raw_options, default_ptype_flags):
205 Update for new field.s
206 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
207 (setprinttypelist, showprinttypelist, print_methods,
208 print_typedefs): New globals.
209 (set_print_type, show_print_type, set_print_type_methods,
210 show_print_type_methods, set_print_type_typedefs,
211 show_print_type_typedefs): New functions.
212 (_initialize_typeprint): Update documentation. Add "print
213 type methods" and "print type typedefs" parameters.
214 * typeprint.h (struct type_print_options) <print_methods,
215 print_typedefs>: New fields.
217 2012-11-12 Tom Tromey <tromey@redhat.com>
219 * c-typeprint.c (cp_type_print_method_args): Add flags
220 argument. Call c_print_type, not type_print.
221 (c_type_print_base): Call c_print_type, not type_print.
224 2012-11-12 Tom Tromey <tromey@redhat.com>
226 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
227 to type-printing functions.
228 * ada-lang.h (ada_print_type): Add argument.
229 * ada-typeprint.c (print_array_type, print_variant_clauses,
230 print_variant_part, print_selected_record_field_types,
231 print_record_field_types, print_unchecked_union_type,
232 print_func_type, ada_print_type): Add flags argument.
233 (ada_print_typedef): Update.
234 * c-exp.y (OPERATOR conversion_type_id): Update.
235 * c-lang.h (c_print_type, c_type_print_base): Update.
236 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
237 c_type_print_modifier, c_type_print_args,
238 c_type_print_varspec_suffix, c_type_print_base): Add flags
240 * cp-valprint.c (cp_print_class_member): Update.
241 * dwarf2read.c (dwarf2_compute_name): Update.
242 * f-lang.h (f_print_type): Add argument.
243 * f-typeprint.c (f_print_type): Add flags argument.
244 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
245 * go-lang.h (go_print_type): Add argument.
246 * go-typeprint.c (go_print_type): Add flags argument.
247 * jv-lang.h (java_print_type): Add argument.
248 * jv-typeprint.c (java_type_print_base, java_print_type): Add
250 * language.c (unk_lang_print_type): Add flags argument.
251 * language.h (struct language_defn) <la_print_type>: Add flags
253 (LA_PRINT_TYPE): Likewise.
254 * m2-lang.h (m2_print_type): Add argument.
255 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
256 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
257 m2_unbounded_array, m2_record_fields): Add flags argument.
258 * p-lang.h (pascal_print_type, pascal_type_print_base,
259 pascal_type_print_varspec_prefix): Add argument.
260 * p-typeprint.c (pascal_print_type,
261 pascal_type_print_varspec_prefix, pascal_print_func_args,
262 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
264 * symmisc.c (print_symbol): Update.
265 * typeprint.c (type_print_raw_options, default_ptype_flags):
267 (type_print): Update.
268 * typeprint.h (struct type_print_options): New.
269 (type_print_raw_options): Declare.
270 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
272 2012-11-10 Keith Seitz <keiths@redhat.com>
274 * breakpoint.c (clear_command): Add cleanup for
275 sals.sals if an argument is given.
277 * linespec.c (parse_linespec): Do cleanups after
278 parsing a convenience variable.
280 2012-11-10 Keith Seitz <keiths@redhat.com>
283 * c-valprint.c (c_val_print): For character arrays
284 with "print null" option on, print ellipses if
285 the output is truncated and the next character is not \000.
286 * valprint.c (MAX_WCHARS): Define.
287 (WCHAR_BUFLEN): Likewise.
288 (WCHAR_BUFLEN_MAX): Likewise.
289 (struct converted_character): New structure.
290 (count_next_character): New function.
291 (print_converted_chars_to_obstack): New function.
292 (generic_printstr): Rewrite using count_next_character
293 and print_converted_chars_to_obstack.
295 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
297 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
298 while executing the gdb command.
299 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
300 are called from prompt_for_continue.
301 * tui/tui-io.c (tui_redisplay_readline): Likewise.
303 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
307 * tui/tui.c (tui_rl_command_key): Do not call execute_command
308 but insert the command to execute in readline's buffer.
310 2012-11-09 Tom Tromey <tromey@redhat.com>
312 * gdbarch.sh (target_gdbarch): Remove macro.
313 (get_target_gdbarch): Rename to target_gdbarch.
314 * gdbarch.c, gdbarch.h: Rebuild.
315 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
316 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
317 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
318 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
319 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
320 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
321 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
322 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
323 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
324 procfs.c, progspace.c, ravenscar-thread.c, record.c,
325 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
326 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
327 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
328 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
329 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
330 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
331 target-descriptions.c, target.c, target.h, tracepoint.c,
332 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
333 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
334 python/py-inferior.c, python/python.c: Update.
336 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
338 * source.c (print_source_lines_base): Add fullname field giving
339 full path to file in mi output.
340 * NEWS: Mention the new fullname field.
342 2012-11-09 Yao Qi <yao@codesourcery.com>
344 * NEWS: Mention the fix to the ambiguity of 'fo' command.
346 2012-11-09 Pedro Alves <palves@redhat.com>
350 * infrun.c: Include target-descriptions.h.
351 (follow_exec): Fetch new target description.
353 2012-11-09 Yao Qi <yao@codesourcery.com>
355 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
358 2012-11-09 Yao Qi <yao@codesourcery.com>
360 * breakpoint.c: Declare set_tracepoint_count.
361 (install_breakpoint): Call set_tracepoint_count if B is a
363 (trace_command): Don't call set_tracepoint_count. Re-indent.
364 (strace_command, ftrace_command):
365 (create_tracepoint_from_upload): Likewise.
367 2012-11-09 Pedro Alves <palves@redhat.com>
369 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
370 (get_target_gdbarch) <gdbarch.h>: New function.
371 (startup_gdbarch) <gdbarch.h>: Declare.
372 <gdbarch.c> (target_gdbarch): Delete.
373 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
374 current inferior's gdbarch.
375 <gdbarch.c> (get_target_gdbarch): New function.
376 * inferior.c: Include target-descriptions.h.
377 (free_inferior): Free target description info.
378 (add_inferior_with_spaces): Set the inferior's initial
380 (clone_inferior_command): Copy the original inferior's target
381 description if it was user specified.
382 (initialize_inferiors): Add comment.
383 * inferior.h (struct target_desc_info): Forward declare.
384 (struct inferior) <gdbarch>: New field.
385 * linux-nat.c: Include target-descriptions.h.
386 (linux_child_follow_fork): Copy the parent's architecture and
387 target description to the child.
388 * target-descriptions.c: Include inferior.h.
389 (struct target_desc_info): New structure, holding the equivalents
391 (target_desc_fetched, current_target_desc)
392 (target_description_filename): ... these removed globals.
393 (get_tdesc_info, target_desc_info_from_user_p)
394 (copy_inferior_target_desc_info, target_desc_info_free): New.
395 (target_desc_fetched, current_target_desc)
396 (target_description_filename): Reimplemented as convenience
398 (tdesc_filename_cmd_string): New global.
399 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
400 tdescs filename ..." commands to the per-inferior equivalent.
401 (show_tdesc_filename_cmd): Get the value to show from the
402 per-inferior description filename.
403 (_initilize_target_descriptions): Change the "set/show tdesc
404 filename" commands' variable.
405 * target-descriptions.h (struct target_desc, struct target_desc_info)
406 (struct inferior): Forward declare.
407 (target_find_description, target_clear_description)
408 (target_current_description): Adjust comments.
409 (copy_inferior_target_desc_info, target_desc_info_free)
410 (target_desc_info_from_user_p). Declare.
412 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
414 * tui/tui-hooks.c (tui_about_to_proceed): New function.
415 (tui_target_wait_hook): Remove.
416 (tui_install_hooks): Install the about_to_proceed observer.
417 (tui_remove_hooks): And remove it here.
419 2012-11-08 Tom Tromey <tromey@redhat.com>
421 * linux-tdep.c (linux_make_siginfo_note): New function.
422 (linux_make_corefile_notes): Use it.
423 * corelow.c (get_core_siginfo): New function.
424 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
426 2012-11-08 Tom Tromey <tromey@redhat.com>
429 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
430 (zlib_decompress_section): Remove.
431 (gdb_bfd_map_section): Only check for compressed section
432 in mmap case. Use bfd_get_full_section_contents.
433 * osabi.c (check_note): Add 'sectsize' argument. Read
435 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
436 section data. Update for check_note change.
437 * xcoffread.c (xcoff_initial_scan): Use
438 bfd_get_full_section_contents.
439 * py-auto-load.c (auto_load_section_scripts): Use
440 bfd_get_full_section_contents.
441 * contrib/cc-with-tweaks.sh: Add -Z option.
443 2012-11-08 Tom Tromey <tromey@redhat.com>
445 * python/py-bpevent.c: Include defs.h.
446 * python/py-continueevent.c: Include defs.h.
447 * python/py-event.c: Include defs.h.
448 * python/py-event.h: Don't include defs.h.
449 * python/py-events.h: Don't include defs.h.
450 * python/py-evts.c: Include defs.h.
451 * python/py-exitedevent.c: Include defs.h.
452 * python/py-newobjfileevent.c: Include defs.h.
453 * python/py-signalevent.c: Include defs.h.
454 * python/py-stopevent.c: Include defs.h.
455 * python/py-threadevent.c: Include defs.h.
457 2012-11-08 Pierre Muller <muller@sourceware.org>
459 * update-web-ari.sh (print_heading): Add number of files
461 (nb_files): New variable counting the number of sources
462 files found by gdb_find.sh script.
463 (debug_awk): New variable to allow extra debug output.
464 (indexes): Add more information if DEBUG_AWK is set.
466 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
468 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
469 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
470 following the change in PLT call stubs on linker.
472 2012-11-08 Pierre Muller <muller@sourceware.org>
474 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
476 (AWK): Use = instead of == for sh test to avoid warning.
477 (Linux rule): Correct [:digit] into [[:digit:]].
478 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
479 (vasprintf rule): Adapt to common subdirectory moves.
480 (xasprintf rule): Idem.
481 (xvasprintf rule): Idem.
482 (var_boolean rule): Accept occurence in == or != test.
484 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
486 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
488 * tui/tui-hooks.c (tui_inferior_exit): New function.
489 (tui_detach_hook): Remove.
490 (tui_install_hooks): Install the inferior exit observer.
491 (tui_remove_hooks): Remove it.
493 2012-11-08 Yao Qi <yao@codesourcery.com>
496 * source.c (_initialize_source): Call add_com_alias to abbreviate
497 'forward-search' as 'fo'.
499 2012-11-07 Pedro Alves <palves@redhat.com>
501 * arm-tdep.c: Make defs.h be the first include.
502 * coff-pe-read.c: Ditto.
506 * ppcnbsd-nat.c: Ditto.
507 * ada-varobj.h: Don't include defs.h.
508 * i386-darwin-tdep.h: Ditto.
511 2012-11-07 Pedro Alves <palves@redhat.com>
513 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
516 2012-11-07 Pierre Muller <muller@sourceware.org>
518 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
519 File already uses "gdb_dirent.h" header.
521 2012-11-07 Yao Qi <yao@codesourcery.com>
523 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
526 2012-11-06 Tom Tromey <tromey@redhat.com>
528 * target.h (inferior_has_forked, inferior_has_vforked)
529 (inferior_has_execd, inferior_has_called_syscall): Remove
532 2012-11-06 Pierre Muller <muller@sourceware.org>
534 * remote.c (remote_insert_hw_breakpoint): ARI fix,
535 add missing internalization markup.
537 2012-11-06 Pedro Alves <palves@redhat.com>
541 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
543 2012-11-06 Pierre Muller <muller@sourceware.org>
545 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
548 2012-11-05 Joel Brobecker <brobecker@adacore.com>
550 * gnulib/update-gnulib.sh: New script.
552 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
554 * MAINTAINERS: Update my email address.
556 2012-11-05 Tom Tromey <tromey@redhat.com>
558 * frame.c (put_frame_register): Don't use temporary buffer.
560 2012-11-05 Pedro Alves <palves@redhat.com>
562 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
563 child. Clear 'pending_detach'.
564 * infrun.c (handle_vfork_child_exec_or_exit): Clear
565 'pending_detach' in the vfork parent.
567 2012-11-05 Doug Evans <dje@google.com>
569 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
570 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
571 * dwarf2read.c: #include "elf-bfd.h".
572 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
573 (dwop_section_names): Renamed from dwo_section names. All uses
574 updated. Add entries for .debug_cu_index, .debug_tu_index.
575 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
577 (struct dwp_sections): New type.
578 (struct virtual_dwo_sections): New type.
579 (struct dwp_hash_table): New type.
580 (struct dwp_file): New type.
581 (init_cutu_and_read_dies): Ensure DWO info/types section has been
582 read in. Handle DWOs coming from DWP files.
583 (lookup_dwo_file_slot): New function.
584 (dwarf2_locate_dwo_sections): Move definition closer to use.
585 (create_dwo_debug_info_hash_table_reader): Renamed from
586 create_debug_info_hash_table_reader. All callers updated.
587 (create_dwo_debug_info_hash_table): Renamed from
588 create_debug_info_hash_table. All callers updated.
589 (create_dwp_hash_table): New function.
590 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
591 (lookup_dwo_in_dwp): New function.
592 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
593 is_dwp. All callers updated.
594 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
595 (open_and_init_dwo_file): Renamed from init_dwo_file.
597 (lookup_dwo_file): Delete.
598 (dwarf2_locate_dwp_sections): New function.
599 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
600 (allocate_dwp_loaded_cutus_table): New function.
601 (open_and_init_dwp_file): New function.
602 (lookup_dwo_cutu): New function.
603 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
605 2012-11-03 Yao Qi <yao@codesourcery.com>
608 * breakpoint.c (trace_pass_set_count): Call
609 observer_notify_breakpoint_modified instead of
610 observer_notify_tracepoint_modified.
611 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
613 2012-11-02 Tom Tromey <tromey@redhat.com>
615 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
616 argument to complete_on_enum.
618 2012-11-02 Tom Tromey <tromey@redhat.com>
620 * configure: Rebuild.
621 * configure.ac (build_warnings): Add -Wempty-body.
622 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
623 * remote.c (handle_notification): Use braces for empty 'else' body.
624 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
626 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
628 * solib-som.c (som_relocate_section_addresses): Use braces
629 for empty 'else' body.
630 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
631 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
633 2012-11-02 Pedro Alves <palves@redhat.com>
637 * infrun.c (handle_inferior_event)
638 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
639 null_ptid before handling a vfork child exec or exit. Switch to
640 the event ptid afterwards.
642 2012-11-02 Yao Qi <yao@codesourcery.com>
644 * std-operator.def: Remove OP_LABELED.
645 * eval.c: Remove the declaration of 'get_label'.
647 (evaluate_struct_tuple): Remove code handling OP_LABELED.
649 Remove local variable 'variantno' and related code.
650 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
652 * expprint.c (print_subexp_standard): Likewise.
653 (dump_subexp_body_standard): Likewise.
654 * parse.c (operator_length_standard): Likewise.
656 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
658 Incorporate ARI web page generator into GDB sources.
659 * contrib/ari/create-web-ari-in-src.sh: New file.
660 * contrib/ari/gdb_ari.sh: New file.
661 * contrib/ari/gdb_find.sh: New file.
662 * contrib/ari/update-web-ari.sh: New file.
664 2012-10-31 Tom Tromey <tromey@redhat.com>
666 * gdbarch.c: Rebuild.
667 * gdbarch.sh: Remove references to gdbarch_swap.
668 * corelow.c (core_open): Remove obsolete comment.
670 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
673 * c-typeprint.c (c_print_type): Don't print a space for vector
674 types, this is handled within the suffix.
675 (c_type_print_varspec_suffix): Add a space to vector suffix.
677 2012-10-26 Pedro Alves <palves@redhat.com>
679 * amd64-tdep.c (amd64_relocate_instruction): Use
680 store_unsigned_integer instead of memcpy.
681 * i386-tdep.c (i386_relocate_instruction): Ditto.
683 2012-10-26 Pedro Alves <palves@redhat.com>
685 * infrun.c (handle_inferior_event): Merge handling of
686 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
689 2012-10-26 Pedro Alves <palves@redhat.com>
691 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
694 2012-10-26 Pedro Alves <palves@redhat.com>
696 * target.c (target_waitstatus_to_string): Handle
697 TARGET_WAITKIND_VFORK_DONE.
699 2012-10-26 Pedro Alves <palves@redhat.com>
701 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
702 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
704 2012-10-24 Tristan Gingold <gingold@adacore.com>
706 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
709 2012-10-24 Joel Brobecker <brobecker@adacore.com>
711 * ravenscar-thread.c (ravenscar_wait): Only update the list
712 of threads and inferior_ptid if the inferior is still alive.
714 2012-10-24 Joel Brobecker <brobecker@adacore.com>
716 * ada-lang.c (is_known_support_routine): Use lbasename when
717 matching the symtab's filename against
718 known_runtime_file_name_patterns.
720 2012-10-24 Joel Brobecker <brobecker@adacore.com>
722 * ada-lang.c (ada_same_array_size_p): New function.
723 (ada_promote_array_of_integrals): New function.
724 (coerce_for_assign): Add handling of arrays where the elements
725 are integrals of a smaller size than the size of the target
728 2012-10-24 Joel Brobecker <brobecker@adacore.com>
730 * doublest.c (convert_doublest_to_floatformat): Fix comparison
731 against maximum exponent value.
733 2012-10-24 Joel Brobecker <brobecker@adacore.com>
735 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
738 2012-10-24 Joel Brobecker <brobecker@adacore.com>
740 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
741 strip typedef layer when computing the fixed type's field type,
742 only when computing its size.
744 2012-10-24 Mark Kettenis <kettenis@gnu.org>
747 * i386-tdep.c (i386_return_value): Handle complex double and long
750 2012-10-24 Joel Brobecker <brobecker@adacore.com>
752 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
753 New local variable args_len.
754 Quote the name of the executable when computing the command line.
756 2012-10-23 Mark Kettenis <kettenis@gnu.org>
761 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
763 * amd64-tdep.c (amd64_classify): Classify complex types.
764 (amd64_return_value): Handle the COMPLEX_X87 class.
766 2012-10-23 Joel Brobecker <brobecker@adacore.com>
768 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
769 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
771 2012-10-23 Joel Brobecker <brobecker@adacore.com>
773 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
775 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
776 to amd64_windows_auto_wide_charset.
778 2012-10-23 Yao Qi <yao@codesourcery.com>
780 * event-top.c (mark_async_signal_handler_wrapper): Remove.
781 * event-top.h: Remove its declaration.
782 (async_request_quit): Call mark_async_signal_handler instead of
783 mark_async_signal_handler_wrapper.
784 (async_do_nothing, async_disconnect): Likewise.
785 (async_stop_sig): Likewise.
786 * remote.c (handle_remote_sigint): Likewise.
787 (handle_remote_sigint_twice): Likewise.
789 2012-10-23 Yao Qi <yao@codesourcery.com>
791 * event-top.c (sigint_token, sighup_token): Replace 'void *'
792 with 'static struct async_signal_handler *'.
793 (sighup_token, sigquit_token, sigstp_token): Likewise.
795 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
797 * gdbarch.sh (function_list): Use 'pstring' when printing
798 a variable which could return NULL.
799 * gdbarch.c: Regenerate.
801 2012-10-10 Joel Brobecker <brobecker@adacore.com>
802 Tom Tromey <tromey@redhat.com>
804 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
805 inneffective if condition by gdb assertion. Add function
808 2012-10-19 Joel Brobecker <brobecker@adacore.com>
810 * parser-defs.h (struct exp_descriptor): Document constraint
811 on return value for "op_name" callbacks.
813 2012-10-18 Tom Tromey <tromey@redhat.com>
815 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
816 * symtab.c (iterate_over_some_symtabs): Constify.
817 * source.h (symtab_to_fullname): Return 'const char *'.
818 * source.c (symtab_to_fullname): Return 'const char *'.
819 * python/py-symtab.c (stpy_fullname): Constify.
820 * cli/cli-cmds.c (edit_command): Constify.
821 * breakpoint.c (print_breakpoint_location)
822 (update_static_tracepoint): Constify.
824 2012-10-18 Tom Tromey <tromey@redhat.com>
826 * breakpoint.c (compare_breakpoints): Fix comparison.
828 2012-10-18 Tom Tromey <tromey@redhat.com>
830 * valprint.c (generic_emit_char, generic_printstr): Pass size of
831 gdb_wchar_t to convert_between_encodings.
833 2012-10-17 Yao Qi <yao@codesourcery.com>
835 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
836 more parameter 'inferior'.
837 * corefile.c (write_memory_with_notification): Caller update.
839 * mi/mi-cmd-var.c: Include "mi-main.h".
840 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
841 to 1 and restore it later.
842 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
843 and "data-write-memory-bytes.
844 * mi/mi-interp.c: Include objfiles.h.
845 (mi_interpreter_init): Call observer_attach_memory_changed.
846 (mi_memory_changed): New.
847 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
850 * NEWS: Mention new MI notification "memory-changed".
852 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
854 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
856 2012-10-15 Doug Evans <dje@google.com>
858 New option -nh: inhibit loading of ~/.gdbinit.
860 * main.c (captured_main): Recognize and process -nh.
861 (print_gdb_help): Mention -nh.
862 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
864 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
868 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
870 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
871 nor pc_regnum_from_eax.
872 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
873 nor pc_regnum_from_eax.
875 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
877 Fix entry values resolving in inlined frames.
878 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
879 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
882 2012-10-15 Joel Brobecker <brobecker@adacore.com>
884 * configure.ac: Build with -DMS_WIN64 if building with Python
885 enabled using GCC on amd64-windows.
886 * configure: Regenerate.
888 2012-10-15 Tom Tromey <tromey@redhat.com>
891 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
894 2012-10-15 Tom Tromey <tromey@redhat.com>
897 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
899 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
901 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
902 reset thread numbering back to 1.
904 2012-10-11 Doug Evans <dje@google.com>
906 PR breakpoints/14643.
907 * linespec.c (struct ls_parser): New member keyword_ok.
908 (linespec_lexer_lex_string): Add comment.
909 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
911 (parse_linespec): Set keyword_ok.
913 2012-10-10 Doug Evans <dje@google.com>
915 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
916 "0x" prefix on address in log message.
918 * dwarf2read.c (read_1_byte): Add const to buf parameter.
919 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
920 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
921 (lookup_dwo_file): Add const to dwo_name parameter.
922 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
924 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
926 Fix crash during stepping on ppc32.
927 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
930 2012-10-03 Doug Evans <dje@google.com>
933 * buildsym.c (buildsym_init): Reset using_directives to NULL.
935 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
937 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
938 output and use uint32_t not long to ensure 4 byte size.
940 2012-10-02 Joel Brobecker <brobecker@adacore.com>
942 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
945 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
947 * target.c (simple_search_memory): Include access length in
950 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
951 Edjunior Machado <emachado@linux.vnet.ibm.com>
954 * solib.c (solib_find): Prevent GDB from loading native libraries when
955 debugging a cross-target corefile.
957 2012-09-28 selven <pcthegreat@gmail.com>
959 Make definition match declaration.
961 * regcache.c (regcache_register_status): Change return type to
962 enum register_status.
964 2012-09-28 Yao Qi <yao@codesourcery.com>
966 * mi/mi-main.c (mi_cmd_data_write_memory): Call
967 write_memory_with_notification instead of write_memory.
968 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
969 instead of target_write_memory.
971 2012-09-28 Yao Qi <yao@codesourcery.com>
973 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
974 when the length of content is not an even number.
976 2012-09-27 Tom Tromey <tromey@redhat.com>
978 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
979 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
981 2012-09-27 Joel Brobecker <brobecker@adacore.com>
983 * sol-thread.c (sol_thread_fetch_registers)
984 (sol_thread_store_registers): Delete commented out code.
986 2012-09-27 Joel Brobecker <brobecker@adacore.com>
988 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
989 Move these functions to sparc-sol-thread.c.
990 * sparc-sol-thread.c: New file.
991 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
992 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
994 * configure: Regenerate.
996 2012-09-27 Joel Brobecker <brobecker@adacore.com>
998 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
999 Remove commented-out code.
1001 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1003 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1004 Enable this code for sparc hosts only.
1006 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1008 * procfs.h (procfs_find_LDT_entry): Add declaration.
1009 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1010 function procfs_find_LDT_entry.
1012 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1014 * procfs.c (proc_get_LDT_entry): Make static.
1016 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1018 * procfs.c (proc_find_memory_regions): Fix declaration.
1020 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1022 * amd64-tdep.c (amd64_return_value): Revert previous change
1023 that used TYPE_LENGTH directly.
1024 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1025 (bfin_store_return_value): Likewise.
1026 * cris-tdep.c (cris_store_return_value): Likewise.
1027 (cris_extract_return_value): Likewise.
1028 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1029 * hppa-tdep.c (hppa64_return_value): Likewise.
1030 * lm32-tdep.c (lm32_store_return_value): Likewise.
1031 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1032 * spu-tdep.c (spu_value_from_register): Likewise.
1033 * vax-tdep.c (vax_return_value): Likewise.
1035 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1037 * gdbtypes.c (lookup_array_range_type): Expand parameters
1038 LOW_BOUND and HIGH_BOUND to LONGEST.
1039 (lookup_string_range_type): Likewise.
1040 * gdbtypes.h (lookup_array_range_type): Likewise.
1041 (lookup_string_range_type): Likewise.
1042 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1043 Expand HIGHBOUND to ssize_t.
1044 (value_string): Likewise.
1045 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1046 (value_string): Likewise.
1048 2012-09-27 Yao Qi <yao@codesourcery.com>
1050 PR breakpoints/13898
1051 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1052 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1053 per breakpoint type.
1055 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1057 * procfs.c: Add gdb_bfd header.
1058 * rs6000-nat.c: Likewise.
1059 * solib-pa64.c: Likewise.
1060 * spu-linux-nat.c: Likewise.
1061 * windows-nat.c: Likewise.
1063 2012-09-26 Tom Tromey <tromey@redhat.com>
1065 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1067 2012-09-26 Tom Tromey <tromey@redhat.com>
1069 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1070 (read_common_block): Handle child DIEs with
1071 DW_AT_data_member_location.
1072 (new_symbol_full): Add special case for common blocks.
1074 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 Tom Tromey <tromey@redhat.com>
1077 * dwarf2read.c (read_common_block): Rewrite.
1078 (new_symbol_full): Handle DW_TAG_common_block.
1079 * f-lang.c (head_common_list, find_common_for_function):
1081 * f-lang.h (struct common_entry, struct saved_f77_common,
1082 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1083 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1084 BLANK_COMMON_NAME_LOCAL): Remove.
1085 (struct common_block): New.
1086 * f-valprint.c (list_all_visible_commons): Remove.
1087 (info_common_command_for_block): New function.
1088 (info_common_command): Use it.
1089 * stack.c (iterate_over_block_locals): Special case for
1090 COMMON_BLOCK_DOMAIN.
1091 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1093 (struct general_symbol_info) <value.common_block>: New field.
1094 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1096 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 Tom Tromey <tromey@redhat.com>
1099 * f-lang.c (allocate_saved_bf_node,
1100 allocate_saved_function_node, allocate_saved_f77_common_node,
1101 allocate_common_entry_node, tail_common_list, current_common,
1102 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1103 tmp_bf_ptr, add_common_block, add_common_entry,
1104 find_first_common_named, patch_common_entries,
1105 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1106 global_remote_debug, get_bf_for_fcn, saved_function_list,
1107 saved_function_list_end, clear_function_list, struct saved_fcn,
1108 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1109 SAVED_BF, SAVED_BF_PTR): Remove.
1110 * f-lang.h (tail_common_list, current_common,
1111 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1112 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1113 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1114 real_main_c_value): Remove.
1115 * f-valprint.c (there_is_a_visible_common_named): Remove.
1117 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1119 * breakpoint.c (update_global_location_list): Ignore previous
1120 duplicate status of a breakpoint when starting a new scan for
1121 duplicate breakpoints.
1123 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1124 PR breakpoints/14419
1125 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1126 support LLVM compiler.
1128 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1130 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1131 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1132 (bfin_store_return_value): Likewise.
1133 * cris-tdep.c (cris_store_return_value): Likewise.
1134 (cris_extract_return_value): Likewise.
1135 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1136 * hppa-tdep.c (hppa64_return_value): Likewise.
1137 * lm32-tdep.c (lm32_store_return_value): Likewise.
1138 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1139 * spu-tdep.c (spu_value_from_register): Likewise.
1140 * vax-tdep.c (vax_return_value): Likewise.
1142 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1144 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1145 parameter LEN to ssize_t.
1147 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1149 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1151 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1153 (alpha_store_return_value): Likewise.
1154 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1155 (amd64_push_arguments): Likewise.
1156 * ax-gdb.c (gen_trace_static_fields): Likewise.
1157 (gen_traced_pop): Likewise.
1158 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1159 * breakpoint.c (update_watchpoint): Likewise.
1160 * findcmd.c (parse_find_args): Use local variable for type
1162 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1163 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1164 (h8300_store_return_value): Likewise.
1165 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1166 Use i386_darwin_arg_type_alignment directly.
1167 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1168 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1169 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1170 (m68hc11_extract_return_value): Likewise.
1171 * mep-tdep.c (mep_push_dummy_call): Likewise.
1172 * printcmd.c (float_type_from_length): Likewise.
1173 * s390-tdep.c (s390_value_from_register): Likewise.
1174 * stack.c (read_frame_arg): Likewise.
1175 * tracepoint.c (encode_actions_1): Likewise.
1176 * valops.c (value_fetch_lazy): Use local variable for type
1177 instead of length. Use TYPE_LENGTH directly.
1178 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1180 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1182 * symtab.c (skip_prologue_sal): Fix typo in comment.
1184 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1186 * linespec.c (create_sals_line_offset): Fix typo in comment.
1188 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1190 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1191 use plongest to print the array size.
1193 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1195 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1196 * p-valprint.c (pascal_type_print_base): Likewise.
1198 2012-09-22 Yao Qi <yao@codesourcery.com>
1200 * remote.c (remote_get_trace_status): Remove setting default
1201 values of fields of 'ts'.
1203 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1205 Fix internal error on canonicalization of clang types.
1206 * cp-name-parser.y (operator): New comment at make_operator call for
1207 new, delete, new[] and delete[].
1208 (exp): Use "sizeof ". Add new comment at make_operator call.
1210 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 Fix disassemble without parameters in tailcall frame.
1213 * cli/cli-cmds.c (disassemble_current_function): Use
1214 get_frame_address_in_block.
1216 2012-09-21 Tom Tromey <tromey@redhat.com>
1218 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1219 TYPE_CODE_UNION>: Unify, removing a goto.
1221 2012-09-21 Tom Tromey <tromey@redhat.com>
1223 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1225 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1227 * findvar.c (read_frame_register_value): Mark the result value as
1228 optimized out if any of the input registers have been optimized out.
1230 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1232 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1234 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1236 * eval.c (evaluate_subexp_standard): Eliminate single-use
1239 2012-09-21 Yao Qi <yao@codesourcery.com>
1241 * mi/mi-interp.c: Declare mi_record_changed.
1242 (mi_interpreter_init): Call observer_attach_record_changed.
1243 (mi_record_changed): New.
1244 * record.c (record_open): Call observer_notify_record_changed.
1245 (cmd_record_stop): Call observer_notify_record_changed.
1248 2012-09-20 Tom Tromey <tromey@redhat.com>
1251 * python/python.c (finalize_python): New function.
1252 (_initialize_python): Make a final cleanup.
1254 2012-09-19 Doug Evans <dje@google.com>
1256 * buildsym.h (param_symbols): Delete, unused.
1257 (context_stack): Delete member "params", unused.
1258 * buildsym.c (push_context): Update.
1259 * dwarf2read.c (read_func_scope): Update.
1261 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1263 * sh-tdep.c (sh_register_convert_to_virtual)
1264 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1265 all callers. Just do a memcpy if not the little-endian case.
1267 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1268 set_gdbarch_double_format and set_gdbarch_long_double_format.
1269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1270 set_gdbarch_double_format.
1271 * sh-tdep.c (sh_gdbarch_init): Likewise.
1273 * NEWS: Document the removal of SH's 'regs' command.
1274 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1277 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1279 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1282 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1284 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1285 language when iterating over symbols.
1287 2012-09-18 Yao Qi <yao@codesourcery.com>
1289 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1290 (mi_interpreter_init): Call observer_attach_tsv_created and
1291 observer_attach_tsv_deleted.
1292 (mi_tsv_created, mi_tsv_deleted): New.
1293 * tracepoint.c (delete_trace_state_variable): Call
1294 observer_notify_tsv_deleted.
1295 (trace_variable_command): Call observer_notify_tsv_created.
1296 (delete_trace_variable_command): Call
1297 observer_notify_tsv_deleted.
1298 (create_tsv_from_upload): Call observer_notify_tsv_created.
1301 2012-09-18 Yao Qi <yao@codesourcery.com>
1303 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1304 if traceframe changed.
1305 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1307 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1308 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1309 'traceframe_changed'.
1310 (mi_traceframe_changed): New.
1311 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1313 * NEWS: Mention the new MI notification.
1315 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1317 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1319 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1321 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1322 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1323 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1324 Extend code also for PaX support. Convert all gdb_assert to warning
1327 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 Implement auto-load user conveniences suggested by Doug Evans.
1330 * auto-load.c: Include top.h.
1331 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1332 (_initialize_auto_load): New variable scripts_directory_help. Mention
1333 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1334 scripts-directory. Document in online help one can use also files for
1335 set auto-load safe-path.
1336 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1337 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1339 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1341 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1344 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1346 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1347 ELTLEN and use TYPE_LENGTH directly.
1348 (m2_val_print): Likewise.
1349 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1350 variable LEN and use TYPE_LENGTH directly.
1351 (m68k_svr4_store_return_value): Likewise.
1352 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1353 ARGLEN and use TYPE_LENGTH directly.
1354 (mips_o64_push_dummy_call): Likewise.
1355 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1356 variable LENGTH and use TYPE_LENGTH directly.
1357 (s390_function_arg_float): Likewise.
1358 (s390_function_arg_integer): Likewise.
1359 (s390_push_dummy_call): Likewise.
1360 (s390_return_value_convention): Likewise.
1361 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1362 TYPE_LENGTH directly.
1364 2012-09-17 Yao Qi <yao@codesourcery.com>
1366 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1367 Update comment to add_setshow_integer_cmd.
1368 * cli/cli-setshow.c (do_set_command): Handle case
1369 'var_zuinteger_unlimited'.
1370 (do_show_command): Likewise.
1371 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1372 for command 'remotetimeout'.
1373 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1375 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1376 for command 'set listsize'.
1378 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1380 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1383 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1387 (frame_pop): Drop also TAILCALL_FRAME frames.
1388 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1390 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1391 Pedro Alves <palves@redhat.com>
1394 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1395 function start if we are already at function start. Both for
1396 reverse-next and for reverse-step into function without line number
1399 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1401 Code cleanup - rename 'inline' depth to 'artificial' depth.
1402 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1403 frame_id_artificial_p, extend the comment.
1404 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1405 * frame.c (fprint_frame_id): Rename at a user, change debug output
1406 text to "artificial=".
1407 (skip_inlined_frames): Rename to ...
1408 (skip_artificial_frames): ... here. Extend the comment.
1409 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1410 (frame_id_inlined_p): Rename to ...
1411 (frame_id_artificial_p): ... here. Rename at a user.
1412 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1413 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1415 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1417 (frame_id_inlined_p): Rename to ...
1418 (frame_id_artificial_p): ... here.
1419 * inline-frame.c (inline_frame_this_id): Rename at a user.
1421 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1423 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1424 vector variables using vector_size syntax rather than array
1427 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1429 * valarith.c (value_concat): Replace unsafe ALLOCA with
1432 2012-09-14 Pedro Alves <palves@redhat.com>
1434 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1436 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1438 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1439 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1440 data-directory as appropriate.
1442 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1444 * printcmd.c (ui_printf): Eliminate single-use variable
1447 2012-09-14 Yao Qi <yao@codesourcery.com>
1448 Pedro Alves <palves@redhat.com>
1450 * valops.c (value_assign): Move observer_notify_target_changed
1451 below to replace reinit_frame_cache.
1453 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1455 Refactor Python "gdb" module into a proper Python package, by
1456 introducing a new "_gdb" module for code implemented in C, and
1457 using reload/__import__ instead of exec.
1458 * python/lib/gdb/__init__.py: Import * from _gdb.
1459 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1460 prompt_hook, sys.argv): Moved from finish_python_initialization.
1461 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1462 (packages, auto_load_packages): New list and function replacing
1463 module_dict and auto-loading code, using __file__ instead of
1464 gdb.PYTHONDIR and reload/__import__ instead of exec.
1465 (GdbSetPythonDirectory): Replacing function of the same name
1466 from finish_python_initialization, using reload/__import__ instead
1467 of exec, as well as call auto_load_packages.
1468 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1469 gdb_python_module and not gdb_module.
1470 * python/python-internal.h (gdb_python_module): Declare.
1471 * python/python.c (gdb_python_module): New global.
1472 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1473 (_initialize_python): Rename gdb module to _gdb.
1474 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1475 (finish_python_initialization): Move Python code to
1476 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1479 2012-09-13 Pedro Alves <palves@redhat.com>
1481 * Makefile.in (COMMON_OBS): Add registry.o.
1482 * registry.c: New file.
1483 * registry.h (struct registry_container): Declare.
1484 (registry_data_callback): New typedef.
1485 (struct registry_data, struct registry_data_registration, struct
1486 registry_data_registry): New type.
1487 (register_data_with_cleanup, registry_alloc_data)
1488 (registry_callback_adaptor, registry_clear_data)
1489 (registry_container_free_data, registry_set_data, registry_data):
1491 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1492 the new common structures and functions.
1493 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1496 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1498 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1499 there is an error inserting hardware breakpoints and use the
1500 error message from the target.
1502 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1503 Catch this exception and print the error message contained within. Do not
1504 print the default hardware error breakpoint message in this case.
1506 2012-09-12 Doug Evans <dje@google.com>
1508 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1511 2012-09-11 Doug Evans <dje@google.com>
1513 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1514 .gdb_index symbol attributes if there are none.
1516 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1518 * symtab.h (struct minimal_symbol) [has_size]: New field.
1519 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1520 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1521 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1522 minimal symbols if the symbol's size is actually known.
1523 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1524 of msymbol's size field. Add comment.
1525 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1526 SET_MSYMBOL_SIZE to set the minimal symbol size.
1528 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1530 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1531 minimal_symbol struct object, rather than setting some of its
1534 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1536 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1537 passed_a_ptr flag when displaying typedef types.
1539 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1541 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1542 the optimized_out flag is preserved.
1544 2012-09-10 Anthony Green <green@moxielogic.com>
1546 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1547 prologue changes in GCC.
1549 2012-09-10 Keith Seitz <keiths@redhat.com>
1552 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1553 (BOOL_CONVERSION_BADNESS): ... this.
1554 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1555 (rank_one_type): Allow all boolean conversions
1556 permitted by the standard.
1558 2012-09-06 Tom Tromey <tromey@redhat.com>
1560 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1561 Don't decref py_objfile.
1563 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1565 Do not enable -lmcheck by default when Python is enabled with
1567 * configure.ac: (python_has_threads) New variable, by testing
1568 if WITH_THREAD is defined in Python.h.
1569 Move --enable-lmcheck after --with-python.
1570 Do not enable -lmcheck by default if python_has_threads=yes.
1571 Warn if --enable-lmcheck and python_has_threads=yes.
1572 * configure: Regenerate.
1574 2012-08-31 Yao Qi <yao@codesourcery.com>
1576 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1577 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1578 Update some commands.
1579 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1580 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1583 2012-08-31 Yao Qi <yao@codesourcery.com>
1585 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1587 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1589 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1591 2012-08-29 Doug Evans <dje@google.com>
1593 * main.c (print_gdb_help): Remove reference to
1594 --use-deprecated-index-sections.
1596 2012-08-28 Yao Qi <yao@codesourcery.com>
1598 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1599 (init_cmds): Call add_setshow_uinteger_cmd for command
1600 'max-user-call-depth'.
1601 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1602 declaration of 'max_user_call_depth'.
1603 * frame.c (backtrace_limit): Add 'unsigned'.
1604 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1606 * remote.c (remoteaddresssize): Add 'unsigned'.
1607 (remote_address_masked): Change local var 'address_size' to
1609 (_initialize_remote): Call add_setshow_uinteger_cmd for
1610 'remoteaddresssize'.
1611 * top.c (history_size): Add 'unsigned'.
1612 (show_commands): Change local variables to 'unsigned'.
1613 (set_history_size_command): Don't check history_size is negative.
1614 Adjust the condition to call unstifle_history and set history_size
1617 2012-08-28 Pedro Alves <palves@redhat.com>
1621 * infcmd.c (default_print_one_register_info): New, factored out
1622 from default_print_registers_info.
1623 (default_print_registers_info): Use it. Mark value unavailable if
1625 (registers_info): Print user registers with
1626 default_print_one_register_info.
1628 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1631 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1632 is not NULL before referencing it.
1634 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1636 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1637 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1640 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1641 Jan Kratochvil <jan.kratochvil@redhat.com>
1643 * auto-load.c (auto_load_objfile_script): Rename to ...
1644 (auto_load_objfile_script_1): ... here, change variable realname to
1645 parameter realname, document it, add return value, add variable retval.
1646 (auto_load_objfile_script): New function.
1648 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1650 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1651 followed by a whitespace.
1653 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1657 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1658 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1661 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1663 * memattr.c (create_mem_region): Fix memory region overlapping
1666 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1668 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1669 with xmalloc/cleanup.
1670 * mt-tdep.c (mt_push_dummy_call): Likewise.
1671 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1672 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1674 2012-08-24 Yao Qi <yao@codesourcery.com>
1676 * jv-exp.y (push_expression_name): Add "." at the end of error
1679 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1681 Document how to return from "python-interactive" to GDB.
1682 * python/python.c (_initialize_python): Update documentation.
1684 2012-08-23 Pedro Alves <palves@redhat.com>
1686 * infrun.c (_initialize_infrun) <handle command help text>:
1687 Mention that multiple signals are supported.
1689 2012-08-23 Pedro Alves <palves@redhat.com>
1691 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1694 2012-08-23 Yao Qi <yao@codesourcery.com>
1696 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1697 (tfind_1): Don't call registers_changed, set_traceframe_num,
1698 and clear_traceframe_info.
1699 Call set_current_traceframe.
1700 (set_current_traceframe): call set_traceframe_num.
1702 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1704 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1705 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1707 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1709 Enable readline in Python in a GDB-specific way and block the
1710 standard Python readline module to prevent conflicts with GDB.
1711 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1712 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1713 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1714 * python/py-gdb-readline.c: New file.
1715 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1717 * python/python.c (_initialize_python): Call
1718 gdbpy_initialize_gdb_readline.
1720 2012-08-22 Keith Seitz <keiths@redhat.com>
1722 * defs.h: Include build-gnulib/config.h
1724 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1726 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1729 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1731 Add a new "python-interactive" command that starts a standard
1732 Python interactive prompt with "pi" as alias, and add "py" as
1733 an alias to "python".
1734 * NEWS: Mention the new commands.
1735 * python/python.c (eval_python_command): New function.
1736 (python_interactive_command): For "python-interactive" with
1737 arguments, call eval_python_command. For "python-interactive"
1738 without arguments, call PyRun_InteractiveLoop.
1739 (_initialize_python): Add "python-interactive" command with
1740 "pi" as alias, and add "py" as an alias to "python".
1742 2012-08-22 Tom Tromey <tromey@redhat.com>
1744 * defs.h (quit_flag): Don't declare.
1745 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1746 (QUIT): Use new functions.
1747 * event-top.c (command_handler): Use clear_quit_flag.
1748 (handle_sigint): Use set_quit_flag.
1749 (async_request_quit): Use check_quit_flag. Don't check
1751 * exceptions.c (throw_exception): Use clear_quit_flag.
1752 * main.c (captured_main): Use clear_quit_flag.
1753 * python/python.c (clear_quit_flag, set_quit_flag)
1754 (check_quit_flag): New functions.
1755 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1757 * remote.c (remote_wait_as): Use check_quit_flag,
1759 (remote_start_remote): Call QUIT.
1760 * symfile.c (load_progress): Use check_quit_flag.
1761 * top.c (command_loop): Use clear_quit_flag.
1762 (command_line_input): Call QUIT.
1763 * utils.c (quit_flag): Conditionally define.
1764 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1766 (prompt_for_continue): Call QUIT. Use quit, not
1768 * remote-mips.c (mips_expect_timeout): Call QUIT.
1769 * monitor.c (monitor_expect): Call QUIT.
1771 2012-08-22 Tom Tromey <tromey@redhat.com>
1773 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1774 (async_init_signals): Update.
1775 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1776 (SIGWINCH_HANDLER_BODY): Remove.
1778 2012-08-22 Tom Tromey <tromey@redhat.com>
1780 * jit.c (jit_object_close_impl): Don't malloc the objfile
1782 * objfiles.c (allocate_objfile): Don't malloc the objfile
1784 (free_objfile): Don't free the objfile name.
1785 * objfiles.h (struct objfile) <name>: Update comment.
1786 * symfile.c (reread_symbols): Fix reference counting. Don't
1787 malloc objfile name.
1789 2012-08-22 Tom Tromey <tromey@redhat.com>
1791 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1792 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1793 (symfile_bfd_open): Likewise.
1794 (generic_load): Likewise.
1795 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1796 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1798 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1800 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1801 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1802 (pmon_load_fast): Likewise.
1803 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1804 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1805 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1806 (macho_check_dsym): Likewise.
1807 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1808 (m32r_upload_command): Likewise.
1809 * gdb_bfd.h (gdb_bfd_cache): Declare.
1810 * gdb_bfd.c (struct gdb_bfd_data): New.
1811 (gdb_bfd_cache): New global.
1812 (struct gdb_bfd_cache_search): New.
1813 (hash_bfd): New function.
1815 (gdb_bfd_open): Likewise.
1816 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1817 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1819 * exec.c (exec_file_attach): Use gdb_bfd_open.
1820 * dsrec.c (load_srec): Use gdb_bfd_open.
1822 2012-08-22 Tom Tromey <tromey@redhat.com>
1824 * dwarf2read.c (macro_start_file): Update.
1825 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1826 (free_objfile_per_bfd_storage): Destroy macro_cache.
1827 (allocate_objfile, free_objfile): Update.
1828 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1830 (struct objfile) <macro_cache>: Remove.
1831 * symfile.c (reread_symbols): Update.
1832 * symmisc.c (print_symbol_bcache_statistics): Update.
1833 (print_objfile_statistics): Update.
1835 2012-08-22 Tom Tromey <tromey@redhat.com>
1837 * elfread.c (elf_symtab_read): Update.
1838 * objfiles.c (objfiles_bfd_data): New global.
1839 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1840 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1841 (allocate_objfile, free_objfile): Update.
1842 (_initialize_objfiles): Initialize objfiles_bfd_data.
1843 * objfiles.h (struct objfile_per_bfd_storage): New.
1844 (struct objfile) <per_bfd>: New field.
1845 <filename_cache>: Remove.
1846 (set_objfile_per_bfd): Declare.
1847 * symfile.c (reread_symbols): Update. Call
1848 set_objfile_per_bfd.
1849 (allocate_symtab): Update.
1850 * symmisc.c (print_symbol_bcache_statistics): Update.
1851 (print_objfile_statistics): Print the size of the BFD obstack.
1853 2012-08-22 Tom Tromey <tromey@redhat.com>
1855 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1856 * gdb_bfd.c: Use DEFINE_REGISTRY.
1857 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1858 (gdb_bfd_ref): Call bfd_alloc_data.
1859 (gdb_bfd_unref): Call bfd_free_data.
1861 2012-08-22 Tom Tromey <tromey@redhat.com>
1863 * registry.h (struct registry_fields): New.
1864 (REGISTRY_FIELDS): Redefine.
1865 (REGISTRY_ACCESS_FIELD): New macro.
1866 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1869 2012-08-22 Tom Tromey <tromey@redhat.com>
1871 * auto-load.c (_initialize_auto_load): Update.
1872 * solib-svr4.c (_initialize_svr4_solib): Update
1873 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1874 * solib-darwin.c (_initialize_darwin_solib): Update.
1875 * registry.h: New file.
1876 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1877 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1878 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1879 (register_program_space_data_with_cleanup)
1880 (register_program_space_data, program_space_alloc_data)
1881 (clear_program_space_data, set_program_space_data)
1882 (program_space_data): Don't declare.
1883 * progspace.c: Use DEFINE_REGISTRY.
1884 (struct program_space_data, struct
1885 program_space_data_registration, struct
1886 program_space_data_registry, program_space_data_registry)
1887 (register_program_space_data_with_cleanup)
1888 (register_program_space_data, program_space_alloc_data)
1889 (program_space_free_data, clear_program_space_data)
1890 (set_program_space_data, program_space_data): Remove.
1891 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1892 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1893 (register_objfile_data_with_cleanup, register_objfile_data)
1894 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1896 * objfiles.c: Use DEFINE_REGISTRY.
1897 (struct objfile_data, struct objfile_data_registration, struct
1898 objfile_data_registry, objfile_data_registry)
1899 (register_objfile_data_with_cleanup, register_objfile_data)
1900 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1901 (set_objfile_data, objfile_data): Remove.
1902 (_initialize_objfiles): Update.
1903 * jit.c (_initialize_jit): Update.
1904 * inflow.c (_initialize_inflow): Update.
1905 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1906 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1907 (register_inferior_data_with_cleanup, register_inferior_data)
1908 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1910 * inferior.c: Use DEFINE_REGISTRY.
1911 (struct inferior_data, struct inferior_data_registration, struct
1912 inferior_data_registry, inferior_data_registry)
1913 (register_inferior_data_with_cleanup, register_inferior_data)
1914 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1915 (set_inferior_data, inferior_data): Remove.
1916 * auxv.c (_initialize_auxv): Update.
1917 * ada-lang.c (_initialize_ada_language): Update.
1918 * breakpoint.c (_initialize_breakpoint): Update.
1919 * i386-nat.c (i386_use_watchpoints): Update.
1921 2012-08-22 Tom Tromey <tromey@redhat.com>
1923 * exec.c (exec_close, exec_file_attach): Update.
1924 (add_to_section_table): Initialize 'key' field.
1925 (add_target_sections, remove_target_sections): Add 'key' argument.
1926 * exec.h (add_target_sections, remove_target_sections): Add
1928 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1929 (reload_shared_libraries_1): Update.
1930 * target.h (struct target_section) <key>: New field.
1932 2012-08-22 Tom Tromey <tromey@redhat.com>
1934 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1936 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1938 * symfile.c (allocate_symtab): Use host_address_to_string
1939 function instead of cast of pointer to long which is not
1940 compatible with x86_64-w64-mingw32 build.
1942 2012-08-19 Andrew Pinski <apinski@cavium.com>
1944 * mips-tdep.c (is_octeon): New function.
1945 (is_octeon_bbit_op): New function.
1946 (mips32_next_pc): Handle Octeon's bbit instructions.
1947 (mips32_instruction_has_delay_slot): Likewise.
1949 2012-08-19 Andrew Pinski <apinski@cavium.com>
1951 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1952 before the function.
1954 2012-08-19 Andrew Pinski <apinski@cavium.com>
1956 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1958 2012-08-19 Keith Seitz <keiths@redhat.com>
1961 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1962 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1964 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1966 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1967 The typo broke "make TAGS".
1969 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1973 2012-08-17 Keith Seitz <keiths@redhat.com>
1976 * gdbtypes.c (strict_type_checking): New variable.
1977 (show_strict_type_checking): New function.
1978 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1979 if strict type checking is disabled.
1980 (_initialize_gdbtypes): Add "check type" subcommand.
1981 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1983 2012-08-17 Keith Seitz <keiths@redhat.com>
1985 * language.h (type_mode): Remove.
1986 (type_check): Remove.
1987 (struct language_defn): Remove la_type_check.
1988 (STRICT_TYPE): Remove unused macro.
1989 (type_error): Remove.
1990 * language.c (set_type_range_case): Renamed to ...
1991 (set_range_case): ... this. Update all callers.
1992 Remove type_mode/type_check.
1993 (type_mode): Remove.
1994 (type_check): Remove.
1995 (show_type_command): Remove.
1996 (set_type_command): Remove.
1997 (language_info): Remove type checking output.
1998 (type_error): Remove unused function.
1999 (range_error): Update comment.
2000 (unknown_language_defn): Remove la_type_check.
2001 (auto_language_defn): Likewise.
2002 (local_language_defn): Likewise.
2003 (_initialize_language): Remove "check type" subcommand.
2004 * ada-lang.c (ada_language_defn): Remove la_type_check.
2005 * c-lang.c (c_language_defn): Likewise.
2006 (cplus_language_defn): Likewise.
2007 (asm_language_defn): Likewise.
2008 (minimal_language_defn): Likewise.
2009 * d-lang.c (d_language_defn): Likewise.
2010 * f-lang.c (f_language_defn): Likewise.
2011 * go-lang.c (go_language_defn): Likewise.
2012 * jv-lang.c (java_language_defn): Likewise.
2013 * m2-lang.c (m2_language_defn): Likewise.
2014 * objc-lang.c (objc_language_defn): Likewise.
2015 * opencl-lang.c (opencl_language_defn): Likewise.
2016 * p-lang.c (pascal_language_defn): Likewise.
2018 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2020 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2022 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2024 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2026 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2027 using the regache. Use ia64_hpux_get_register_from_save_state_t
2028 to access the bsp and bspstore registers if not.
2030 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2032 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2033 * breakpoint.c (detach_breakpoints): Change pid parameter into
2034 a ptid. Adjust code accordingly.
2035 * infrun.c (handle_inferior_event): Delete variable child_pid.
2036 Update call to detach_breakpoints to pass the child ptid for
2038 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2039 assert that inferior_ptid's lwp is zero.
2040 (linux_handle_extended_wait): Update call to detach_breakpoints.
2041 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2044 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2046 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2047 parent, only call detach_breakpoints if tts.tts_event ==
2050 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2052 * dwarf2-frame.c (dwarf2_frame_cache): Use
2053 get_frame_address_in_block instead of get_frame_pc as
2054 the bound for executing the frame's FDE.
2056 2012-08-16 Yao Qi <yao@codesourcery.com>
2058 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2059 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2060 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2061 (c_type_print_varspec_suffix): Likewise.
2062 * eval.c (evaluate_subexp_standard): Likewise.
2063 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2064 (f_type_print_varspec_suffix): Likewise.
2065 * gdbtypes.c (is_scalar_type): Likewise.
2066 (recursive_dump_type): Likewise.
2067 * infcall.c (value_arg_coerce): Likewise.
2068 * m2-valprint.c (m2_val_print): Likewise.
2069 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2070 (pascal_type_print_varspec_suffix): Likewise.
2071 (pascal_type_print_base): Likewise.
2072 * p-valprint.c (pascal_val_print): Likewise.
2073 (pascal_val_print): Likewise.
2074 * valops.c (value_slice): Likewise.
2075 * valprint.c (scalar_type_p): Likewise.
2076 * valarith.c (value_bitstring_subscript): Remove.
2077 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2078 Remove comment on TYPE_CODE_BITSTRING.
2080 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2081 TYPE_CODE_BITSTRING.
2083 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2086 2012-08-16 Yao Qi <yao@codesourcery.com>
2088 * tracepoint.c (trace_find_none_command): Remove.
2089 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2091 2012-08-16 Yao Qi <yao@codesourcery.com>
2093 * remote.c (handle_notification): Remove parameter 'length'.
2094 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2096 2012-08-15 Keith Seitz <keiths@redhat.com>
2098 * gdbtypes.c (opaque_type_resolution): Make static.
2099 Add missing comment.
2100 (overload_debug): Add missing comment.
2101 (show_opaque_type_resolution): Likewise.
2102 (show_overload_debug): Likewise.
2103 (print_bit_vector): Remove unnecessary forward declaration.
2104 (print_arg_types): Likewise.
2105 (dump_fn_fieldlists): Likewise.
2106 (print_cplus_stuff): Likewise.
2108 2012-08-15 Tom Tromey <tromey@redhat.com>
2110 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2111 (gdb_bfd_ref): Initialize new field.
2112 (gdb_bfd_unref): Unref the archive BFD.
2113 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2116 2012-08-15 Tom Tromey <tromey@redhat.com>
2119 * python/py-bpevent.c (create_breakpoint_event_object): Update
2121 * python/py-event.c (evpy_add_attribute): Update comment.
2122 * python/py-exitedevent.c (create_exited_event_object): Fix
2123 reference counting and error handling.
2124 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2125 Fix reference counting.
2126 * python/py-signalevent.c (create_signal_event_object): Fix
2127 reference counting and error handling.
2128 * python/py-stopevent.c (emit_stop_event): Fix reference
2130 * python/py-threadevent.c (get_event_thread): Return a
2132 * python/py-type.c (convert_field): Fix reference counting.
2134 2012-08-15 Tom Tromey <tromey@redhat.com>
2136 * dwarf2read.c (dwarf_decode_macro_bytes)
2137 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2140 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2142 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2143 stepi, nexti, finish, next, step, jump, and continue commands.
2144 * infrun.c (_initialize_infrun): Update help text for the handle
2147 2012-08-14 Doug Evans <dje@google.com>
2149 * gdbtypes.c (struct extra): Delete, unused.
2151 * gdbtypes.c: Whitespace cleanup.
2152 (address_space_name_to_int): Remove "extern" from definition.
2153 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2155 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2156 TYPE_POINTER_TYPE (type).
2158 2012-08-14 Gary Benson <gbenson@redhat.com>
2160 * solib-svr4.c (svr4_free_library_list): Use free_so.
2162 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2164 * .gitignore: Add go-exp.c.
2166 2012-08-13 Doug Evans <dje@google.com>
2168 * value.c (show_convenience): Tweak comment.
2169 (_initialize_values): Mention convenience functions in the help text
2170 for "show convenience".
2172 2012-08-13 Yao Qi <yao@codesourcery.com>
2174 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2175 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2177 * eval.c (evaluate_subexp_standard): Likewise.
2178 * expprint.c (print_subexp_standard): Likewise.
2179 (dump_subexp_body_standard): Likewise.
2180 * parse.c (operator_length_standard): Likewise.
2182 2012-08-13 Yao Qi <yao@codesourcery.com>
2184 * std-operator.def: Remove OP_BITSTRING.
2185 * breakpoint.c (watchpoint_exp_is_const): Update.
2186 * eval.c (evaluate_subexp_standard): Remove handling to
2188 * expprint.c (print_subexp_standard): Likewise.
2189 (dump_subexp_body_standard): Likewise.
2190 * parse.c (operator_length_standard): Likewise.
2191 * valops.c (value_bitstring): Remove.
2192 * value.h: Remove the declaration of 'value_bitstring'.
2194 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2196 * linespec.c (find_methods): Remove unused variables `i1' and
2198 (decode_line_full): Likewise for `arg_start'.
2200 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2202 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2203 (zlib_decompress_section): Likewise for `section_data'.
2204 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2206 2012-08-10 Doug Evans <dje@google.com>
2208 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2209 * NEWS: Document them.
2210 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2212 * python/py-type.c (typy_array_1): New function.
2213 (typy_array): Call it.
2214 (typy_vector): New function.
2215 (type_object_methods): Add "vector".
2216 * python/lib/gdb/function/__init__.py: New file.
2217 * python/lib/gdb/function/strfns.py: New file.
2219 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2221 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2222 for TYPE_FIELD_BITPOS.
2223 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2225 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2228 * common/vec.h (VEC_merge): Define.
2229 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2230 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2231 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2232 * completer.c: Include gdb_signals.h.
2233 (signal_completer): Define.
2234 * completer.h (signal_completer): Add prototype.
2235 * infcmd.c (_initialize_infcmd): Assign the command
2236 completer for "signal" to handle_completer.
2237 * infrun.c: Include completer.h.
2238 (handle_completer): Define.
2239 (_initialize_infrun): Declare a new local variable c. Store the
2240 result of add_com("handle") to it. Assign the command
2241 completer for "handle" to handle_completer.
2243 2012-08-09 Yao Qi <yao@codesourcery.com>
2245 * cli/cli-decode.c (set_cmd_prefix): New.
2246 (lookup_cmd_for_prefixlist): New.
2247 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2248 of each cmd_list_element in *prefixlist.
2249 (add_setshow_cmd_full): set_cmd_prefix.
2250 (add_alias_cmd): Likewise.
2251 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2252 Declare 'auto_boolean_enums'.
2253 * cli/cli-setshow.c: Include "observer.h".
2254 (notify_command_param_changed_p): New.
2255 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2257 (do_setshow_command): Split it to ...
2258 (do_set_command, do_show_command): ... them. New.
2259 (do_set_command): Call observer_notify_command_param_changed if
2260 notify_command_param_changed_p returns true.
2261 (cmd_show_list): Caller update.
2262 * auto-load.c (set_auto_load_cmd): Likewise.
2263 * remote.c (show_remote_cmd): Likewise.
2264 * cli/cli-setshow.h: Update declarations.
2265 * top.c (execute_command): Call do_set_command and do_show_command.
2267 * NEWS: Mention new MI notification.
2268 * mi/mi-interp.c: Declare mi_command_param_changed.
2269 (mi_interpreter_init): Attach mi_command_param_changed to
2270 observer command_param_changed.
2271 (mi_command_param_changed): New.
2272 Remove mi_suppress_breakpoint_notifications.
2273 Define global variable mi_suppress_notification.
2274 (mi_breakpoint_created): Update.
2275 (mi_breakpoint_deleted): Likewise.
2276 (mi_breakpoint_modified): Likewise.
2277 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2278 'gdb-set' and set mi_suppress_notification.
2279 * mi/mi-main.h: (mi_suppress_notification): New struct.
2281 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2282 Jan Kratochvil <jan.kratochvil@redhat.com>
2284 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2286 2012-08-09 Yao Qi <yao@codesourcery.com>
2288 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2289 (skiplist): Move it to skip.c.
2290 (init_cmd_lists): Remove code setting enablebreaklist and
2292 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2293 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2295 * gdbcmd.h: Likewise.
2296 * skip.c (_initialize_step_skip): Move 'skiplist' from
2299 2012-08-09 Yao Qi <yao@codesourcery.com>
2301 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2302 * gnu-nat.c, symfile.c: Likewise.
2304 2012-08-08 Aaron Gamble <agamble@google.com>
2306 * utils.c (prompt_for_continue_wait_time): New static global.
2307 (make_command_stats_cleanup): Initialize it.
2308 (report_command_stats): Subtract time waiting for user.
2309 (prompt_for_continue): Track time waiting for user.
2310 (defaulted_query): Track time waiting for user.
2312 2012-08-08 Doug Evans <dje@google.com>
2314 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2316 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2317 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2318 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2319 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2320 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2321 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2323 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2324 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2325 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2326 (dump_prefix_expression): Handle OP_TYPE.
2328 2012-08-08 Keith Seitz <keiths@redhat.com>
2330 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2333 2012-08-08 Doug Evans <dje@google.com>
2335 * linux-thread-db.c: #include "gdb_vecs.h".
2336 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2338 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2339 (thread_db_load_search): Use a vector to iterate over path elements.
2340 Handle text appearing after "$pdir".
2342 * gdb_string.h: Moved to ...
2343 * common/gdb_string.h: ... here.
2344 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2345 gdb_string.h and gdb_assert.h.
2347 2012-08-08 Yao Qi <yao@codesourcery.com>
2349 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2350 (tic6x_value_to_register): Likewise.
2351 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2352 and set_gdbarch_value_to_register.
2354 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Jean-Marc Saffroy <saffroy@gmail.com>
2358 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2359 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2360 * gcore.c (gcore_create_callback): New function comment. Add modified
2361 parameter. Only write modified regions. Set SEC_READONLY exactly
2362 according to MODIFIED.
2363 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2364 the passed modified value to FUNC.
2365 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2366 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2367 first. New variables modified and has_anonymous. Parse the lines of
2368 smaps file. Add the passed MODIFIED value to FUNC.
2369 * procfs.c (find_memory_regions_callback): Add the passed modified
2372 2012-08-06 Tom Tromey <tromey@redhat.com>
2374 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2375 (dwarf2_frame_cache): Use it.
2376 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2377 cache initialization constraint.
2379 2012-08-06 Tom Tromey <tromey@redhat.com>
2382 * varobj.c (update_dynamic_varobj_children): Don't call
2385 2012-08-06 Tom Tromey <tromey@redhat.com>
2388 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2390 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2392 * NEWS: New entry for 'cd' default parameters.
2393 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2395 2012-08-03 Tom Tromey <tromey@redhat.com>
2397 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2400 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2402 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2403 to attempting lseek/write.
2404 (inf_child_fileio_pread): Likewise for pread.
2406 2012-08-02 Yao Qi <yao@codesourcery.com>
2408 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2409 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2410 add_setshow_zinteger_cmd.
2411 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2412 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2413 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2414 instead of add_setshow_zinteger_cmd.
2415 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2416 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2417 instead of add_setshow_zinteger_cmd.
2418 * frame.c (frame_debug): Add 'unsigned'.
2419 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2420 add_setshow_zinteger_cmd.
2421 * frame.h: Update the declaration of 'frame_debug'.
2422 * gdbtypes.c (overload_debug): Add 'unsigned'.
2423 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2424 add_setshow_zinteger_cmd.
2425 * inferior.h: Update declaration of 'debug_infrun'.
2426 * infrun.c (debug_infrun): Add 'unsigned'.
2427 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2428 add_setshow_zinteger_cmd.
2429 * jit.c (jit_debug): Add 'unsigned'.
2430 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2431 add_setshow_zinteger_cmd.
2432 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2433 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2434 instead of add_setshow_zinteger_cmd.
2435 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2436 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2437 add_setshow_zinteger_cmd.
2438 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2439 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2440 instead of add_setshow_zinteger_cmd.
2441 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2442 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2443 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2444 intead of add_setshow_zinteger_cmd.
2445 * mips-tdep.c (mips_debug): Add 'unsigned'.
2446 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2447 instead of add_setshow_zinteger_cmd.
2448 * monitor.c (monitor_debug): Add 'unsigned'.
2449 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2450 add_setshow_zinteger_cmd.
2451 * observer.c (observer_debug): Add 'unsigned'.
2452 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2453 add_setshow_zinteger_cmd.
2454 * parse.c (expressiondebug): Add 'unsigned'.
2455 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2456 add_setshow_zinteger_cmd.
2457 * record.c (record_debug): Add 'unsigned'.
2458 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2459 add_setshow_zinteger_cmd.
2460 * record.h: Update the declaration of 'record_debug'.
2461 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2462 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2463 add_setshow_zinteger_cmd.
2464 * serial.c (global_serial_debug_p): Add 'unsigned'.
2465 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2466 add_setshow_zinteger_cmd.
2467 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2468 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2469 add_setshow_zinteger_cmd.
2470 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2471 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2472 add_setshow_zinteger_cmd.
2473 * target.c (targetdebug): Add 'unsigned'.
2474 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2475 add_setshow_zinteger_cmd.
2476 * valops.c (overload_debug): Add 'unsigned'.
2477 * varobj.c (varobjdebug): Add 'unsigned'.
2478 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2479 add_setshow_zinteger_cmd.
2480 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2481 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2482 instead of add_setshow_zinteger_cmd.
2484 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2485 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2486 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2487 instead of add_setshow_zinteger_cmd.
2488 * gdbarch.c, gdbarch.h: Re-generated.
2490 2012-08-02 Yao Qi <yao@codesourcery.com>
2492 * nto-tdep.c: Don't include cli/cli-decode.h and
2494 (_initialize_nto_tdep): Remove.
2495 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2497 Remove macro nto_internal_debugging.
2499 2012-08-01 Richard Henderson <rth@redhat.com>
2501 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2502 (mep-*-*) [gdb_target_obs]: Likewise.
2504 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2506 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2507 linux_get_siginfo_type.
2509 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2513 (call_function_by_hand) <ON_STACK>: Call write_memory with
2514 gdbarch_breakpoint_from_pc, if possible.
2515 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2518 2012-07-31 Yao Qi <yao@codesourcery.com>
2520 * tracepoint.c: Add 'static' for some variables.
2522 2012-07-31 Yao Qi <yao@codesourcery.com>
2524 * go32-nat.c: Declare _initialize_go32_nat.
2525 * ser-go32.c: Declare _initialize_ser_dos.
2526 * top.c (do_chdir_cleanup): Add 'static'.
2528 2012-07-30 Keith Seitz <keiths@redhat.com>
2530 * linespec.c (linespec_lex_number): A number followed
2531 by quotes is a valid number, too.
2533 2012-07-30 Tom Tromey <tromey@redhat.com>
2535 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2537 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2539 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2540 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2542 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2544 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2545 invalid or reevaluated to prevent prevent references to possibly
2546 delete'd type objects being left in the varobj.
2548 2012-07-27 Tom Tromey <tromey@redhat.com>
2549 Jan Kratochvil <jan.kratochvil@redhat.com>
2551 * copying.awk: Print buffer-read-only and vi ro markers.
2552 * copying.c: Rebuild.
2553 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2554 * gdbarch.c, gdbarch.h: Rebuild.
2555 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2556 buffer-read-only and vi ro markers.
2557 * features/arm-with-iwmmxt.c: Rebuild.
2558 * features/arm-with-m-fpa-layout.c: Rebuild.
2559 * features/arm-with-m-vfp-d16.c: Rebuild.
2560 * features/arm-with-m.c: Rebuild.
2561 * features/arm-with-neon.c: Rebuild.
2562 * features/arm-with-vfpv2.c: Rebuild.
2563 * features/arm-with-vfpv3.c: Rebuild.
2564 * features/i386/amd64-avx-linux.c: Rebuild.
2565 * features/i386/amd64-avx.c: Rebuild.
2566 * features/i386/amd64-linux.c: Rebuild.
2567 * features/i386/amd64.c: Rebuild.
2568 * features/i386/i386-avx-linux.c: Rebuild.
2569 * features/i386/i386-avx.c: Rebuild.
2570 * features/i386/i386-linux.c: Rebuild.
2571 * features/i386/i386-mmx-linux.c: Rebuild.
2572 * features/i386/i386-mmx.c: Rebuild.
2573 * features/i386/i386.c: Rebuild.
2574 * features/i386/x32-avx-linux.c: Rebuild.
2575 * features/i386/x32-avx.c: Rebuild.
2576 * features/i386/x32-linux.c: Rebuild.
2577 * features/i386/x32.c: Rebuild.
2578 * features/mips-dsp-linux.c: Rebuild.
2579 * features/mips-linux.c: Rebuild.
2580 * features/mips64-dsp-linux.c: Rebuild.
2581 * features/mips64-linux.c: Rebuild.
2582 * features/rs6000/powerpc-32.c: Rebuild.
2583 * features/rs6000/powerpc-32l.c: Rebuild.
2584 * features/rs6000/powerpc-403.c: Rebuild.
2585 * features/rs6000/powerpc-403gc.c: Rebuild.
2586 * features/rs6000/powerpc-405.c: Rebuild.
2587 * features/rs6000/powerpc-505.c: Rebuild.
2588 * features/rs6000/powerpc-601.c: Rebuild.
2589 * features/rs6000/powerpc-602.c: Rebuild.
2590 * features/rs6000/powerpc-603.c: Rebuild.
2591 * features/rs6000/powerpc-604.c: Rebuild.
2592 * features/rs6000/powerpc-64.c: Rebuild.
2593 * features/rs6000/powerpc-64l.c: Rebuild.
2594 * features/rs6000/powerpc-7400.c: Rebuild.
2595 * features/rs6000/powerpc-750.c: Rebuild.
2596 * features/rs6000/powerpc-860.c: Rebuild.
2597 * features/rs6000/powerpc-altivec32.c: Rebuild.
2598 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2599 * features/rs6000/powerpc-altivec64.c: Rebuild.
2600 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2601 * features/rs6000/powerpc-cell32l.c: Rebuild.
2602 * features/rs6000/powerpc-cell64l.c: Rebuild.
2603 * features/rs6000/powerpc-e500.c: Rebuild.
2604 * features/rs6000/powerpc-e500l.c: Rebuild.
2605 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2606 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2607 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2608 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2609 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2610 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2611 * features/rs6000/powerpc-vsx32.c: Rebuild.
2612 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2613 * features/rs6000/powerpc-vsx64.c: Rebuild.
2614 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2615 * features/rs6000/rs6000.c: Rebuild.
2616 * features/s390-linux32.c: Rebuild.
2617 * features/s390-linux32v1.c: Rebuild.
2618 * features/s390-linux32v2.c: Rebuild.
2619 * features/s390-linux64.c: Rebuild.
2620 * features/s390-linux64v1.c: Rebuild.
2621 * features/s390-linux64v2.c: Rebuild.
2622 * features/s390x-linux64.c: Rebuild.
2623 * features/s390x-linux64v1.c: Rebuild.
2624 * features/s390x-linux64v2.c: Rebuild.
2625 * features/tic6x-c62x-linux.c: Rebuild.
2626 * features/tic6x-c62x.c: Rebuild.
2627 * features/tic6x-c64x-linux.c: Rebuild.
2628 * features/tic6x-c64x.c: Rebuild.
2629 * features/tic6x-c64xp-linux.c: Rebuild.
2630 * features/tic6x-c64xp.c: Rebuild.
2632 2012-07-27 Tom Tromey <tromey@redhat.com>
2634 * c-exp.y (classify_name): Avoid assignment in condition.
2636 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2638 * amd64-windows-tdep.c: Include "frame.h".
2639 (amd64_windows_skip_trampoline_code): New function.
2640 (amd64_windows_init_abi): Add trampoline registration.
2642 2012-07-27 Yao Qi <yao@codesourcery.com>
2644 * tracepoint.c (cur_traceframe_number): Remove.
2645 (set_tfile_traceframe): Remove.
2646 (tfile_trace_find, tfile_fetch_registers): Update callers.
2647 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2648 (tfile_open, tfile_trace_find): Likewise.
2650 2012-07-27 Yao Qi <yao@codesourcery.com>
2652 * thread.c (switch_to_thread): Don't call registers_changed.
2654 2012-07-26 Tom Tromey <tromey@redhat.com>
2656 * Makefile.in (SFILES): Remove objc-exp.y.
2657 (YYFILES): Remove objc-exp.c.
2658 (YYOBJ): Remove objc-exp.o.
2659 (local-maintainer-clean): Don't mention objc-exp.c.
2660 * c-exp.y: Include objc-lang.h.
2661 (%union) <class>: New field.
2662 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2663 (exp): Clone subscript production for OBJC_LBRAC. Add various
2664 Objective C productions.
2665 (msglist, msgarglist, msgarg): New productions.
2666 (array_mod, func_mod, operator): Clone productions for
2668 (parse_string_or_char): Handle '@' strings.
2669 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2670 (classify_name): Check la_name_of_this. Recognize ObjC class
2672 * objc-exp.y: Remove.
2673 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2674 * objc-lang.h (objc_parse, objc_error): Don't declare.
2676 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2678 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2680 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2682 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2685 2012-07-26 Tom Tromey <tromey@redhat.com>
2687 * copying.c: Rebuild.
2688 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2691 2012-07-26 Tom Tromey <tromey@redhat.com>
2693 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2695 (print_objfile_statistics): Likewise.
2696 (maintenance_print_symbols): Likewise.
2697 (maintenance_print_msymbols): Likewise.
2698 (maintenance_print_objfiles): Likewise.
2699 * psymtab.c (print_partial_symbols): Call QUIT.
2700 (maintenance_print_psymbols): Likewise. Don't modify
2702 * copying.c (show_copying_command): Don't modify immediate_quit.
2703 (show_warranty_command): Likewise.
2704 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2706 2012-07-26 Keith Seitz <keiths@redhat.com>
2708 * linespec.c (linespec_lexer_lex_number): The input
2709 is also a valid number if the next character is a comma
2712 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2714 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2717 2012-07-26 Tristan Gingold <gingold@adacore.com>
2719 * machoread.c: Include gdb_bfd.h.
2721 2012-07-26 Tristan Gingold <gingold@adacore.com>
2723 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2726 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2728 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2730 (dwarf2_evaluate_loc_desc): Likewise.
2731 (dwarf2_loc_desc_needs_frame): Likewise.
2732 (locexpr_describe_location_1): Likewise.
2733 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2735 (struct dwarf2_loclist_baton): Likewise.
2736 * dwarf2read.c (struct dwarf_block): Likewise.
2737 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2738 (decode_locdesc): Expand SIZE and I to size_t.
2740 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2742 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2744 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2746 * doublest.c (convert_doublest_to_floatformat): If the exponent
2747 is too small, treat the value as zero. If the exponent is too
2748 large, treat the value as infinity.
2750 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2752 * configure.ac: Add --enable-lmcheck configure option.
2753 * configure: Regenerate.
2755 2012-07-25 Tom Tromey <tromey@redhat.com>
2757 * NEWS: Mention maint info bfds.
2758 * gdb_bfd.c (all_bfds): New global.
2759 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2760 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2763 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2765 * configure.tgt: Add v850*-*-rtems*.
2767 2012-07-25 Tom Tromey <tromey@redhat.com>
2769 * macrotab.c (macro_bcache_str): Remove cast.
2771 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2773 * linespec.c (linespec_lexer_lex_number): Update comments,
2774 change the return and add check to make sure the input is
2775 the decimal numbers.
2776 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2777 false, call linespec_lexer_lex_string.
2779 2012-07-24 Tom Tromey <tromey@redhat.com>
2781 * symfile.c (symbol_file_add): Don't open BFD twice.
2783 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2785 * breakpoint.c (create_breakpoint): Store condition for pending
2788 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2790 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2791 (m68k_return_value): Handle complex types like structures.
2792 (m68k_svr4_return_value): Likewise.
2794 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2796 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2797 parameters to bfd_get_section_name.
2799 2012-07-24 Yao Qi <yao@codesourcery.com>
2801 * cli/cli-setshow.c: Handle case 'var_uinteger'
2802 and 'var_zuninteger' together. Handle case 'var_integer' and
2803 'var_zinteger' together.
2805 2012-07-23 Keith Seitz <keiths@redhat.com>
2807 * linespec.c (convert_linespec_to_sal): Don't add
2808 any symbols to the result vector if symbol_to_sal
2811 2012-07-23 Keith Seitz <keiths@redhat.com>
2813 * linespec.c (decode_objc): Record the function name
2816 2012-07-23 Tom Tromey <tromey@redhat.com>
2818 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2820 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2821 (map_vmap): Acquire a reference to the BFD.
2823 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2825 * p-valprint.c (pascal_object_print_value): Replace potentially
2826 unsafe alloca with xmalloc/xfree.
2827 * valops.c (search_struct_method): Likewise.
2829 2012-07-23 Tom Tromey <tromey@redhat.com>
2831 * solib-svr4.c (enable_break): Update.
2832 * bfd-target.h (target_bfd_reopen): Update documentation.
2834 2012-07-23 Tom Tromey <tromey@redhat.com>
2836 * symfile.c (separate_debug_file_exists): Update.
2837 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2838 (reread_symbols): Update.
2839 * elfread.c (build_id_verify): Update.
2840 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2841 bfd_open_maybe_remote.
2843 2012-07-23 Tom Tromey <tromey@redhat.com>
2845 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2847 2012-07-23 Tom Tromey <tromey@redhat.com>
2849 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2851 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2853 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2854 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2856 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2857 * objfiles.c (allocate_objfile): Acquire a new reference.
2858 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2859 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2860 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2861 a cleanup for 'nbfd'.
2862 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2864 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2865 make a cleanup for 'abfd'.
2866 (symbol_file_add): Make a BFD cleanup.
2868 2012-07-23 Tom Tromey <tromey@redhat.com>
2870 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2871 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2872 * corelow.c (core_open): Use gdb_bfd_fopen.
2873 * dsrec.c (load_srec): Use gdb_bfd_openr.
2874 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2875 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2876 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2877 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2878 (gdb_bfd_fdopenr): New functions.
2879 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2880 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2881 (gdb_bfd_fdopenr): Declare.
2882 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2883 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2884 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2885 gdb_bfd_openr_next_archived_file.
2886 (macho_check_dsym): Use gdb_bfd_openr.
2887 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2888 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2889 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2890 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2892 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2893 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2894 gdb_bfd_openr_next_archived_file.
2895 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2897 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2899 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2900 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2901 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2902 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2903 (symfile_bfd_open): Use gdb_bfd_fopen.
2904 (generic_load): Use gdb_bfd_openr.
2905 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2907 2012-07-23 Tom Tromey <tromey@redhat.com>
2909 * bfd-target.c (target_bfd_reopen): Update.
2910 * cli/cli-dump.c (bfd_openr_with_cleanup)
2911 (bfd_openw_with_cleanup): Update.
2912 * corelow.c (core_open): Update.
2913 * dsrec.c (load_srec): Update.
2914 * exec.c (exec_file_attach): Update.
2915 * gcore.c (create_gcore_bfd): Update.
2916 * gdb_bfd.c (gdb_bfd_ref): Return void.
2917 (gdb_bfd_open): Update.
2918 * gdb_bfd.h (gdb_bfd_ref): Return void.
2920 * jit.c (jit_bfd_try_read_symtab): Update.
2921 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2922 * machoread.c (macho_symfile_read_all_oso): Update.
2923 (macho_check_dsym): Update.
2924 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2925 * remote-m32r-sdi.c (m32r_load): Update.
2926 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2927 * rs6000-nat.c (add_vmap): Update.
2928 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2930 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2931 * solib-spu.c (spu_bfd_open): Update.
2932 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2933 * spu-linux-nat.c (spu_bfd_open): Update.
2934 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2935 (generic_load): Update.
2936 * windows-nat.c (windows_make_so): Update.
2938 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2940 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2942 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2944 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2945 SIGTRAMP_FRAME unwinding.
2947 2012-07-20 Doug Evans <dje@google.com>
2949 * NEWS: Document new options "set/show use-deprecated-index-sections",
2950 and delete reference to --use-deprecated-index-sections.
2951 * symfile.h (use_deprecated_index_sections): Delete.
2952 * dwarf2read.c (use_deprecated_index_sections): Make static.
2953 (read_index_from_section): Update wording of how to load
2954 deprecated index sections.
2955 (_initialize_dwarf2_read): New options
2956 "set/show use-deprecated-index-sections".
2957 * main.c (captured_main): Delete --use-deprecated-index-sections.
2959 2012-07-20 Pedro Alves <palves@redhat.com>
2964 * infrun.c (handle_inferior_event) <new thread>: Don't special
2965 case minus_one_ptid.
2966 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2967 * linux-thread-db.c (thread_get_info_callback): Don't return early
2968 if the thread is zombie.
2969 (thread_from_lwp): Change return type to void. Rewrite stale
2971 (attach_thread): Don't return early if the thread is zombie,
2972 instead set its "dying" flag.
2973 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2974 (find_new_threads_callback): Don't return early if the thread is
2977 2012-07-20 Pedro Alves <palves@redhat.com>
2979 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2980 * target.c (target_wait): Likewise.
2981 (str_comma_list_concat_elem, do_option, target_options_to_string):
2983 * target.h (target_options_to_string): Declare.
2985 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2986 Tom Tromey <tromey@redhat.com>
2988 * dwarf2read.c (dwarf_decode_macros)
2989 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2990 DW_MACRO_GNU_transparent_include_alt>: New cases.
2991 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2992 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2994 2012-07-20 Tom Tromey <tromey@redhat.com>
2996 * dwarf2read.c (try_open_dwo_file): Don't call
2997 gdb_bfd_stash_filename.
2999 2012-07-20 Pedro Alves <palves@redhat.com>
3001 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3002 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3003 (i386_process_record): Tweak description comments.
3005 2012-07-20 Pedro Alves <palves@redhat.com>
3007 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3008 (i386_process_record): Use record_read_memory.
3009 * record.c (record_read_memory): New function.
3010 (record_arch_list_add_mem, record_exec_insn): Use
3012 * record.h (record_read_memory): Declare.
3014 2012-07-20 Yao Qi <yao@codesourcery.com>
3016 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3019 2012-07-19 Pedro Alves <palves@redhat.com>
3021 * record.c (record_resume): Ask the target beneath to report all
3024 2012-07-19 Doug Evans <dje@google.com>
3026 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3027 there's no section at address zero.
3028 (dwarf2_record_block_ranges): Ditto.
3030 2012-07-19 Yao Qi <yao@codesourcery.com>
3032 * command.h, remote.c: Fix a typo in comment.
3034 2012-07-19 Tom Tromey <tromey@redhat.com>
3037 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3038 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3039 OP_DECLTYPE>: New cases.
3040 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3041 (type_exp): Add new productions.
3042 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3044 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3046 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3047 OP_DECLTYPE>: New case.
3048 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3050 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3051 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3053 2012-07-19 Tom Tromey <tromey@redhat.com>
3055 * c-exp.y (enum token_flags): New.
3056 (struct token) <cxx_only>: Remove.
3058 (tokentab3, tokentab2, ident_tokens): Update.
3059 (lex_one_token): Update. Handle FLAG_SHADOW.
3061 2012-07-19 Tom Tromey <tromey@redhat.com>
3063 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3064 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3065 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3066 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3067 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3068 type_exp production where appropriate.
3069 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3070 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3071 <UNOP_MEMVAL_TYPE>: New case.
3072 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3073 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3074 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3075 <UNOP_MEMVAL_TYPE>: New case.
3076 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3077 UNOP_REINTERPRET_CAST>: Update.
3078 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3079 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3080 UNOP_REINTERPRET_CAST>: Update.
3081 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3082 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3083 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3086 2012-07-19 Yao Qi <yao@codesourcery.com>
3087 Jan Kratochvil <jan.kratochvil@redhat.com>
3089 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3090 and case 'var_optional_filename' together.
3091 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3092 instead of add_setshow_optional_filename_cmd for setshow command
3093 'args'. Set completer for 'set args'.
3095 2012-07-18 Doug Evans <dje@google.com>
3097 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3098 * common/gdb_vecs.c: New file, contents from utils.c.
3099 * common/host-defs.h: New file, contents from defs.h.
3100 * utils.h: New file, contents from defs.h.
3101 * defs.h: Move all declarations of objects defined in utils.c
3102 to utils.h (except QUIT() and related).
3103 #include "utils.h", "host-defs.h".
3104 * probe.h (probe_p): Move here from gdb_vecs.h.
3105 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3106 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3107 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3108 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3109 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3110 (COMMON_OBS): Add gdb_vecs.o.
3111 (gdb_vecs.o): New rule.
3113 2012-07-18 Keith Seitz <keiths@redhat.com>
3115 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3116 parameter. If non-zero, use SYMNAME as the canonical name
3119 (convert_linespec_to_sals): Use add_sal_to_sals for
3121 (decode_line_full): No need to "fill in missing canonical names"
3122 anymore. Simply make cleanups for the allocated names.
3124 2012-07-18 Keith Seitz <keiths@redhat.com>
3126 * linespec.c (struct linespec): Constify expression,
3127 source_filename, function_name, and label_name.
3128 (symbol_not_found_error): Make all parameters const.
3129 (linespec_parser_delete): No need to check for NULL
3130 when using xfree. Cast const char * to char * for xfree.
3132 2012-07-18 Keith Seitz <keiths@redhat.com>
3134 * breakpoint.c (invalid_thread_id_error): New function.
3135 (find_condition_and_thread): Use invalid_thread_id_error.
3136 (watch_command_1): Likewise.
3138 2012-07-18 Tom Tromey <tromey@redhat.com>
3140 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3141 * contrib/cc-with-tweaks.sh: New file.
3143 2012-07-18 Tom Tromey <tromey@redhat.com>
3145 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3146 (locate_dwz_sections): Recognize .gdb_index.
3147 (create_cus_from_index_list): New function.
3148 (create_cus_from_index): Use it. Handle .dwz data.
3149 (read_index_from_section): New function, extracted from
3151 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3154 2012-07-18 Tom Tromey <tromey@redhat.com>
3156 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3157 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3158 <is_dwz>: New field.
3159 (struct dwz_file): New.
3160 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3161 (locate_dwz_sections, dwarf2_get_dwz_file)
3162 (get_abbrev_section_for_cu): New functions.
3163 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3164 (read_and_check_type_unit_head): Add abbrev_section argument.
3165 (create_debug_types_hash_table): Update.
3166 (init_cutu_and_read_dies): Use proper abbrev section.
3167 (init_cutu_and_read_dies_no_follow): Likewise.
3168 (set_partial_user): Do nothing if PST==NULL.
3169 (read_comp_units_from_section): New function.
3170 (create_all_comp_units): Use it.
3171 (scan_partial_symbols, partial_die_parent_scope): Update.
3172 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3173 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3174 (find_partial_die): Add offset_in_dwz argument. Update.
3175 (guess_partial_die_structure_name, fixup_partial_die): Update.
3176 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3177 DW_FORM_GNU_strp_alt.
3178 (read_indirect_string_from_dwz): New function.
3179 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3180 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3181 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3182 (follow_die_offset): Add offset_in_dwz argument.
3183 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3184 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3185 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3186 Handle new macro forms.
3187 (dwarf_decode_macros): Update.
3188 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3189 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3190 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3191 (create_debug_types_hash_table): Use correct abbrev section.
3192 (get_debug_line_section): New function.
3193 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3194 (process_full_comp_unit): Pass 'required' argument to
3195 end_symtab_get_static_block.
3196 * buildsym.h (end_symtab_get_static_block): Update.
3197 * buildsym.c (end_symtab_get_static_block): Add 'required'
3199 (end_symtab, end_expandable_symtab): Update.
3201 2012-07-18 Tom Tromey <tromey@redhat.com>
3203 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3205 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3206 (zlib_decompress_section): Remove.
3207 (dwarf2_read_section): Use gdb_bfd_map_section.
3208 (munmap_section_buffer): Remove.
3209 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3210 munmap_section_buffer.
3211 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3212 (struct gdb_bfd_section_data): New.
3213 (free_one_bfd_section): New function.
3214 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3215 (get_section_descriptor, zlib_decompress_section)
3216 (gdb_bfd_map_section): New functions.
3217 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3219 2012-07-18 Tom Tromey <tromey@redhat.com>
3221 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3223 2012-07-18 Tom Tromey <tromey@redhat.com>
3225 * gdb_bfd.c (struct gdb_bfd_data): New.
3226 (gdb_bfd_cache): New global.
3227 (struct gdb_bfd_cache_search): New.
3228 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3229 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3230 * gdb_bfd.h (gdb_bfd_open): Declare.
3232 2012-07-18 Tom Tromey <tromey@redhat.com>
3234 * utils.c (make_cleanup_bfd_unref): Rename from
3235 make_cleanup_bfd_close.
3236 * defs.h (make_cleanup_bfd_unref): Rename from
3237 make_cleanup_bfd_close.
3238 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3239 (bfd_openw_with_cleanup): Update.
3240 * corelow.c (core_open): Update.
3241 * dsrec.c (load_srec): Update.
3242 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3243 * remote-m32r-sdi.c (m32r_load): Update.
3244 * remote-mips.c (mips_load_srec): Update.
3245 (pmon_load_fast): Update.
3246 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3248 (darwin_bfd_open): Update.
3249 * solib.c (solib_bfd_fopen): Update.
3250 * symfile-mem.c (symbol_file_add_from_memory): Update.
3251 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3252 (symfile_bfd_open): Update.
3253 (generic_load): Update.
3255 2012-07-18 Tom Tromey <tromey@redhat.com>
3257 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3258 (pmon_load_fast): Likewise.
3259 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3260 (m32r_upload_command): Likewise.
3261 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3262 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3263 Use make_cleanup_bfd_close.
3265 2012-07-18 Tom Tromey <tromey@redhat.com>
3267 * symfile.c (symfile_bfd_open): Don't copy name. Call
3268 gdb_bfd_stash_filename.
3269 (load_command): Open the new BFD before freeing the old.
3270 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3271 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3272 Call gdb_bfd_stash_filename.
3273 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3274 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3275 gdb_bfd_stash_filename.
3276 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3277 Free found_pathname.
3278 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3279 gdb_bfd_stash_filename.
3280 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3281 * machoread.c (macho_add_oso_symfile): Call
3282 gdb_bfd_stash_filename.
3283 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3284 gdb_bfd_stash_filename.
3285 (macho_check_dsym): Don't copy filename. Call
3286 gdb_bfd_stash_filename.
3287 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3288 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3289 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3290 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3291 * exec.c (exec_close): Don't free the BFD's filename.
3292 (exec_file_attach): Don't copy the filename. Call
3293 gdb_bfd_stash_filename.
3294 * corelow.c (core_close): Don't free the BFD's filename.
3295 (core_open): Call gdb_bfd_stash_filename.
3296 * corefile.c (reopen_exec_file): Remove #if 0 code.
3297 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3299 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3301 2012-07-18 Tom Tromey <tromey@redhat.com>
3303 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3305 (free_dwo_file): Use gdb_bfd_unref.
3306 * cli/cli-dump.c: Include gdb_bfd.h.
3307 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3308 (bfd_openr_with_cleanup): Likewise.
3309 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3311 * utils.c: Include gdb_bfd.h.
3312 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3313 * symfile.c: Include gdb_bfd.h.
3314 (separate_debug_file_exists): Use gdb_bfd_unref.
3315 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3316 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3317 (generic_load): Use gdb_bfd_ref.
3318 (reread_symbols): Use gdb_bfd_unref.
3319 * symfile-mem.c: Include gdb_bfd.h.
3320 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3321 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3322 * solib.c: Include gdb_bfd.h.
3323 (solib_bfd_fopen): Use gdb_bfd_ref.
3324 (solib_bfd_open): Use gdb_bfd_unref.
3325 (free_so_symbols): Use gdb_bfd_unref.
3326 (reload_shared_libraries_1): Use gdb_bfd_unref.
3327 * solib-spu.c: Include gdb_bfd.h.
3328 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3329 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3331 * solib-frv.c: Include gdb_bfd.h.
3332 (enable_break2): Use gdb_bfd_unref.
3333 * solib-dsbt.c: Include gdb_bfd.h.
3334 (enable_break2): Use gdb_bfd_unref.
3335 * solib-darwin.c: Include gdb_bfd.h.
3336 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3338 (darwin_bfd_open): Use gdb_bfd_unref.
3339 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3340 * remote-mips.c: Include gdb_bfd.h.
3341 (mips_load_srec): Use gdb_bfd_ref.
3342 (pmon_load_fast): Use gdb_bfd_ref.
3343 * remote-m32r-sdi.c: Include gdb_bfd.h.
3344 (m32r_load): Use gdb_bfd_ref.
3345 * record.c: Include gdb_bfd.h.
3346 (record_save_cleanups): Use gdb_bfd_unref.
3347 (cmd_record_save): Use gdb_bfd_unref.
3348 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3350 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3351 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3352 * objfiles.c: Include gdb_bfd.h.
3353 (free_objfile): Use gdb_bfd_unref.
3354 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3356 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3357 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3358 (macho_check_dsym): Likewise.
3359 * m32r-rom.c: Include gdb_bfd.h.
3360 (m32r_load): Use gdb_bfd_ref.
3361 (m32r_upload_command): Use gdb_bfd_ref.
3362 * jit.c: Include gdb_bfd.h.
3363 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3364 * gdb_bfd.h: New file.
3365 * gdb_bfd.c: New file.
3366 * gcore.c: Include gdb_bfd.h.
3367 (create_gcore_bfd): Use gdb_bfd_ref.
3368 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3369 (gcore_command): Use gdb_bfd_unref.
3370 * exec.c: Include gdb_bfd.h.
3371 (exec_close): Use gdb_bfd_unref.
3372 (exec_close_1): Use gdb_bfd_unref.
3373 (exec_file_attach): Use gdb_bfd_ref.
3374 * elfread.c: Include gdb_bfd.h.
3375 (build_id_verify): Use gdb_bfd_unref.
3376 * dsrec.c: Include gdb_bfd.h.
3377 (load_srec): Use gdb_bfd_ref.
3378 * corelow.c: Include gdb_bfd.h.
3379 (core_close): Use gdb_bfd_unref.
3380 (core_open): Use gdb_bfd_ref.
3381 * bfd-target.c: Include gdb_bfd.h.
3382 (target_bfd_xclose): Use gdb_bfd_unref.
3383 (target_bfd_reopen): Use gdb_bfd_ref.
3384 * Makefile.in (SFILES): Add gdb_bfd.c.
3385 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3386 (COMMON_OBS): Add gdb_bfd.o.
3388 2012-07-18 Keith Seitz <keiths@redhat.com>
3390 * breakpoint.c (find_condition_and_thread): Initialize
3392 (create_breakpiont): find_condition_and_thread will now
3393 initialize COND_STRING, THREAD, and REST (and TASK).
3394 (addr_string_to_sals): Likewise.
3396 2012-07-18 Pedro Alves <palves@redhat.com>
3398 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3399 Pull the single step breakpoints out of the target.
3401 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3403 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3404 * stap-probe.c (compile_probe_arg): Likewise.
3406 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3408 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3409 (elf_compile_to_ax): Likewise.
3410 * infrun.c (insert_exception_resume_from_probe): Likewise.
3411 (check_exception_resume): Remove `objfile' variable.
3412 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3413 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3414 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3415 (compare_entries): Rename to...
3416 (compare_probes): ...this. Adjust function to work with
3417 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3419 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3421 (print_ui_out_info): Adjust argument to be `struct probe *'.
3422 (info_probes_for_ops): Adjust internal computations to use
3424 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3425 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3426 gen_info_probes_table_values>: Remove `objfile' argument.
3427 (struct probe) <objfile>: New field.
3428 (find_probe_by_pc): Remove `objfile' argument.
3429 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3430 (stap_get_probe_argument_count): Likewise.
3431 (stap_get_arg): Likewise.
3432 (stap_evaluate_probe_argument): Likewise.
3433 (stap_compile_to_ax): Likewise.
3434 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3435 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3436 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3437 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3438 sym_compile_to_ax>: Likewise.
3440 2012-07-18 Terry Guo <terry.guo@arm.com>
3443 * defs.h (GDB_MI_MSG_WIDTH): New.
3444 * ser_base (ser_base_read_error_fd): New function.
3445 (do_ser_base_readchar): Poll error file descriptor as well as
3447 (generic_readchar): Refactor error handling.
3449 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3451 * NEWS: Create a new section for the next release branch.
3452 Rename the section of the current branch, now that it has
3455 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3457 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3458 * version.in: Bump version to 7.5.50.20120718-cvs.
3460 2012-07-17 Keith Seitz <keiths@redhat.com>
3462 * linespec.c (linespec_parse_line_offset): Make parameter
3465 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3468 * f-valprint.c (info_common_command): New variable frame_id.
3469 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3470 * printcmd.c (print_variable_and_value): Extend function comment.
3471 Add comment for invalidated FRAME.
3472 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3473 FI form FRAME_ID after each print_frame_local_vars.
3474 (struct print_variable_and_value_data): Change frame to frame_id.
3475 (do_print_variable_and_value): New variable frame, initialize it from
3476 p->frame_id. Add comment for invalidated FRAME.
3477 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3478 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3479 for invalidated FRAME.
3481 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3482 Pedro Alves <palves@redhat.com>
3484 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3487 2012-07-16 Tom Tromey <tromey@redhat.com>
3489 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3491 2012-07-15 Doug Evans <dje@google.com>
3493 * dwarf2read.c (stmt_list_hash): New struct.
3494 (type_unit_group): Embed "per_cu" member, remove pointer.
3495 New union member "t", move member "tus" into it, all uses updated.
3496 New member "hash", replaces member "line_offset, all uses updated.
3497 (quick_file_names): Replace member "offset" with "hash", all uses
3499 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3500 (hash_file_name_entry, eq_file_name_entry): Call them.
3501 (hash_type_unit_group, eq_type_unit_group): Ditto.
3502 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3503 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3504 (dw2_get_file_names): Update.
3505 (create_type_unit_group): Replace "per_cu" arg with "cu".
3506 All callers updated. Fix "quick" (.gdb_index) handling.
3507 (get_type_unit_group): Replace "per_cu" arg with "cu".
3508 All callers updated.
3509 (build_type_unit_groups): Don't reset tu_stats.
3511 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3512 "tab_cur_size". Change member "tab" to be a htab_t.
3513 (create_filename_seen_cache): Update.
3514 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3515 (filename_seen): Update.
3517 2012-07-13 Doug Evans <dje@google.com>
3519 * symtab.c (filename_seen): Update comment.
3521 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Doug Evans <dje@google.com>
3524 * buildsym.c (end_symtab_1): Split it to ...
3525 (end_symtab_get_static_block): ... this ...
3526 (end_symtab_from_static_block): ... and this function.
3527 (end_symtab, end_expandable_symtab): Call them.
3528 * buildsym.h (end_symtab_get_static_block)
3529 (end_symtab_from_static_block): New declarations.
3530 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3531 Set its valid CU ranges.
3533 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3536 DW_OP_GNU_parameter_ref.
3538 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3541 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3543 2012-07-13 Doug Evans <dje@google.com>
3545 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3546 (filename_seen_cache): New struct.
3547 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3548 (create_filename_seen_cache): New function.
3549 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3550 (filename_seen): Delete arg "first". New arg "cache". All callers
3552 (output_source_filename_data): New struct.
3553 (output_source_filename): Delete arg "first". New arg "data".
3554 All callers updated.
3555 (sources_info): Delete local "first". New locals "data", "cleanups".
3556 Rewrite to use filename_seen_cache.
3557 (add_partial_filename_data): Delete member "first". New member
3558 "filename_seen_cache". All uses updated.
3559 (make_source_files_completion_list): Rewrite to use
3560 filename_seen_cache.
3562 2012-07-12 Doug Evans <dje@google.com>
3564 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3566 2012-07-10 Doug Evans <dje@google.com>
3569 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3570 all_type_unit_groups, type_unit_groups, tu_stats.
3571 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3572 All uses updated. Add type_unit_group to union "s".
3573 (type_unit_group): New struct.
3574 (IS_TYPE_UNIT_GROUP): New macro.
3575 (abbrev_table): Delete unused member "section".
3576 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3577 (dw2_get_cu): Assert not used with type_unit_group.
3578 (dw2_get_primary_cu): New function.
3579 (dw2_build_type_unit_groups_reader): New function.
3580 (dw2_build_type_unit_groups): New function.
3581 (dw2_get_file_names): Assert not called on type units.
3582 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3583 Redo loop to iterate over type unit groups instead of type units.
3584 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3585 (read_abbrev_offset): New function.
3586 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3588 (create_partial_symtab): New function.
3589 (process_psymtab_comp_unit_reader): Assert not used with type units.
3590 Call create_partial_symtab.
3591 (process_psymtab_type_unit): Delete.
3592 (hash_type_unit_group, eq_type_unit_group): New functions.
3593 (allocate_type_unit_groups_table): New function.
3594 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3595 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3596 (create_type_unit_group, get_type_unit_group): New functions.
3597 (tu_abbrev_offset): New struct.
3598 (sort_tu_by_abbrev_offset): New function.
3599 (add_type_unit_group_to_table): New function.
3600 (build_type_unit_groups): New function.
3601 (build_type_psymtabs_reader): New function.
3602 (build_type_psymtab_dependencies): New function.
3603 (build_type_psymtabs): Rewrite.
3604 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3605 is seen in a type unit.
3606 (process_queue): Move symtab expansion debugging printfs here.
3607 Call process_full_type_unit for type units.
3608 (compute_symtab_includes): Assert not called for type units.
3609 (process_cu_includes): Don't call compute_symtab_includes for
3611 (process_full_type_unit): New function.
3612 (process_imported_unit_die): Flag an error if called for type units.
3613 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3614 updated. Assert not called for type units.
3615 (read_file_scope): Call dwarf2_start_symtab.
3616 (setup_type_unit_groups): New function.
3617 (read_type_unit_scope): Rewrite.
3618 (abbrev_table_read_table): Initialize abbrev_table->offset.
3619 (abbrev_table_free_cleanup): New function.
3620 (dwarf2_start_symtab): New function.
3621 (load_full_type_unit): Assert not called for type unit groups.
3622 * buildsym.c (finish_block_internal): New arg "expandable".
3623 All callers updated.
3624 (start_symtab): Move most contents to ...
3625 (restart_symtab): ... here. New function.
3626 (reset_symtab_globals): New function.
3627 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3628 Call reset_symtab_globals.
3629 (end_symtab, end_expandable_symtab): New functions.
3630 (set_missing_symtab, augment_type_symtab): New functions.
3631 * buildsym.h (end_expandable_symtab): Declare.
3632 (augment_type_symtab, restart_symtab): Declare.
3633 * psympriv.h (struct partial_symtab): New member "anonymous".
3634 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3636 (read_psymtabs_with_filename): Ditto.
3637 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3638 (expand_symtabs_matching_via_partial): Ditto.
3639 (dump_psymtab): Update.
3640 * dictionary.c (dict_add_pending): New function.
3641 * dictionary.h (dict_add_pending): Declare.
3643 2012-07-09 Doug Evans <dje@google.com>
3645 * buildsym.c (start_subfile): Remove unnecessary check for
3648 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3650 * dwarf2read.c (load_full_type_unit): Simplify.
3652 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3653 to struct signatured_type **. All uses updated.
3655 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3656 All callers updated.
3658 2012-07-09 Tom Tromey <tromey@redhat.com>
3660 * c-exp.y (check_parameter_typelist): New function.
3661 (parameter_typelist): Call it.
3662 * eval.c (make_params): Handle '(void)' case.
3663 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3666 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 * common/linux-ptrace.c: Include gdb_assert.h.
3669 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3670 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3672 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3674 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3675 * linux-nat.c (linux_child_post_attach)
3676 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3678 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3681 nptl <2.7 bug workaround for core files.
3683 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3685 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3687 (save_siginfo): Remove.
3688 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3690 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3691 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3692 * linux-nat.h (struct lwp_info): Remove field siginfo.
3694 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3696 Code cleanup for the next patch.
3697 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3698 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3700 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3701 (ia64_linux_stopped_data_address):
3702 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3704 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3705 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3706 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3709 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3712 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3713 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3715 2012-07-06 Tom Tromey <tromey@redhat.com>
3717 * c-exp.y (DOTDOTDOT): New token.
3718 (func_mod, exp): Use parameter_typelist.
3719 (parameter_typelist): New production.
3720 (tokentab3): Add "..." token.
3721 * eval.c (make_params): Handle varargs.
3722 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3725 2012-07-06 Tom Tromey <tromey@redhat.com>
3728 * c-exp.y (%union) <tvec>: Change type.
3729 (func_mod): Now uses <tvec> type.
3730 (exp): Update for tvec change.
3731 (direct_abs_decl): Push the typelist.
3732 (func_mod): Return a typelist.
3733 (nonempty_typelist): Update for tvec change.
3734 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3735 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3736 * parse.c (pop_type_list): New function.
3737 (push_typelist): New function.
3738 (follow_types): Handle tp_function_with_arguments.
3739 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3740 (enum type_pieces) <tp_function_with_arguments>: New constant.
3741 (union type_stack_elt) <typelist_val>: New field.
3742 (push_typelist): Declare.
3744 2012-07-06 Tom Tromey <tromey@redhat.com>
3746 * c-exp.y (%union) <type_stack>: New field.
3747 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3748 (ptr_operator_ts): New production.
3750 * parse.c (type_stack_reserve): New function.
3751 (check_type_stack_depth): Use it.
3752 (pop_type_stack, append_type_stack, push_type_stack)
3753 (get_type_stack, type_stack_cleanup): New functions.
3754 (follow_types): Handle tp_type_stack.
3755 (_initialize_parse): Simplify initialization.
3756 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3758 (union type_stack_elt) <stack_val>: New field.
3759 (get_type_stack, append_type_stack, push_type_stack)
3760 (type_stack_cleanup): Declare.
3762 2012-07-06 Tom Tromey <tromey@redhat.com>
3764 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3766 (struct type_stack): New.
3767 * parse.c (type_stack, type_stack_size, type_stack_depth):
3769 (type_stack): New global.
3770 (parse_exp_in_context, check_type_stack_depth)
3771 (insert_into_type_stack, insert_type, push_type, push_type_int)
3772 (insert_type_address_space, pop_type, pop_type_int)
3773 (_initialize_parse): Update.
3775 2012-07-06 Tom Tromey <tromey@redhat.com>
3777 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3780 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3782 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3784 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3785 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3788 alloca with xmalloc/xfree.
3790 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3792 * MAINTAINERS (Write After Approval): Add myself to the list.
3794 2012-07-05 Doug Evans <dje@google.com>
3796 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3798 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3800 * ax-gdb.c (cli/cli-utils.h): New include.
3801 (linespec.h): Ditto.
3802 (agent_eval_command_one): New function.
3803 (agent_command_1): Ditto.
3804 (agent_command): Call function agent_command_1.
3805 (agent_eval_command): Ditto.
3806 (_initialize_ax_gdb): Change help for "maint agent"
3807 and "maint agent-eval".
3809 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3811 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3812 * cli/cli-utils.c (check_for_argument): New function.
3813 * cli/cli-utils.h (check_for_argument): Ditto.
3815 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3817 * NEWS: Mention x32 ABI support.
3819 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3821 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3822 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3824 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3825 and pc_regnum_from_eax to -1. Update SP regnum from
3826 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3829 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3832 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3834 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3835 * dwarf2expr.h: Include gdbtypes.h.
3836 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3837 these forward declarations.
3838 (cu_offset, sect_offset): Move these ...
3839 * gdbtypes.h: Remove include dwarf2expr.h.
3840 (cu_offset, sect_offset): ... here.
3842 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3844 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3845 (amd64_linux_sigtramp_code): This.
3846 (amd64_x32_linux_sigtramp_code): New.
3847 (LINUX_SIGTRAMP_LEN): Updated.
3848 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3850 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3852 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3854 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3856 * config.in: Regenerate.
3857 * configure: Regenerate.
3858 * configure.ac: Remove check for gnu/libc-version.h.
3859 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3861 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3862 variables libc_version, libc_major and libc_minor. Replace sscanf by
3863 inferior_has_bug. Extend the comment.
3865 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3867 * linux-thread-db.c (inferior_has_bug): New function.
3868 (thread_db_find_new_threads_silently): Return boolean as checked by
3869 inferior_has_bug, describe it in the comments.
3870 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3871 earlier. Abort the initialization if it returned non-zero.
3872 (thread_db_new_objfile): Exclude debug files.
3873 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3876 2012-07-02 Doug Evans <dje@google.com>
3878 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3879 related to queue management.
3881 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3882 instead of "debug dwarf2-die" in debugging printfs.
3883 (create_debug_info_hash_table_reader): Ditto.
3884 (create_debug_info_hash_table): Ditto.
3885 (init_dwo_file): Ditto.
3886 (init_cutu_and_read_dies): Add debugging printf.
3887 (init_cutu_and_read_dies_no_follow): Ditto.
3888 (process_psymtab_comp_unit_reader): Ditto.
3890 2012-07-02 Stan Shebs <stan@codesourcery.com>
3892 Add target-side support for dynamic printf.
3893 * NEWS: Mention the additional style.
3894 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3895 (struct bp_location): New field cmd_bytecode.
3896 * breakpoint.c: Include format.h.
3897 (disconnected_dprintf): New global.
3898 (parse_cmd_to_aexpr): New function.
3899 (build_target_command_list): New function.
3900 (insert_bp_location): Call it.
3901 (remove_breakpoints_pid): Skip dprintf breakpoints.
3902 (print_one_breakpoint_location): Ditto.
3903 (dprintf_style_agent): New global.
3904 (dprintf_style_enums): Add dprintf_style_agent.
3905 (update_dprintf_command_list): Add agent case.
3906 (agent_printf_command): New function.
3907 (_initialize_breakpoint): Add new commands.
3908 * common/ax.def (printf): New bytecode.
3909 * ax.h (ax_string): Declare.
3910 * ax-gdb.h (gen_printf): Declare.
3911 * ax-gdb.c: Include cli-utils.h, format.h.
3912 (gen_printf): New function.
3913 (maint_agent_print_command): New function.
3914 (_initialize_ax_gdb): Add maint agent-printf command.
3915 * ax-general.c (ax_string): New function.
3916 (ax_print): Add printf disassembly.
3917 * Makefile.in (SFILES): Add format.c
3918 (COMMON_OBS): Add format.o.
3919 * common/format.h: New file.
3920 * common/format.c: New file.
3921 * printcmd.c: Include format.h.
3922 (ui_printf): Call parse_format_string.
3923 * remote.c (remote_state): New field breakpoint_commands.
3924 (PACKET_BreakpointCommands): New enum.
3925 (remote_breakpoint_commands_feature): New function.
3926 (remote_protocol_features): Add new BreakpointCommands entry.
3927 (remote_can_run_breakpoint_commands): New function.
3928 (remote_add_target_side_commands): New function.
3929 (remote_insert_breakpoint): Call it.
3930 (remote_insert_hw_breakpoint): Ditto.
3931 (_initialize_remote): Add new packet configuration for
3932 target-side breakpoint commands.
3933 * target.h (struct target_ops): New field
3934 to_can_run_breakpoint_commands.
3935 (target_can_run_breakpoint_commands): New macro.
3936 * target.c (update_current_target): Handle
3937 to_can_run_breakpoint_commands.
3939 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 Execute -ix and -iex only after system and user gdbinit files.
3942 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3943 processing down after gdbinit files.
3945 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3947 Add fnmatch-gnu module.
3948 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3949 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3950 * gnulib/aclocal.m4: Regenerate.
3951 * gnulib/config.in: Regenerate.
3952 * gnulib/configure: Regenerate.
3953 * gnulib/import/dummy.c: Remove.
3954 * gnulib/import/Makefile.am: Regenerate.
3955 * gnulib/import/Makefile.in: Likewise.
3956 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3957 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3958 * gnulib/import/alloca.c: New file.
3959 * gnulib/import/alloca.in.h: Likewise.
3960 * gnulib/import/config.charset: Likewise.
3961 * gnulib/import/fnmatch.c: Likewise.
3962 * gnulib/import/fnmatch.in.h: Likewise.
3963 * gnulib/import/fnmatch_loop.c: Likewise.
3964 * gnulib/import/localcharset.c: Likewise.
3965 * gnulib/import/localcharset.h: Likewise.
3966 * gnulib/import/m4/alloca.m4: Likewise.
3967 * gnulib/import/m4/codeset.m4: Likewise.
3968 * gnulib/import/m4/configmake.m4: Likewise.
3969 * gnulib/import/m4/fcntl-o.m4: Likewise.
3970 * gnulib/import/m4/fnmatch.m4: Likewise.
3971 * gnulib/import/m4/glibc21.m4: Likewise.
3972 * gnulib/import/m4/localcharset.m4: Likewise.
3973 * gnulib/import/m4/locale-fr.m4: Likewise.
3974 * gnulib/import/m4/locale-ja.m4: Likewise.
3975 * gnulib/import/m4/locale-zh.m4: Likewise.
3976 * gnulib/import/m4/mbrtowc.m4: Likewise.
3977 * gnulib/import/m4/mbsinit.m4: Likewise.
3978 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3979 * gnulib/import/m4/mbstate_t.m4: Likewise.
3980 * gnulib/import/m4/stdbool.m4: Likewise.
3981 * gnulib/import/m4/wchar_h.m4: Likewise.
3982 * gnulib/import/m4/wctype_h.m4: Likewise.
3983 * gnulib/import/m4/wint_t.m4: Likewise.
3984 * gnulib/import/mbrtowc.c: Likewise.
3985 * gnulib/import/mbsinit.c: Likewise.
3986 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3987 * gnulib/import/mbsrtowcs-state.c: Likewise.
3988 * gnulib/import/mbsrtowcs.c: Likewise.
3989 * gnulib/import/ref-add.sin: Likewise.
3990 * gnulib/import/ref-del.sin: Likewise.
3991 * gnulib/import/stdbool.in.h: Likewise.
3992 * gnulib/import/streq.h: Likewise.
3993 * gnulib/import/strnlen1.c: Likewise.
3994 * gnulib/import/strnlen1.h: Likewise.
3995 * gnulib/import/verify.h: Likewise.
3996 * gnulib/import/wchar.in.h: Likewise.
3997 * gnulib/import/wctype.in.h: Likewise.
3999 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4001 Support shell wildcards for 'set auto-load safe-path'.
4002 * auto-load.c: Include fnmatch.h.
4003 (filename_is_in_dir): Rename to ...
4004 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4005 it. Update function comment. Rename dir_len to pattern_len. New
4006 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4007 messages. Use gdb_filename_fnmatch.
4008 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4010 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4011 * defs.h (gdb_filename_fnmatch): New declaration.
4012 * utils.c: Include fnmatch.h.
4013 (gdb_filename_fnmatch): New function.
4015 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4017 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4018 `-probe' and `-probe-stap' options.
4020 2012-07-01 Yao Qi <yao@codesourcery.com>
4022 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4023 always_inserted_off, and always_inserted_enums.
4024 Change always_inserted_mode's type to 'enum auto_boolean'.
4025 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4027 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4028 of add_setshow_enum_cmd.
4029 * infrun.c: Remove can_use_displaced_stepping_auto,
4030 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4031 can_use_displaced_stepping_enum.
4032 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4033 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4034 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4035 add_setshow_enum_cmd.
4037 2012-06-30 Doug Evans <dje@google.com>
4039 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4040 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4041 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4043 2012-06-29 Doug Evans <dje@google.com>
4045 * linespec.c: #include "stack.h".
4046 (decode_line_with_current_source): Moved here from symtab.c and
4047 renamed from decode_line_spec. All callers updated.
4048 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4049 renamed from decode_line_spec_1. All callers updated.
4050 * linespec.h (decode_line_with_current_source): Move declaration here
4051 from symtab.h and renamed from decode_line_spec.
4052 (decode_line_with_last_displayed): Move declaration here from symtab.h
4053 and renamed from decode_line_spec_1.
4054 * macrocmd.c: #include "linespec.h".
4055 * symtab.c: Remove #include "linespec.h".
4057 2012-06-28 Doug Evans <dje@google.com>
4059 * dwarf2read.c (get_cu_length): New function.
4060 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4061 (create_debug_types_hash_table): Ditto.
4062 (init_cutu_and_read_dies): Ditto.
4063 (init_cutu_and_read_dies_no_follow): Ditto.
4065 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4067 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4068 (struct abbrev_table): Define.
4069 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4071 (init_cutu_and_read_dies): Update.
4072 (abbrev_table_alloc_abbrev): New function. Replaces
4073 dwarf_alloc_abbrev. All callers updated.
4074 (abbrev_table_add_abbrev): New function.
4075 (abbrev_table_lookup_abbrev): New function. Replaces
4076 dwarf2_lookup_abbrev. All callers updated.
4077 (abbrev_table_read_table): New function. Contents moved here from
4078 dwarf2_read_abbrevs.
4079 (dwarf2_read_abbrevs): Call it.
4080 (abbrev_table_free): New function.
4081 (dwarf2_free_abbrev_table): Call it.
4083 2012-06-28 Stan Shebs <stan@codesourcery.com>
4085 * osdata.c (info_osdata_command): Filter out "Title" columns
4087 * common/linux-osdata.c (struct osdata_type): Add title field.
4088 (osdata_table): Add titles to each entry.
4089 (linux_command_xfer_osdata): Add a column for title data.
4091 2012-06-28 Stan Shebs <stan@codesourcery.com>
4093 Make logging work for MI.
4095 * interps.h (interp_set_logging_ftype): New typedef.
4096 (struct interp_procs): New field set_logging_proc.
4097 (current_interp_set_logging): Declare.
4098 * interps.c (current_interp_set_logging): New function.
4099 * cli/cli-logging.c: Include interps.h.
4100 (set_logging_redirect): Call current_interp_set_logging.
4101 (pop_output_files): Ditto.
4102 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4103 * mi/mi-console.h (mi_console_set_raw): Declare.
4104 * mi/mi-console.c (mi_console_set_raw): New function.
4105 * mi/mi-interp.c (saved_raw_stdout): New global.
4106 (mi_set_logging): New function.
4107 (_initialize_mi_interp): Add it to interp procs.
4109 2012-06-28 Doug Evans <dje@google.com>
4111 * symtab.c (lookup_symbol_aux_objfile): Use
4112 ALL_OBJFILE_PRIMARY_SYMTABS.
4114 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4116 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 * common/buffer.c: Include inttypes.h and stdint.h.
4119 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4121 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4122 Pedro Alves <palves@redhat.com>
4124 * gdbthread.h (ALL_THREADS): New macro.
4125 (thread_list): Declare.
4126 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4127 going, but instead fall through to the stepping handling.
4128 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4129 the passed in signal. Adjust debug output.
4130 (resume_callback): Rename to ...
4131 (linux_nat_resume_callback): ... this. Pass the thread's last
4132 stop signal, if in "pass" state.
4133 (linux_nat_resume): Adjust to rename.
4134 (stop_wait_callback): New assertion. Don't respawn signals;
4135 instead let the LWP remain with SIGNALLED set.
4136 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4137 * remote.c (append_pending_thread_resumptions): New.
4138 (remote_vcont_resume): Call it.
4139 * target.h (target_resume): Extend comment.
4141 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4143 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4145 2012-06-27 Doug Evans <dje@google.com>
4147 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4148 Delete have_addr_base, unused. All uses updated.
4149 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4150 (dwarf2_get_pc_bounds): Add ranges_base.
4151 (dwarf2_record_block_ranges): Ditto.
4153 2012-06-27 Tom Tromey <tromey@redhat.com>
4156 * varobj.c (varobj_create): Update.
4157 (varobj_set_value): Update.
4158 * tracepoint.c (validate_actionline): Update.
4159 (encode_actions_1): Update.
4160 * parse.c (parse_exp_1): Add 'pc' argument.
4161 (parse_exp_in_context): Add 'pc' argument. Change how
4162 expression_context_pc is set.
4163 (parse_expression): Update.
4164 (parse_field_expression): Update.
4165 * expression.h (parse_exp_1): Update.
4166 * eval.c (parse_to_comma_and_eval): Update.
4167 * breakpoint.c (set_breakpoint_condition): Update.
4168 (update_watchpoint): Update.
4169 (init_breakpoint_sal): Update
4170 (find_condition_and_thread): Update.
4171 (watch_command_1): Update.
4172 (update_breakpoint_locations): Update.
4173 * ada-lang.c (ada_read_renaming_var_value): Update.
4174 (create_excep_cond_exprs): Update.
4176 2012-06-27 Doug Evans <dje@google.com>
4178 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4181 2012-06-26 Doug Evans <dje@google.com>
4183 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4185 (error_check_comp_unit_head): New arg abbrev_section. All callers
4187 (read_and_check_comp_unit_head): Ditto.
4188 (read_and_check_type_unit_head): Ditto.
4190 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4192 New attribute 'last' for gdb.Symtab_and_line.
4193 * NEWS (Python Scripting): Add entry about the new attribute.
4194 * python/py-symtab.c (salpy_get_last): New function which
4195 implements the get method for the 'last' attribute of
4196 gdb.Symtab_and_line.
4197 (sal_object_getset): Add entry for the 'last' attribute.
4199 2012-06-26 Doug Evans <dje@google.com>
4201 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4202 (dwo_sections): Add macinfo, macro.
4203 (dwarf2_locate_dwo_sections): Watch for macro sections.
4204 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4205 All callers updated. Handle DWO files.
4207 * NEWS: Mention new options "set debug dwarf2-read" and
4208 "set debug symtab-create".
4209 * dwarf2read.c (dwarf2_read_debug): New static global.
4210 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4211 (process_queue): Ditto.
4212 (process_full_comp_unit): Ditto.
4213 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4214 * elfread.c (elf_symfile_read): Add debugging printf.
4215 * minsyms.c (install_minimal_symbols): Ditto.
4216 * psymtab.c (allocate_psymtab): Ditto.
4217 * symfile.c (allocate_symtab): Ditto.
4218 * symtab.c (symtab_create_debug): New global.
4219 (_initialize_symtab): Add new option "set debug symtab-create".
4220 * symtab.h (symtab_create_debug): Declare.
4222 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4223 (lookup_dwo_type_unit): Ditto.
4225 2012-06-26 Roland McGrath <roland@hack.frob.com>
4226 H.J. Lu <hongjiu.lu@intel.com>
4228 * amd64-linux-nat.c: Include <sys/user.h>.
4229 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4230 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4231 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4233 * configure.ac: Check if the fs_base and gs_base members of
4234 `struct user_regs_struct' exist.
4235 * config.in: Regenerated.
4236 * configure: Likewise.
4238 2012-06-25 Michael Eager <eager@eagercon.com>
4241 * python/python.c (gdbpy_write): Check for interrupted output.
4243 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4245 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4246 register as a stack alignment in ARM mode.
4248 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4250 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4251 * gnulib/config.in: Regenerate.
4252 * gnulib/configure: Likewise.
4253 * gnulib/import/m4/extensions.m4: Update it.
4254 * gnulib/import/m4/gnulib-common.m4: Likewise.
4255 * gnulib/import/m4/memmem.m4: Likewise.
4256 * gnulib/import/m4/mmap-anon.m4: Likewise.
4257 * gnulib/import/m4/multiarch.m4: Likewise.
4258 * gnulib/import/stdint.in.h: Likewise.
4260 2012-06-24 Yao Qi <yao@codesourcery.com>
4262 * corefile.c (write_memory_with_notification): New.
4263 * gdbcore.h: Declare write_memory_with_notification.
4264 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4265 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4266 * valops.c (value_assign): Likewise.
4267 * python/py-inferior.c (infpy_write_memory): Call
4268 'write_memory_with_notification'.
4270 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4272 * cc-with-index.sh: Use also -ex "set auto-load no".
4274 2012-06-23 Doug Evans <dje@google.com>
4277 * NEWS: Document additions to .gdb_index.
4278 * dwarf2read.c: #include "gdb/gdb-index.h".
4279 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4280 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4281 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4282 (dwarf2_read_index): Recognize version 7.
4283 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4284 block_kind, domain): All callers updated.
4285 (dw2_find_symbol_file): Handle new index CU values.
4286 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4287 (add_index_entry): New args is_static, kind. All callers updated.
4288 (offset_type_compare, uniquify_cu_indices): New functions
4289 (symbol_kind): New function.
4290 (write_psymtabs_to_index): Remove duplicate CU values.
4291 (write_psymtabs_to_index): Write .gdb_index version 7.
4293 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4295 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4296 * configure: Regenerate.
4298 2012-06-20 Yao Qi <yao@codesourcery.com>
4300 * python/py-inferior.c: Update comments of infpy_read_memory
4301 and infpy_write_memory.
4303 2012-06-19 Tom Tromey <tromey@redhat.com>
4306 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4307 (push_type_address_space): Remove.
4308 * parse.c (insert_into_type_stack): New function.
4309 (insert_type): Likewise.
4310 (insert_type_address_space): Rename from push_type_address_space.
4311 Insert tp_space_identifier.
4312 * c-exp.y (ptr_operator): New production.
4313 (abs_decl): Use ptr_operator.
4314 (space_identifier): Call insert_type_address_space.
4315 (ptype): Don't use const_or_volatile_or_space_identifier.
4316 (const_or_volatile_noopt): Call insert_type.
4317 (conversion_type_id, conversion_declarator): New productions.
4318 (operator): Use conversion_type_id.
4320 2012-06-18 Doug Evans <dje@google.com>
4322 * symtab.h (minimal_symbol): New member created_by_gdb.
4323 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4325 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4326 (search_symbols): Call it instead of lookup_symbol.
4327 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4329 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4330 Adjust address for DW_OP_GNU_addr_index.
4331 * dwarf2expr.h (dwarf_expr_context): Update comment.
4332 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4333 all callers updated. Handle TLS vars described with
4334 DW_OP_GNU_const_index.
4335 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4336 and DW_OP_GNU_const_index.
4337 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4339 * block.c (find_block_in_blockvector): Make explicit the fact that we
4340 ignore GLOBAL_BLOCK.
4342 2012-06-18 Tom Tromey <tromey@redhat.com>
4344 * c-exp.y (operator): Remove trailing space after "delete" and
4347 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4348 Jan Kratochvil <jan.kratochvil@redhat.com>
4350 Switch i386 and derived targets to ON_STACK.
4351 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4352 (amd64_dicos_init_abi): Remove its installment.
4353 * dicos-tdep.c (dicos_init_abi): Remove the
4354 set_gdbarch_call_dummy_location call. Update the comment here.
4355 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4356 (i386_dicos_init_abi): Remove its installment.
4357 * i386-tdep.c (i386_push_dummy_code): New function.
4358 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4359 i386_push_dummy_code.
4361 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4363 Remove stale dummy frames.
4364 * breakpoint.c: Include dummy-frame.h.
4365 (longjmp_breakpoint_ops): New variable.
4366 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4367 bp_longjmp_call_dummy.
4368 (bpstat_what, bptype_string, print_one_breakpoint_location)
4369 (init_bp_location): Support bp_longjmp_call_dummy.
4370 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4371 (set_longjmp_breakpoint_for_call_dummy)
4372 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4374 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4375 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4376 FIXME comment and extend the other comment for bp_call_dummy.
4377 (set_longjmp_breakpoint_for_call_dummy)
4378 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4379 * dummy-frame.c: Include gdbthread.h.
4380 (pop_dummy_frame_bpt): New function.
4381 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4382 (dummy_frame_discard): New function.
4383 (cleanup_dummy_frames): Update the comment about longjmps.
4384 * dummy-frame.h (dummy_frame_discard): New declaration.
4385 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4386 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4387 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4388 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4389 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4390 keep_going if IS_LONGJMP and there is no other reason to stop.
4392 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4394 * remote-sim.c (sim_command_completer): Initialize
4397 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4399 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4400 * dwarf2loc.c (call_site_parameter_matches): Support
4401 CALL_SITE_PARAMETER_PARAM_OFFSET.
4402 (needs_dwarf_reg_entry_value): Push stub value.
4403 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4404 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4405 * gdbtypes.h (enum call_site_parameter_kind): New item
4406 CALL_SITE_PARAMETER_PARAM_OFFSET.
4407 (struct call_site.parameter.u): New field param_offset.
4409 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4411 Code cleanup: Generalize call_site.parameter key.
4412 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4413 variable dwarf_reg. New variable kind_u. Update parameters to
4414 push_dwarf_reg_entry_value.
4415 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4416 * dwarf2expr.h (enum call_site_parameter_kind)
4417 (union call_site_parameter_u): Forward declarations.
4418 (struct dwarf_expr_context_funcs): Update parameters and their
4419 description for push_dwarf_reg_entry_value.
4420 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4421 * dwarf2loc.c (call_site_parameter_matches): New function.
4422 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4423 description. Use call_site_parameter_matches.
4424 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4425 Update parameters and their description.
4426 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4427 New variable kind_u. Adjust the caller for updated parameters.
4428 (needs_dwarf_reg_entry_value): Update parameters.
4429 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4430 instead of attr. Update for the changed fields of struct
4431 call_site_parameter.
4432 * gdbtypes.h: Include dwarf2expr.h.
4433 (enum call_site_parameter_kind): New.
4434 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4435 fb_offset into new union u.
4437 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4439 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4440 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4443 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4445 * amd64-linux-nat.c (compat_x32_clock_t): New.
4446 (compat_x32_siginfo_t): Likewise.
4447 (compat_x32_siginfo_from_siginfo): Likewise.
4448 (siginfo_from_compat_x32_siginfo): Likewise.
4449 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4450 and siginfo_from_compat_x32_siginfo for x32.
4452 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4454 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4456 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4458 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4459 instead of gdbarch_ptr_bit.
4460 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4461 (amd64_supply_native_gregset): Likewise.
4462 (amd64_collect_native_gregset): Likewise.
4463 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4464 (amd64_supply_xsave): Likewise.
4465 (amd64_collect_fxsave): Likewise.
4466 (amd64_collect_xsave): Likewise.
4468 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4470 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4471 (amd64_linux_read_description): Check DS segment register for
4474 2012-06-15 Tom Tromey <tromey@redhat.com>
4476 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4477 init_cutu_and_read_dies.
4479 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4481 * MAINTAINERS (Write After Approval): Add myself to the list.
4483 2012-06-15 Tom Tromey <tromey@redhat.com>
4485 * valops.c (value_find_oload_method_list): Now static.
4486 * value.h (value_find_oload_method_list): Don't declare.
4488 2012-06-15 Tom Tromey <tromey@redhat.com>
4490 * valops.c (find_overload_match): Use value_ind.
4492 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4494 * infrun.c (handle_inferior_event): Correct indentation.
4496 2012-06-14 Doug Evans <dje@google.com>
4498 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4499 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4501 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4502 updated. Handle DEBUG_LOC_START_LENGTH.
4503 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4504 (loclist_describe_location): Ditto.
4506 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4509 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4510 after hiding inline functions.
4512 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4514 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4515 _initialize_inf_ttrace.
4517 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4519 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4520 _initialize_hppa_hpux_nat.
4522 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4524 * remote-sim.c (sim_command_completer): Change type of return
4525 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4527 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4528 Jan Kratochvil <jan.kratochvil@redhat.com>
4531 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4532 stack on a 16-byte boundary.
4534 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4536 * jit.c (finalize_symtab): Set function's return type to 'void' by
4539 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4540 H.J. Lu <hongjiu.lu@intel.com>
4542 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4543 Move bits common to both the classic LP64 and the new x32 ILP32
4545 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4546 (amd64_x32_linux_init_abi): New function.
4547 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4550 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4551 * i386-tdep.c (i386_pseudo_register_name): Make public.
4552 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4553 * amd64-tdep.c (amd64_dword_names): Add "eip".
4554 (amd64_x32_pseudo_register_type): New function
4555 (amd64_x32_init_abi): New function.
4557 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4560 * inferior.h (struct inferior_suspend_state): Comment out.
4561 (struct inferior): Comment out the field suspend.
4562 * infrun.c (struct infcall_suspend_state): Comment out the field
4564 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4567 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4569 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4570 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4571 function comment. Return ERROR for unresolved cases. Implement
4572 returning proper NAME.
4573 (yylex): Accept also NAME from classify_inner_name.
4574 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4575 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4577 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4579 2012-06-13 Tom Tromey <tromey@redhat.com>
4581 * breakpoint.c (condition_completer): New function.
4582 (_initialize_breakpoint): Use it.
4583 * value.c (complete_internalvar): New function.
4584 * value.h (complete_internalvar): Declare.
4586 2012-06-13 Tom Tromey <tromey@redhat.com>
4588 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4589 * breakpoint.c (catch_syscall_completer): Return a VEC.
4590 * cli/cli-cmds.c (complete_command): Update.
4591 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4592 (complete_on_enum): Likewise.
4593 * command.h: Include gdb_vecs.h.
4594 (completer_ftype): Change return type.
4595 (complete_on_cmdlist, complete_on_enum): Likewise.
4596 * completer.c (noop_completer, filename_completer)
4597 (location_completer): Return a VEC.
4598 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4600 (expression_completer, complete_line_internal, complete_line)
4601 (command_completer): Return a VEC.
4602 (gdb_completion_word_break_characters, line_completion_function):
4604 * completer.h: Include gdb_vecs.h.
4605 (complete_line, noop_completer, filename_completer)
4606 (expression_completer, location_completer, command_completer):
4608 * f-lang.c (f_word_break_characters): Return a VEC.
4609 * interps.c (interpreter_completer): Return a VEC.
4610 * language.h (struct language_defn)
4611 <la_make_symbol_completion_list>: Return a VEC.
4612 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4613 * symtab.c (free_completion_list): Take a VEC.
4614 (return_val_size, return_val_index): Remove.
4615 (return_val): Now a VEC.
4616 (completion_list_add_name): Update.
4617 (default_make_symbol_completion_list_break_on)
4618 (default_make_symbol_completion_list, make_symbol_completion_list)
4619 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4621 (add_filename_to_list): Update.
4622 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4624 (maybe_add_partial_symtab_filename): Update.
4625 (make_source_files_completion_list): Return a VEC.
4626 * symtab.h (default_make_symbol_completion_list_break_on)
4627 (default_make_symbol_completion_list, make_symbol_completion_list)
4628 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4629 (make_source_files_completion_list): Update.
4631 2012-06-13 Tom Tromey <tromey@redhat.com>
4633 * breakpoint.c (add_catch_command): Use completer_ftype.
4634 * breakpoint.h: Include command.h.
4635 (add_catch_command): Use completer_ftype.
4636 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4637 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4638 Use completer_ftype.
4639 * command.h (completer_ftype): New typedef.
4640 (set_cmd_completer): Use it.
4641 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4644 2012-06-13 Pedro Alves <palves@redhat.com>
4646 Partial revert of previous change.
4648 * serial.c (scb_base): New global.
4649 (serial_for_fd): New.
4650 (serial_open, serial_fdopen_ops): Link new serial in open serials
4652 (do_serial_close): Unlink serial from the open serials chain.
4654 2012-06-12 Pedro Alves <palves@redhat.com>
4656 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4658 (prepare_for_detach): No longer context switch here in non-stop
4660 (fetch_inferior_event): Ditto.
4661 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4662 to the event thread before removing breakpoints. Switch to the
4663 event thread before inserting breakpoints and resuming.
4664 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4665 event thread before resuming.
4666 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4667 Switch to the event thread before removing breakpoints.
4669 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4671 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4672 special characters correctly for the Windows shells. See
4673 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4675 [!__MINGW32__]: Remove extra double quote character from special
4678 2012-06-11 Stan Shebs <stan@codesourcery.com>
4680 * ui-out.h: Remove #if 0 declarations.
4681 * ui-out.c: Remove #if 0 functions.
4683 2012-06-11 Pedro Alves <palves@redhat.com>
4685 * ser-base.c (run_async_handler_and_reschedule): New.
4686 (fd_event, push_event): Use it.
4687 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4688 reference count to 1.
4689 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4691 (serial_is_open, serial_ref, serial_unref): New.
4692 * serial.h (serial_open): Adjust comment.
4693 (serial_is_open): Declare.
4694 (serial_close): Adjust comment.
4695 (serial_ref, serial_unref) Declare.
4696 (struct serial): New field 'refcnt'.
4698 2012-06-11 Pedro Alves <palves@redhat.com>
4700 Remove #if 0'd "connect" command, and unnecessary associated
4701 refcounting and serial reuse bits.
4703 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4704 * serial.c (last_serial_opened): Delete.
4706 (serial_open): Adjust.
4707 (serial_for_fd): Delete.
4708 (serial_fdopen_ops, do_serial_close): Adjust.
4709 (serial_fdopen_ops): Adjust.
4711 2012-06-11 Pedro Alves <palves@redhat.com>
4713 * serial.c (do_serial_close): Remove early return when SCB is
4716 2012-06-11 Tom Tromey <tromey@redhat.com>
4718 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4720 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4722 Fix regression by the "ambiguous linespec" series.
4723 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4724 get_last_displayed_symtab and get_last_displayed_line and depending
4727 2012-06-11 Tom Tromey <tromey@redhat.com>
4729 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4730 (dw2_find_symbol_file): Use it.
4732 2012-06-11 Michael Eager <eager@eagercon.com>
4734 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4735 * mips-linux-tdep.h (mips_signals): New
4737 2012-06-11 Tom Tromey <tromey@redhat.com>
4739 * infrun.c (handle_inferior_event)
4740 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4742 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4743 exception logic in all cases. Update comments.
4744 (insert_longjmp_resume_breakpoint): Set the exception resume
4747 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4749 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4751 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4753 * valarith.c (binop_types_user_defined_p): Fix a typo.
4755 2012-06-08 Yao Qi <yao@codesourcery.com>
4756 Chung-Lin Tang <cltang@codesourcery.com>
4758 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4759 * arch-utils.h: Declare.
4760 * gdbarch.sh: Add return_in_first_hidden_param_p.
4761 * gdbarch.c, gdbarch.h: Regenerated.
4762 * infcall.c (call_function_by_hand): Call
4763 gdbarch_return_in_first_hidden_param_p instead of
4764 language_pass_by_reference.
4766 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4767 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4768 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4769 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4770 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4771 `cplus_return_struct_by_reference'.
4772 (tic6x_return_value): Handle language cplusplus.
4773 (tic6x_return_in_first_hidden_param_p): New.
4774 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4776 2012-06-07 Doug Evans <dje@google.com>
4778 * dwarf2read.c (dwarf2_cu): Add comment.
4780 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4782 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4784 (mips_eabi_push_dummy_call): Likewise.
4785 (mips_n32n64_push_dummy_call): Likewise.
4786 (mips_o32_push_dummy_call): Likewise.
4787 (mips_o64_push_dummy_call): Likewise.
4789 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4791 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4793 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4795 * mips-tdep.c (mips_pseudo_register_type): Use
4796 mips_float_register_p.
4798 2012-06-06 Pedro Alves <palves@redhat.com>
4800 * infrun.c (handle_inferior_event): Remove calls to
4801 reinit_frame_cache that follow a context_switch call.
4803 2012-06-06 Pedro Alves <palves@redhat.com>
4805 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4806 context_switch and remove stale comment.
4808 2012-06-06 Pedro Alves <palves@redhat.com>
4810 * infrun.c (struct execution_control_state): Remove
4811 `new_thread_event' field.
4812 (handle_inferior_event): Simplify new threads handling; don't
4813 resume the inferior if we find a new thread.
4815 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4817 * NEWS: Document the deprecation of SH's 'regs' command.
4818 * inferior.h (all_registers_info): Add function declaration.
4819 * sh-tdep.c (sh_show_regs): Remove variable.
4820 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4821 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4822 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4823 (sh_show_regs_command): Remove functions.
4824 (sh_gdbarch_init): Don't set sh_show_regs.
4825 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4826 'info all-registers'.
4827 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4828 (sh64_show_regs): Remove functions.
4829 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4831 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4833 * configure.ac: Move development=true below AC_INIT.
4834 * configure: Regenerate.
4836 2012-06-05 Stan Shebs <stan@codesourcery.com>
4838 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4841 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4843 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4844 argument as ssize_t.
4845 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4846 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4847 * target.c (target_read_stack, target_write_memory)
4848 (target_write_raw_memory): Likewise.
4849 * target.h (target_read_stack, target_write_memory)
4850 (target_write_raw_memory): Likewise.
4852 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4854 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4855 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4856 * target.c (target_read_memory): Change LEN to ssize_t.
4857 * target.h (target_read_memory): Change LEN to ssize_t.
4859 2012-06-05 Pedro Alves <palves@redhat.com>
4863 * breakpoint.c (until_break_command): Only fetch the selected
4864 frame after decode_line_1.
4866 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4868 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4869 event breakpoint at _start, __start or main if a program
4870 interpreter is not found.
4872 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4874 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4876 * windows-tdep.c: #include "objfiles.h".
4877 (windows_iterate_over_objfiles_in_search_order): New function.
4878 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4879 iterate_over_objfiles_in_search_order gdbarch method to
4880 windows_iterate_over_objfiles_in_search_order.
4881 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4883 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4885 * gdbarch.sh: Add generation of
4886 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4887 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4888 (iterate_over_objfiles_in_search_order): New gdbarch method.
4889 * gdbarch.h, gdbarch.c: Regenerate.
4890 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4892 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4894 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4895 out of lookup_symbol_aux_symtabs.
4896 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4897 call to lookup_symbol_aux_objfile.
4898 (struct global_sym_lookup_data): New type.
4899 (lookup_symbol_global_iterator_cb): New function.
4900 (lookup_symbol_global): Search for symbol using
4901 gdbarch_iterate_over_objfiles_in_search_order and
4902 lookup_symbol_global_iterator_cb.
4903 * findvar.c (struct minsym_lookup_data): New type.
4904 (minsym_lookup_iterator_cb): New function.
4905 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4906 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4907 and minsym_lookup_iterator_cb.
4909 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4911 Revert the following patch:
4912 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4913 try locating the symbol in the symbol's own objfile first, before
4914 extending the search to all objfiles.
4915 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4916 out of lookup_symbol_aux_symtabs.
4917 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4918 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4919 Do not search EXCLUDE_OBJFILE.
4920 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4921 (lookup_symbol_global): Search for matches in the block's objfile
4922 first, before searching all other objfiles.
4924 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4926 * breakpoint.c (find_condition_and_thread): Stop parsing
4927 as soon as the first invalid keyword is found.
4929 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4931 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4933 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4935 * config/djgpp/djcheck.sh: Add copyright header.
4937 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4939 * copyright.py (update_files, main): Fix path to update-copyright
4942 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4944 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4945 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4946 for which a reminder to update by hand is printed.
4948 2012-06-04 Doug Evans <dje@google.com>
4950 * buildsym.c (make_blockvector): Add comment.
4952 2012-06-04 Pedro Alves <palves@redhat.com>
4954 * arch-utils.c (default_gdb_signal_from_target): Delete.
4955 * arch-utils.h (default_gdb_signal_from_target): Delete.
4956 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4957 gdbarch_gdb_signal_from_target_p.
4958 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4960 * gdbarch.h: Regenerate.
4961 * gdbarch.c: Regenerate.
4963 2012-06-04 Pedro Alves <palves@redhat.com>
4965 * gdbarch.sh (gdb_signal_from_target): Mention that the
4966 implementation of the method must be host independent.
4967 * gdbarch.h: Regenerate.
4969 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4971 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4973 (target_read_memory_bfd): New function.
4974 (symbol_file_add_from_memory): Use it.
4976 2012-06-03 Doug Evans <dje@google.com>
4978 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4980 (basic_lookup_transparent_type): Ditto.
4982 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4983 (ALL_PRIMARY_SYMTABS): Use it.
4984 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4985 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4986 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4987 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4988 (basic_lookup_transparent_type): Ditto.
4990 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4992 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4993 it to optimize resolution of demangled name.
4995 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4997 * configure.ac (development): Define new variable.
4998 Call AC_CHECK_LIB for mcheck if $development.
4999 (ERROR_ON_WARNING): Enable it by default only if $development.
5000 * config.in: Regenerate.
5001 * configure: Regenerate.
5003 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5005 * target.c (target_read_memory): Make LEN argument as size_t.
5006 * target.h (target_read_memory): Likewise.
5008 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5010 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5012 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5014 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5015 BookE interface for PowerPC server processors if not available
5016 in the Linux Kernel.
5018 2012-05-31 Keith Seitz <keiths@redhat.com>
5020 * linespec.c (decode_objc): Add cleanup to free
5022 (find_linespec_symbols): Add cleanup to free CLASSES.
5023 * symfile.c (find_separate_debug_file_by_debuglink): Add
5024 cleanup to free DEBUGLINK.
5025 * ui-out.c (clear_header_list): No need to check if
5026 HEADER_NEXT.COLHDR is NULL.
5027 Free HEADER_NEXT.COL_NAME.
5029 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5031 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5034 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5036 * configure.host (gdb_host_cpu): Handle tilegx*.
5037 (gdb_host): Handle tilegx-*-linux*.
5038 * tilegx-linux-nat.c: New file.
5039 * config/tilegx/linux.mh: New file.
5041 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5043 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5044 tilegx-linux-tdep.o.
5045 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5046 tilegx-linux-tdep.c.
5047 * configure.tgt: Handle tilegx-*-linux*.
5048 * tilegx-tdep.h: New file.
5049 * tilegx-tdep.c: New file.
5050 * tilegx-linux-tdep.c: New file.
5051 * regformats/reg-tilegx.dat: New file.
5053 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5055 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5056 accounting of hw watchpoints on ppc.
5058 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5060 * source.c (openp): Expand tilde in path entries.
5062 2012-05-29 Doug Evans <dje@google.com>
5064 * buildsym.c (block_compar): Fix comment.
5065 (end_symtab): Fix and clarify some comments.
5067 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5068 cleanup_undefined_types.
5069 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5070 All callers updated.
5072 2012-05-29 Tom Tromey <tromey@redhat.com>
5074 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5076 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5077 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5079 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5082 2012-05-29 Tristan Gingold <gingold@adacore.com>
5084 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5085 (struct darwin_info): ... New struct.
5086 (solib_darwin_pspace_data): New variable.
5087 (darwin_pspace_data_cleanup): New function.
5088 (get_darwin_info): Likewise.
5089 (darwin_dyld_version_ok, darwin_load_image_infos)
5090 (darwin_solib_get_all_image_info_addr_at_init)
5091 (darwin_solib_read_all_image_info_addr): Add info argument.
5093 (darwin_current_sos): Use per pspace structure.
5094 (darwin_solib_create_inferior_hook): Likewise.
5095 (darwin_clear_solib): Likewise.
5096 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5098 2012-05-28 Pedro Alves <palves@redhat.com>
5100 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5101 block that uses them. Clear ecss before handling each event.
5103 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5105 * solib-svr4.c (svr4_current_sos): New comment on
5106 svr4_current_sos_via_xfer_libraries fall back.
5108 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5110 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5111 it as a fallback for TYPE_IS_OPAQUE.
5112 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5113 symbols for lookup_symbol.
5115 2012-05-24 John Steele Scott <toojays@toojays.net>
5117 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5118 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5119 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5120 (check_producer): ... this new function, which also checks for ICC
5121 and caches the result.
5122 (producer_is_icc): New function.
5123 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5126 2012-05-24 Pedro Alves <palves@redhat.com>
5130 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5131 (default_gdb_signal_to_target): ... this. Add comment.
5132 (default_gdb_signal_from_host): Rename to ...
5133 (default_gdb_signal_from_target): ... this. Add comment.
5134 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5135 (default_gdb_signal_to_target): ... this.
5136 (default_gdb_signal_from_host): Rename to ...
5137 (default_gdb_signal_from_target): ... this.
5138 * corelow.c (core_open): Adjust to naming change. Replace comment.
5139 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5140 (gdb_signal_from_target): ... this. Adjust to
5141 default_gdb_signal_from_host naming change. Extend comment.
5142 (gdb_signal_to_host): Rename to ...
5143 (gdb_signal_to_target): ... this. Adjust to
5144 default_gdb_signal_to_host naming change.
5145 * gdbarch.h, gdbarch.c: Renegerate.
5147 2012-05-24 Pedro Alves <palves@redhat.com>
5151 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5153 2012-05-24 Pedro Alves <palves@redhat.com>
5157 Replace target_signal with gdb_signal throughout.
5159 2012-05-24 Pedro Alves <palves@redhat.com>
5163 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5164 string, instead of reusing the va_list argument.
5166 2012-05-24 Tom Tromey <tromey@redhat.com>
5168 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5171 2012-05-23 Doug Evans <dje@google.com>
5173 * symtab.c (search_symbols): Formatting fixes.
5174 (print_symbol_info): Formatting fixes.
5176 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5177 int64_t change to leb128 API.
5178 (read_encoded_value, decode_frame_entry_1): Ditto.
5179 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5180 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5181 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5182 (execute_stack_op): Ditto.
5183 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5184 (safe_read_uleb128, safe_read_sleb128): Ditto.
5185 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5186 (dwarf2_compile_expr_to_ax): Ditto.
5187 (locexpr_describe_location_piece): Ditto.
5188 (disassemble_dwarf_expression): Ditto.
5189 (locexpr_describe_location_1): Ditto.
5191 2012-05-23 Stan Shebs <stan@codesourcery.com>
5192 Kwok Cheung Yeung <kcy@codesourcery.com>
5194 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5195 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5196 (mi-cmd-info.o): New rule.
5197 * osdata.h (info_osdata_command): New declaration.
5198 * osdata.c (info_osdata_command): Change to non-static.
5199 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5200 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5201 * mi/mi-cmd-info.c: New file.
5203 2012-05-23 Doug Evans <dje@google.com>
5205 * symtab.c (search_symbols): Pass NULL for file_matcher to
5206 expand_symtabs_matching if there are no files to match.
5208 * gdbtypes.c (lookup_typename): Simplify.
5210 2012-05-23 Pedro Alves <palves@redhat.com>
5212 * arch-utils.h (default_target_signal_to_host): Delete.
5213 * arch-utils.c (default_target_signal_to_host): Delete.
5214 * gdbarch.sh (target_signal_to_host): Remove.
5215 * gdbarch.h, gdbarch.c: Regenerate.
5217 2012-05-22 Doug Evans <dje@google.com>
5219 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5221 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5222 (execute_cfa_program): Update to match API of leb128 functions.
5223 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5225 (read_unsigned_leb128, read_signed_leb128): Delete.
5226 (read_initial_length): Change type of buf argument to
5228 (read_encoded_value): Update to match API of leb128 functions.
5229 (decode_frame_entry): Change result to "const gdb_byte *", and
5230 similarly for "start" parameter.
5231 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5232 (dwarf2_build_frame_info): Change local frame_ptr to
5234 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5235 read_uleb128, read_sleb128. All callers updated.
5236 (safe_skip_leb128): New function.
5237 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5238 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5239 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5240 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5241 read_uleb128, read_sleb128.
5242 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5243 (execute_stack_op): Update to match API of leb128 functions.
5244 * dwarf2expr.h: #include "leb128.h".
5245 (read_uleb128, read_sleb128): Delete.
5246 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5247 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5248 * dwarf2loc.c (debug_loc_kind): New enum.
5249 (decode_debug_loc_addresses): New function.
5250 (decode_debug_loc_dwo_addresses): New function.
5251 (dwarf2_find_location_expression): Rewrite.
5252 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5253 (locexpr_describe_location_piece): Ditto.
5254 (disassemble_dwarf_expression): Ditto.
5255 (locexpr_describe_location_1): Ditto.
5256 (loclist_describe_location): Rewrite.
5257 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5258 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5259 (dwarf2_section_buffer_overflow_complaint): Renamed from
5260 dwarf2_macros_too_long_complaint. All callers updated.
5261 (skip_leb128): Delete.
5262 (init_cu_die_reader): Initialize reader->buffer_end.
5263 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5264 (skip_form_bytes): New arg buffer_end. All callers updated.
5265 Replace call to skip_leb128 with gdb_skip_leb128.
5266 (skip_unknown_opcode): New arg mac_end. All callers updated.
5267 (fill_in_loclist_baton): Initialize baton->from_dwo.
5269 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5271 * mips-linux-nat.c (mips_linux_read_description): Use a more
5272 verbose error message.
5274 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5276 * NEWS: Add MIPS/Linux DSP support.
5277 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5278 (SIGCONTEXT_DSPCTL): New macro.
5279 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5280 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5281 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5282 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5283 (N64_SIGCONTEXT_HI3): Likewise.
5284 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5285 (N64_SIGCONTEXT_LO3): Likewise.
5286 (N64_SIGCONTEXT_DSPCTL): Likewise.
5287 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5288 (mips_linux_o32_sigframe_init): Handle DSP registers.
5289 (mips_linux_n32n64_sigframe_init): Likewise.
5291 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5293 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5296 2012-05-22 Pedro Alves <palves@redhat.com>
5298 * target.h (store_waitstatus): Move declaration ...
5299 * inf-child.h (store_waitstatus): ... here.
5300 * target.c: Move inclusion of gdb_wait.h, and ...
5301 (store_waitstatus): ... this ...
5302 * inf-child.c: ... here.
5303 * linux-nat.c: Include inf-child.h.
5304 * rs6000-nat.c: Include inf-child.h.
5305 * spu-linux-nat.c: Include inf-child.h.
5307 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5309 * tracepoint.c (start_tracing): Add missing i18n markup.
5310 (stop_tracing, set_trace_user): Ditto.
5311 (set_trace_notes, set_trace_stop_notes): Ditto.
5313 2012-05-21 Tom Tromey <tromey@redhat.com>
5316 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5318 * value.h (value_cast_pointers): Update.
5319 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5320 (value_cast): Update.
5321 (update_search_result): New function.
5322 (do_search_struct_field): New, from search_struct_field. Check
5323 for ambiguous results.
5324 (search_struct_field): Rewrite.
5325 * infcall.c (value_arg_coerce): Update.
5326 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5327 value_cast_pointers.
5328 * ada-lang.c (ada_convert_actual): Update.
5330 2012-05-21 Tom Tromey <tromey@redhat.com>
5332 * macroexp.c (macro_stringify): Terminate the string.
5334 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5336 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5338 * auto-load.c (auto_load_expand_dir_vars): New function.
5339 (auto_load_safe_path_vec_update): Use it, remove the
5340 substitute_path_component call thanks to it.
5341 (auto_load_objfile_script): Remove the debug_file_directory processing.
5342 Use auto_load_expand_dir_vars, remove the substitute_path_component
5344 * configure: Regenerate.
5345 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5346 path. Escape $ also for $debugdir.
5347 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5348 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5350 2012-05-20 Doug Evans <dje@google.com>
5352 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5353 before use. Check for symtab->includes == NULL before scanning it.
5355 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5357 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5359 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5361 * NEWS: Add microMIPS support and "set mips compression",
5362 "show mips compression" commands.
5363 * mips-tdep.h (mips_isa): New enum.
5364 (gdbarch_tdep): Add mips_isa.
5365 (mips_pc_is_mips16): Update prototype.
5366 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5367 * mips-tdep.c (mips_compression_mips16): New variable.
5368 (mips_compression_micromips): Likewise.
5369 (mips_compression_strings): Likewise.
5370 (mips_compression_string): Likewise.
5371 (is_mips16_isa, is_micromips_isa): New functions.
5372 (is_mips16_addr): Rename to...
5373 (is_compact_addr): ... this.
5374 (unmake_mips16_addr): Likewise to...
5375 (unmake_compact_addr): ... this.
5376 (make_mips16_addr): Likewise to...
5377 (make_compact_addr): ... this.
5378 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5380 (mips_elf_make_msymbol_special): Handle microMIPS code.
5381 (msymbol_is_special): Rename to...
5382 (msymbol_is_mips16): ... this.
5383 (mips_make_symbol_special, mips_pc_is_mips16): Update
5385 (msymbol_is_mips, msymbol_is_micromips): New functions.
5386 (mips16_to_32_reg): Rename to...
5387 (mips_reg3_to_reg): ... this.
5388 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5389 (mips_pc_isa): Likewise.
5390 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5392 (mips_fetch_instruction): Pass return status instead of printing
5393 an error message if requested. Handle microMIPS code. Bail out
5395 (micromips_op): New macro.
5396 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5397 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5398 (b6s4_op, b7s3_reg): Likewise.
5399 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5400 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5401 (mips_insn_size): New function.
5402 (mips32_next_pc): Update mips_fetch_instruction call.
5403 (micromips_relative_offset7): New function.
5404 (micromips_relative_offset10): Likewise.
5405 (micromips_relative_offset16): Likewise.
5406 (micromips_pc_insn_size): Likewise.
5407 (micromips_bc1_pc): Likewise.
5408 (micromips_next_pc): Likewise.
5409 (unpack_mips16): Update mips_fetch_instruction call.
5410 (extended_mips16_next_pc): Update according to change to
5412 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5414 (mips16_scan_prologue): Update mips_fetch_instruction call.
5415 Update according to change to mips16_to_32_reg.
5416 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5417 (mips_insn16_frame_base_sniffer): Likewise.
5418 (micromips_decode_imm9): New function.
5419 (micromips_scan_prologue): Likewise.
5420 (mips_micro_frame_cache): Likewise.
5421 (mips_micro_frame_this_id): Likewise.
5422 (mips_micro_frame_prev_register): Likewise.
5423 (mips_micro_frame_sniffer): Likewise.
5424 (mips_micro_frame_unwind): New variable.
5425 (mips_micro_frame_base_address): New function.
5426 (mips_micro_frame_base): New variable.
5427 (mips_micro_frame_base_sniffer): New function.
5428 (mips32_scan_prologue): Update mips_fetch_instruction call.
5429 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5430 rather than for MIPS16.
5431 (mips_insn32_frame_base_sniffer): Likewise.
5432 (mips_addr_bits_remove): Handle microMIPS code.
5433 (deal_with_atomic_sequence): Rename to...
5434 (mips_deal_with_atomic_sequence): ... this. Update the type
5435 of the variable used to hold an instruction. Remove the ISA bit
5436 check. Update mips_fetch_instruction call.
5437 (micromips_deal_with_atomic_sequence): New function.
5438 (deal_with_atomic_sequence): Likewise.
5439 (mips_about_to_return): Handle microMIPS code. Update
5440 mips_fetch_instruction call.
5441 (heuristic_proc_start): Check for the standard MIPS ISA rather
5442 than for MIPS16. Update mips_pc_is_mips16 and
5443 mips_fetch_instruction calls. Handle microMIPS code.
5444 (mips_push_dummy_code): Handle microMIPS code.
5445 (mips_eabi_push_dummy_call): Likewise.
5446 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5447 (mips_o64_push_dummy_call): Handle microMIPS code.
5448 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5449 (is_delayed): Remove function.
5450 (mips_single_step_through_delay): Replace the call to is_delayed
5451 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5452 Handle microMIPS code.
5453 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5455 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5457 (micromips_in_function_epilogue_p): New function.
5458 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5460 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5462 (gdb_print_insn_mips): Likewise.
5463 (mips_breakpoint_from_pc): Likewise.
5464 (mips_remote_breakpoint_from_pc): New function.
5465 (mips32_instruction_has_delay_slot): Simplify making use of the
5466 updated mips_fetch_instruction interface.
5467 (micromips_instruction_has_delay_slot): New function.
5468 (mips16_instruction_has_delay_slot): Simplify making use of the
5469 updated mips_fetch_instruction interface.
5470 (mips_adjust_breakpoint_address): Check for the standard MIPS
5471 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5472 calls. Handle microMIPS code.
5473 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5474 (mips_skip_trampoline_code): Handle microMIPS code.
5475 (global_mips_compression): New function.
5476 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5477 file flags. Register the microMIPS remote breakpoint handler
5478 and heuristic frame unwinder.
5479 (show_mips_compression): New function.
5480 (_initialize_mips_tdep): Add the "set mips compression" and
5481 "show mips compression" commands.
5483 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5488 * amd64-darwin-tdep.c:
5489 * arm-symbian-tdep.c:
5493 * bfin-linux-tdep.c:
5500 * dwarf2-frame-tailcall.c:
5529 * microblaze-tdep.c:
5530 * mips-linux-tdep.c:
5538 * python/py-finishbreakpoint.c:
5539 * python/py-inferior.c:
5540 * python/py-infthread.c:
5544 * remote-m32r-sdi.c:
5548 * rs6000-aix-tdep.c:
5574 * amd64-darwin-tdep.c:
5575 * arm-symbian-tdep.c:
5576 * arm-tdep.c: Delete unused variables.
5578 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5580 Rename $ddir to $datadir.
5581 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5582 * auto-load.c (auto_load_safe_path_vec_update)
5583 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5584 * configure: Regenerate.
5585 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5586 Likewise. Remove the 'use $ddir' help string.
5588 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5591 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5593 2012-05-18 Tom Tromey <tromey@redhat.com>
5596 * valprint.h (struct value_print_options) <symbol_print>: New
5598 * valprint.c (user_print_options): Add default for symbol_print.
5599 (show_symbol_print): New function.
5600 (generic_val_print): Respect symbol_print.
5601 (_initialize_valprint): Add "print symbol" setting.
5602 * f-valprint.c (f_val_print): Respect symbol_print.
5603 * c-valprint.c (c_val_print): Respect symbol_print.
5605 * printcmd.c (print_address_symbolic): Return int. Ignore some
5607 (print_address_demangle): Return int.
5608 * defs.h: (print_address_symbolic): Return int.
5609 * value.h (print_address_demangle): Return int.
5611 2012-05-18 Tom Tromey <tromey@redhat.com>
5613 * valprint.c (val_print_string): Don't print leading space.
5614 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5615 print space before string or vtbl.
5616 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5618 * jv-valprint.c (java_value_print): Print space before string.
5619 * go-valprint.c (print_go_string): Print space before string.
5620 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5621 space before string.
5622 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5623 space before string or vtbl.
5624 * auxv.c (fprint_target_auxv): Print space after address.
5626 2012-05-18 Tom Tromey <tromey@redhat.com>
5628 * printcmd.c (print_address_demangle): Remove special case for 0.
5630 2012-05-18 Tom Tromey <tromey@redhat.com>
5632 * printcmd.c (print_address_demangle): Add 'opts' argument.
5633 * p-valprint.c (pascal_val_print): Update.
5634 * jv-valprint.c (java_val_print): Update.
5636 * valprint.c (generic_val_print): Update.
5637 (print_function_pointer_address): Add 'options' argument. Remove
5638 'addressprint' argument. Update.
5639 * m2-valprint.c (print_unpacked_pointer): Update.
5640 * gnu-v3-abi.c (print_one_vtable): Update.
5641 (gnuv3_print_method_ptr): Update.
5642 * f-valprint.c (f_val_print): Update.
5643 * cp-valprint.c (cp_print_value_fields): Update.
5644 * valprint.h (print_function_pointer_address): Update.
5645 * c-valprint.c (c_val_print): Update.
5647 2012-05-18 Tom Tromey <tromey@redhat.com>
5649 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5650 directly corresponding to the found psymtab.
5651 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5652 (dw2_find_pc_sect_symtab): Use it.
5653 * block.h (blockvector_contains_pc): Declare.
5654 * block.c (find_block_in_blockvector): New function.
5655 (blockvector_for_pc_sect): Use it.
5656 (blockvector_contains_pc): New function.
5658 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5660 * mips-tdep.h (mips_write_pc): New prototype.
5661 * mips-tdep.c (mips_write_pc): Make external, add description.
5662 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5665 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5667 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5669 (mips_unwind_pc, mips_write_pc): Likewise.
5670 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5673 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5675 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5676 proc_warn, proc_error, proc_get_status, proc_flags,
5677 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5678 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5679 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5680 proc_stop_process, proc_wait_for_stop, proc_run_process,
5681 proc_set_traced_signals, proc_set_traced_faults,
5682 proc_set_traced_sysentry, proc_set_traced_sysexit,
5683 proc_set_held_signals, proc_get_held_signals,
5684 proc_get_traced_signals, proc_get_traced_faults,
5685 proc_get_traced_sysentry, proc_get_traced_sysexit,
5686 proc_clear_current_fault, proc_set_current_signal,
5687 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5688 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5689 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5690 proc_get_current_thread, proc_get_current_thread,
5691 proc_get_current_thread, proc_update_threads,
5692 proc_update_threads, proc_update_threads, proc_update_threads,
5693 proc_iterate_over_threads, procfs_find_new_threads,
5694 procfs_pid_to_str): Make static. Remove advance declaration.
5695 (proc_cursig): Make static. Conditionalized defintion on
5696 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5697 (proc_syscall, proc_set_kill_on_last_close,
5698 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5699 proc_get_pending_signals, proc_get_signal_actions,
5700 proc_trace_signal, proc_ignore_signal): Delete.
5702 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5704 * coffread.c (cs_section_address): Passing proper argument for
5705 `bfd_get_section_vma'.
5706 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5707 `bfd_get_section_flags'.
5708 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5709 `bfd_get_section_vma'.
5711 2012-05-16 Tom Tromey <tromey@redhat.com>
5714 * macrotab.h: (macro_define_special): Declare.
5715 (enum macro_special_kind): New.
5716 (struct macro_definition) <argc, replacement>: Update comments.
5717 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5718 (macro_define_object_internal): New function.
5719 (macro_define_object): Use it.
5720 (macro_define_special): New function.
5721 (fixup_definition): New function.
5722 (macro_lookup_definition, foreach_macro_in_scope)
5723 (foreach_macro): Use fixup_definition.
5724 * macroexp.h (macro_stringify): Declare.
5725 * macroexp.c (free_buffer_return_text): New function.
5726 (stringify): Constify "arg".
5727 (macro_stringify): New function.
5728 * dwarf2read.c (macro_start_file): Call macro_define_special.
5730 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5731 Maciej W. Rozycki <macro@mips.com>
5733 * breakpoint.h (bp_location): Add related_address member.
5734 * inferior.h (get_return_value): Take a pointer to struct value
5735 instead of struct type for the function requested.
5736 * value.h (using_struct_return): Likewise.
5737 * gdbarch.sh (return_value): Take a pointer to struct value
5738 instead of struct type for the function requested.
5739 * breakpoint.c (set_breakpoint_location_function): Initialize
5740 related_address for bp_gnu_ifunc_resolver breakpoints.
5741 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5742 requested function's address to gdbarch_return_value.
5743 * eval.c (evaluate_subexp_standard): Pass the requested
5744 function's address to using_struct_return.
5745 * infcall.c (call_function_by_hand): Pass the requested
5746 function's address to using_struct_return and
5747 gdbarch_return_value.
5748 * infcmd.c (get_return_value): Take a pointer to struct value
5749 instead of struct type for the function requested.
5750 (print_return_value): Update accordingly.
5751 (finish_command_continuation): Likewise.
5752 * stack.c (return_command): Pass the requested function's
5753 address to using_struct_return and gdbarch_return_value.
5754 * value.c (using_struct_return): Take a pointer to struct value
5755 instead of struct type for the function requested. Pass the
5756 requested function's address to gdbarch_return_value.
5757 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5758 New function_value member, replacing function_type.
5759 (bpfinishpy_dealloc): Update accordingly.
5760 (bpfinishpy_pre_stop_hook): Likewise.
5761 (bpfinishpy_init): Likewise. Record the requested function's
5763 * mips-tdep.c (mips_fval_reg): New enum.
5764 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5765 words put in GP registers.
5766 (mips_o64_push_dummy_call): Update a comment.
5767 (mips_o32_return_value): Take a pointer to struct value instead
5768 of struct type for the function requested and use it to check if
5769 using the MIPS16 calling convention. Return the designated
5770 general purpose registers for floating-point values returned in
5772 (mips_o64_return_value): Likewise.
5773 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5774 (ppc_sysv_abi_broken_return_value): Likewise.
5775 (ppc64_sysv_abi_return_value): Likewise.
5776 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5777 value instead of struct type for the function requested.
5778 * amd64-tdep.c (amd64_return_value): Likewise.
5779 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5780 * arm-tdep.c (arm_return_value): Likewise.
5781 * avr-tdep.c (avr_return_value): Likewise.
5782 * bfin-tdep.c (bfin_return_value): Likewise.
5783 * cris-tdep.c (cris_return_value): Likewise.
5784 * frv-tdep.c (frv_return_value): Likewise.
5785 * h8300-tdep.c (h8300_return_value): Likewise.
5786 (h8300h_return_value): Likewise.
5787 * hppa-tdep.c (hppa32_return_value): Likewise.
5788 (hppa64_return_value): Likewise.
5789 * i386-tdep.c (i386_return_value): Likewise.
5790 * ia64-tdep.c (ia64_return_value): Likewise.
5791 * iq2000-tdep.c (iq2000_return_value): Likewise.
5792 * lm32-tdep.c (lm32_return_value): Likewise.
5793 * m32c-tdep.c (m32c_return_value): Likewise.
5794 * m32r-tdep.c (m32r_return_value): Likewise.
5795 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5796 * m68k-tdep.c (m68k_return_value): Likewise.
5797 (m68k_svr4_return_value): Likewise.
5798 * m88k-tdep.c (m88k_return_value): Likewise.
5799 * mep-tdep.c (mep_return_value): Likewise.
5800 * microblaze-tdep.c (microblaze_return_value): Likewise.
5801 * mn10300-tdep.c (mn10300_return_value): Likewise.
5802 * moxie-tdep.c (moxie_return_value): Likewise.
5803 * mt-tdep.c (mt_return_value): Likewise.
5804 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5805 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5806 (ppc_sysv_abi_broken_return_value): Likewise.
5807 (ppc64_sysv_abi_return_value): Likewise.
5808 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5809 * rl78-tdep.c (rl78_return_value): Likewise.
5810 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5811 * rx-tdep.c (rx_return_value): Likewise.
5812 * s390-tdep.c (s390_return_value): Likewise.
5813 * score-tdep.c (score_return_value): Likewise.
5814 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5815 (sh_return_value_fpu): Likewise.
5816 * sh64-tdep.c (sh64_return_value): Likewise.
5817 * sparc-tdep.c (sparc32_return_value): Likewise.
5818 * sparc64-tdep.c (sparc64_return_value): Likewise.
5819 * spu-tdep.c (spu_return_value): Likewise.
5820 * tic6x-tdep.c (tic6x_return_value): Likewise.
5821 * v850-tdep.c (v850_return_value): Likewise.
5822 * vax-tdep.c (vax_return_value): Likewise.
5823 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5824 * xtensa-tdep.c (xtensa_return_value): Likewise.
5825 * gdbarch.c: Regenerate.
5826 * gdbarch.h: Regenerate.
5828 2012-05-15 Tom Tromey <tromey@redhat.com>
5830 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5832 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5834 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5835 of command in two error message.
5837 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5839 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5841 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5843 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5845 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5847 * NEWS (show auto-load scripts-directory): Add forgotten command.
5849 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5854 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5856 * amd64-tdep.c: Include features/i386/x32.c and
5857 features/i386/x32-avx.c.
5858 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5859 initialize_tdesc_x32_avx.
5861 2012-05-14 Stan Shebs <stan@codesourcery.com>
5864 * breakpoint.h (enum bptype): New type bp_dprintf.
5865 (struct breakpoint): New field extra_string.
5866 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5867 (create_breakpoint): Add extra_string arg.
5868 * breakpoint.c (dprintf_breakpoint_ops): New.
5869 (is_breakpoint): Add bp_dprintf.
5870 (bpstat_what): Add dprintf case.
5871 (bptype_string): Ditto.
5872 (print_one_breakpoint_location): Ditto.
5873 (init_bp_location): Ditto.
5874 (bkpt_print_mention): Ditto.
5875 (dprintf_style_enums): New array.
5876 (dprintf_style): New global.
5877 (dprintf_function): New global.
5878 (dprintf_channel): New global.
5879 (update_dprintf_command_list): New function.
5880 (update_dprintf_commands): New function.
5881 (init_breakpoint_sal): Add extra_string argument, handle it.
5882 (create_breakpoint_sal): Add extra_string argument.
5883 (create_breakpoints_sal): Add extra_string argument, update callers.
5884 (find_condition_and_thread): Add extra argument.
5885 (create_breakpoint): Add extra_string argument, record it.
5886 (dprintf_command): New function.
5887 (break_command_1): Add arg to create_breakpoint call.
5888 (handle_gnu_v3_exceptions): Ditto.
5889 (trace_command): Ditto.
5890 (ftrace_command): Ditto.
5891 (strace_command): Ditto.
5892 (bkpt_print_mention): Add dprintf case.
5893 (create_breakpoint_sal_default): Add extra_string argument.
5894 (_initialize_breakpoint): Add new commands.
5895 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5896 * python/py-breakpoint.c (bppy_init): Ditto.
5897 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5899 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5901 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5903 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5905 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5908 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5910 Add a new function gdb.find_pc_line to the Python API.
5911 * NEWS (Python Scripting): Add entry about the new function.
5912 * python/python.c (gdbpy_find_pc_line): New function which
5913 implements gdb.find_pc_line.
5914 (GdbMethods): Add entry for the new function.
5916 2012-05-12 Pedro Alves <palves@redhat.com>
5918 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5919 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5921 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5923 * inferior.c: Include completer.h
5924 (initialize_inferiors): Set completer of add-inferior to
5927 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5929 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5930 gdbarch_ptr_bit for x32 core dump.
5932 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5934 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5935 and features/i386/x32-avx-linux.c.
5937 2012-05-11 Stan Shebs <stan@codesourcery.com>
5938 Kwok Cheung Yeung <kcy@codesourcery.com>
5940 * NEWS: Describe new info os commands.
5941 * common/linux-osdata.c (PID_T, TIME_T): Define.
5942 (MAX_PID_T_STRLEN): New.
5943 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5945 (command_from_pid): Add comment. Change to use PID_T.
5946 (commandline_from_pid): Change to use PID_T.
5947 (user_from_pid): Add comment.
5948 (get_process_owner): Add comment. Change to use PID_T and
5950 (get_number_of_cpu_cores): Add comment.
5951 (get_cores_used_by_process): Add comment. Change to use PID_T and
5953 (linux_xfer_osdata_processes): Change to use PID_T and
5955 (compare_processes): New function.
5956 (linux_xfer_osdata_processgroups): New function.
5957 (linux_xfer_osdata_threads): Change to use PID_T.
5958 (linux_xfer_osdata_fds): New function.
5959 (format_socket_state, print_sockets): New functions.
5960 (union socket_addr): New union.
5961 (linux_xfer_osdata_isockets): New function.
5962 (time_from_time_t, group_from_gid): New functions.
5963 (linux_xfer_osdata_shm): New function.
5964 (linux_xfer_osdata_sem): New function.
5965 (linux_xfer_osdata_msg): New function.
5966 (linux_xfer_osdata_modules): New function.
5967 (osdata_table): Add new entries.
5968 * common/buffer.c (buffer_xml_printf): Add support for long and
5969 long long format specifiers.
5971 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5973 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5974 (tdesc_x32_avx_linux): Likewise.
5976 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5978 Implement multi-component --with-auto-load-dir.
5979 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5981 (--with-auto-load-safe-path): Update the default value description.
5982 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5984 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5985 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5986 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5987 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5988 "set auto-load scripts-directory".
5989 * config.in: Regenerate.
5990 * configure: Regenerate.
5991 * configure.ac (--with-auto-load-dir): New configure option.
5992 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5994 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5996 Provide $ddir substitution for --with-auto-load-safe-path.
5997 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5999 * auto-load.c: Include observer.h.
6000 (auto_load_safe_path_vec_update): Call substitute_path_component for
6001 each component. New variable ddir_subst.
6002 (auto_load_gdb_datadir_changed): New function.
6003 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6004 AUTO_LOAD_SAFE_PATH. New comment.
6005 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6006 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6007 * config.in: Regenerate.
6008 * configure: Regenerate.
6009 * configure.ac (--auto-load-safe-path): Rename
6010 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6011 GDB_DATADIR/auto-load.
6012 * defs.h (substitute_path_component): New declaration.
6013 * top.c: Include observer.h.
6014 (set_gdb_datadir): New function.
6015 (init_main): Install it for "set data-directory".
6016 * utils.c (substitute_path_component): New function.
6018 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6020 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6021 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6022 DEBUG_FILE_DIRECTORY. Handle multiple components of
6023 DEBUG_FILE_DIRECTORY.
6025 2012-05-10 Tom Tromey <tromey@redhat.com>
6027 * dwarf2read.c (recursively_write_psymbols): New function.
6028 (write_psymtabs_to_index): Use it.
6030 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6032 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6033 (load_partial_comp_unit): Update.
6034 (queue_comp_unit): Add argument 'pretend_language'.
6035 (process_queue): Update.
6036 (psymtab_to_symtab_1): Skip dependencies that have a user.
6037 (load_partial_comp_unit_reader): Give meaning to the 'data'
6039 (load_full_comp_unit): Add 'pretend_language' argument.
6040 (process_full_comp_unit): Add 'pretend_language' argument. Set
6042 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6044 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6045 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6047 (prepare_one_comp_unit): Add 'pretend_language' argument.
6049 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6050 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6051 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6052 (dw2_do_instantiate_symtab): Check whether symtab was read in
6054 (dw2_instantiate_symtab): Add assertion. Call
6055 process_cu_includes.
6056 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6057 (partial_symtab_p): New typedef.
6058 (set_partial_user): New function.
6059 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6060 (scan_partial_symbols): Add imported CU to imported_symtabs.
6061 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6062 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6063 (get_symtab, recursively_compute_inclusions)
6064 (compute_symtab_includes, process_cu_includes)
6065 (process_imported_unit_die): New functions.
6066 (process_die) <DW_TAG_imported_unit>: New case.
6067 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6069 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6071 (struct partial_die_info) <locdesc>: Remove.
6073 (process_psymtab_comp_unit): Add 'read_partial' argument.
6075 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6076 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6077 (add_partial_symbol): Update.
6078 (process_die): Handle DW_TAG_partial_unit.
6079 (read_file_scope): Update comment.
6080 (load_partial_dies): Handle DW_TAG_imported_unit.
6081 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6082 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6084 2012-05-10 Tom Tromey <tromey@redhat.com>
6086 * cc-with-dwz.sh: New file.
6088 2012-05-10 Tom Tromey <tromey@redhat.com>
6090 * symtab.h (struct symtab) <includes, user>: New fields.
6091 * block.h (struct block_iterator) <d, idx, which>: New fields.
6092 * block.c (initialize_block_iterator, find_iterator_symtab)
6093 (block_iterator_step, block_iter_name_step)
6094 (block_iter_match_step): New functions.
6095 (block_iterator_first, block_iterator_next)
6096 (block_iter_name_first, block_iter_name_next)
6097 (block_iter_match_first, block_iter_match_next): Rewrite.
6098 (get_block_symtab): New function.
6100 2012-05-10 Tom Tromey <tromey@redhat.com>
6102 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6104 * jit.c (finalize_symtab): Use allocate_global_block,
6106 * buildsym.c (finish_block_internal): New function, from old
6108 (finish_block): Rewrite.
6109 (end_symtab): Use finish_block_internal, set_block_symtab.
6110 * block.h (struct global_block): New.
6111 (allocate_global_block, set_block_symtab): Declare.
6112 * block.c (allocate_global_block, set_block_symtab): New
6115 2012-05-10 Tom Tromey <tromey@redhat.com>
6117 * psymtab.c (partial_map_expand_apply): Add assertion.
6118 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6119 (psymtab_to_symtab): Find unshared psymtab.
6120 (dump_psymtab): Print including psymtabs.
6121 (recursively_search_psymtabs): New function.
6122 (expand_symtabs_matching_via_partial): Use it.
6123 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6125 (enum psymtab_search_status): New.
6127 2012-05-10 Tom Tromey <tromey@redhat.com>
6129 * tracepoint.c (scope_info): Update.
6130 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6131 (find_pc_sect_symtab, search_symbols)
6132 (default_make_symbol_completion_list_break_on)
6133 (make_file_symbol_completion_list): Update.
6134 * symmisc.c (dump_symtab_1): Update.
6135 * stack.c (print_frame_args, iterate_over_block_locals)
6136 (print_frame_labels, iterate_over_block_arg_vars): Update.
6137 * python/py-block.c (block_object) <dict>: Remove.
6139 <iter>: Change type.
6140 (blpy_iter): Update.
6141 (blpy_block_syms_iternext): Update.
6142 * psymtab.c (map_block): Use block iterators.
6143 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6144 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6145 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6146 * infrun.c (check_exception_resume): Update.
6147 * cp-support.c (make_symbol_overload_list_block): Update.
6148 * coffread.c (patch_opaque_types): Update.
6149 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6150 * block.h (struct block_iterator): New.
6151 (block_iterator_first, block_iterator_next, block_iter_name_first)
6152 (block_iter_name_next, block_iter_match_first)
6153 (block_iter_match_next): Declare.
6154 (ALL_BLOCK_SYMBOLS): Redefine.
6155 * block.c (block_iterator_first, block_iterator_next)
6156 (block_iter_name_first, block_iter_name_next)
6157 (block_iter_match_first, block_iter_match_next): New functions.
6158 * ada-lang.c (ada_add_block_symbols)
6159 (ada_make_symbol_completion_list): Use block iterator.
6161 2012-05-10 Tom Tromey <tromey@redhat.com>
6163 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6164 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6165 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6166 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6167 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6170 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6172 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6173 print-file-var-lib2.c, print-file-var-main.c and
6174 print-file-var.exp (located in gdb/testsuite/gdb.base).
6176 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6178 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6179 try locating the symbol in the symbol's own objfile first, before
6180 extending the search to all objfiles.
6181 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6182 out of lookup_symbol_aux_symtabs.
6183 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6184 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6185 Do not search EXCLUDE_OBJFILE.
6186 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6187 (lookup_symbol_global): Search for matches in the block's objfile
6188 first, before searching all other objfiles.
6190 2012-05-10 Tristan Gingold <gingold@adacore.com>
6192 * printcmd.c (set_command): Add pre/post inc/dec.
6194 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6196 * gdb.1: Document -ex option.
6198 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6200 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6201 * inferior.h (AT_SYMBOL): Delete.
6203 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6205 * mips-tdep.c (mips_push_dummy_code): New function.
6206 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6207 ON_STACK and install mips_push_dummy_code as our gdbarch
6208 push_dummy_code routine.
6210 2012-05-09 Pedro Alves <palves@redhat.com>
6212 * target.c (set_maintenance_target_async_permitted): Rename to ...
6213 (set_target_async_command): ... this.
6214 (show_maintenance_target_async_permitted): Rename to ...
6215 (show_target_async_command): ... this.
6216 (initialize_targets): Adjust.
6218 2012-05-08 Doug Evans <dje@google.com>
6220 * go-exp.y (classify_name): Add missing assignment of fields of
6223 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6225 Display the ">" prompt in interactive mode while reading canned
6226 commands, even when the current interpreter is MI.
6228 * interps.c (interp_set_temp): New function.
6230 * interps.h (interp_set_temp): Add prototype.
6232 * cli/cli-script.c (restore_interp): New cleanup function.
6233 (read_command_lines): Temporarily override the current interpreter
6234 with CLI and arrange for restoring the original one.
6236 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6238 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6240 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6242 * probe.c (parse_probes): Move conditional to check for
6243 debuginfo files from here...
6244 * stap-probe.c (stap_get_probes): ... to here.
6246 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6247 H.J. Lu <hongjiu.lu@intel.com>
6249 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6250 `movl %esp, %ebp' for the X32 ABI.
6252 2012-05-07 Tom Tromey <tromey@redhat.com>
6254 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6256 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6257 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6258 (dwarf_stack_op_name): Remove.
6259 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6260 (decode_locdesc): Use get_DW_OP_name.
6261 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6262 (dwarf2_compile_expr_to_ax): Likewise.
6263 (disassemble_dwarf_expression): Likewise.
6264 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6266 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6268 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6269 (sh_linux_sigtramp_cache): New function.
6270 (sh_linux_sigreturn_init): New function.
6271 (sh_linux_rt_sigreturn_init): New function.
6272 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6274 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6276 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6277 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6278 (sh_linux_init_abi): Add init calls to register new tramp_frame
6279 definitions under 32-bit SH, update comments.
6281 2012-05-07 Pedro Alves <palves@redhat.com>
6285 * amd64-linux-tdep.c: Include glibc-tdep.h.
6286 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6287 gdbarch_skip_solib_resolver callback.
6289 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6291 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6292 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6293 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6294 (add_auto_load_safe_path): Change the error message.
6295 (_initialize_auto_load): Change the "safe-path" help text.
6296 * configure: Regenerate
6297 * configure.ac (--without-auto-load-safe-path): Set
6298 WITH_AUTO_LOAD_SAFE_PATH to /.
6300 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6302 * stap-probe.h: Do not include unecessary `probe.h'.
6304 2012-05-05 Alan Modra <amodra@gmail.com>
6306 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6307 bfd_und_section_ptr.
6308 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6309 and bfd_com_section_ptr.
6311 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6313 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6315 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6317 * windows-nat.h (segment_register_p_ftype): New typedef.
6318 (windows_set_segment_register_p): Add declaration.
6319 * windows-nat.c (segment_register_p): New static global.
6320 (windows_set_segment_register_p): New function.
6321 (do_windows_fetch_inferior_registers): Add special handling
6322 for segment registers.
6323 * amd64-windows-nat.c: #include "amd64-tdep.h".
6324 (amd64_windows_segment_register_p): New function.
6325 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6326 * i386-windows-nat.c: #include "i386-tdep.h".
6327 (i386_windows_segment_register_p): New function.
6328 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6330 2012-05-04 Tristan Gingold <gingold@adacore.com>
6332 * printcmd.c (set_command): Emit a warning if the expression is not
6335 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6337 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6340 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6342 * stap-probe.c (stap_is_operator): Change declaration.
6343 (stap_get_opcode): Change return value.
6344 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6345 `stap_parse_argument_1'.
6347 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6349 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6352 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6354 Add two new methods global_block and static_block to gdb.Symtab
6356 * NEWS (Python scripting): Add entry about the new methods.
6357 * python/py-symtab.c (stpy_global_block): New function which
6358 implements the gdb.Symtab.global_block() method.
6359 (stpy_static_block): New function which implements the
6360 gdb.Symtab.static_block() method.
6361 (symtab_object_methods): Add entries for the two new methods.
6363 2012-05-03 Doug Evans <dje@google.com>
6365 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6368 2012-05-03 Yao Qi <yao@codesourcery.com>
6370 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6372 (i386_process_record): Ditto.
6374 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6376 * infcall.c (unwind_on_signal_p): Make static.
6378 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6380 * sol-thread.c (solaris_pid_to_str): Make static.
6381 (_initialize_sol_thread): Add prototype.
6383 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6385 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6387 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6389 * MAINTAINERS: Remove myself.
6391 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6393 Fix --without-auto-load-safe-path for MS-Windows host platform.
6394 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6396 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6398 * gdb_curses.h: Undefine KEY_EVENT before including curses
6399 headers. Move "#undef MOUSE_MOVED" before any curses header
6402 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6404 * features/i386/i386-mmx-linux.c: Regenerate.
6405 * features/rs6000/powerpc-32.c: Likewise.
6406 * features/rs6000/powerpc-32l.c: Likewise.
6407 * features/rs6000/powerpc-403.c: Likewise.
6408 * features/rs6000/powerpc-403gc.c: Likewise.
6409 * features/rs6000/powerpc-405.c: Likewise.
6410 * features/rs6000/powerpc-505.c: Likewise.
6411 * features/rs6000/powerpc-601.c: Likewise.
6412 * features/rs6000/powerpc-602.c: Likewise.
6413 * features/rs6000/powerpc-603.c: Likewise.
6414 * features/rs6000/powerpc-604.c: Likewise.
6415 * features/rs6000/powerpc-64.c: Likewise.
6416 * features/rs6000/powerpc-64l.c: Likewise.
6417 * features/rs6000/powerpc-750.c: Likewise.
6418 * features/rs6000/powerpc-860.c: Likewise.
6419 * features/rs6000/powerpc-e500.c: Likewise.
6420 * features/rs6000/powerpc-e500l.c: Likewise.
6421 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6422 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6423 * features/rs6000/rs6000.c: Likewise.
6425 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6427 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6429 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6430 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6431 (stap_parse_argument) <e>: Likewise.
6432 (handle_stap_probe) <byte_order>: Likewise.
6434 2012-04-30 Doug Evans <dje@google.com>
6436 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6437 init_and_read_dies_worker. All callers updated.
6438 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6439 replaced with init_cutu_and_read_dies.
6440 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6441 (find_partial_die): Remove FIXME. Don't free current CU.
6443 2012-04-30 Sterling Augustine <saugustine@google.com>
6445 * contrib: New directory.
6446 * contrib/test_pubnames_and_indexes.py: New file.
6448 2012-04-30 Doug Evans <dje@google.com>
6450 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6451 All callers updated.
6452 (init_cu_die_reader): Verify the section is non-empty.
6453 (dwarf_decode_line_header): Don't dereference section->asection
6454 until we know the section is present.
6456 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6458 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6461 2012-04-29 Yao Qi <yao@codesourcery.com>
6463 * gdb-code-style.el: New hook gdb-markup-hook
6464 and gdb-comment-hook.
6466 2012-04-28 Doug Evans <dje@google.com>
6468 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6469 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6471 * symfile.h (dwarf2_debug_sections): New member addr.
6472 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6473 (ctx_no_get_addr_index): New function.
6474 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6475 (ctx_no_get_addr_index): Declare.
6476 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6477 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6478 (dwarf_expr_ctx_funcs): Update.
6479 (needs_get_addr_index): New function.
6480 (needs_frame_ctx_funcs): Update.
6481 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6482 * dwarf2read.c: #include "gdbcore.h".
6483 (dwarf2_per_objfile): New members addr, dwo_files.
6484 (dwarf2_elf_names): Add entry for addr.
6485 (struct dwo_section_names): New type.
6486 (dwo_section_names): New static global.
6487 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6488 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6489 old debug_types_section member updated to use this.
6490 Rename member debug_types_section to info_or_types_section,
6492 (signatured_type): Rename member type_offset to type_offset_in_tu,
6493 all uses updated. New member type_offset_in_section.
6494 (struct dwo_sections): New type.
6495 (struct dwo_unit): New type.
6496 (struct dwo_file): New type.
6497 (die_reader_specs): New member dwo_file.
6498 (dwarf2_locate_sections): Watch for .debug_addr.
6499 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6500 (dwarf2_read_section): Get bfd of section from bfd's asection,
6502 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6503 (create_signatured_type_table_from_index): Initialize
6504 sig_type->info_or_types_section.
6505 (dw2_get_file_names): Statement lists for type units with DWO files
6506 live in the DWO file.
6507 (create_debug_types_hash_table): New function.
6508 (create_all_type_units): Rewrite.
6509 (init_cu_die_reader): New arg dwo_file, all callers updated.
6510 (init_and_read_dies_worker): Get section from
6511 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6512 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6513 continue reading the CU/TU from there.
6514 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6515 updated. Get section from this_cu->info_or_types_section.
6516 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6517 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6518 DW_FORM_GNU_str_index.
6519 (hash_dwo_file, eq_dwo_file): New functions.
6520 (allocate_dwo_file_hash_table): New function.
6521 (hash_dwo_unit, eq_dwo_unit): New functions.
6522 (allocate_dwo_unit_table): New function.
6523 (dwarf2_locate_dwo_sections): New function.
6524 (struct create_dwo_info_table_data): New type.
6525 (create_debug_info_hash_table_reader): New function.
6526 (create_debug_info_hash_table): New function.
6527 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6528 (lookup_dwo_file): New function.
6529 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6530 (free_dwo_file, free_dwo_file_cleanup): New functions.
6531 (free_dwo_file_from_slot, free_dwo_files): New functions.
6532 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6533 (dwarf2_record_block_ranges): Ditto.
6534 (read_partial_die): Ditto.
6535 (process_enumeration_scope): Update to use type_offset_in_section.
6536 (read_full_die_1): New function.
6537 (read_full_die): Rewrite.
6538 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6539 DW_FORM_GNU_str_index.
6540 (read_addr_index_1, read_addr_index): New functions.
6541 (read_addr_index_from_leb128): New function.
6542 (struct dwarf2_read_addr_index_data): New type.
6543 (dwarf2_read_addr_index_reader): New function.
6544 (dwarf2_read_addr_index): New function.
6545 (read_str_index): New function.
6546 (leb128_size): New function.
6547 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6548 If processing a type unit from a DWO file, get the line section
6550 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6551 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6552 DW_FORM_GNU_str_index.
6553 (lookup_die_type): Check whether section offset of type's die is
6554 known before looking it up. Remove assert. Condition can
6555 legimately happen for inter-cu type references.
6556 (dwarf_attr_name): Handle Fission attributes.
6557 (dwarf_form_name): Handle Fission forms.
6558 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6559 DW_FORM_GNU_str_index.
6560 (follow_die_sig): Update to use type_offset_in_section.
6561 (decode_locdesc): New case DW_OP_GNU_addr_index.
6562 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6563 DW_FORM_GNU_str_index.
6564 (cu_debug_loc_section): New function.
6565 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6566 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6567 Free DWO files if present.
6568 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6570 Refactor DIE reading.
6571 * dwarf2read.c (dwarf2_per_objfile): Replace members
6572 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6573 (die_reader_specs): New member "die_section". Temporarily make
6574 member "buffer" non-const, pending constifying all info_ptr uses.
6575 (die_reader_func_ftype): New typedef.
6576 (dw2_get_file_names_reader): New function.
6577 (dw2_get_file_names): Rewrite.
6578 (read_and_check_type_unit_head): Rename arg type_offset to
6580 (create_all_type_units): Improve debugging message.
6581 Improve dummy type unit check.
6582 (init_cu_die_reader): New arg "section". All callers updated.
6583 (init_and_read_dies_worker): New function.
6584 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6585 (init_cutu_and_read_dies_no_follow): New function.
6586 (init_cutu_and_read_dies_simple): New function.
6587 (process_psymtab_comp_unit_reader): New function.
6588 (process_psymtab_comp_unit): Delete args section,
6589 is_debug_types_section. Rewrite. All callers updated.
6590 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6591 All callers updated. Rewrite.
6592 (load_partial_comp_unit_reader): New function.
6593 (load_partial_comp_unit): Rewrite.
6594 (skip_children): New arg reader. Delete args buffer, cu.
6595 All callers updated.
6596 (skip_one_die): New arg reader. Delete args buffer, cu.
6597 All callers updated.
6598 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6599 All callers updated.
6600 (load_full_comp_unit_reader): New function.
6601 (load_full_comp_unit): Rewrite.
6602 (read_comp_unit): Delete.
6603 (read_die_and_children_1): Delete, contents moved ...
6604 (read_die_and_children): ... here.
6605 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6606 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6607 All callers updated.
6608 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6609 All callers updated.
6610 (find_partial_die): Rewrite load_all_dies support.
6611 (read_attribute_value): New arg reader. Delete args abfd, cu.
6612 All callers updated.
6613 (read_attribute): New arg reader. Delete args abfd, cu.
6614 All callers updated.
6615 (load_full_type_unit): Add assert.
6616 (read_signatured_type_reader): New function.
6617 (read_signatured_type): Rewrite.
6618 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6619 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6620 All callers updated. Set per_cu->cu = NULL after freeing it.
6621 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6622 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6623 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6624 (set_die_type): Update.
6625 (get_die_type_at_offset): Update.
6626 (read_file_scope): Call prepare_one_comp_unit.
6627 (read_type_unit_scope): Ditto.
6628 (prepare_one_comp_unit): Set producer if present.
6630 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6632 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6633 gettext function on `error'.
6635 2012-04-27 Doug Evans <dje@google.com>
6637 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6640 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6641 Tom Tromey <tromey@redhat.com>
6643 * breakpoint.c (struct breakpoint_objfile_data)
6644 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6645 <exception_probes>: New fields.
6646 (free_breakpoint_probes): New function.
6647 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6648 `_Unwind_DebugHook'.
6649 (create_exception_master_breakpoint): Likewise.
6650 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6651 * infrun.c: Including necessary header files for handling SystemTap
6653 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6654 via SystemTap probes.
6655 (check_exception_resume): Remove `func' argument. Handle exception
6656 unwinding breakpoint set via a SystemTap probe.
6657 (insert_exception_resume_from_probe): New function.
6659 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6660 Tom Tromey <tromey@redhat.com>
6661 Jan Kratochvil <jan.kratochvil@redhat.com>
6663 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6664 (COMMON_OBS): Likewise.
6665 (HFILES_NO_SRCDIR): Add `probe'.
6666 * NEWS: Mention support for static and SystemTap probes.
6667 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6668 SystemTap probes' arguments parser.
6669 * arm-linux-tdep.c: Including headers needed to perform the parsing
6670 of SystemTap probes' arguments.
6671 (arm_stap_is_single_operand): New function.
6672 (arm_stap_parse_special_token): Likewise.
6673 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6674 probes' arguments parser.
6675 * ax-gdb.c (require_rvalue): Removing static declaration.
6676 (gen_expr): Likewise.
6677 * ax-gdb.h (gen_expr): Declaring function.
6678 (require_rvalue): Likewise.
6679 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6680 (bkpt_probe_breakpoint_ops): New variable.
6681 (momentary_breakpoint_from_master): Set the `probe' value.
6682 (add_location_to_breakpoint): Likewise.
6683 (break_command_1): Using proper breakpoint_ops according to the
6684 argument passed by the user in the command line.
6685 (bkpt_probe_insert_location): New function.
6686 (bkpt_probe_remove_location): Likewise.
6687 (bkpt_probe_create_sals_from_address): Likewise.
6688 (bkpt_probe_decode_linespec): Likewise.
6689 (tracepoint_probe_create_sals_from_address): Likewise.
6690 (tracepoint_probe_decode_linespec): Likewise.
6691 (tracepoint_probe_breakpoint_ops): New variable.
6692 (trace_command): Using proper breakpoint_ops according to the
6693 argument passed by the user in the command line.
6694 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6695 static probes on breakpoints and tracepoints.
6696 * breakpoint.h (struct bp_location) <probe>: New field.
6697 * cli-utils.c (skip_spaces_const): New function.
6698 (extract_arg): Likewise.
6699 * cli-utils.h (skip_spaces_const): Likewise.
6700 (extract_arg): Likewise.
6701 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6702 * configure.ac: Append `stap-probe.o' to be generated when ELF
6704 * configure: Regenerate.
6705 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6706 * elfread.c: Include `probe.h' and `arch-utils.h'.
6707 (probe_key): New variable.
6708 (elf_get_probes): New function.
6709 (elf_get_probe_argument_count): Likewise.
6710 (elf_evaluate_probe_argument): Likewise.
6711 (elf_compile_to_ax): Likewise.
6712 (elf_symfile_relocate_probe): Likewise.
6713 (stap_probe_key_free): Likewise.
6714 (elf_probe_fns): New variable.
6715 (elf_sym_fns): Add `sym_probe_fns' value.
6716 (elf_sym_fns_lazy_psyms): Likewise.
6717 (elf_sym_fns_gdb_index): Likewise.
6718 (_initialize_elfread): Initialize objfile cache for static
6720 * gdb_vecs.h (struct probe): New forward declaration.
6721 (probe_p): New VEC declaration.
6722 * gdbarch.c: Regenerate.
6723 * gdbarch.h: Regenerate.
6724 * gdbarch.sh (stap_integer_prefix): New variable.
6725 (stap_integer_suffix): Likewise.
6726 (stap_register_prefix): Likewise.
6727 (stap_register_suffix): Likewise.
6728 (stap_register_indirection_prefix): Likewise.
6729 (stap_register_indirection_suffix): Likewise.
6730 (stap_gdb_register_prefix): Likewise.
6731 (stap_gdb_register_suffix): Likewise.
6732 (stap_is_single_operand): New function.
6733 (stap_parse_special_token): Likewise.
6734 (struct stap_parse_info): Forward declaration.
6735 * i386-tdep.c: Including headers needed to perform the parsing
6736 of SystemTap probes' arguments.
6737 (i386_stap_is_single_operand): New function.
6738 (i386_stap_parse_special_token): Likewise.
6739 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6740 probes' arguments parser.
6741 * i386-tdep.h (i386_stap_is_single_operand): New function.
6742 (i386_stap_parse_special_token): Likewise.
6743 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6744 * mipsread.c (ecoff_sym_fns): Likewise.
6745 * objfiles.c (objfile_relocate1): Support relocation for static
6747 * parse.c (prefixify_expression): Remove static declaration.
6748 (initialize_expout): Likewise.
6749 (reallocate_expout): Likewise.
6750 * parser-defs.h (initialize_expout): Declare function.
6751 (reallocate_expout): Likewise.
6752 (prefixify_expression): Likewise.
6753 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6754 of SystemTap probes' arguments.
6755 (ppc_stap_is_single_operand): New function.
6756 (ppc_stap_parse_special_token): Likewise.
6757 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6758 probes' arguments parser.
6759 * probe.c: New file, for generic statically defined probe support.
6760 * probe.h: Likewise.
6761 * s390-tdep.c: Including headers needed to perform the parsing of
6762 SystemTap probes' arguments.
6763 (s390_stap_is_single_operand): New function.
6764 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6765 probes' arguments parser.
6766 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6767 * stap-probe.c: New file, for SystemTap probe support.
6768 * stap-probe.h: Likewise.
6769 * symfile.h: Include `gdb_vecs.h'.
6770 (struct sym_probe_fns): New struct.
6771 (struct sym_fns) <sym_probe_fns>: New field.
6772 * symtab.c (init_sal): Initialize `probe' field.
6773 * symtab.h (struct probe): Forward declaration.
6774 (struct symtab_and_line) <probe>: New field.
6775 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6777 (stop_tracing): Likewise.
6778 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6780 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6781 Tom Tromey <tromey@redhat.com>
6783 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6784 and to compile agent expressions.
6785 * infrun.c (siginfo_make_value): New argument `ignore'.
6786 (siginfo_funcs): New struct.
6787 (_initialize_infrun): New argument when calling
6788 `create_internalvar_type_lazy'.
6789 * thread.c (thread_id_make_value): New argument `ignore'.
6790 (thread_funcs): New struct.
6791 (_initialize_thread): New argument when calling
6792 `create_internalvar_type_lazy'.
6793 * tracepoint.c (sdata_make_value): New argument `ignore'.
6794 (sdata_funcs): New struct.
6795 (_initialize_tracepoint): New argument when calling
6796 `create_internalvar_type_lazy'.
6797 * value.c (make_value): New struct.
6798 (create_internalvar_type_lazy): New argument `data'.
6799 (compile_internalvar_to_ax): New function.
6800 (value_of_internalvar): Properly handling `make_value' case.
6801 (clear_internalvar): Likewise.
6802 (show_convenience): Adding `TRY_CATCH' block.
6803 * value.h (internalvar_make_value): Delete, replace by...
6804 (struct internalvar_funcs): ... this.
6805 (create_internalvar_type_lazy) <fun>: Delete argument.
6806 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6807 (compile_internalvar_to_ax): New function.
6808 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6809 (tlb_funcs): New struct.
6810 (_initialize_windows_tdep): New argument when calling
6811 `create_internalvar_type_lazy'.
6813 2012-04-27 Mark Wielaard <mjw@redhat.com>
6815 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6816 see whether it is an address or a constant offset from DW_AT_low_pc.
6817 (dwarf2_record_block_ranges): Likewise.
6818 (read_partial_die): Likewise.
6820 2012-04-26 Mark Wielaard <mjw@redhat.com>
6822 * MAINTAINERS (Write After Approval): Add myself to the list.
6824 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6826 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6827 (proc_prettyprint_signal): Likewise.
6828 (proc_prettyprint_faultset): Likewise.
6829 (proc_prettyprint_fault): Likewise.
6830 (proc_prettyprint_actionset): Likewise.
6831 (proc_prettyprint_flags): Move to new proc-flags.c section.
6832 (proc_prettyfprint_flags): New prototype.
6833 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6834 (proc_syscall, proc_cursig): Likewise.
6835 (proc_set_kill_on_last_close): Likewise.
6836 (proc_unset_kill_on_last_close): Likewise.
6837 (proc_set_watchpoint): Make static.
6838 (proc_delete_dead_threads): Likewise.
6839 (procfs_set_watchpoint): Likewise.
6840 (_initialize_procfs): Add prototype.
6841 * proc-events.c: Include proc-utils.h.
6842 (init_syscall_table): Make static.
6843 * proc-api.c (_initialize_proc_api): Add prototype.
6844 * proc-flags.c: Include proc-utils.h.
6846 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6848 * configure.ac: Add AC_ARG_PROGRAM.
6849 * configure: Regenerate.
6851 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6853 Fix DW_AT_lower_bound defaults for DWARF-4+.
6854 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6855 high. New variable low_default_is_valid. Implement DWARF-4+
6856 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6857 no default by the DWARF standard.
6859 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6860 Maciej W. Rozycki <macro@codesourcery.com>
6862 * infrun.c (handle_inferior_event): Move the check for return
6863 trampolines ahead of the check for function trampolines.
6864 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6865 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6866 (mips_str_mips16_ret_stub): Likewise.
6867 (mips_str_call_fp_stub): Likewise.
6868 (mips_str_call_stub): Likewise.
6869 (mips_str_fn_stub): Likewise.
6870 (mips_str_pic): Likewise.
6871 (mips_in_frame_stub): New function.
6872 (mips_unwind_pc): Return the return address rather than the PC
6873 if the PC of an intermediate frame is inside a call thunk.
6874 (mips_is_stub_suffix): New function.
6875 (mips_is_stub_mode): Likewise.
6876 (mips_get_mips16_fn_stub_pc): Likewise.
6877 (mips_skip_mips16_trampoline_code): Update to handle all the
6878 currently generated stub types. Don't recurse into __fn_stub
6879 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6880 Use cooked register accesses.
6881 (mips_in_return_stub): Reintroduce function.
6882 (mips_skip_trampoline_code): Traverse trampolines recursively.
6883 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6885 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6889 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6891 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6892 * features/arm-with-m-vfp-d16.xml: New file. Describes
6893 Cortex-M with VFPv4-sp-d16 FPU register layout.
6894 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6895 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6896 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6897 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6898 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6900 2012-04-25 Doug Evans <dje@google.com>
6902 * cli/cli-decode.c (print_doc_line): Use stream instead of
6905 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6907 * features/arm-with-iwmmxt.c: Regenerate.
6908 * features/arm-with-m-fpa-layout.c: Likewise.
6909 * features/arm-with-m.c: Likewise.
6910 * features/arm-with-neon.c: Likewise.
6911 * features/arm-with-vfpv2.c: Likewise.
6912 * features/arm-with-vfpv3.c: Likewise.
6913 * features/mips-dsp-linux.c: Likewise.
6914 * features/mips-linux.c: Likewise.
6915 * features/mips64-dsp-linux.c: Likewise.
6916 * features/mips64-linux.c: Likewise.
6917 * features/s390-linux32.c: Likewise.
6918 * features/s390-linux32v1.c: Likewise.
6919 * features/s390-linux32v2.c: Likewise.
6920 * features/s390-linux64.c: Likewise.
6921 * features/s390-linux64v1.c: Likewise.
6922 * features/s390-linux64v2.c: Likewise.
6923 * features/s390x-linux64.c: Likewise.
6924 * features/s390x-linux64v1.c: Likewise.
6925 * features/s390x-linux64v2.c: Likewise.
6926 * features/tic6x-c62x-linux.c: Likewise.
6927 * features/tic6x-c62x.c: Likewise.
6928 * features/tic6x-c64x-linux.c: Likewise.
6929 * features/tic6x-c64x.c: Likewise.
6930 * features/tic6x-c64xp-linux.c: Likewise.
6931 * features/tic6x-c64xp.c: Likewise.
6932 * target-descriptions.c: Only generate `field_type' and `type'
6933 variables when needed.
6935 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6937 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6939 2012-04-25 Doug Evans <dje@google.com>
6941 Initial pass at Go language support.
6943 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6945 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6946 (YYFILES): Add go-exp.c.
6947 (YYOBJ): Add go-exp.o.
6948 (local-maintainer-clean): Delete go-exp.c.
6949 * defs.h (enum language): Add language_go.
6950 * dwarf2read.c: #include "go-lang.h".
6951 (fixup_go_packaging): New function.
6952 (process_full_comp_unit): Call it when processing Go CUs.
6953 (dwarf2_physname): Add Go support.
6954 (read_file_scope): Handle missing language spec for GNU Go.
6955 (set_cu_language): Handle DW_LANG_Go.
6956 * go-exp.y: New file.
6957 * go-lang.h: New file.
6958 * go-lang.c: New file.
6959 * go-typeprint.c: New file.
6960 * go-valprint.c: New file.
6961 * symtab.c: #include "go-lang.h".
6962 (symbol_set_language): Handle language_go.
6963 (symbol_find_demangled_name, symbol_set_names): Ditto.
6964 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6966 2012-04-24 Jim Meyering <meyering@redhat.com>
6968 avoid a few strncpy-induced buffer overruns
6969 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6970 fname and psargs before trying to concatenate.
6971 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6972 "name" before applying strchr.
6974 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6976 * CONTRIBUTE: Use unified diff instead of context diff when
6979 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6981 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6982 code. Handle JR.HB correctly.
6984 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6987 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6988 with the other MIPS16 helpers.
6990 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6992 * observer.sh: Conditionally declare `args', thus cleaning up
6993 unused instances of this variable.
6995 2012-04-24 Yao Qi <yao@codesourcery.com>
6997 Revert this patch to allow breakpoint always-inserted
6999 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7000 * breakpoint.c: Include record.h.
7001 (breakpoints_always_inserted_mode): Return false when the record
7004 * breakpoint.c (iterate_over_bp_locations): New.
7005 * breakpoint.h: Declare.
7006 New typedef walk_bp_location_callback.
7007 * record.c (record_open): Call record_init_record_breakpoints.
7008 (record_sync_record_breakpoints): New.
7009 (record_init_record_breakpoints): New.
7010 * NEWS: Mention supporting breakpoint always-inserted mode in
7013 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7015 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7018 2012-04-24 Yao Qi <yao@codesourcery.com>
7020 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7021 (is_catchpoint): ... it.
7022 (print_one_breakpoint_location): Caller update.
7023 * breakpoint.h: Update declaration.
7025 2012-04-23 David S. Miller <davem@davemloft.net>
7027 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7029 2012-04-23 Tom Tromey <tromey@redhat.com>
7031 * buildsym.c (add_free_pendings): Remove.
7032 * buildsym.h (add_free_pendings): Remove.
7034 2012-04-23 Doug Evans <dje@google.com>
7036 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7037 attr.u.unsnd instead of attr.u.addr.
7038 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7039 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7041 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7042 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7044 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7046 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7048 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7049 (mips_o32_return_value): Likewise.
7050 (mips_o64_return_value): Likewise.
7052 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7054 * ada-lang.c (ada_evaluate_subexp): Add cases for
7055 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7056 their treatment in eval.c.
7058 2012-04-21 David S. Miller <davem@davemloft.net>
7060 * sparc-tdep.c (X_DISP10): Define.
7061 (sparc_analyze_control_transfer): Handle compare-and-branch.
7063 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7065 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7066 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7068 2012-04-20 Nigel Stephens <nigel@mips.com>
7069 Maciej W. Rozycki <macro@codesourcery.com>
7071 * mips-tdep.c (mips_float_register_p): New function.
7072 (mips_convert_register_float_case_p): Use mips_float_register_p.
7073 (mips_register_type): Likewise.
7074 (mips_print_register): Likewise.
7075 (print_gp_register_row): Likewise.
7076 (mips_print_registers_info): Likewise.
7078 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7080 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7083 2012-04-20 Andrew Pinski <apinski@cavium.com>
7085 * MAINTAINERS (Write After Approval): Add myself to the list.
7087 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7089 * MAINTAINERS: Update my e-mail address.
7091 2012-04-20 Pedro Alves <palves@redhat.com>
7093 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7095 * configure: Regenerate.
7097 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7099 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7101 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7103 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7105 Fix compilation compatibility with python-2.4
7106 * python/py-type.c (convert_field): Cast ADDRSTRING for
7107 PyObject_SetAttrString as non-const. New comment.
7109 2012-04-19 Tom Tromey <tromey@redhat.com>
7111 * top.c (quit_target): Use all_cleanups.
7112 * main.c (captured_command_loop): Use all_cleanups.
7113 * exceptions.c (throw_exception): Use all_cleanups.
7115 2012-04-19 Pedro Alves <palves@redhat.com>
7117 * Makefile.in (GNULIB_BUILDDIR): New.
7118 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7119 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7120 (CLEANDIRS). Remove gnulib/import.
7121 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7123 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7124 (gnulib/import/Makefile): Replace gnulib/import with
7125 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7126 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7127 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7128 acx_configure_dir.m4.
7129 * acinclude.m4: Include acx_configure_dir.m4.
7130 * acx_configure_dir.m4: New file.
7131 * aclocal.m4: Regenerate.
7132 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7133 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7134 (GNULIB): New variable.
7135 (GNULIB_STDINT_H): Adjust.
7136 (AC_OUTPUT): Don't output gnulib/Makefile.
7137 * gdb/defs.h: Include build-gnulib/config.h.
7138 * aclocal.m4: Regenerate.
7139 * config.in: Regenerate.
7140 * configure: Regenerate.
7142 * gnulib/Makefile.in: New file.
7143 * gnulib/configure.ac: New file.
7144 * gnulib/aclocal.m4: New file.
7145 * gnulib/config.in: New file.
7146 * gnulib/configure: New file.
7147 * gnulib/: Re-run gnulib-tool to adjust.
7149 2012-04-19 Doug Evans <dje@google.com>
7151 * cleanups.h (struct cleanup): Move to cleanups.c.
7152 (make_cleanup_dtor_ftype): New typedef.
7153 (make_cleanup_dtor): Use it.
7154 (ALL_CLEANUPS): Replace with ...
7155 (all_cleanups): ... this. Declare. All uses updated.
7156 * cleanups.c: #include "gdb_assert.h".
7157 (sentinel_cleanup): New static global.
7158 (SENTINEL_CLEANUP): Define.
7159 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7160 (make_my_cleanup2): Assert result is non-NULL.
7161 (all_cleanups): New function.
7162 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7165 2012-04-19 Pedro Alves <palves@redhat.com>
7167 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7168 Adjust paths to gnulib imported files.
7170 2012-04-19 Pedro Alves <palves@redhat.com>
7172 * gnulib/: Move whole directory ...
7173 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7174 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7175 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7176 (aclocal_m4_deps): Adjust.
7177 * aclocal.m4: Regenerate.
7178 * configure: Regenerate.
7179 * configure.ac: Adjust AC_OUTPUT output.
7181 2012-04-19 Yao Qi <yao@codesourcery.com>
7183 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7185 * vec.c: Move it ...
7186 * common/vec.c: ... here.
7187 * vec.h: Move it ...
7188 * common/vec.h: ... here.
7190 2012-04-19 Yao Qi <yao@codesourcery.com>
7192 * gdb-code-style.el: New.
7194 2012-04-18 Pedro Alves <palves@redhat.com>
7196 Update gnulib from latest git.
7197 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7199 * gnulib/Makefile.am: Update.
7200 * gnulib/dummy.c: Update.
7201 * gnulib/extra/arg-nonnull.h: Update.
7202 * gnulib/extra/c++defs.h: Update.
7203 * gnulib/extra/update-copyright: Update.
7204 * gnulib/extra/warn-on-use.h: Update.
7205 * gnulib/inttypes.in.h: Update.
7206 * gnulib/m4/00gnulib.m4: Update.
7207 * gnulib/m4/extensions.m4: Update.
7208 * gnulib/m4/gnulib-cache.m4: Update.
7209 * gnulib/m4/gnulib-common.m4: Update.
7210 * gnulib/m4/gnulib-comp.m4: Update.
7211 * gnulib/m4/gnulib-tool.m4: Update.
7212 * gnulib/m4/include_next.m4: Update.
7213 * gnulib/m4/inttypes-pri.m4: Update.
7214 * gnulib/m4/inttypes.m4: Update.
7215 * gnulib/m4/longlong.m4: Update.
7216 * gnulib/m4/memchr.m4: Update.
7217 * gnulib/m4/memmem.m4: Update.
7218 * gnulib/m4/mmap-anon.m4: Update.
7219 * gnulib/m4/multiarch.m4: Update.
7220 * gnulib/m4/onceonly.m4: Update.
7221 * gnulib/m4/stddef_h.m4: Update.
7222 * gnulib/m4/stdint.m4: Update.
7223 * gnulib/m4/string_h.m4: Update.
7224 * gnulib/m4/warn-on-use.m4: Update.
7225 * gnulib/m4/wchar_h.m4: Update.
7226 * gnulib/m4/wchar_t.m4: Update.
7227 * gnulib/m4/wint_t.m4: Update.
7228 * gnulib/memchr.c: Update.
7229 * gnulib/memmem.c: Update.
7230 * gnulib/stddef.in.h: Update.
7231 * gnulib/stdint.in.h: Update.
7232 * gnulib/str-two-way.h: Update.
7233 * gnulib/string.in.h: Update.
7234 * gnulib/wchar.in.h: Update.
7236 * gnulib/extra/arg-nonnull.h: Delete.
7237 * gnulib/extra/c++defs.h: Delete.
7238 * gnulib/extra/warn-on-use.h: Delete.
7239 * gnulib/m4/wchar_h.m4: Delete.
7240 * gnulib/m4/wint_t.m4: Delete.
7241 * gnulib/wchar.in.h: Delete.
7243 * gnulib/extra/snippets/arg-nonnull.h: New.
7244 * gnulib/extra/snippets/c++defs.h: New.
7245 * gnulib/extra/snippets/warn-on-use.h: New.
7247 * aclocal.m4: Regenerate.
7248 * config.in: Regenerate.
7249 * configure: Regenerate.
7250 * gnulib/Makefile.in: Regenerate.
7252 2012-04-18 Pedro Alves <palves@redhat.com>
7254 Reimport the update-copyright module from gnulib
7255 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7257 * configure: Regenerate.
7258 * gnulib/Makefile.am: Update.
7259 * gnulib/Makefile.in: Regenerate.
7260 * gnulib/extra/update-copyright: Update.
7261 * gnulib/m4/gnulib-cache.m4: Update.
7262 * gnulib/m4/gnulib-comp.m4: Update.
7264 2012-04-18 Tristan Gingold <gingold@adacore.com>
7266 * configure.ac (aix): Put -lpthread into libs.
7267 * configure: Regenerate.
7269 2012-04-18 Tom Tromey <tromey@redhat.com>
7271 * linespec.c (convert_linespec_to_sals): Don't use
7273 (compare_msymbols): Arguments are minsym_and_objfile, not
7274 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7276 2012-04-18 Pedro Alves <palves@redhat.com>
7278 Revert gnulib/ part of:
7279 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7280 Copyright year update in most files (performed by copyright.sh).
7282 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7284 Fix 64-bit constants on 32-bit hosts.
7285 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7286 from unsigned long to ULONGEST.
7287 (read_signed_leb128): Change declaration return type from long to
7289 (dwarf2_const_value_attr): Change declaration parameter value from long
7291 (dwarf2_compute_name): Change variable value from long to LONGEST.
7292 (read_unsigned_leb128): Change return type, variable result and some
7293 casts from unsigned long to ULONGEST.
7294 (read_signed_leb128): Change return type, variable result and some
7295 casts from long to LONGEST.
7296 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7297 value from long to LONGEST.
7298 (dwarf2_const_value): Change variable value from long to LONGEST.
7299 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7300 plongest and hex_string.
7301 * symtab.h (struct general_symbol_info): Change ivalue from long to
7302 LONGEST, remove the comment.
7303 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7304 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7306 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7309 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7310 * ada-lang.c (ada_discrete_type_high_bound)
7311 (ada_discrete_type_low_bound): Fix function comment. Use
7312 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7313 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7314 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7315 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7316 Use TYPE_FIELD_ENUMVAL.
7317 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7318 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7319 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7320 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7322 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7323 * dwarf2read.c (process_enumeration_scope): Likewise.
7324 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7326 (class StructMainTypePrettyPrinter): Support also
7327 FIELD_LOC_KIND_ENUMVAL.
7328 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7330 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7331 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7332 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7333 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7335 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7336 accommodate enumval.
7337 (struct call_site): Adjust loc_kind to accommodate enumval.
7338 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7339 (TYPE_FIELD_ENUMVAL): New macros.
7340 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7341 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7343 * p-typeprint.c (pascal_type_print_base): Likewise.
7344 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7346 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7347 * python/py-type.c (convert_field): New variable addrstring. Use
7348 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7349 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7350 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7351 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7353 * valprint.c (generic_val_print): Likewise.
7355 2012-04-17 Doug Evans <dje@google.com>
7357 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7359 * dwarf2read.c: Whitespace fixes.
7360 (lookup_signatured_type): Tweak comment.
7361 (get_die_type_at_offset): Fix comment.
7363 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7365 * xcoffread.c (xcoff_secnum_to_sections): New function.
7366 (secnum_to_section, secnum_to_bfd_section): Reimplement
7367 using xcoff_secnum_to_sections. Rename "secnum" parameter
7369 (RECORD_MINIMAL_SYMBOL): Delete.
7370 (record_minimal_symbol): New function.
7371 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7372 by call to record_minimal_symbol and set misc_func_recorded
7373 to 1. Set last_csect_sec to the XCOFF section index instead
7374 of GDB's section_offset index. Update calls to
7375 prim_record_minimal_symbol_and_info to pass the BFD section
7378 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7380 * xcoffread.c (read_xcoff_symtab): Delete variables
7381 last_csect_val and last_csect_sec and associated code.
7383 2012-04-17 Doug Evans <dje@google.com>
7385 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7386 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7387 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7388 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7390 * cleanups.h: New file.
7391 * cleanups.c: New file.
7392 * Makefile.in (SFILES): Add cleanups.c.
7393 (HFILES_NO_SRCDIR): Add cleanups.h.
7394 (COMMON_OBS): Add cleanups.o.
7395 * defs.h (struct cleanup): Moved to cleanups.h.
7396 (do_cleanups,do_final_cleanups): Ditto.
7397 (discard_cleanups,discard_final_cleanups): Ditto
7398 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7399 (save_cleanups,save_final_cleanups): Ditto.
7400 (restore_cleanups,restore_final_cleanups): Ditto.
7401 (null_cleanup): Ditto.
7402 (make_my_cleanup,make_my_cleanup2): Ditto.
7403 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7404 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7405 (do_cleanups,do_final_cleanups): Ditto.
7406 (discard_cleanups,discard_final_cleanups): Ditto
7407 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7408 (save_cleanups,save_final_cleanups): Ditto.
7409 (restore_cleanups,restore_final_cleanups): Ditto.
7410 (null_cleanup): Ditto.
7411 (make_my_cleanup,make_my_cleanup2): Ditto.
7412 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7414 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7416 (make_cleanup_dyn_string_delete): Ditto.
7417 (make_cleanup_ui_file_delete): Ditto.
7418 (make_cleanup_ui_out_redirect_pop): Ditto.
7419 (make_cleanup_free_section_addr_info): Ditto.
7420 (make_cleanup_restore_integer): Ditto.
7421 (make_cleanup_unpush_target): Ditto.
7422 (make_cleanup_value_free_to_mark): Ditto.
7423 (make_cleanup_value_free): Ditto.
7424 (make_cleanup_free_so): Ditto.
7426 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7428 New option "set debug auto-load".
7429 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7430 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7431 (auto_load_safe_path_vec_update)
7432 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7434 (file_is_auto_load_safe): New parameters debug_fmt and ....
7435 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7436 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7437 caller by explanatory string.
7438 (_initialize_auto_load): Register "set debug auto-load".
7439 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7441 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7442 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7443 by explanatory string.
7444 * main.c (captured_main): Likewise.
7445 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7446 (source_section_scripts): Likewise.
7448 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7450 New option "set auto-load safe-path".
7451 * NEWS: New commands "set auto-load safe-path"
7452 and "show auto-load safe-path".
7453 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7454 (auto_load_safe_path, auto_load_safe_path_vec)
7455 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7456 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7457 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7458 (source_gdb_script_for_objfile): New variable is_safe. Call
7459 file_is_auto_load_safe. Return if it is not.
7460 (struct loaded_script): New field loaded.
7461 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7462 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7463 output "Missing" to "No".
7464 (_initialize_auto_load): New variable cmd. Initialize
7465 auto_load_safe_path. Register "set auto-load safe-path",
7466 "show auto-load safe-path" and "add-auto-load-safe-path".
7467 * auto-load.h (maybe_add_script): Add parameter loaded.
7468 (file_is_auto_load_safe): New declaration.
7469 * config.in: Regenerate.
7470 * configure: Regenerate.
7471 * configure.ac: New parameters --with-auto-load-safe-path
7472 and --without-auto-load-safe-path.
7473 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7474 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7475 * main.c (captured_main): Check file_is_auto_load_safe for
7477 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7478 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7479 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7482 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7484 auto-load: Implementation.
7485 * NEWS: New descriptions for "info auto-load",
7486 "info auto-load gdb-scripts", "info auto-load python-scripts",
7487 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7488 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7489 and "show auto-load-scripts". New description for "set auto-load",
7490 "show auto-load", "set auto-load gdb-scripts",
7491 "show auto-load gdb-scripts", "set auto-load python-scripts",
7492 "show auto-load python-scripts", "set auto-load local-gdbinit",
7493 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7494 "show auto-load libthread-db".
7495 * auto-load.c: Remove include python/python-internal.h. Add includes
7496 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7498 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7499 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7500 (gdbpy_global_auto_load): Rename to ...
7501 (global_auto_load): ... here.
7502 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7503 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7504 (script_language_gdb, source_gdb_script_for_objfile): New.
7505 (struct loaded_script): New field language.
7506 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7508 (maybe_add_script): Add parameter language. Drop redundant
7509 entry.full_path initialization. Initialize entry.language and
7511 (auto_load_objfile_script): Change parameter suffix to language.
7512 Remove the call of maybe_add_script.
7513 Call language->source_script_for_objfile.
7514 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7516 (collect_matching_scripts): Adjust it for
7517 struct collect_matching_scripts_data.
7518 (auto_load_info_scripts_pattern_nl): New variable.
7519 (info_auto_load_scripts): Rename to ...
7520 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7521 for struct collect_matching_scripts_data.
7522 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7523 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7524 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7525 (auto_load_info_cmdlist_get): New.
7526 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7527 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7528 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7529 "info auto-load local-gdbinit".
7530 * auto-load.h (struct script_language): New.
7531 (gdbpy_global_auto_load): Rename to ...
7532 (global_auto_load): ... here.
7533 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7534 (auto_load_local_gdbinit_loaded): New declarations.
7535 (maybe_add_script): New parameter language.
7536 (auto_load_objfile_script): Change parameter suffix to language.
7537 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7538 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7539 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7541 * linux-thread-db.c: Include auto-load.h and ctype.h.
7542 (auto_load_thread_db, show_auto_load_thread_db): New.
7543 (struct thread_db_info): New field filename.
7544 (delete_thread_db_info): Call xfree for FILENAME.
7545 (try_thread_db_load): Initialize FILENAME.
7546 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7547 if !AUTO_LOAD_THREAD_DB.
7548 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7549 (_initialize_thread_db): Install auto_load_thread_db
7550 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7551 as "info auto-load libthread-db".
7552 * main.c (captured_main): Rename gdbpy_global_auto_load to
7553 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7554 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7555 (print_gdb_help): Extend the help for 'local init file'.
7556 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7557 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7558 (auto_load_scripts): Rename to ...
7559 (auto_load_python_scripts): ... here, update the comment.
7560 (gdbpy_load_auto_script_for_objfile): New declaration.
7561 (show_auto_load_python_scripts, script_language_python)
7562 (gdbpy_load_auto_script_for_objfile): New.
7563 (source_section_scripts): Refactor the code.
7564 (load_auto_scripts_for_objfile): Rename to ...
7565 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7566 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7567 (info_auto_load_python_scripts): New.
7568 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7569 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7570 Register "set auto-load-scripts" as its deprecated alias. Register
7571 "info auto-load python-scripts". Register "info auto-load-scripts" as
7572 its deprecated alias.
7573 (load_auto_scripts_for_objfile): Rename to ...
7574 (gdbpy_load_auto_scripts_for_objfile): ... here.
7575 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7576 (gdbpy_load_auto_scripts_for_objfile): ... here.
7578 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7580 auto-load: Move files.
7581 * Makefile.in (SFILES): Add auto-load.c.
7582 (HFILES_NO_SRCDIR): Add auto-load.h.
7583 (COMMON_OBS): Add auto-load.o.
7584 (distclean): Change .gdbinit for gdb-gdb.gdb.
7585 * auto-load.c: New file, with parts from python/py-auto-load.c.
7586 * auto-load.h: New file, with parts from python/python.h.
7587 * configure: Regenerate.
7588 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7589 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7590 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7591 * main.c: Include auto-load.h.
7592 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7593 command.h, observer.h and progspace.h to auto-load.c. Add include
7595 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7596 (struct loaded_script, auto_load_pspace_data)
7597 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7598 (hash_loaded_script_entry, eq_loaded_script_entry)
7599 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7600 (maybe_add_script): Move to auto-load.c.
7601 (source_section_scripts): Change maybe_add_script parameters passing,
7602 use script_not_found_warning_print.
7603 (clear_section_scripts, auto_load_objfile_script)
7604 (auto_load_new_objfile, loaded_script_ptr)
7605 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7606 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7607 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7608 auto_load_new_objfile and info_auto_load_scripts initizations to
7610 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7612 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7615 * charset.c (find_charset_names): Remove variables ix and elt.
7616 Use free_char_ptr_vec.
7617 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7618 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7619 debugdir_end. New variable debugdir_len.
7620 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7621 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7623 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7624 and elt. Use free_char_ptr_vec.
7625 * source.c (add_path): Remove variables argv, arg and argv_index.
7626 New variables dir_vec, back_to, ix and name.
7627 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7628 make_cleanup_freeargv. Remove variable separator. Simplify the code
7629 no longer expecting DIRNAME_SEPARATOR.
7630 (openp): Remove variable p, p1 and len. New variables dir_vec,
7631 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7632 no longer expecting DIRNAME_SEPARATOR.
7633 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7634 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7636 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7637 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7638 (dirnames_to_char_ptr_vec): New functions.
7640 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7643 * source.c (add_path): Remove always true conditional 'p == 0' and
7644 unindent its code block.
7646 2012-04-17 Pedro Alves <palves@redhat.com>
7648 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7649 (FIELD_BITPOS_LVAL): ... this.
7650 (FIELD_BITPOS): New.
7651 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7652 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7653 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7655 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7657 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7658 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7659 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7662 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7664 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7665 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7666 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7667 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7668 * jv-lang.c (java_link_class_type): Likewise, once.
7669 * stabsread.c (read_enum_type): Likewise.
7671 2012-04-16 Yao Qi <yao@codesourcery.com>
7673 * common/agent.c (agent_run_command): Add one more parameter `len'.
7675 * common/agent.h: Update declaration.
7676 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7678 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7680 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7683 * value.c (value_actual_type): New function.
7684 * value.h (value_actual_type): New declaration.
7685 * varobj.c (update_type_if_necessary): New function.
7686 (varobj_create): Call value_actual_type instead of
7688 (install_dynamic_child): distinct changed and type changed MI variable
7690 (update_dynamic_varobj_children): Updated for install_dynamic_child
7691 change. All callers updated.
7692 (varobj_update): Support for MI variable object type change if
7693 the value changed and RTTI is used to determine the type.
7694 (create_child_with_value): Call value_actual_type instead of
7696 (adjust_value_for_child_access): Extended with a new parameter which
7697 specify whether the given value should be casted to enclosing type.
7698 All callers updated.
7700 2012-04-14 Yao Qi <yao@codesourcery.com>
7702 Import gnulib module inttypes from git
7703 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7704 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7705 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7706 gnulib/m4/inttypes-pri.m4
7707 * aclocal.m4, config.in, configure: Regenerated.
7708 * gnulib/Makefile.am: Update.
7709 * gnulib/Makefile.in: Update.
7710 * gnulib/m4/gnulib-cache.m4: Update.
7711 * gnulib/m4/gnulib-comp.m4: Update.
7712 * gnulib/inttypes.in.h: New.
7713 * gnulib/m4/inttypes-pri.m4: New.
7714 * gnulib/m4/inttypes.m4: New.
7716 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7718 * infrun.c (resume): Update PC address to the real PC after
7719 preparing to do displaced stepping.
7721 2012-04-12 Doug Evans <dje@google.com>
7723 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7724 All callers updated.
7726 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7728 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7730 2012-04-12 Doug Evans <dje@google.com>
7732 * dwarf2read.c (create_all_type_units): Renamed from
7733 create_debug_types_hash_table. All callers updated.
7735 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7736 local type_sig to sig_type, type_offset to type_offset_in_tu.
7737 (hash_signatured_type): Renamed from hash_type_signature,
7738 all callers updated.
7739 (eq_signatured_type): Renamed from eq_type_signature,
7740 all callers updated.
7741 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7742 (process_enumeration_scope): Ditto.
7743 (lookup_signatured_type_at_offset): Ditto.
7744 (load_full_type_unit, read_signatured_type): Ditto.
7746 2012-04-12 Yao Qi <yao@codesourcery.com>
7748 * remote.c (async_remote_interrupt): Correct function name in
7750 (async_remote_interrupt_twice): Ditto.
7752 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7754 * source.c (find_and_open_source): Consistently pass resulting
7755 full path through xfullpath.
7757 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7759 Provide more specific displaced-stepping memory error message.
7760 * infrun.c (displaced_step_prepare): New variable status. Call
7761 target_read_memory instead of read_memory, provide more specific
7764 2012-04-11 Tristan Gingold <gingold@adacore.com>
7767 * darwin-nat.c (darwin_execvp): Revert previous patch.
7769 2012-04-11 Tristan Gingold <gingold@adacore.com>
7772 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7775 2012-04-11 Tristan Gingold <gingold@adacore.com>
7777 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7780 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7782 New command 'explore' which helps explore values and types in
7784 * NEWS: Add an entry about the new 'explore' command.
7785 * data-directory/Makefile.in: Add gdb/command/explore.py
7786 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7787 command using the GDB Python API.
7789 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7791 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7792 extension in jump target calculation.
7794 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7796 * mips-tdep.c (mips32_next_pc): Handle JALX.
7798 2012-04-10 Yao Qi <yao@codesourcery.com>
7800 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7802 2012-04-10 Yao Qi <yao@codesourcery.com>
7804 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7805 and gnulib/m4/gnulib-tool.m4.
7807 2012-04-10 Doug Evans <dje@google.com>
7809 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7810 (load_partial_dies): Clarify comment.
7811 (find_partial_die): Support rereading type units.
7812 Clarify CU handling, if we know offset is in CU, don't search for the
7813 containing CU. Add comment regarding memory waste.
7815 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7817 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7818 i386/x32-avx and i386/x32-avx-linux.
7819 (i386/x32-expedite): New.
7820 (i386/x32-linux-expedite): Likewise.
7821 (i386/x32-avx-expedite): Likewise.
7822 (i386/x32-avx-linux-expedite): Likewise.
7823 ($(outdir)/i386/x32.dat): Likewise.
7824 ($(outdir)/i386/x32-linux.dat): Likewise.
7825 ($(outdir)/i386/x32-avx.dat): Likewise.
7826 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7828 * features/i386/x32-avx-linux.xml: New file.
7829 * features/i386/x32-avx.xml: Likewise.
7830 * features/i386/x32-core.xml: Likewise.
7831 * features/i386/x32-linux.xml: Likewise.
7832 * features/i386/x32.xml: Likewise.
7834 * features/i386/x32-avx-linux.c: New. Generated.
7835 * features/i386/x32-avx.c: Likewise.
7836 * features/i386/x32-linux.c: Likewise.
7837 * features/i386/x32.c: Likewise.
7838 * regformats/i386/x32-avx-linux.dat: Likewise.
7839 * regformats/i386/x32-avx.dat: Likewise.
7840 * regformats/i386/x32-linux.dat: Likewise.
7841 * regformats/i386/x32.dat: Likewise.
7843 2012-04-10 Tristan Gingold <gingold@adacore.com>
7845 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7846 code to kill the inferior.
7848 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7850 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7852 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7854 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7855 (yyvsp): New defines.
7856 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7858 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7860 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7862 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7864 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7867 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7869 * sparc64-tdep.c (sparc64_store_arguments)
7870 (sparc64_store_arguments): Fix coding style.
7872 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7874 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7875 complex floats, adjust some related comments and tighten a related
7877 (sparc64_extract_return_value): Handle complex floats.
7879 2012-04-07 Doug Evans <dje@google.com>
7881 * dwarf2read.c (load_partial_dies): Change condition to assert.
7883 2012-04-06 Doug Evans <dje@google.com>
7885 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7888 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7890 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7892 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7893 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7896 2012-04-05 Keith Seitz <keiths@redhat.com>
7898 * linespec.c (decode_compound): Remove.
7899 (enum offset_relative_sign): New enum.
7900 (struct line_offset): New struct.
7901 (struct linespec): New struct.
7902 (struct linespec_state): Move file_symtabs,
7903 user_filename, and user_function into struct linespec.
7904 Make result an anonymous struct holding vectors of
7905 symbolp and minsym_and_objfile_d.
7906 Add language member.
7907 (enum ls_token_type): New enum.
7908 (linespec_keywords): New array.
7909 (struct ls_token): New struct.
7910 (struct ls_parser): New struct.
7911 (linespec_lexer_lex_number): New function.
7912 (linespec_lexer_lex_keyword): New function.
7913 (is_ada_operator): New function.
7914 (skip_quote_char): New function.
7915 (copy_token_string): New function.
7916 (is_closing_quote_enclosed): New function.
7917 (find_parameter_list_end): New function.
7918 (linespec_lexer_lex_string): New function.
7919 (linespec_lexer_lex_one): New function.
7920 (linespec_lexer_consume_token): New function.
7921 (linespec_lexer_peek_token): New function.
7922 (cplusplus_error): Remove unused function.
7923 (find_methods): Update comment.
7924 (find_toplevel_char): Return const.
7925 (is_objc_method_format): Remove unused function.
7926 (find_toplevel_string): New function.
7927 (is_linespec_boundary): Remove.
7928 (symbol_not_found_error): New function.
7929 (find_method_overload_end): Remove function.
7930 (unexpected_linespec_error): New function.
7931 (keep_name_info): Remove.
7932 (linespec_parse_line_offset): New function.
7933 (linespec_parse_basic): New function.
7934 (canonicalize_linespec): New function.
7935 (decode_line_internal): Remove.
7936 (create_sals_line_offset): New function adapted from
7938 (convert_linespec_to_sals): New function.
7939 (parse_linespec): New function.
7940 (linespec_parser_new): New function.
7941 (linespec_state_destructor): Change parameter type to
7942 struct linespec_state *.
7943 Add language parameter.
7944 Remove freeing of moved members.
7945 (linespec_parser_delete): New function.
7946 (decode_line_full): Use parse_linespec and linespec_parser_new.
7947 (decode_line_1): Likewise.
7948 (decode_indirect): Rename to ...
7949 (linespec_expression_to_pc): ... this and rewrite
7950 to simply find CORE_ADDR, storing this result for later
7952 (locate_first_half): Remove.
7953 (deocde_objc): Add parameter LS.
7954 Initialize new struct collect_info members.
7955 Handle minimal symbols, too.
7956 (decode_compound): Delete.
7957 (lookup_prefix_sym): Rewrite.
7958 (compare_msymbols): New function.
7959 (find_method): Rewrite.
7960 Do not call cplusplus_error.
7961 (symtabs_from_filename): Rewrite.
7962 (collect_function_symbols): Delete.
7963 (find_function_symbols): Rewrite without ARGPTR-style
7965 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7966 (decode_dollar): Adapted and renamed to ...
7967 (linespec_parse_variable): ... this.
7968 (find_linespec_symbols): New function.
7969 (decode_label): Adapted and renamed to ...
7970 (find_label_symbols): ... this.
7971 (decode_digits_list_mode): Add and use LS argument.
7972 (decode_digits_ordinary): Likewise.
7973 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7974 If in list mode, allow any symbol class. Otherwise, only
7975 permit LOC_BLOCK symbols.
7976 (minsym_found): Update comments.
7977 (search_minsyms_for_name): Do not convert the matching symbol
7978 into a SAL. Simply push the symbol and objfile into the
7980 (decode_variable): Delete. Contents adapted into
7981 find_linespec_symbols.
7983 * cp-support.c (SKIP_SPACE): Remove.
7984 (operator_tokens): Remove unused global.
7985 (cp_validate_operator): Remove.
7986 * cp-support.h (cp_validate_operator): Remove declaration.
7988 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7990 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7991 for TYPE_VPTR_FIELDNO.
7992 * valprint.c (valprint_check_validity): Make it global, move the
7993 function comment ...
7994 * value.h (valprint_check_validity): ... to this new declaration.
7996 2012-04-02 Tristan Gingold <gingold@adacore.com>
7998 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7999 the STATE32 api for i386 state.
8000 (i386_darwin_store_inferior_registers): Likewise.
8002 2012-04-02 Tristan Gingold <gingold@adacore.com>
8004 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8006 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8009 2012-04-02 Tristan Gingold <gingold@adacore.com>
8012 * darwin-nat.c (darwin_execvp): Set binary preference.
8014 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8016 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8018 2012-03-30 Tom Tromey <tromey@redhat.com>
8020 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8021 of TRY_CATCH. Fix error handling.
8022 * python/py-value.c (convert_value_from_python): Move 'old'
8023 declaration to innermost scope.
8025 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8026 Andrey Smirnov <andrew.smirnov@gmail.com>
8028 -Wshadow warning fix.
8029 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8030 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8031 Adjust code accordingly.
8033 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8035 * ada-lang.c (symbol_completion_add): Rename parameter
8036 "encoded" into "encoded_p". Ajust code and documentation
8039 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8040 Andrey Smirnov <andrew.smirnov@gmail.com>
8042 -Wshadow warning fix.
8043 * ada-lang.c (symbol_completion_add): Rename parameter
8044 "wild_match" into wild_match_p. Update code and documentation
8047 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8049 * ada-lang.c (symbol_completion_match): Rename parameter
8050 "encoded" into "encoded_p". Ajust code and documentation
8053 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8054 Andrey Smirnov <andrew.smirnov@gmail.com>
8056 -Wshadow warning fix.
8057 * ada-lang.c (symbol_completion_match): Rename parameter
8058 "wild_match" into "wild_match_p". Adjust code and function
8059 documentation accordingly.
8061 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8062 Andrey Smirnov <andrew.smirnov@gmail.com>
8064 -Wshadow warning fix.
8065 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8066 "symbol_info" into "info". Adjust code accordingly.
8067 (ada_lookup_symbol): Likewise.
8069 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8071 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8072 of this function's documentation.
8074 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8075 Andrey Smirnov <andrew.smirnov@gmail.com>
8077 -Wshadow warning fix.
8078 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8079 variable into "wild_match_p". Adjust code accordingly.
8081 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8082 Andrey Smirnov <andrew.smirnov@gmail.com>
8084 -Wshadow warning fix.
8085 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8086 parameter into "wild_match_p". Adjust code accordingly.
8087 Document this parameter in the function description.
8089 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8090 Andrey Smirnov <andrew.smirnov@gmail.com>
8092 -Wshadow warning fix.
8093 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8094 "wild_match" parameter to "wild_match_p" (-Wshadow).
8096 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8098 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8099 in function documentation.
8101 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8102 Andrey Smirnov <andrew.smirnov@gmail.com>
8104 -Wshadow warning fix.
8105 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8106 variable into wild_match_p. Adjust code accordingly.
8108 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8109 Andrey Smirnov <andrew.smirnov@gmail.com>
8111 * ada-valprint.c (ada_val_print_1): Move the code handling
8112 TYPE_CODE_ENUM inside its own lexical block. Declare
8113 variables len and val there, instead of in the function's
8114 top level block. Avoid declaring deref_val again in a way
8115 that shadows another variable of the same name declared
8116 in one of the up-level blocks. Just re-use the up-level
8119 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8121 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8122 Replace block_found argument by symbol_info. Adjust
8123 implementation accordingly. Add function documentation.
8124 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8126 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8127 * ada-exp.y (write_object_renaming): Adjust to new
8128 ada_lookup_encoded_symbol API.
8130 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8132 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8135 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8137 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8138 (v850_register_name): Add the mpu and fpu register names.
8139 (v850e_register_name): Add the mpu and fpu register names.
8140 (v850e2_register_name): New function.
8141 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8144 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8146 * NEWS: Add entry for Ada varobj support.
8148 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8150 * varobj.c (default_value_is_changeable_p): New function,
8151 extracted from varobj_value_is_changeable_p. Add declaration.
8152 (ada_value_is_changeable_p): New function, extracted from
8153 varobj_value_is_changeable_p. Add declaration.
8154 (struct language_specific): New field "value_is_changeable_p".
8155 (languages): Add entries for new field.
8156 (varobj_create): Set language before calling install_new_value.
8157 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8158 "value_is_changeable_p" language callback.
8160 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8162 * ada-varobj.h, ada-varobj.c: New files.
8163 * Makefile.in (SFILES): Add ada-varobj.c.
8164 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8165 (COMMON_OBS): Add ada-varobj.o.
8167 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8169 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8170 (struct language_specific): New field "value_has_mutated".
8171 (languages): Set field "value_has_mutated" in each entry of array.
8172 (varobj_value_has_mutated): New function.
8173 (varobj_udpdate): Add handling of type mutation.
8174 (value_of_root): Add handling of type mutation.
8175 (ada_value_has_mutated): New function.
8177 2012-03-28 Pedro Alves <palves@redhat.com>
8179 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8180 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8182 2012-03-28 Tom Tromey <tromey@redhat.com>
8184 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8185 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8188 2012-03-28 Tom Tromey <tromey@redhat.com>
8190 * .dir-locals.el: New file.
8192 2012-03-28 Pedro Alves <palves@redhat.com>
8194 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8196 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8198 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8201 2012-03-27 Pedro Alves <palves@redhat.com>
8203 Eliminate struct ui_stream.
8205 * ui-out.h (struct ui_stream): Delete.
8206 (ui_out_field_stream): Adjust prototype.
8207 (ui_out_stream_new, ui_out_stream_delete)
8208 (make_cleanup_ui_out_stream_delete): Delete declarations.
8209 * ui-out.c (ui_out_field_stream): Change prototype to take a
8210 ui_file instead of a ui_stream. Adjust.
8211 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8212 (make_cleanup_ui_out_stream_delete): Delete.
8213 * breakpoint.c (print_breakpoint_location)
8214 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8215 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8216 * disasm.c (dump_insns): Ditto.
8217 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8219 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8220 ui_stream/ui_out_stream_new.
8221 * infcmd.c (print_return_value): Ditto.
8222 * osdata.c (info_osdata_command): Don't allocate a local
8224 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8225 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8226 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8227 allocate a local ui_stream.
8228 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8229 instead of ui_stream/ui_out_stream_new.
8230 (list_args_or_locals): Don't allocate a local ui_stream.
8231 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8232 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8233 ui_stream/ui_out_stream_new.
8234 * cli/cli-setshow.c (do_setshow_command): Ditto.
8236 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8238 * arm-linux-tdep.c (arm_linux_init_abi): Call
8239 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8240 * arm-tdep.c (arm_process_record): New function.
8241 (deallocate_reg_mem): New function.
8242 (decode_insn): New function.
8243 (thumb_record_branch): New function.
8244 (thumb_record_ldm_stm_swi(): New function.
8245 (thumb_record_misc): New function.
8246 (thumb_record_ld_st_stack): New function.
8247 (thumb_record_ld_st_imm_offset): New function.
8248 (thumb_record_ld_st_reg_offset(): New function.
8249 (thumb_record_add_sub_cmp_mov): New function.
8250 (thumb_record_shift_add_sub): New function.
8251 (arm_record_coproc_data_proc): New function.
8252 (arm_record_coproc): New function.
8253 (arm_record_b_bl): New function.
8254 (arm_record_ld_st_multiple): New function.
8255 (arm_record_ld_st_reg_offset): New function.
8256 (arm_record_ld_st_imm_offset): New function.
8257 (arm_record_data_proc_imm): New function.
8258 (arm_record_data_proc_misc_ld_str): New function.
8259 (arm_record_extension_space): New function.
8260 (arm_record_strx): New function.
8261 (sbo_sbz): New function.
8262 (struct insn_decode_record): New structure for arm insn record.
8263 (REG_ALLOC): New macro for reg allocations.
8264 (MEM_ALLOC): New macro for memory allocations.
8265 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8267 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8269 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8270 (store_register): Likewise.
8272 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8274 * MAINTAINERS (Write After Approval): Add myself to the list.
8276 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8278 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8279 Describe also the option "auto".
8281 2012-03-22 Richard Henderson <rth@redhat.com>
8283 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8284 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8286 2012-03-22 Richard Henderson <rth@redhat.com>
8288 * jit.c (jit_read_code_entry): Compute alignment and offset of
8289 int64_t member before computing entry_size.
8291 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8293 Python scripting: Add new method Value.referenced_value to
8294 gdb.Value which can dereference pointer as well as reference
8296 * NEWS: Add entry under 'Python scripting' about the new method
8297 Value.referenced_value on gdb.Value objects.
8298 * python/py-value.c (valpy_referenced_value): New function
8299 defining a new method on gdb.Value objects which can dereference
8300 pointer and reference values.
8302 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8304 * MAINTAINERS (Write After Approval): Add myself to the list.
8306 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8308 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8309 in addition to "main".
8311 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8313 * expression.h (op_name): Add declaration.
8314 * expprint.c (op_name): Remove declaration. Make non-static.
8315 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8317 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8319 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8321 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8322 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8323 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8324 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8325 (linux_nat_get_siginfo): Likewise.
8326 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8327 (linux_nat_get_siginfo): Likewise.
8328 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8329 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8330 * procfs.c (gdb_siginfo_t): Likewise.
8332 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8334 * .gitignore: Ignore more files.
8336 2012-03-20 Pedro Alves <palves@redhat.com>
8338 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8341 2012-03-20 Yao Qi <yao@codesourcery.com>
8343 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8346 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8348 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8349 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8350 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8352 * dwarf2expr.h (cu_offset, sect_offset): New types.
8353 (struct dwarf_expr_context_funcs) <dwarf_call>
8354 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8356 (struct dwarf_expr_context) <len>: Improve the comment.
8357 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8358 cu_offset and sect_offset.
8359 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8360 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8361 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8362 * dwarf2loc.h: Include dwarf2expr.h.
8363 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8365 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8366 Improve the comment.
8367 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8368 (struct signatured_type, struct line_header, struct partial_die_info)
8369 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8370 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8371 (get_die_type_at_offset, create_cus_from_index)
8372 (create_signatured_type_table_from_index, dw2_get_file_names)
8373 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8374 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8375 (create_debug_types_hash_table, process_psymtab_comp_unit)
8376 (load_partial_comp_unit, create_all_comp_units)
8377 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8378 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8379 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8380 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8381 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8382 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8383 (find_partial_die, read_attribute_value, lookup_die_type)
8384 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8385 (is_ref_attr): New function comment.
8386 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8387 Use cu_offset and sect_offset.
8388 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8389 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8390 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8391 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8392 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8393 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8394 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8397 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8400 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8401 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8403 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8405 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8407 * NEWS: Describe new options --init-command=FILE, -ix and
8408 --init-eval-command=COMMAND, -iex.
8409 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8410 CMDARG_INIT_COMMAND.
8411 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8412 "init-command", "init-eval-command", "ix" and "iex" to the variable
8413 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8414 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8415 (print_gdb_help): Describe --init-command=FILE, -ix and
8416 --init-eval-command=COMMAND, -iex.
8418 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8421 * main.c (struct cmdarg): Move it here from main. Add more comments.
8422 (cmdarg_s, VEC (cmdarg_s)): New.
8423 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8424 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8425 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8426 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8429 2012-03-19 Tom Tromey <tromey@redhat.com>
8431 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8433 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8436 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8439 2012-03-16 Chris January <chris.january@allinea.com>
8441 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8444 2012-03-16 Chris January <chris.january@allinea.com>
8446 * source.c (add_path): Use memmove instead of strcpy because the
8449 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8451 * value.h (set_value_parent): Add declaration.
8452 * value.c (set_value_parent): New function.
8453 (value_address): If VALUE->PARENT is not NULL, then use it as
8454 the base address instead of VALUE->LOCATION.address.
8455 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8456 the same as OBJ's address. Adjust V's offset accordingly.
8459 2012-03-16 Gary Benson <gbenson@redhat.com>
8461 PR breakpoints/10738
8462 * dwarf2read.c (use_deprecated_index_sections): New global.
8463 (struct partial_die_info): New member may_be_inlined.
8464 (read_partial_die): Set may_be_inlined where appropriate.
8465 (add_partial_subprogram): Add partial symbols for partial
8466 DIEs that may be inlined.
8467 (new_symbol_full): Add inlined subroutines to the current
8469 (write_psymtabs_to_index): Bump version number.
8470 (dwarf2_read_index): Read only version 6 indices unless
8471 use_deprecated_index_sections is set.
8472 * linespec.c (symbol_and_data_callback): New structure.
8473 (iterate_inline_only): New function.
8474 (iterate_over_all_matching_symtabs): New argument
8475 "include_inline". If nonzero, also call the callback for
8476 symbols representing inlined subroutines.
8477 (lookup_prefix_sym): Pass extra argument to the above.
8478 (find_function_symbols): Likewise.
8479 (add_matching_symbols_to_info): Likewise.
8480 * NEWS: Mention that GDB can now set breakpoints on inlined
8483 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8485 * p-typeprint.c (pascal_type_print_method_args):
8486 Fix display of parameter of methods.
8488 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8490 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8491 Add missing prototype.
8493 2012-03-16 Yao Qi <yao@codesourcery.com>
8494 Jan Kratochvil <jan.kratochvil@redhat.com>
8496 Fix false compilation warning.
8497 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8499 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8500 Pedro Alves <pedro@codesourcery.com>
8502 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8503 (arm_register_g_packet_guesses): New function.
8504 (arm_gdbarch_init): Don't force a target description with
8505 registers when the executable is detected as M-profile. Instead
8506 set gdbarch->tdep->is_m. Register `g' packet guesses.
8507 (_initialize_arm_tdep): Initialize the new target description.
8508 * features/arm-with-m-fpa-layout.xml: New description.
8509 * features/arm-with-m-fpa-layout.c: New, generated.
8511 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8513 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8514 Update function description.
8515 (insert_bp_location): Do not wipe bl->target_info out.
8516 * mem-break.c: #include "gdb_string.h".
8517 (default_memory_insert_breakpoint): Do not call target_read_memory
8518 with a pointer to the breakpoint's shadow_contents buffer. Use
8519 a local buffer instead.
8520 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8522 2012-03-15 Tom Tromey <tromey@redhat.com>
8524 * NEWS: Mention "info vtbl", not "info vtable".
8525 * cp-support.c (info_vtbl_command): Fix comment.
8526 (_initialize_cp_support): Fix text.
8528 2012-03-15 Tom Tromey <tromey@redhat.com>
8530 * cp-valprint.c (cp_print_value_fields): Use
8531 print_function_pointer_address for vtable slot.
8533 2012-03-15 Tom Tromey <tromey@redhat.com>
8535 * gnu-v3-abi.c (struct value_and_voffset): New.
8536 (hash_value_and_voffset, eq_value_and_voffset)
8537 (compare_value_and_voffset, compute_vtable_size)
8538 (print_one_vtable, gnuv3_print_vtable): New functions.
8539 (init_gnuv3_ops): Initialize 'print_vtable' field.
8540 * cp-support.c (info_vtbl_command): New function.
8541 (_initialize_cp_support): Add "info vtbl".
8542 * cp-abi.h (cplus_print_vtable): Declare.
8543 (struct cp_abi_ops) <print_vtable>: New field.
8544 * cp-abi.c (cplus_print_vtable): New function.
8547 2012-03-15 Tom Tromey <tromey@redhat.com>
8549 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8550 iterate_over_symbols.
8552 2012-03-14 Doug Evans <dje@google.com>
8554 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8555 DW_OP_GNU_parameter_ref.
8557 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8559 Fix double prompt of 'interpreter-exec mi'.
8560 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8561 (mi_interpreter_resume): use it.
8562 (mi_execute_command_input_handler): New function.
8563 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8564 mi_execute_command_input_handler.
8566 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8568 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8570 (darwin_debug_port_info): Make static.
8571 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8572 * machoread.c (_initialize_machoread): Add prototype.
8573 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8574 (i386_darwin_set_control, i386_darwin_get_control)
8575 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8576 i386_darwin_get_status, i386_darwin_get_control):
8577 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8579 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8581 * ax-gdb.c (gen_usual_unary): Remove special handling of
8582 enum and bool types.
8584 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8586 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8588 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8590 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8592 2012-03-13 Chris January <chris.january@allinea.com>
8594 * aix-thread.c (fill_sprs): Store the floating point registers
8595 at the correct offsets into vals.
8597 2012-03-13 Doug Evans <dje@google.com>
8599 * NEWS: Mention symbol-reloading has been deleted.
8600 * symfile.c (symbol_reloading): Delete.
8601 (show_symbol_reloading): Delete.
8602 (_initialize_symfile): Delete set/show symbol-reloading.
8604 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8605 read_in_chain until we have successfully read it in.
8606 (load_full_comp_unit): Ditto.
8607 (read_signatured_type): Add comment.
8609 2012-03-13 Chris January <chris.january@allinea.com>
8611 * stabsread.c (fix_common_block): Change type of valu argument
8614 2012-03-13 Chris January <chris.january@allinea.com>
8616 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8619 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8621 * common/linux-procfs.c (linux_proc_get_int): New, from
8622 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8624 (linux_proc_get_tgid): Only call linux_proc_get_int.
8625 (linux_proc_get_tracerpid): New.
8626 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8627 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8628 linux_proc_pid_has_state.
8629 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8630 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8631 (linux_ptrace_attach_warnings): New.
8632 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8634 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8635 (linux_nat_attach): New variables ex, buffer, message and message_s.
8636 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8638 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8640 * Makefile.in (linux-ptrace.o): New.
8641 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8643 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8644 * common/linux-ptrace.c: New file.
8645 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8646 * config/arm/linux.mh: Likewise.
8647 * config/i386/linux.mh: Likewise.
8648 * config/i386/linux64.mh: Likewise.
8649 * config/ia64/linux.mh: Likewise.
8650 * config/m32r/linux.mh: Likewise.
8651 * config/m68k/linux.mh: Likewise.
8652 * config/mips/linux.mh: Likewise.
8653 * config/pa/linux.mh: Likewise.
8654 * config/powerpc/linux.mh: Likewise.
8655 * config/powerpc/ppc64-linux.mh: Likewise.
8656 * config/powerpc/spu-linux.mh: Likewise.
8657 * config/s390/s390.mh: Likewise.
8658 * config/sparc/linux.mh: Likewise.
8659 * config/sparc/linux64.mh: Likewise.
8660 * config/xtensa/linux.mh: Likewise.
8661 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8662 common/linux-procfs.c.
8663 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8665 2012-03-13 Hui Zhu <teawater@gmail.com>
8666 Pedro Alves <palves@redhat.com>
8668 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8669 CREATE_BREAKPOINT_FLAGS_INSERTED.
8670 (create_breakpoint_sal, create_breakpoints_sal)
8671 (base_breakpoint_create_breakpoints_sal)
8672 (tracepoint_create_breakpoints_sal)
8673 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8675 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8676 (ftrace_command, strace_command): Adjust.
8677 (create_tracepoint_from_upload): Pass
8678 CREATE_BREAKPOINT_FLAGS_INSERTED.
8679 * breakpoint.h (enum breakpoint_create_flags): New.
8680 (create_breakpoint): New flags parameter.
8681 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8682 * python/py-breakpoint.c (bppy_init): Adjust.
8683 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8684 * spu-tdep.c (spu_catch_start): Adjust.
8686 2012-03-13 Pedro Alves <palves@redhat.com>
8687 Hui Zhu <teawater@gmail.com>
8688 Yao Qi <yao@codesourcery.com>
8690 * remote.c (struct remote_state): New field `starting_up'.
8691 (remote_start_remote): Set and clear it.
8692 (remote_can_download_tracepoint): If starting up, return false.
8694 2012-03-13 Yao Qi <yao@codesourcery.com>
8696 * inferior.h (struct inferior): Remove fields any_syscall_count,
8697 syscalls_counts and total_syscalls_count. Move them to new
8698 struct catch_syscall_inferior_data in breakpoint.c.
8699 * breakpoint.c: Call DEF_VEC_I(int).
8700 (struct catch_syscall_inferior_data): New.
8701 (get_catch_syscall_inferior_data): New.
8702 (catch_syscall_inferior_data_cleanup): New.
8703 (insert_catch_syscall): Update to access data in
8704 struct catch_syscall_inferior_data.
8705 (insert_catch_syscall): Likewise.
8706 (remove_catch_syscall): Likewise.
8707 (remove_catch_syscall): Likewise.
8708 (is_syscall_catchpoint_enabled): Likewise.
8709 (add_catch_command): Likewise.
8710 (_initialize_breakpoint): Register cleanup.
8711 * breakpoint.h: Removed DEF_VEC_I(int).
8712 * dwarf2loc.c: Call DEF_VEC_I(int).
8713 * mi/mi-main.c: Likewise.
8715 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8717 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8719 2012-03-12 Chris January <chris.january@allinea.com>
8721 * aix-thread.c (_initialize_aix_thread): Add prototype.
8722 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8723 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8725 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8727 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8728 include of "amd64-nat.h".
8730 2012-03-12 Tom Tromey <tromey@redhat.com>
8732 * buildsym.c (record_pending_block): Now static.
8733 * buildsym.h: (record_pending_block): Remove.
8735 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8737 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8739 2012-03-09 Tom Tromey <tromey@redhat.com>
8741 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8742 producer_is_gxx_lt_4_6>: New fields.
8743 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8745 2012-03-09 Tom Tromey <tromey@redhat.com>
8747 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8749 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8751 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8754 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8756 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8758 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8760 Fix -Wmissing-prototypes build.
8761 * arm-linux-nat.c (get_thread_id): Make it static.
8762 * xtensa-linux-nat.c (get_thread_id): Likewise.
8764 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8766 * server.c (process_point_options): If a conditional expression
8767 is found, only print a message if remote_debug is nonzero.
8769 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8771 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8772 of internal error for unknown/unsupported types.
8774 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8776 Fix CU relative vs. absolute DIE offsets.
8777 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8778 offset to offset_in_cu.
8779 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8781 (dwarf2_fetch_die_location_block): Rename parameter offset to
8782 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8784 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8786 * libunwind-frame.c: Rename to ...
8787 * ia64-libunwind-tdep.c: ... here.
8788 * libunwind-frame.h: Rename to ...
8789 * ia64-libunwind-tdep.h: ... here.
8790 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8791 ia64-libunwind-tdep.h.
8792 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8793 * README (--with-libunwind): Rename to ...
8794 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8795 * config.in: Regenerate.
8796 * configure: Regenerate.
8797 * configure.ac: New option --with-libunwind-ia64, make the
8798 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8799 Remove AC_DEFINE for HAVE_LIBUNWIND.
8800 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8801 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8802 Rename libunwind-frame in the general comment.
8803 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8804 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8805 Move forward declarations inside #ifndef. Rename libunwind-frame in
8806 the general comment.
8807 * ia64-tdep.c: Rename libunwind-frame.h #include to
8808 ia64-libunwind-tdep.h.
8809 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8810 (ia64_libunwind_descr): Rename libunwind-frame to
8811 ia64-libunwind-tdep in these function comments.
8812 * ia64-tdep.h: Rename libunwind-frame.h #include to
8813 ia64-libunwind-tdep.h.
8814 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8815 ia64-libunwind-tdep in that data comment.
8817 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8819 * libunwind-frame.h (struct frame_unwind): New declaration.
8821 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8823 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8824 "set breakpoint condition-evaluation" command.
8826 2012-03-08 Tristan Gingold <gingold@adacore.com>
8828 * sparc-stub.c: Move to stubs/
8829 * sh-stub.c: Likewise.
8830 * m68k-stub.c: Likewise.
8831 * m32r-stub.c: Likewise.
8832 * i386-stub.c: Likewise.
8834 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8836 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8837 linux_get_siginfo_type.
8839 * m68klinux-nat.c: Include "gdb_proc_service.h".
8840 (PTRACE_GET_THREAD_AREA): Define.
8841 (ps_get_thread_area): New function.
8843 2012-03-08 Yao Qi <yao@codesourcery.com>
8845 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8847 (remote_query_attached): Likewise.
8848 (remote_static_tracepoint_marker_at): Likewise.
8849 (remote_set_permissions): Likewise.
8850 (remote_detach_1, extended_remote_attach_1): Likewise.
8851 (send_g_packet, remote_vkill): Likewise.
8852 (extended_remote_disable_randomization): Likewise.
8853 (remote_add_target_side_condition): Likewise.
8854 (remote_insert_breakpoint): Likewise.
8855 (remote_remove_breakpoint): Likewise.
8856 (remote_insert_watchpoint): Likewise.
8857 (remote_remove_watchpoint): Likewise.
8858 (remote_insert_hw_breakpoint): Likewise.
8859 (remote_insert_hw_breakpoint): Likewise.
8860 (remote_remove_hw_breakpoint): Likewise.
8861 (remote_download_command_source): Likewise.
8862 (remote_download_tracepoint): Likewise.
8863 (remote_download_trace_state_variable): Likewise.
8864 (remote_disable_tracepoint): Likewise.
8865 (remote_trace_set_readonly_regions): Likewise.
8866 (remote_get_tracepoint_status): Likewise.
8867 (remote_trace_find): Likewise.
8868 (remote_get_trace_state_variable_value): Likewise.
8869 (remote_set_disconnected_tracing): Likewise.
8870 (remote_set_circular_trace_buffer): Likewise.
8871 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8872 (remote_use_agent): Likewise.
8873 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8876 2012-03-07 Pedro Alves <palves@redhat.com>
8878 * NEWS: Mention QProgramSignals.
8879 * inferior.h (update_signals_program_target): Declare.
8880 * infrun.c: (update_signals_program_target): New.
8881 (handle_command): Update the target of the new program signals
8883 * remote.c (PACKET_QProgramSignals): New enum.
8884 (last_program_signals_packet): New global.
8885 (remote_program_signals): New.
8886 (remote_start_remote): Update the target with the program signals
8888 (remote_protocol_features): Add entry for QPassSignals.
8889 (remote_open_1): Free anc clear last_program_signals_packet.
8890 (init_remote_ops): Install remote_program_signals.
8891 * target.c (update_current_target): Adjust.
8892 (target_program_signals): New.
8893 * target.h (struct target_ops) <to_program_signals>: New field.
8894 (target_program_signals): Declare.
8896 2012-03-07 Pedro Alves <palves@redhat.com>
8898 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8901 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8903 * m68klinux-nat.c (getregs_supplies): Make static.
8904 (getfpregs_supplies): Likewise.
8905 (have_ptrace_getregs): Likewise.
8907 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8909 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8910 in call to get_die_type_at_offset.
8912 2012-03-06 Stan Shebs <stan@codesourcery.com>
8914 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8915 * mi/mi-cmd-disas.c: Ditto.
8916 * mi/mi-cmd-env.c: Ditto.
8917 * mi/mi-cmd-file.c: Ditto.
8918 * mi/mi-cmd-stack.c: Ditto.
8919 * mi/mi-cmd-target.c: Ditto.
8920 * mi/mi-cmd-var.c: Ditto.
8921 * mi/mi-cmds.c: Ditto.
8922 * mi/mi-cmds.h: Ditto.
8923 * mi/mi-console.c: Ditto.
8924 * mi/mi-getopt.c: Ditto.
8925 * mi/mi-getopt.h: Ditto.
8926 * mi/mi-interp.c: Ditto.
8927 * mi/mi-main.c: Ditto.
8928 * mi/mi-out.c: Ditto.
8929 * mi/mi-parse.c: Ditto.
8930 * mi/mi-parse.h: Ditto.
8931 * mi/mi-symbol-cmds.c: Ditto.
8933 * mi/mi-getopt.h: Move mi_opt struct up.
8934 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8936 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8938 2012-03-06 Tom Tromey <tromey@redhat.com>
8940 * proc-service.c (ps_pglobal_lookup): Set the current program
8943 2012-03-06 Pedro Alves <palves@redhat.com>
8945 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8947 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8949 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8951 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8954 * common/linux-osdata.c (linux_common_core_of_thread): New function
8956 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8957 call by linux_common_core_of_thread.
8958 (linux_nat_core_of_thread_1): Remove.
8959 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8960 * linux-thread-db.c: Include linux-osdata.h.
8961 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8962 linux_common_core_of_thread.
8964 2012-03-05 Tom Tromey <tromey@redhat.com>
8966 * value.c (value_primitive_field): Don't fetch contents for
8969 2012-03-05 Tom Tromey <tromey@redhat.com>
8971 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8973 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8975 * s390-nat.c: Include "gregset.h".
8977 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8979 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8980 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8981 (libunwind_load): New variable so_error, use it for dlerror. Try to
8982 load also LIBUNWIND_SO_7.
8984 2012-03-05 Pedro Alves <palves@redhat.com>
8986 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8987 is not NULL, and remove resulting dead code.
8989 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8991 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8992 prologue to sh_analyze_prologue.
8993 (sh_analyze_prologue): Make better use of such an upper limit, and
8994 generally be more cautious about accessing memory.
8996 2012-03-05 Tom Tromey <tromey@redhat.com>
8998 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8999 _initialize_ia64_hpux_tdep.
9001 2012-03-05 Pedro Alves <palves@redhat.com>
9005 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9006 the register state is clear, supply explicit zero, instead of
9007 marking the register unavailable.
9009 2012-03-05 Tristan Gingold <gingold@adacore.com>
9011 * NEWS: Mention OpenVMS ia64 new target.
9013 2012-03-05 Tristan Gingold <gingold@adacore.com>
9015 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9016 (ia64_unw_accessors, ia64_unw_rse_accessors)
9017 (ia64_libunwind_descr): Declare.
9018 * ia64-vms-tdep.c: New file.
9019 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9020 (ia64_libunwind_descr): Make them public.
9021 * configure.tgt: Add ia64-*-*vms*.
9022 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9023 (ALLDEPFILES): Add ia64-vms-tdep.c
9025 2012-03-05 Tristan Gingold <gingold@adacore.com>
9027 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9028 * remote.c (PACKET_qXfer_uib): New enum value.
9029 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9030 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9031 (_initialize_remote): Call add_packet_config_cmd for
9034 2012-03-05 Tristan Gingold <gingold@adacore.com>
9036 * osabi.c (gdb_osabi_names): Add OpenVMS.
9037 (generic_elf_osabi_sniffer): Likewise.
9038 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9040 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9042 Removed unused code.
9043 * libunwind-frame.c (libunwind_frame_unwind)
9044 (libunwind_frame_base_address): Remove.
9045 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9047 2012-03-04 Yao Qi <yao@codesourcery.com>
9049 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9050 remove trailing new line.
9051 (agent_run_command, agent_run_command): Add _ markup.
9052 (agent_capability_check): Likewise.
9054 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9056 * breakpoint.c (set_condition_evaluation_mode): Set
9057 CONDITION_EVALUATION_MODE unconditionally.
9059 2012-03-03 Yao Qi <yao@codesourcery.com>
9061 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9062 * common/agent.h: Update declaration.
9063 * inf-child.c (inf_child_use_agent): New.
9064 (inf_child_can_use_agent): New.
9065 (inf_child_target): Initialize fields `to_use_agent'
9066 and `to_can_use_agent'.
9067 * agent.c (agent_new_objfile): New.
9068 (_initialize_agent): Add agent_new_objfile to new_objfile
9071 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9073 (linux_target_install_ops): Initialize field
9074 `to_static_tracepoint_markers_by_strid'.
9075 * remote.c (free_current_marker): Move it to ...
9076 * tracepoint.c (free_current_marker): ... here. New.
9077 (cleanup_target_stop): New.
9078 * tracepoint.h: Declare free_current_marker.
9079 * NEWS: Add one entry about `info static-tracepoint-marker'.
9081 2012-03-03 Yao Qi <yao@codesourcery.com>
9083 * common/agent.c (agent_loaded_p): New.
9084 (agent_look_up_symbols): New global.
9085 * common/agent.h: Declare agent_loaded_p.
9087 2012-03-03 Yao Qi <yao@codesourcery.com>
9089 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9090 (agent_capability_check, agent_capability_invalidate): New.
9091 (symbol_list): New array element.
9092 * common/agent.h (enum agent_capa): New.
9093 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9095 2012-03-03 Yao Qi <yao@codesourcery.com>
9097 * target.h (struct target_ops) <to_use_agent>: New field.
9098 (struct target_ops) <to_can_use_agent>: New field.
9099 (target_use_agent, target_can_use_agent): New macro.
9100 * target.c (update_current_target): Update.
9101 * remote.c: New enum `PACKET_QAgent'.
9102 (remote_protocol_features): Add a new element.
9103 (remote_use_agent, remote_can_use_agent): New.
9104 (init_remote_ops): Initialize field `can_use_agent' with
9105 remote_can_use_agent. Intiailize field `use_agent' with
9107 * common/agent.c (use_agent): New global.
9108 * common/agent.h: Declare it.
9109 * tracepoint.c (info_static_tracepoint_markers_command): Add
9111 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9112 (COMMON_OBS): Add common/agent.o and agent.o
9113 (common-agent.o): New rule.
9116 2012-03-03 Yao Qi <yao@codesourcery.com>
9118 * common/agent.c: New.
9119 * common/agent.h: New.
9120 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9122 * configure, configh.in: Regenerated.
9124 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9126 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9127 unless it exists for this architecture.
9129 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9131 * language.h (struct language_defn): New "method" la_read_var_value.
9132 * findvar.c: #include "language.h".
9133 (default_read_var_value): Renames read_var_value. Rewrite
9134 function description.
9135 (read_var_value): New function.
9136 * value.h (default_read_var_value): Add prototype.
9137 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9139 (ada_language_defn): Add entry for la_read_var_value.
9140 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9141 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9142 language_defn structures to add entry for new la_read_var_value
9145 2012-03-02 Tom Tromey <tromey@redhat.com>
9146 Pedro Alves <palves@redhat.com>
9148 PR breakpoints/13776:
9149 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9151 (delete_longjmp_breakpoint_at_next_stop): New.
9152 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9153 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9154 before deleting the inferior. Add comments.
9155 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9156 breakpoints immediately, but only on next stop. Move that code
9157 next to where we mark other breakpoints for deletion.
9159 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9161 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9163 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9166 2012-03-02 Pedro Alves <palves@redhat.com>
9168 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9170 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9172 Fix -Wmissing-prototypes build.
9173 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9174 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9175 (gdbsim_has_memory): Likewise.
9177 2012-03-02 Yao Qi <yao@codesourcery.com>
9179 Fix -Wmissing-prototypes build.
9180 * charset.c (phony_iconv_open): Make static.
9181 (phony_iconv_close, phony_iconv): Likewise.
9182 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9183 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9185 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9186 * ser-mingw.c (create_select_thread): Make static.
9187 * windows-termcap.c (tgetent): New prototype.
9188 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9190 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9192 Fix -Wmissing-prototypes build.
9193 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9194 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9195 (_initialize_loadable): New prototypes.
9197 2012-03-02 Doug Evans <dje@google.com>
9199 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9200 abbrev table, read_comp_unit will do it.
9202 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9204 Fix -Wmissing-prototypes build.
9205 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9206 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9207 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9208 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9209 (_initialize_arm_symbian_tdep): New prototype.
9210 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9211 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9212 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9214 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9215 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9217 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9218 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9219 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9221 * moxie-tdep.c (moxie_process_record): Likewise.
9222 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9223 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9224 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9225 (_initialize_rl78_tdep): New prototype.
9226 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9227 (_initialize_rx_tdep): New prototype.
9228 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9229 (_initialize_darwin_solib): New prototype.
9230 * solib-spu.c: Include solib-spu.h.
9231 (_initialize_spu_solib): New prototype.
9232 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9233 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9234 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9235 (tic6x_software_single_step): Make it static.
9236 (_initialize_tic6x_tdep): New prototype.
9238 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9240 Fix -Wmissing-prototypes build.
9241 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9242 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9244 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9246 Fix -Wmissing-prototypes build.
9247 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9248 (frv_have_stopped_data_address): Remove.
9250 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9252 Fix -Wmissing-prototypes build.
9253 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9254 * sh-tdep.c: Include sh64-tdep.h.
9255 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9256 * sh64-tdep.c: Include sh64-tdep.h.
9257 * sh64-tdep.h: New file.
9259 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9261 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9263 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9265 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9266 sp_regnum once the gdbarch_init_osabi hook has been called.
9268 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9270 * mips-tdep.c (mips32_bc1_pc): New function.
9271 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9272 BPOSGE32 and BPOSGE64 instructions.
9273 (deal_with_atomic_sequence): Likewise.
9274 (mips32_instruction_has_delay_slot): Likewise.
9276 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9277 Chris Dearman <chris@mips.com>
9278 Maciej W. Rozycki <macro@codesourcery.com>
9279 Joseph Myers <joseph@codesourcery.com>
9281 * features/mips-dsp.xml: New file.
9282 * features/mips64-dsp.xml: New file.
9283 * features/mips-dsp-linux.xml: New file.
9284 * features/mips64-dsp-linux.xml: New file.
9285 * features/Makefile (WHICH): Add mips-dsp-linux and
9287 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9288 * features/mips-dsp-linux.c: New file.
9289 * features/mips64-dsp-linux.c: New file.
9290 * regformats/mips-dsp-linux.dat: New file.
9291 * regformats/mips64-dsp-linux.dat: New file.
9292 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9294 (mips64_linux_register_addr): Likewise.
9295 (mips64_linux_regsets_fetch_registers): Likewise.
9296 (mips64_linux_regsets_store_registers): Likewise.
9297 (mips64_linux_fetch_registers): Update call to
9298 mips64_linux_regsets_fetch_registers.
9299 (mips64_linux_store_registers): Update call to
9300 mips64_linux_regsets_store_registers.
9301 (mips_linux_read_description): Probe for DSP registers.
9302 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9303 and initialize_tdesc_mips64_dsp_linux.
9304 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9305 Remove padding of no longer used embedded register slots.
9306 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9307 (MIPS_RESTART_REGNUM): Redefine enum value.
9308 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9310 (mips_tx39_reg_names): Likewise.
9311 (mips_linux_reg_names): New array of register names for Linux
9313 (mips_register_name): Check for a null pointer in
9314 mips_processor_reg_names and return an empty string.
9315 (mips_register_type): Exclude embedded registers for the IRIX
9317 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9318 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9320 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9321 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9322 (mips_gdbarch_init): Likewise. Initialize internal register
9323 indices for the Linux ABI. Use dynamic numbers to refer to
9324 registers, as applicable, while parsing the target description.
9325 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9327 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9329 * frame.h (read_frame_register_unsigned): Fix typo in function
9332 2012-03-01 Pedro Alves <palves@redhat.com>
9334 * jit-reader.in [!__cplusplus]
9335 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9337 2012-03-01 Pedro Alves <palves@redhat.com>
9339 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9340 * configure: Regenerate.
9342 2012-03-01 Pedro Alves <palves@redhat.com>
9344 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9345 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9346 (ftrace_command, strace_command): Make static.
9347 * d-lang.c (_initialize_d_language): Declare.
9348 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9349 * dwarf2loc.c (_initialize_dwarf2loc):
9350 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9351 * exec.c (exec_get_section_table): Make static.
9352 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9353 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9354 * inferior.c (remove_inferior_command, add_inferior_command)
9355 (clone_inferior_command): Make static.
9356 * linux-nat.c (linux_nat_thread_address_space)
9357 (linux_nat_core_of_thread): Make static.
9358 * linux-tdep.c (_initialize_linux_tdep): Declare.
9359 * objc-lang.c (_initialize_objc_lang): Declare.
9360 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9362 (_initialize_opencl_language): Declare.
9363 * record.c (_initialize_record): Declare.
9364 * remote.c (demand_private_info, remote_get_tib_address)
9365 (remote_supports_cond_tracepoints)
9366 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9368 * skip.c (_initialize_step_skip): Declare.
9369 * symtab.c (skip_prologue_using_lineinfo): Make static.
9370 * tracepoint.c (delete_trace_state_variable)
9371 (trace_variable_command, delete_trace_variable_command)
9372 (get_uploaded_tsv, find_matching_tracepoint_location)
9373 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9375 * value.c (pack_unsigned_long): Make static.
9376 * varobj.c (varobj_ensure_python_env): Make static.
9377 * windows-tdep.c (_initialize_windows_tdep): Declare.
9378 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9380 2012-03-01 Pedro Alves <palves@redhat.com>
9382 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9384 (linux_init_abi): Install it as has_shared_address_space gdbarch
9387 2012-03-01 Pedro Alves <palves@redhat.com>
9389 * observer.c (observer_test_first_notification_function)
9390 (observer_test_second_notification_function)
9391 (observer_test_third_notification_function): Add declarations.
9393 2012-03-01 Pedro Alves <palves@redhat.com>
9395 * common/signals.c (default_target_signal_to_host)
9396 (default_target_signal_from_host): Move ...
9397 * arch-utils.c: ... here.
9398 * arch-utils.h (default_target_signal_to_host)
9399 (default_target_signal_from_host): Declare.
9401 * common/signals.c (target_signal_from_command): Move ...
9402 * infrun.c: ... here.
9403 * inferior.h (target_signal_from_command): Declare.
9404 * target.h (target_signal_from_command)
9405 (default_target_signal_from_host, default_target_signal_to_host):
9406 Delete declarations.
9408 * common/signals.c (_initialize_signals): Delete.
9410 2012-03-01 Pedro Alves <palves@redhat.com>
9412 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9413 both __cplusplus and !__cplusplus.
9415 2012-03-01 Pedro Alves <palves@redhat.com>
9417 * psymtab.c (find_and_open_source): Delete declaration.
9418 * source.c (find_and_open_source): Move comment ...
9419 * source.h (find_and_open_source): ... to this new declaration.
9421 2012-03-01 Pedro Alves <palves@redhat.com>
9423 * inline-frame.c: Include inline-frame.h.
9425 2012-03-01 Pedro Alves <palves@redhat.com>
9427 * tui/tui-data.c (set_gen_win_origin): Delete.
9428 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9429 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9431 2012-03-01 Pedro Alves <palves@redhat.com>
9433 * remote.c (encode_actions): Delete declaration.
9434 * tracepoint.c (encode_actions): Make extern.
9435 * tracepoint.h (encode_actions): Declare.
9437 2012-03-01 Pedro Alves <palves@redhat.com>
9439 * python/py-breakpoint.c: Include python.h.
9440 * python/py-continueevent.c (create_continue_event_object): Make
9442 * python/py-lazy-string.c (stpy_get_type): Make static.
9443 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9445 * python/py-utils.c (unicode_to_target_python_string): Make
9447 * python/py-value.c: Include python.h.
9449 2012-03-01 Pedro Alves <palves@redhat.com>
9451 * inferior.c (delete_threads_of_inferior): Delete.
9453 2012-03-01 Pedro Alves <palves@redhat.com>
9455 Import fallback definitions from glibc.
9457 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9458 ps_prochandle): Forward declare.
9459 (ps_err_e): Use glibc's comments.
9460 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9461 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9462 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9463 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9464 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9465 (struct ps_prochandle): Adjust comment.
9467 2012-03-01 Pedro Alves <palves@redhat.com>
9469 * ada-lang.c (ada_modulus_from_name): Delete.
9470 * ada-lex.l (lexer_init): Make static.
9472 2012-03-01 Pedro Alves <palves@redhat.com>
9476 * frame.c (read_frame_register_unsigned): New.
9477 * frame.h (read_frame_register_unsigned): Declare.
9478 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9480 (print_i387_control_word): New parameter `control_p'. Handle it.
9481 (i387_print_float_info): Handle unavailable float registers.
9483 2012-03-01 Keith Seitz <keiths@redhat.com>
9485 * linespec.c (decode_line_2): Sort the list of methods
9486 alphabetically before presenting the user with a selection
9489 2012-03-01 Doug Evans <dje@google.com>
9491 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9493 (dwarf2_read_abbrevs): Remove corresponding initialization.
9495 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9497 * NEWS: Mention new python command class gdb.COMMAND_USER.
9498 * cli/cli-cmds.c (show_user): Print error when used on a python
9500 (init_cli_cmds): Update documentation strings for "show user" and
9501 "set/show max-user-call-depth" to clarify that it does not apply to
9503 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9505 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9507 * top.c (execute_command): Only execute a user-defined command as a
9508 legacy macro if c->user_commands is set.
9510 2012-03-01 Tom Tromey <tromey@redhat.com>
9512 * valprint.h (struct generic_val_print_decorations): New.
9513 (generic_val_print): Declare.
9514 * valprint.c (generic_val_print): New function.
9515 * p-valprint.c (p_decorations): New global.
9516 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9517 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9518 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9519 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9520 * m2-valprint.c (m2_decorations): New global.
9521 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9522 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9523 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9524 TYPE_CODE_ERROR>: Call generic_val_print.
9525 * f-valprint.c (f_decorations): New global.
9526 (f_val_print): Use print_function_pointer_address.
9527 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9528 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9529 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9531 * c-valprint.c (c_decorations): New global.
9532 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9533 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9534 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9535 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9536 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9537 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9540 2012-03-01 Tom Tromey <tromey@redhat.com>
9542 * valprint.c (val_print): Update.
9543 * p-valprint (pascal_val_print): Return void.
9544 * p-lang.h (pascal_val_print): Return void.
9545 * m2-valprint.c (m2_val_print): Return void.
9546 * m2-lang.h (m2_val_print): Return void.
9547 * language.h (struct language_defn) <la_val_print>: Return void.
9548 * language.c (unk_lang_val_print): Return void.
9549 * jv-valprint.c (java_val_print): Return void.
9550 * jv-lang.h (java_val_print): Return void.
9551 * f-valprint.c (f_val_print): Return void.
9552 * f-lang.h (f_val_print): Return void.
9553 * d-valprint.c (d_val_print): Return void.
9554 (dynamic_array_type): Update.
9555 * d-lang.h (d_val_print): Return void.
9556 * c-valprint.c (c_val_print): Return void.
9557 * c-lang.h (c_val_print): Return void.
9558 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9560 * ada-lang.h (ada_val_print): Return void.
9562 2012-03-01 Tom Tromey <tromey@redhat.com>
9564 * value.h (val_print): Return void.
9565 * valprint.c (val_print): Return void.
9567 2012-03-01 Tom Tromey <tromey@redhat.com>
9569 * value.h (common_val_print): Return void.
9570 * valprint.c (common_val_print): Return void.
9572 2012-03-01 Tom Tromey <tromey@redhat.com>
9574 * value.h (value_print): Return void.
9575 * valprint.c (value_print): Return void.
9576 * p-valprint.c (pascal_value_print): Return void.
9577 * p-lang.h (pascal_value_print): Return void.
9578 * language.h (struct language_defn) <la_value_print>: Return
9580 * language.c (unk_lang_value_print): Return void.
9581 * jv-valprint.c (java_value_print): Return void.
9582 * jv-lang.h (java_value_print): Return void.
9583 * f-valprint.c (c_value_print): Don't declare.
9585 * c-valprint.c (c_value_print): Return void.
9586 * c-lang.h (c_value_print): Return void.
9587 * ada-valprint.c (ada_value_print): Return void.
9588 * ada-lang.h (ada_value_print): Return void.
9590 2012-03-01 Tom Tromey <tromey@redhat.com>
9592 * value.c (value_primitive_field): Handle virtual base classes.
9594 2012-03-01 Tom Tromey <tromey@redhat.com>
9596 * gdbtypes.h (struct vbase): Remove.
9598 2012-03-01 Tom Tromey <tromey@redhat.com>
9600 * c-valprint.c (print_function_pointer_address): Move...
9601 * valprint.c: ... here. Make non-static.
9602 * m2-valprint.c (print_function_pointer_address): Remove.
9603 * valprint.h (print_function_pointer_address): Declare.
9605 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9607 * NEWS: Document the fact that one can provide a condition when
9608 creating an Ada exception catchpoint.
9610 2012-03-01 Tom Tromey <tromey@redhat.com>
9612 * valprint.c (val_print_type_code_flags): Fix placement of
9615 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9617 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9618 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9619 environment variable before calling update-copyright.
9621 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9623 * gnulib/extra/update-copyright: Update to the latest from
9624 gnulib's git repository.
9625 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9626 variable to 2 instead of 1.
9628 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9630 * varobj.c (c_value_of_variable): Remove dead code.
9632 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9634 * ada-lex.p (processId): Do not modify already encoded IDs.
9635 Update function documentation.
9637 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9639 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9640 "name" with "struct symbol *name_sym".
9641 * ada-exp.y (write_var_or_type): Update call to
9642 ada_find_renaming_symbol.
9643 "name" with "struct symbol *name_sym". Adjust Implementation
9644 accordingly. Adjust the function documentation.
9646 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9648 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9649 * ada-lang.c (ada_find_any_type): Add advance declaration.
9650 Make static. Replace ada_find_any_symbol by
9651 ada_find_any_type_symbol.
9652 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9653 Improve function description. Make static.
9654 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9655 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9657 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9659 * ada-lang.c (struct tag_args): Delete.
9660 (ada_get_tsd_type): Function body moved up in source file.
9661 (ada_tag_name_1, ada_tag_name_2): Delete.
9662 (ada_get_tsd_from_tag): New function.
9663 (ada_tag_name_from_tsd): New function.
9664 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9665 to determine the tag name.
9667 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9669 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9671 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9674 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9676 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9678 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9680 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9683 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9685 * ada-lang.c (constrained_packed_array_type): If there is a
9686 parallel XA type, use it to determine the array index type.
9688 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9690 * ada-valprint.c (ada_val_print_1): If our value is a reference
9691 to an array descriptor, dereference it before converting it
9694 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9696 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9697 creating fixed value.
9698 (ada_value_ind, ada_coerce_ref, assign_component)
9699 (ada_evaluate_subexp): Remove call to unwrap_value before
9700 call to ada_to_fixed_value.
9702 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9704 * ada-lang.c (to_fixed_array_type): Set result's type name.
9706 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9708 * ada-lang.c (catch_ada_exception_command_split): Add new
9709 argument cond_string. Add support for condition at end of
9710 "catch exception" commands.
9711 (ada_decode_exception_location): Add new argument cond_string.
9712 Update call to catch_ada_exception_command_split.
9713 (create_ada_exception_catchpoint): Add new argument cond_string.
9714 Set the breakpoint condition if needed.
9715 (catch_ada_exception_command): Update call to
9716 ada_decode_exception_location.
9717 (ada_decode_assert_location): Add function documentation.
9718 Add support for condition at end of "catch assert" command.
9719 (catch_assert_command): Update calls to ada_decode_assert_location
9720 and create_ada_exception_catchpoint.
9722 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9724 Fix disp-step-syscall.exp: fork: single step over fork.
9725 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9726 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9727 comment, change parameters gdbarch and ptid to regcache. Remove
9728 parameter regcache, initialize gdbarch from regcache here.
9729 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9731 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9733 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9734 'syscall'. Make the 'int' check more strict.
9736 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9738 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9739 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9740 (i386_linux_intx80_sysenter_syscall_record): ... here.
9741 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9742 Use the renamed function name.
9744 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9746 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9747 * breakpoint.c (until_break_command): Likewise.
9748 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9749 * infcall.c (call_function_by_hand): Likewise.
9750 * infcmd.c (finish_forward): Likewise.
9751 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9753 2012-02-28 Tristan Gingold <gingold@adacore.com>
9755 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9756 avoid variable assignments inside condition.
9758 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 Fix static analysis issue found by cppcheck.
9761 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9762 uninitialized BUF for size 2.
9764 2012-02-27 Chris Dearman <chris@mips.com>
9765 Nathan Froyd <froydnj@codesourcery.com>
9766 Maciej W. Rozycki <macro@codesourcery.com>
9768 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9769 (mips16_instruction_has_delay_slot): Likewise.
9770 (mips_segment_boundary): Likewise.
9771 (mips_adjust_breakpoint_address): Likewise.
9772 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9774 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9775 Maciej W. Rozycki <macro@codesourcery.com>
9777 * infrun.c (handle_inferior_event): Don't proceed through
9778 shared library trampolines if stepping at the machine
9781 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9783 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9786 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9788 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9789 (sh_stub_unwind_sniffer): New functions.
9790 (sh_stub_unwind): New variable.
9791 (sh_gdbarch_init): Wire everything.
9793 2012-02-27 Pedro Alves <palves@redhat.com>
9795 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9796 (linux_nat_post_attach_wait): Adjust to use
9797 linux_proc_pid_is_stopped.
9798 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9799 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9800 based on pid_is_stopped from both linux-nat.c and
9801 gdbserver/linux-low.c, and renamed.
9803 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9805 * remote.c (remote_watchpoint_addr_within_range): New function.
9806 (init_remote_ops): Use it.
9808 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9810 * target.h (target_watchpoint_addr_within_range): Document macro.
9812 2012-02-24 Pedro Alves <palves@redhat.com>
9814 * stack.c (set_last_displayed_sal): Issue internal_error instead
9815 of warning, and issue it after clearing the last displayed sal.
9817 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9818 Pedro Alves <palves@redhat.com>
9820 * breakpoint.c (until_break_command): Install breakpoints after
9821 all frame manipulations.
9823 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9825 * remote.c (remote_supports_cond_breakpoints): New forward
9827 (remote_add_target_side_condition): New function.
9828 (remote_insert_breakpoint): Add target-side breakpoint
9829 conditional if supported.
9830 (remote_insert_hw_breakpoint): Likewise.
9831 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9834 * target.c (update_current_target): Inherit
9835 to_supports_evaluation_of_breakpoint_conditions.
9836 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9838 * target.h (struct target_ops)
9839 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9840 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9842 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9843 (condition_evaluation_both, condition_evaluation_auto,
9844 condition_evaluation_host, condition_evaluation_target,
9845 condition_evaluation_enums, condition_evaluation_mode_1,
9846 condition_evaluation_mode): New static globals.
9847 (translate_condition_evaluation_mode): New function.
9848 (breakpoint_condition_evaluation_mode): New function.
9849 (gdb_evaluates_breakpoint_condition_p): New function.
9850 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9851 (mark_breakpoint_modified): New function.
9852 (mark_breakpoint_location_modified): New function.
9853 (set_condition_evaluation_mode): New function.
9854 (show_condition_evaluation_mode): New function.
9855 (bp_location_compare_addrs): New function.
9856 (get_first_location_gte_addr): New helper function.
9857 (set_breakpoint_condition): Free condition bytecode if locations
9858 has become unconditional. Call mark_breakpoint_modified (...).
9859 (condition_command): Call update_global_location_list (1) for
9861 (breakpoint_xfer_memory): Use is_breakpoint (...).
9862 (is_breakpoint): New function.
9863 (parse_cond_to_aexpr): New function.
9864 (build_target_condition_list): New function.
9865 (insert_bp_location): Handle target-side conditional
9866 breakpoints and call build_target_condition_list (...).
9867 (update_inserted_breakpoint_locations): New function.
9868 (insert_breakpoint_locations): Handle target-side conditional
9870 (bpstat_check_breakpoint_conditions): Add comment.
9871 (bp_condition_evaluator): New function.
9872 (bp_location_condition_evaluator): New function.
9873 (print_breakpoint_location): Print information on where the condition
9875 (print_one_breakpoint_location): Likewise.
9876 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9877 breakpoint location.
9878 (force_breakpoint_reinsertion): New functions.
9879 (update_global_location_list): Handle target-side breakpoint
9881 Reinsert locations that are already inserted if conditions have
9883 (bp_location_dtor): Free agent expression bytecode.
9884 (disable_breakpoint): Call mark_breakpoint_modified (...).
9885 Call update_global_location_list (...) with parameter 1 for breakpoints.
9886 (disable_command): Call mark_breakpoint_location_modified (...).
9887 Call update_global_location_list (...) with parameter 1 for breakpoints.
9888 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9889 (enable_command): mark_breakpoint_location_modified (...).
9890 (_initialize_breakpoint): Update documentation and add
9891 condition-evaluation breakpoint subcommand.
9893 * breakpoint.h: Include ax.h.
9894 (condition_list): New data structure.
9895 (condition_status): New enum.
9896 (bp_target_info) <cond_list>: New field.
9897 (bp_location) <condition_changed, cond_bytecode>: New fields.
9898 (is_breakpoint): New prototype.
9900 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9902 * remote.c (remote_state) <cond_breakpoints>: New field.
9903 (PACKET_ConditionalBreakpoints): New enum.
9904 (remote_cond_breakpoint_feature): New function.
9905 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9906 (remote_supports_cond_breakpoints): New function.
9907 (_initialize_remote): Add new packet configuration for
9908 target-side conditional breakpoints.
9910 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9912 * NEWS: Mention target-side conditional breakpoint support,
9913 new condition-evaluation breakpoint subcommand and remote
9916 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9918 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9921 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9923 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9924 (after_prologue): Remove.
9926 2012-02-23 Tom Tromey <tromey@redhat.com>
9928 * jv-valprint.c (java_val_print): Remove dead code.
9930 2012-02-23 Tristan Gingold <gingold@adacore.com>
9932 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9933 known_tasks_element and known_tasks_length fields.
9934 (read_known_tasks_array): Change argument type. Use pointer type
9935 and number of elements from DATA. Adjust.
9936 (read_known_tasks_list): Likewise.
9937 (get_known_tasks_addr): Remove.
9938 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9939 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9940 type and array length. Merge former get_known_tasks_addr code.
9942 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9946 it after set_momentary_breakpoint.
9948 2012-02-22 Sterling Augustine <saugustine@google.com>
9951 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9953 2012-02-22 Gary Benson <gbenson@redhat.com>
9955 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9956 (find_slot_in_mapped_hash): Likewise.
9958 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9961 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9962 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9963 * configure: Regenerate.
9965 2012-02-21 Tristan Gingold <gingold@adacore.com>
9966 Pedro Alves <palves@redhat.com>
9968 * ia64-tdep.c: Do not include libunwind-ia64.h.
9969 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9970 Include libunwind-ia64.h instead of libunwind.h.
9971 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9972 for libunwind.h existence.
9973 * configure, config.in: Regenerate.
9975 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9977 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9978 instead of value_rtti_target_type.
9979 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9980 instead of value_rtti_target_type.
9981 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9982 value_rtti_target_type.
9983 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9984 (value_rtti_target_type): Rename to ...
9985 (value_rtti_indirect_type): ... here and make it indirect. Update
9987 * value.c (readjust_indirect_value_type): New function.
9988 (coerce_ref): Support for enclosing type setting for references
9989 with readjust_indirect_value_type.
9990 * value.h (readjust_value_type): New declaration.
9991 (value_rtti_target_type): Rename to ...
9992 (value_rtti_indirect_type): ... here.
9994 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9996 * MAINTAINERS (Write After Approval): Add myself to the list.
9998 2012-02-20 Doug Evans <dje@google.com>
10000 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10001 Rename objfile_p_char parameter to objfilep.
10002 (build_objfile_section_table): Result is now void. All callers
10004 * objfiles.h (struct objfile): Tweak comments, whitespace.
10005 (build_objfile_section_table): Update.
10007 * elfread.c (elf_symfile_segments): Fix warning text.
10009 2012-02-20 Tom Tromey <tromey@redhat.com>
10012 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10013 particular set of file names once.
10014 (dw2_map_symbol_filenames): Likewise.
10016 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10019 * main.c (write_files): Remove the declaration.
10020 (external_editor_command): Move the declaration ...
10021 [GDBTK] (external_editor_command): ... here. Fix the comment.
10023 2012-02-20 Tom Tromey <tromey@redhat.com>
10025 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10028 2012-02-20 Tristan Gingold <gingold@adacore.com>
10030 * darwin-nat.h (enum darwin_msg_state): Add comments.
10032 2012-02-20 Tristan Gingold <gingold@adacore.com>
10034 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10037 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10039 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10040 between function description and implementation.
10042 2012-02-17 Tom Tromey <tromey@redhat.com>
10045 * python/py-event.c (event_object_getset): New global.
10046 (event_object_type): Reference it.
10047 * python/py-type.c (field_object_getset): New global.
10048 (field_object_type): Reference it.
10049 * python/python-internal.h (gdb_py_generic_dict): Declare.
10050 * python/py-utils.c (gdb_py_generic_dict): New function.
10052 2012-02-17 Tristan Gingold <gingold@adacore.com>
10054 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10056 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10058 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10059 TYPE_CALLING_CONVENTION annotation.
10061 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10063 * MAINTAINERS: Add rx to target ISA section.
10064 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10065 (ALLDEPFILES): Add rx-tdep.c.
10067 2012-02-16 Tom Tromey <tromey@redhat.com>
10069 * symfile.c (symbol_file_add_main_1): Use inferior's
10071 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10072 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10074 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10076 (follow_exec): Use inferior's symfile_flags.
10077 * inferior.h (struct inferior) <symfile_flags>: New field.
10079 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10082 * remote-sim.c (gdbsim_create_inferior): Call error() when
10083 sim_create_inferior() fails.
10085 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10087 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10089 2012-02-16 Tom Tromey <tromey@redhat.com>
10092 * thread.c (struct current_thread_cleanup) <was_removable>: New
10094 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10095 (make_cleanup_restore_current_thread): Initialize new field.
10097 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10099 * MAINTAINERS: Add rl78 to target ISA section.
10100 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10101 (ALLDEPFILES): Add rl78-tdep.c.
10102 * NEWS: Mention rl78 as a new target.
10104 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10106 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10108 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10110 2012-02-15 Tom Tromey <tromey@redhat.com>
10113 * infcmd.c (registers_info): Print just the current register's
10116 2012-02-15 Tom Tromey <tromey@redhat.com>
10118 * python/py-symbol.c (sympy_value): Use _().
10120 2012-02-15 Pedro Alves <palves@redhat.com>
10122 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10123 output to be like native targets'.
10124 (remote_pid_to_str): Special case the null ptid.
10126 2012-02-14 Stan Shebs <stan@codesourcery.com>
10128 * NEWS: Mention enable count command.
10129 * breakpoint.h (struct breakpoint): New field enable_count.
10130 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10131 (enable_breakpoint): Add arg to call.
10132 (struct disp_data): New struct.
10133 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10134 (do_map_enable_once_breakpoint): Create a struct and pass it.
10135 (do_map_enable_delete_breakpoint): Ditto.
10136 (do_map_enable_count_breakpoint): New function.
10137 (enable_count_command): New function.
10138 (bpstat_stop_status): Decrement enable_count.
10139 (print_one_breakpoint_location): Report enable count.
10140 (_initialize_breakpoint): Add enable count command.
10142 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10144 * rl78-tdep.c (reggroups.h): Include.
10145 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10146 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10147 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10148 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10149 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10150 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10151 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10152 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10153 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10154 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10155 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10156 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10157 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10158 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10159 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10160 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10161 beginning of register list.
10162 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10163 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10164 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10165 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10166 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10167 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10168 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10169 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10170 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10171 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10172 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10173 the pseudo registers. Rearrange other pseudo registers too so
10174 that the bank registers appear at the end.
10175 (rl78_register_type): Account for the fact that the byte sized
10176 bank registers are now pseudo-registers.
10177 (rl78_register_name): Rearrange the register name array. Make
10178 initial set of raw banked registers inaccessible.
10179 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10180 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10181 case for copying bytes back and forth between raw and pseudo
10182 versions of the banked registers. Update other cases to reflect
10184 (rl78_return_value): Update to account for changed names of
10186 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10187 rl78_register_sim_regno().
10189 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10191 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10192 the name parameter being passed to find_pc_partial_function().
10194 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10196 * MAINTAINERS: Step down from being ia64 target maintainer.
10198 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10200 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10201 compilation warning.
10203 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10205 Fix crash on loaded shlibs without loaded exec_bfd.
10206 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10207 (set_section_command): Replace exec_bfd by p->bfd.
10209 2012-02-10 Tom Tromey <tromey@redhat.com>
10211 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10212 when we have a C++ qualified name.
10214 2012-02-10 Pedro Alves <palves@redhat.com>
10216 * inferior.c (inferior_pid_to_str): New.
10217 (print_inferior, inferior_command): Use it.
10219 2012-02-10 Pedro Alves <palves@redhat.com>
10221 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10223 * configure: Regenerate.
10225 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10227 * linespec.c (decode_line_internal): Fix comment correctness.
10229 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10232 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10233 * amd64bsd-nat.c: Add support for debug registers (adapted from
10235 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10236 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10237 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10238 (amd64bsd_dr_get_control): New functions.
10239 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10240 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10241 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10242 watchpoints initialization.
10243 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10245 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10247 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10249 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10251 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10253 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10255 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10257 * language.h (symbol_name_cmp_ftype): Renames
10258 symbol_name_match_p_ftype.
10259 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10260 la_get_symbol_name_match_p.
10261 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10262 ada_get_symbol_name_match_p. Update comment.
10263 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10264 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10265 Renames symbol_name_match_p. Update field type.
10266 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10267 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10268 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10269 "la_get_symbol_name_cmp" in comments.
10270 * language.c: Likewise.
10272 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10274 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10276 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10277 (amd64_sol2_gregset32_reg_offs): Likewise.
10279 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10281 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10282 of the returned BFD is allocated by GDB.
10284 2012-02-07 Tom Tromey <tromey@redhat.com>
10287 * python/python-internal.h (frame_object_type): Declare.
10288 * python/py-symbol.c (sympy_needs_frame): New function.
10289 (sympy_value): New function.
10290 (symbol_object_getset): Add "needs_frame".
10291 (symbol_object_methods): Add "value".
10292 * python/py-frame.c (frame_object_type): No longer static.
10294 2012-02-07 Tom Tromey <tromey@redhat.com>
10297 * python/py-symbol.c (sympy_line): New function.
10298 (symbol_object_getset): Add "line".
10300 2012-02-07 Tom Tromey <tromey@redhat.com>
10302 * charset.c (find_charset_names): Check 'in' against NULL.
10304 2012-02-06 Doug Evans <dje@google.com>
10306 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10307 and fields.name members from char * to const char *. All uses updated.
10308 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10309 from char * to const char *. All uses updated.
10310 (type_name_no_tag): Update.
10311 (lookup_unsigned_typename, lookup_signed_typename): Update.
10312 * gdbtypes.c (type_name_no_tag): Change result type
10313 from char * to const char *. All callers updated.
10314 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10315 name parameter from char * to const char *.
10316 * symtab.h (struct cplus_specific): Change type of demangled_name
10317 member from char * to const char *. All uses updated.
10318 (struct general_symbol_info): Change type of name and
10319 mangled_lang.demangled_name members from char * to const char *.
10321 (symbol_get_demangled_name, symbol_natural_name): Update.
10322 (symbol_demangled_name, symbol_search_name): Update.
10323 * symtab.c (symbol_get_demangled_name): Change result type
10324 from char * to const char *. All callers updated.
10325 (symbol_natural_name, symbol_demangled_name): Ditto.
10326 (symbol_search_name): Ditto.
10327 (completion_list_add_name): Change type of symname,sym_text,
10328 text,word parameters from char * to const char *.
10329 (completion_list_objc_symbol): Change type of sym_text,
10330 text,word parameters from char * to const char *.
10331 * ada-lang.c (find_struct_field): Change type of name parameter
10332 from char * to const char *.
10333 (encoded_ordered_before): Similarly for N0,N1 parameters.
10334 (old_renaming_is_invisible): Similarly for function_name parameter.
10335 (ada_type_name): Change result type from char * to const char *.
10336 All callers updated.
10337 * ada-lang.h (ada_type_name): Update.
10338 * buildsym.c (hashname): Change type of name parameter
10339 from char * to const char *.
10340 * buildsym.h (hashname): Update.
10341 * dbxread.c (end_psymtab): Change type of include_list parameter
10342 from char ** to const char **.
10343 * dwarf2read.c (determine_prefix): Change result type
10344 from char * to const char *. All callers updated.
10345 * f-lang.c (find_common_for_function): Change type of name, funcname
10346 parameters from char * to const char *.
10347 * f-lang.c (find_common_for_function): Update.
10348 * f-valprint.c (list_all_visible_commons): Change type of funcname
10349 parameters from char * to const char *.
10350 * gdbarch.sh (static_transform_name): Change type of name parameter
10351 and result from char * to const char *.
10352 * gdbarch.c: Regenerate.
10353 * gdbarch.h: Regenerate.
10354 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10355 of name parameter from char * to const char *.
10356 * jv-lang.c (java_primitive_type_from_name): Ditto.
10357 (java_demangled_signature_length): Similarly for signature parameter.
10358 (java_demangled_signature_copy): Ditto.
10359 (java_demangle_type_signature): Ditto.
10360 * jv-lang.h (java_primitive_type_from_name): Update.
10361 (java_demangle_type_signature): Update.
10362 * objc-lang.c (specialcmp): Change type of a,b parameters
10363 from char * to const char *.
10364 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10365 from char * to const char *. All callers updated.
10366 * p-lang.h (is_pascal_string_type): Update.
10367 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10368 of name parameter from char * to const char *.
10369 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10370 * utils.c (fprintf_symbol_filtered): Ditto.
10371 * defs.h (fprintf_symbol_filtered): Update.
10372 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10373 * stabsread.h (end_psymtab): Update.
10374 * stack.c (find_frame_funname): Change type of funname parameter
10375 from char ** to const char **.
10376 * stack.h (find_frame_funname): Update.
10377 * typeprint.c (type_print): Change type of varstring parameter
10378 from char * to const char *.
10379 * value.h (type_print): Update.
10380 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10381 from char * to const char *. All callers updated.
10382 (xcoff_end_psymtab): Change type of include_list parameter
10383 from char ** to const char **. All callers updated.
10384 (swap_sym): Similarly for name parameter. All callers updated.
10385 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10387 (process_coff_symbol): Use xstrdup.
10388 * stabsread.c (stabs_method_name_from_physname): Renamed from
10389 update_method_name_from_physname. Change result type from void
10390 to char *. All callers updated.
10391 (read_member_functions): In has_destructor case, store name in objfile
10392 obstack instead of malloc space. In !has_stub case, fix mem leak.
10394 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10396 * configure: Rebuild.
10397 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10400 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10402 * configure.tgt (rl78-*-elf): New target.
10403 * rl78-tdep.c: New file.
10405 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10407 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10408 and continue the loop. Add QUIT statement.
10410 2012-02-03 Tom Tromey <tromey@redhat.com>
10413 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10414 bfd_lookup_symbol_from_symtab.
10415 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10416 gdb_bfd_lookup_symbol_from_symtab.
10418 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10420 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10421 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10422 symbol. Add assertion that sym2 is never NULL.
10424 2012-02-02 Doug Evans <dje@google.com>
10426 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10427 "name" parameter to const char ** from char **. All callers updated.
10428 (find_pc_partial_function): Ditto.
10429 (cache_pc_function_name): Change type to const char * from char *.
10430 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10431 (find_pc_partial_function): Update.
10432 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10433 type of "name" parameter to const char * from char *.
10435 * arch-utils.c (generic_in_solib_return_trampoline): Change
10436 type of "name" parameter to const char * from char *.
10437 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10438 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10439 type of "name" parameter to const char * from char *.
10440 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10441 * gdbarch.c: Regenerate.
10442 * gdbarch.h: Regenerate.
10443 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10444 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10445 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10446 type of "name" parameter to const char * from char *.
10447 * skip.c (skip_function_pc): Ditto.
10448 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10449 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10450 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10451 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10452 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10453 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10454 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10455 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10456 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10458 2012-02-02 Pedro Alves <palves@redhat.com>
10460 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10461 the current inferior has no execution. Make sure the current
10462 remote process matches gdb's current inferior.
10464 2012-02-02 Tom Tromey <tromey@redhat.com>
10467 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10470 2012-02-02 Tom Tromey <tromey@redhat.com>
10473 * symtab.c (lookup_language_this): Set block_found.
10475 2012-02-01 Tom Tromey <tromey@redhat.com>
10478 * jit.c (struct jit_inferior_data): Rewrite.
10479 (struct jit_objfile_data): New.
10480 (get_jit_objfile_data): New function.
10481 (add_objfile_entry): Update.
10482 (jit_read_descriptor): Return int. Replace descriptor_addr
10483 argument with inf_data. Update. Don't call error.
10484 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10486 (jit_inferior_init): Don't look up descriptor. Don't call error.
10487 (jit_reset_inferior_data_and_breakpoints)
10488 (jit_inferior_created_observer): Remove.
10489 (jit_inferior_exit_hook): Update.
10490 (jit_executable_changed_observer): Remove.
10491 (jit_event_handler): Update.
10492 (free_objfile_data): Reset inferior data if needed.
10493 (_initialize_jit): Update.
10495 2012-02-01 Tom Tromey <tromey@redhat.com>
10497 * jit.c (bfd_open_from_target_memory): Move higher in file.
10499 2012-02-01 Tristan Gingold <gingold@adacore.com>
10501 * libunwind-frame.c (libunwind_load): Display message if dlopen
10504 2012-02-01 Gary Benson <gbenson@redhat.com>
10506 * symtab.h (symbol_found_callback_ftype): New typedef.
10507 (iterate_over_symbols): Use the above.
10508 * symtab.c (iterate_over_symbols): Likewise.
10509 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10510 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10511 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10512 (iterate_name_matcher): Document return values.
10513 (collect_one_symbol): Likewise.
10514 (collect_function_symbols): Likewise.
10515 (collect_symbols): Likewise.
10517 2012-02-01 Tom Tromey <tromey@redhat.com>
10519 * ada-lang.c (resolve_subexp): Update.
10520 (ada_lookup_symbol_list): Add 'full_search' argument.
10521 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10522 ada_lookup_symbol_list.
10523 (ada_lookup_encoded_symbol): Update.
10524 (get_var_value): Update.
10525 * ada-exp.y (block_lookup): Update.
10526 (write_var_or_type): Update.
10527 (write_name_assoc): Update.
10528 * ada-lang.h (ada_lookup_symbol_list): Update.
10530 2012-01-31 Tom Tromey <tromey@redhat.com>
10532 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10535 2012-01-31 Doug Evans <dje@google.com>
10537 * symtab.h: Remove outdated comment.
10538 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10540 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10542 Fix build error in Darwin port.
10543 * i386-darwin-nat.c: Include i386-nat.h.
10545 2012-01-30 Tom Tromey <tromey@redhat.com>
10547 PR breakpoints/13568:
10548 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10549 argument. Check for recursive includes.
10550 (dwarf_decode_macros): Create an include hash.
10552 2012-01-30 Michael Eager <eager@eagercon.com>
10554 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10555 * ppc-linux-tdep.c: Include glibc-tdep.h.
10556 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10557 (powerpc_linux_in_plt_stub): New function.
10558 (powerpc_linux_in_dynsym_resolve_code): New function.
10559 (ppc_skip_trampoline_code): New function.
10560 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10561 Use glibc_skip_solib_resolver.
10563 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10565 Code cleanup: Make 1440 bytes of data segment read-only.
10566 * arch-utils.c (endian_enum): Make it const char *const [].
10567 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10569 * breakpoint.c (always_inserted_enums): Likewise.
10570 * cli/cli-cmds.c (script_ext_enums): Likewise.
10571 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10572 enumlist parameter const char *const *.
10573 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10574 const char *const *.
10575 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10576 parameter const char *const *.
10577 * cris-tdep.c (cris_modes): Make it const char *const [].
10578 * filesystem.c (target_file_system_kinds): Likewise.
10579 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10580 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10581 (can_use_displaced_stepping_enum, scheduler_enums)
10582 (exec_direction_names): Likewise.
10583 * language.c (_initialize_language): Make the type_or_range_names and
10584 case_sensitive_names variables const char *const [].
10585 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10586 * python/python.c (python_excp_enums): Likewise.
10587 * remote.c (interrupt_sequence_modes): Likewise.
10588 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10589 * serial.c (logbase_enums): Likewise.
10590 * sh-tdep.c (sh_cc_enum): Likewise.
10591 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10593 * symtab.c (multiple_symbols_modes): Likewise.
10594 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10596 * utils.c (internal_problem_modes): Likewise.
10598 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10600 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10601 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10604 2012-01-27 Doug Evans <dje@google.com>
10606 * configure.ac (with_python): Fix absolute path handling for win32.
10607 * configure: Regenerate.
10609 2012-01-26 Doug Evans <dje@google.com>
10611 * symtab.c: Whitespace cleanup, no code changes.
10613 * symtab.c (lookup_symbol_in_language): Improve comment.
10614 (lookup_symbol_aux): Fix comment.
10616 * psymtab.c (add_psymbol_to_list): Result is now "void".
10617 * psympriv.h (add_psymbol_to_list): Update.
10619 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10621 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10623 Do not open script filenames twice.
10624 * cli/cli-cmds.c (source_script_from_stream): Pass to
10625 source_python_script also STREAM.
10626 * python/py-auto-load.c (source_section_scripts): Pass to
10627 source_python_script_for_objfile also STREAM.
10628 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10630 * python/python-internal.h (source_python_script_for_objfile): New
10631 parameter file, rename parameter file to filename.
10632 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10633 instead if !_WIN32. Update the function comment.
10634 (source_python_script, source_python_script_for_objfile)
10635 (source_python_script): New parameter file, rename parameter file to
10636 filename. Pass FILENAME to python_run_simple_file.
10637 * python/python.h (source_python_script): New parameter file, rename
10638 parameter file to filename.
10640 2012-01-26 Pedro Alves <palves@redhat.com>
10642 * corelow.c (core_has_fake_pid): Delete.
10643 (core_close): Delete references to `core_has_fake_pid'.
10644 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10645 (core_open): Delete references to `core_has_fake_pid'.
10646 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10647 the removed global.
10649 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10651 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10652 Remove language parameter from name_matcher. Adjust the comment.
10653 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10654 Remove language parameter.
10655 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10656 * linespec.c (iterate_name_matcher): Likewise.
10657 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10658 name_matcher. Adjust call accordingly.
10659 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10660 (maintenance_check_symtabs): Adjust type of parameter "fun".
10661 * psymtab.h (maintenance_check_symtabs): Likewise.
10663 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10665 * language.h (symbol_name_match_p_ftype): New typedef.
10666 (struct language_defn): Replace field la_symbol_name_compare
10667 by la_get_symbol_name_match_p.
10668 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10669 (ada_language_defn): Use it.
10670 * linespec.c (struct symbol_matcher_data): New type.
10671 (iterate_name_matcher): Rewrite.
10672 (iterate_over_all_matching_symtabs): Pass a pointer to
10673 a symbol_matcher_data struct to expand_symtabs_matching
10674 instead of just the lookup name.
10675 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10676 opencl-lang.c, p-lang.c, language.c: Delete field
10677 la_symbol_name_compare, and replace by NULL for new field
10678 la_get_symbol_name_match_p.
10679 * symfile.h (struct quick_symbol_functions): Update comment.
10681 2012-01-25 Tom Tromey <tromey@redhat.com>
10683 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10686 2012-01-24 Tom Tromey <tromey@redhat.com>
10689 * solib.c (update_solib_list): Update the program space's
10690 added_solibs and deleted_solibs fields.
10691 * progspace.h (struct program_space) <added_solibs,
10692 deleted_solibs>: New fields.
10693 (clear_program_space_solib_cache): Declare.
10694 * progspace.c (release_program_space): Call
10695 clear_program_space_solib_cache.
10696 (clear_program_space_solib_cache): New function.
10697 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10698 bpstat_stop_status. Use handle_solib_event.
10699 * breakpoint.c: Include gdb_regex.h.
10700 (print_solib_event): New function.
10701 (bpstat_print): Use print_solib_event.
10702 (bpstat_stop_status): Add special case for bp_shlib_event.
10703 (handle_solib_event): New function.
10704 (bpstat_what): Use handle_solib_event.
10705 (struct solib_catchpoint): New.
10706 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10707 (breakpoint_hit_catch_solib, check_status_catch_solib)
10708 (print_it_catch_solib, print_one_catch_solib)
10709 (print_mention_catch_solib, print_recreate_catch_solib): New
10711 (catch_solib_breakpoint_ops): New global.
10712 (catch_load_or_unload, catch_load_command_1)
10713 (catch_unload_command_1): New functions.
10714 (internal_bkpt_check_status): Add special case for
10716 (internal_bkpt_print_it): Use print_solib_event.
10717 (initialize_breakpoint_ops): Initialize
10718 catch_solib_breakpoint_ops.
10719 (_initialize_breakpoint): Register "catch load" and "catch
10721 * breakpoint.h (handle_solib_event): Declare.
10722 * NEWS: Add entry for "catch load" and "catch unload".
10724 2012-01-24 Tom Tromey <tromey@redhat.com>
10726 * ada-lang.c: Include gdb_vecs.h.
10727 * charset.c: Include gdb_vecs.h.
10728 * tracepoint.h: Include gdb_vecs.h.
10729 * gdb_vecs.h: New file.
10731 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10733 * breakpoint.c (breakpoint_hit_catch_fork)
10734 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10735 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10736 * infrun.c (inferior_has_forked, inferior_has_vforked)
10737 (inferior_has_execd, inferior_has_called_syscall): Delete.
10738 (handle_syscall_event): Get syscall_number from the execution
10739 control state's wait status.
10740 (wait_for_inferior): Don't clear syscall_number.
10742 2012-01-24 Pedro Alves <palves@redhat.com>
10744 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10745 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10746 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10747 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10749 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10750 false for events other than TARGET_SIGNAL_TRAP.
10751 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10752 Add `ws' parameter.
10753 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10754 events other than TARGET_SIGNAL_TRAP.
10755 (tracepoint_breakpoint_hit): Add `ws' parameter.
10756 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10758 (bpstat_stop_status): Same.
10759 (pc_at_non_inline_function): Same.
10760 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10761 to pass the current event's waitstatus to bpstat_stop_status
10762 and pc_at_non_inline_function.
10764 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10767 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10768 Update the function comment for it.
10769 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10770 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10773 2012-01-24 Pedro Alves <palves@redhat.com>
10775 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10776 outside `bs->stop' block.
10777 (bpstat_what): Rework bp_shlib_event handling.
10778 (internal_bkpt_check_status): If the breakpoint is a
10779 bp_shlib_event, then set bs->stop and bs->print if
10780 stop_on_solib_events is set.
10782 2012-01-24 Gary Benson <gbenson@redhat.com>
10784 Delete #if 0'd out code.
10785 * stack.c (print_frame_label_vars): Remove.
10786 (catch_info): Likewise.
10787 (_initialize_stack): Remove "info catch" command.
10788 * NEWS: Mention the above.
10790 2012-01-24 Pedro Alves <palves@redhat.com>
10792 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10794 (remote_notice_new_inferior): If the remote end doesn't support
10795 the multiprocess extensions, then the PID is fake.
10796 (add_current_inferior_and_thread): New.
10797 (remote_start_remote): Use it.
10798 (extended_remote_attach_1): Adjust.
10799 (extended_remote_create_inferior_1): Use
10800 add_current_inferior_and_thread.
10802 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10804 Fix watchpoints to be specific for each inferior.
10805 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10806 current_program_space.
10807 * i386-nat.c (i386_inferior_data_cleanup): New.
10808 (i386_inferior_data_get): Replace variable inf_data_local by an
10809 inferior_data call.
10810 (i386_use_watchpoints): Initialize i386_inferior_data.
10811 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10812 specific iterate_over_lwps.
10814 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10816 Fix watchpoints across inferior fork.
10817 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10818 comment for linux_nat_iterate_watchpoint_lwps.
10819 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10820 linux_nat_iterate_watchpoint_lwps.
10821 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10822 * i386-linux-nat.c (update_debug_registers_callback): Update the
10823 comment for linux_nat_iterate_watchpoint_lwps.
10824 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10825 linux_nat_iterate_watchpoint_lwps.
10826 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10827 * i386-nat.c: Include inferior.h.
10828 (dr_mirror): Remove.
10829 (i386_inferior_data, struct i386_inferior_data)
10830 (i386_inferior_data_get): New.
10831 (i386_debug_reg_state): Use i386_inferior_data_get.
10832 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10833 (i386_insert_watchpoint, i386_remove_watchpoint)
10834 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10835 (i386_remove_hw_breakpoint): New variable state, use
10836 i386_debug_reg_state instead of DR_MIRROR.
10837 * linux-nat.c (delete_lwp): New declaration.
10838 (num_lwps): Move here from downwards.
10839 (delete_lwp_cleanup): New.
10840 (linux_child_follow_fork): Create new child_lp, call
10841 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10843 (num_lwps): Move upwards.
10844 (linux_nat_iterate_watchpoint_lwps): New.
10845 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10846 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10848 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10852 2012-01-23 Pedro Alves <palves@redhat.com>
10854 * top.c (caution): Rename to ...
10855 (confirm): ... this.
10856 (show_caution): Rename to ...
10857 (show_confirm): ... this.
10858 (quit_cover): Adjust.
10859 (init_main): Adjust.
10860 * top.h (caution): Rename to ...
10861 (confirm): ... this.
10862 * utils.c (internal_vproblem, defaulted_query): Adjust.
10864 2012-01-23 Pedro Alves <palves@redhat.com>
10866 * top.c (caution): Update comment.
10867 (execute_command): Don't consider the current value of `caution'.
10869 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10871 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10873 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10875 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10876 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10877 * target.c (target_fileio_pwrite): Remove buffer address from
10879 (target_fileio_pread): Likewise.
10881 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10883 * NEWS: Document remote "info proc" and "generate-core-file".
10885 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10887 * gdbarch.sh (find_memory_regions): New callback.
10888 * gdbarch.c, gdbarch.h: Regenerate.
10890 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10891 callback before falling back to target method.
10893 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10894 (linux_target_install_ops): No longer install it.
10896 * linux-tdep.c (linux_find_memory_regions): New function.
10897 (linux_init_abi): Install it.
10899 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10901 * gdbarch.sh (make_corefile_notes): New architecture callback.
10902 * gdbarch.c: Regenerate.
10903 * gdbarch.h: Likewise.
10905 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10906 before target_make_corefile_notes. If NULL is returned, the
10907 target does not support core file generation.
10909 * linux-nat.c: Include "linux-tdep.h".
10910 (find_signalled_thread, find_stop_signal): Remove.
10911 (linux_nat_do_thread_registers): Likewise.
10912 (struct linux_nat_corefile_thread_data): Likewise.
10913 (linux_nat_corefile_thread_callback): Likewise.
10914 (iterate_over_spus): Likewise.
10915 (struct linux_spu_corefile_data): Likewise.
10916 (linux_spu_corefile_callback): Likewise.
10917 (linux_spu_make_corefile_notes): Likewise.
10918 (linux_nat_collect_thread_registers): New function.
10919 (linux_nat_make_corefile_notes): Replace contents by call to
10920 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10921 as native-only callback.
10923 * linux-tdep.h: Include "bfd.h".
10924 (struct regcache): Add forward declaration.
10925 (linux_collect_thread_registers_ftype): New typedef.
10926 (linux_make_corefile_notes): Add prototype.
10927 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10928 "regset.h", and "elf-bfd.h".
10929 (find_signalled_thread, find_stop_signal): New functions.
10930 (linux_spu_make_corefile_notes): Likewise.
10931 (linux_collect_thread_registers): Likewise.
10932 (struct linux_corefile_thread_data): New data structure.
10933 (linux_corefile_thread_callback): New funcion.
10934 (linux_make_corefile_notes): Likewise.
10935 (linux_make_corefile_notes_1): Likewise.
10936 (linux_init_abi): Install it.
10938 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10940 * gdbarch.sh (info_proc): New callback.
10941 * gdbarch.c, gdbarch.h: Regenerate.
10943 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10944 before falling back to the target info_proc callback.
10946 * linux-nat.c: Do not include "cli/cli-utils.h".
10947 (linux_nat_info_proc): Remove.
10948 (linux_target_install_ops): No longer install it.
10950 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10951 (read_mapping): New function.
10952 (linux_info_proc): Likewise.
10953 (linux_init_abi): Install it.
10955 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10957 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10958 * infcmd.c: (info_proc_cmd_1): New function.
10959 (info_proc_cmd): New function, moved here from equivalent routine
10960 orignally in linux-nat.c.
10961 (info_proc_cmd_mappings): Likewise.
10962 (info_proc_cmd_stat): Likewise.
10963 (info_proc_cmd_status): Likewise.
10964 (info_proc_cmd_cwd): Likewise.
10965 (info_proc_cmd_cmdline): Likewise.
10966 (info_proc_cmd_exe): Likewise.
10967 (info_proc_cmd_all): Likewise.
10968 (_initialize_infcmd): Install "info proc" command and subcommands.
10970 * target.h (struct target_ops): Add to_info_proc.
10971 (target_info_proc): Add prototype.
10972 * target.c (target_info_proc): New function.
10974 * procfs.c (procfs_info_proc): Add prototype.
10975 (info_proc_cmd): Rename into ...
10976 (procfs_info_proc): ... this. Update argument types as appropriate
10977 for a to_info_proc implementation. Handle "what" argument.
10978 (procfs_target): Install procfs_info_proc.
10979 (_initialize_procfs): No longer install "info proc" command.
10981 * linux-nat.c: (enum info_proc_what): Remove.
10982 (linux_nat_info_proc_cmd_1): Rename into ...
10983 (linux_nat_info_proc): ... this. Update argument types as appropriate
10984 for a to_info_proc implementation.
10985 (linux_nat_info_proc_cmd): Remove.
10986 (linux_nat_info_proc_cmd_mappings): Likewise.
10987 (linux_nat_info_proc_cmd_stat): Likewise.
10988 (linux_nat_info_proc_cmd_status): Likewise.
10989 (linux_nat_info_proc_cmd_cwd): Likewise.
10990 (linux_nat_info_proc_cmd_cmdline): Likewise.
10991 (linux_nat_info_proc_cmd_exe): Likewise.
10992 (linux_nat_info_proc_cmd_all): Likewise.
10993 (linux_target_install_ops): Install linux_nat_info_proc.
10994 (_initialize_linux_nat): No longer install "info proc" command
10997 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10999 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11000 * config.in, configure: Regenerate.
11002 * target.h (struct target_ops): Add to_fileio_readlink.
11003 (target_fileio_readlink): Add prototype.
11004 * target.c (target_fileio_readlink): New function.
11006 * inf-child.c: Conditionally include <sys/param.h>.
11007 (inf_child_fileio_readlink): New function.
11008 (inf_child_target): Install it.
11010 * remote.c (PACKET_vFile_readlink): New enum value.
11011 (remote_hostio_readlink): New function.
11012 (init_remote_ops): Install it.
11013 (_initialize_remote): Handle vFile:readlink packet type.
11015 2012-01-20 Pedro Alves <palves@redhat.com>
11016 Ulrich Weigand <ulrich.weigand@linaro.org>
11018 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11019 * config.in, configure: Regenerate.
11021 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11022 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11023 (target_fileio_open): Add prototype.
11024 (target_fileio_pwrite): Likewise.
11025 (target_fileio_pread): Likewise.
11026 (target_fileio_close): Likewise.
11027 (target_fileio_unlink): Likewise.
11028 (target_fileio_read_alloc): Likewise.
11029 (target_fileio_read_stralloc): Likewise.
11031 * target.c: Include "gdb/fileio.h".
11032 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11033 (default_fileio_target): New function.
11034 (target_fileio_open): Likewise.
11035 (target_fileio_pwrite): Likewise.
11036 (target_fileio_pread): Likewise.
11037 (target_fileio_close): Likewise.
11038 (target_fileio_unlink): Likewise.
11039 (target_fileio_close_cleanup): Likewise.
11040 (target_fileio_read_alloc_1): Likewise.
11041 (target_fileio_read_alloc): Likewise.
11042 (target_fileio_read_stralloc): Likewise.
11044 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11045 <fcntl.h>, and <unistd.h>.
11046 (inf_child_fileio_open_flags_to_host): New function.
11047 (inf_child_errno_to_fileio_error): Likewise.
11048 (inf_child_fileio_open): Likewise.
11049 (inf_child_fileio_pwrite): Likewise.
11050 (inf_child_fileio_pread): Likewise.
11051 (inf_child_fileio_close): Likewise.
11052 (inf_child_fileio_unlink): Likewise.
11053 (inf_child_target): Install to_fileio routines.
11055 * remote.c (init_remote_ops): Install to_fileio routines.
11057 2012-01-20 Pedro Alves <palves@redhat.com>
11058 Ulrich Weigand <ulrich.weigand@linaro.org>
11060 * remote.c (remote_multi_process_p): Only check for multi-process
11061 protocol feature, do not check for extended protocol.
11062 (remote_supports_multi_process): Check for extended protocol here.
11063 (set_general_process): Likewise.
11064 (extended_remote_kill): Likewise.
11065 (remote_pid_to_str): Likewise.
11066 (remote_query_supported): Always query multiprocess mode.
11068 2012-01-20 Pedro Alves <palves@redhat.com>
11069 Ulrich Weigand <ulrich.weigand@linaro.org>
11071 * inferior.h (struct inferior): Add fake_pid_p.
11072 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11073 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11074 magic_null_ptid since the remote side doesn't provide a real PID.
11076 2012-01-19 Tom Tromey <tromey@redhat.com>
11078 * NEWS: Combine the two Python sections.
11080 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11082 * target.h (target_close): Update comment on the target's unpush state.
11084 2012-01-19 Pedro Alves <palves@redhat.com>
11086 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11087 linux_nat_async directly instead of going through the target
11089 * target.c (unpush_target): Close target after unpushing it, not
11092 2012-01-19 Gary Benson <gbenson@redhat.com>
11094 * mdebugread.c (sort_blocks): Replace integer constants with ones
11095 derived from FIRST_LOCAL_BLOCK.
11097 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11098 Jan Kratochvil <jan.kratochvil@redhat.com>
11101 * symfile.c (find_separate_debug_file): New function.
11102 (terminate_after_last_dir_separator): Likewise.
11103 (find_separate_debug_file_by_debuglink): Also try realpath.
11104 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11105 * configure: Regenerate.
11106 * config.in: Regenerate.
11108 2012-01-18 Doug Evans <dje@google.com>
11110 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11111 (main.o): Remove rule.
11112 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11113 (--with-sysroot): Rewrite.
11114 * configure: Regenerate.
11115 * config.in: Regenerate.
11117 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11119 * parse.c (initialize_expout): New function.
11120 (reallocate_expout): Likewise.
11121 (parse_exp_in_context): Use `initialize_expout' and
11122 `reallocate_expout' when appropriate.
11124 2012-01-18 Pedro Alves <palves@redhat.com>
11126 * record.c (struct record_breakpoint, record_breakpoint_p)
11127 (record_breakpoints): New.
11128 (record_insert_breakpoint, record_remove_breakpoint): Manage
11129 record breakpoints list. Only remove breakpoints from the
11130 inferior if they had been inserted there in the first place.
11132 2012-01-17 Doug Evans <dje@google.com>
11134 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11135 if we know we don't have a file name to look for.
11137 2012-01-17 Pedro Alves <palves@redhat.com>
11139 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11140 the frame's stop reason is UNWIND_UNAVAILABLE.
11142 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11144 Fix compilation error.
11145 * m2-exp.y (yyerror): Use ANSI C prototype.
11147 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11149 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11150 (growbuf_by_size): Likewise.
11151 (yyerror): Likewise.
11152 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11153 (modblock): Remove variable (was #if 0'ed).
11154 (parse_number): Convert prototype from K&R to ANSI C.
11155 (yyerror): Likewise.
11156 * objc-exp.y (parse_number): Likewise.
11157 (yyerror): Likewise.
11158 (yylex): Remove #if 0'ed code.
11159 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11160 (yyerror): Likewise.
11162 2012-01-16 Tom Tromey <tromey@redhat.com>
11165 * symtab.h (compare_filenames_for_search): Declare.
11166 * symtab.c (compare_filenames_for_search): New function.
11167 (iterate_over_some_symtabs): Use it.
11168 * symfile.h (struct quick_symbol_functions)
11169 <map_symtabs_matching_filename>: Change spec.
11170 * psymtab.c (partial_map_symtabs_matching_filename): Use
11171 compare_filenames_for_search. Update for new spec.
11172 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11173 compare_filenames_for_search. Update for new spec.
11174 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11176 2012-01-16 Tom Tromey <tromey@redhat.com>
11179 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11180 (struct main_type) <flag_flag_enum>: New field.
11181 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11182 * NEWS: Add entries.
11183 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11185 * python/lib/gdb/printing.py (_EnumInstance): New class.
11186 (FlagEnumerationPrinter): Likewise.
11188 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11190 * breakpoint.c (create_sals_from_address_default): New function.
11191 (create_breakpoints_sal_default): Likewise.
11192 (decode_linespec_default): Likewise.
11193 (is_marker_spec): Removed.
11194 (strace_marker_p): New function.
11195 (init_breakpoint_sal): Using `strace_marker_p' instead of
11197 (create_breakpoint): Call method `create_sals_from_address' from
11198 breakpoint_ops, replacing code that created SALs conditionally
11199 on the type of the breakpoint. Call method `create_breakpoints_sal',
11200 replacing code that created breakpoints conditionally on the type
11202 (base_breakpoint_create_sals_from_address): New function.
11203 (base_breakpoint_create_breakpoints_sal): Likewise.
11204 (base_breakpoint_decode_linespec): Likewise.
11205 (base_breakpoint_ops): Add methods
11206 `base_breakpoint_create_sals_from_address',
11207 `base_breakpoint_create_breakpoints_sal' and
11208 `base_breakpoint_decode_linespec'.
11209 (bkpt_create_sals_from_address): New function.
11210 (bkpt_create_breakpoints_sal): Likewise.
11211 (bkpt_decode_linespec): Likewise.
11212 (tracepoint_create_sals_from_address): Likewise.
11213 (tracepoint_create_breakpoints_sal): Likewise.
11214 (tracepoint_decode_linespec): Likewise.
11215 (strace_marker_create_sals_from_address): Likewise.
11216 (strace_marker_create_breakpoints_sal): Likewise.
11217 (strace_marker_decode_linespec): Likewise.
11218 (strace_marker_breakpoint_ops): New variable.
11219 (addr_string_to_sals): Remove `marker_spec'. Call method
11220 `decode_linespec' from breakpoint_ops, replacing code that decoded
11221 an address string into a SAL. Use `strace_marker_p' instead of
11223 (strace_command): Decide whether we are dealing with a static
11224 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11225 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11226 * breakpoint.h (linespec_result, linespec_sals): New forward
11228 (breakpoint_ops) <create_sals_from_address>,
11229 <create_breakpoints_sal>, <decode_linespec>: New methods.
11231 2012-01-14 Doug Evans <dje@google.com>
11233 * NEWS: Update text for "maint set python print-stack".
11234 It is deprecated in gdb 7.4 and deleted in 7.5.
11236 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11238 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11239 including curses.h.
11241 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11243 * configure: Regenerate.
11244 * config.in: Regenerate.
11246 2012-01-12 Keith Seitz <keiths@redhat.com>
11249 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11250 (ANONYMOUS_UNION_NAME): Define.
11251 (is_path_expr_parent): New function.
11252 (get_path_expr_parent): New function.
11253 (is_anonymous_child): New function.
11254 (create_child_with_value): If the child is anonymous and without
11255 a name, assign an object name to it.
11256 (c_describe_child): Use get_path_expr_parent to determine
11257 the parent expression.
11258 If there field represents an anonymous struct or union and
11259 has no name, set an appropriate display name and expression.
11260 (cplus_describe_child): Likewise.
11262 2012-01-12 Pedro Alves <palves@redhat.com>
11264 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11265 available when %ebp is found to be zero (outermost).
11267 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11269 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11270 an internal gdb_static_assert.
11271 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11273 2012-01-11 Tom Tromey <tromey@redhat.com>
11276 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11277 catch" and "catch throw".
11279 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11281 * blockframe.c (block_innermost_frame): Start search from selected
11282 frame, if present, or otherwise the current frame.
11284 * c-exp.y (variable): Update innermost_block for
11285 'block COLONCOLON NAME' clause.
11286 * m2-exp.y (variable): Ditto.
11287 * objc-exp.y (variable): Ditto.
11289 2012-01-10 Tom Tromey <tromey@redhat.com>
11292 * python/python.c (finish_python_initialization): Set sys.argv.
11294 2012-01-10 Doug Evans <dje@google.com>
11296 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11297 "want_line_info". All callers updated.
11298 (dwarf_decode_lines_1): New function.
11299 (handle_DW_AT_stmt_list): Add function comment.
11300 New arg "want_line_info". All callers updated.
11301 (read_file_scope,read_type_unit_scope): Move comment from
11302 handle_DW_AT_stmt_list to here.
11304 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11306 Fix regression after libiberty/ update for GCC PR 6057 and others.
11307 * c-exp.y (operator) <OPERATOR DELETE>
11308 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11309 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11310 (make_builtin_type, make_name): New variable i, add gdb_assert.
11311 (operator) <OPERATOR NEW>: Update ARGS to 3.
11312 (operator) <OPERATOR DELETE>: Add trailing space.
11313 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11314 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11315 * cp-support.c (cp_canonicalize_string): Check NULL from
11316 cp_comp_to_string, call warning and return.
11318 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11320 Fix duplicate .o files after omitting libbfd.a.
11321 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11322 (SFILES): Add corelow.c.
11323 (COMMON_OBS): Add corelow.o.
11324 (ALLDEPFILES): Remove corelow.c.
11325 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11326 * config/alpha/alpha-osf3.mh: Likewise.
11327 * config/alpha/fbsd.mh: Likewise.
11328 * config/arm/nbsdaout.mh: Likewise.
11329 * config/arm/nbsdelf.mh: Likewise.
11330 * config/i386/i386gnu.mh: Likewise.
11331 * config/ia64/hpux.mh: Likewise.
11332 * config/ia64/linux.mh: Likewise.
11333 * config/m32r/linux.mh: Likewise.
11334 * config/m68k/linux.mh: Likewise.
11335 * config/mips/irix5.mh: Likewise.
11336 * config/mips/irix6.mh: Likewise.
11337 * config/pa/hpux.mh: Likewise.
11338 * config/pa/linux.mh: Likewise.
11339 * config/powerpc/aix.mh: Likewise.
11340 * config/sparc/linux.mh: Likewise.
11341 * config/sparc/linux64.mh: Likewise.
11342 * config/sparc/sol2.mh: Likewise.
11343 * config/vax/vax.mh: Likewise.
11344 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11345 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11346 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11347 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11348 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11349 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11350 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11351 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11352 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11353 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11354 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11355 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11356 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11357 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11358 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11359 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11360 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11361 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11362 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11363 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11364 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11365 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11366 corelow.o from gdb_target_obs.
11367 * corefile.c (core_target): Update the comment on NULL value.
11368 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11369 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11370 MATCHES. Drop YUMMY set on NULL.
11371 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11372 reclaim CORE_DATA if it is already NULL.
11374 2012-01-09 Doug Evans <dje@google.com>
11376 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11377 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11379 2012-01-09 Keith Seitz <keiths@redhat.com>
11381 * breakpoint.c (wrapper.h): Don't include.
11383 2012-01-09 Keith Seitz <keiths@redhat.com>
11385 * Makefile.in (SFILES): Remove wrapper.c.
11386 (HFILES_NO_SRCDIR): Remove wrapper.h.
11387 (COMMON_OBS): Remove wrapper.o.
11388 * cli/cli-interp.c: Don't inlude wrapper.h.
11389 * corelow.c: Likewise.
11390 (core_open): Replace gdb_target_find_new_threads with
11391 TRY_CATCH around target_find_new_threads.
11392 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11393 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11394 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11395 evaluate_expression.
11396 (varobj_set_value): Likewise for evaluate_expression and
11398 (install_new_variable): Likewise for value_fetch_lazy.
11399 (adjust_value_for_child_access): Likewise for value_ind.
11400 (c_describe_child): Likewise for value_subscript and
11402 (c_value_of_root): Likewise for evaluate_expression.
11403 * wrapper.c: Remove.
11404 * wrapper.h: Remove.
11406 2012-01-09 Doug Evans <dje@google.com>
11408 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11409 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11410 "abfd" args with "section". All callers updated.
11411 Error checking code moved ...
11412 (error_check_comp_unit_head): ... here. New function.
11413 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11414 Delete arg "abfd". New arg "type_offset". All callers updated.
11415 (create_debug_types_hash_table): Simplify by using
11416 read_and_check_type_unit_head.
11418 * parser-defs.h (namecopy): Delete.
11419 * parse.c (namecopy, namecopy_size): Move into copy_name.
11421 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11423 Partially fix duplicate .o files after omitting libbfd.a.
11424 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11425 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11426 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11427 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11428 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11429 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11430 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11432 2012-01-09 Pedro Alves <palves@redhat.com>
11434 * MAINTAINERS: Update my email address.
11436 2012-01-08 Doug Evans <dje@google.com>
11438 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11439 n_type_units. Rename type_comp_units to all_type_units.
11441 (add_signatured_type_cu_to_table): Renamed from
11442 add_signatured_type_cu_to_list. All callers updated.
11444 * gdbtypes.h (struct cplus_struct_type): Delete member
11445 nfn_fields_total. All uses removed.
11447 2012-01-06 Doug Evans <dje@google.com>
11449 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11451 (dwarf2_find_comp_unit): Delete.
11452 (process_psymtab_comp_unit): Make result "void".
11453 Delete args buffer, info_ptr, buffer_size, and replace with
11454 "section". All callers updated.
11455 (dwarf2_build_psymtabs_hard): Simplify.
11457 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11458 Thiago Jung Bauermann <bauerman@br.ibm.com>
11460 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11461 before `struct gdb_exception'.
11462 * breakpoint.c (update_global_location_list_nothrow)
11463 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11464 * cp-abi.c (value_rtti_type): Likewise.
11465 * cp-support.c (cp_validate_operator): Likewise.
11466 * infrun.c (insert_exception_resume_breakpoint)
11467 (check_exception_resume, keep_going): Likewise.
11468 * mi-interp.c (mi_breakpoint_created)
11469 (mi_breakpoint_modified): Likewise.
11470 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11471 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11472 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11474 2012-01-05 Doug Evans <dje@google.com>
11476 * dwarf2read.c (statement_prologue): Delete, unused.
11478 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11479 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11481 * dwarf2read.c (comp_unit_header): Delete, unused.
11483 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11485 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11486 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11488 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11490 * infrun.c (normal_stop): Don't skip calling the normal_stop
11491 observers if the thread was doing a multi-step, but stopped for
11492 some reason other than stepping.
11494 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11496 * cli/cli-decode.h: Add comments.
11497 (CMD_LIST_AMBIGUOUS): Moved to command.h
11498 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11499 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11500 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11501 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11502 (add_com, add_com_alias, add_info, add_info_alias)
11503 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11505 * command.h: Add and adjust comments.
11506 (CMD_LIST_AMBIGUOUS): Moved here.
11507 (help_cmd, help_cmd_list): Delete declarations.
11509 2012-01-04 Doug Evans <dje@google.com>
11511 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11512 All callers updated.
11513 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11514 Replace all arguments with "per_cu". All callers updated.
11516 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11518 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11519 New arg "per_cu". All callers updated.
11521 Delete #if 0'd out code.
11522 * language.c (binop_result_type): Delete.
11523 (simple_type, ordered_type, same_type, integral_type): Delete.
11524 (numeric_type, character_type, string_type, boolean_type): Delete.
11525 (float_type, structured_type): Delete.
11526 * language.h: Update.
11528 2012-01-04 Tom Tromey <tromey@redhat.com>
11530 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11532 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11534 * corefile.c (close_exec_file): Delete.
11535 (reopen_exec_file): Remove commented out code that seems related
11536 to close_exec_file, which is being deleted here.
11537 * inferior.h (close_exec_file): Delete.
11538 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11540 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11542 * ada-lang.c: #include "cli/cli-utils.h".
11543 (get_selections): Use skip_spaces.
11544 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11545 (catch_ada_exception_command_split): Use skip_spaces.
11546 (ada_decode_assert_location): Likewise.
11548 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11550 * linespec.c (decode_line_internal): Check for C++ or Java
11551 compound constructs only if the current language is C, C++
11554 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11557 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11558 Joel Brobecker <brobecker@adacore.com>
11559 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11560 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11562 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11563 fall through into AT_ENTRY_POINT.
11564 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11565 DUMMY_ADDR with it.
11566 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11567 PPC_INSN_SIZE skip to 3 times.
11569 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11571 * linespec.c (add_minsym): Preserve function descriptors.
11573 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11575 * breakpoint.c (all_locations_are_pending): Consider locations
11576 in program spaces executing during startup pending as well.
11578 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11580 Copyright year update in most files of the GDB Project.
11582 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11584 * copyright.sh: Delete.
11585 * copyright.py: Rewrite.
11587 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11589 * gnulib/extra/update-copyright: New file, imported from gnulib.
11591 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11593 * README (Copyright and License Notices): New section.
11595 2012-01-03 Tom Tromey <tromey@redhat.com>
11598 * python/py-value.c (valpy_dereference, valpy_get_address
11599 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11600 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11601 (valpy_absolute, valpy_richcompare): Free intermediate values.
11603 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11605 * ada-lang.c: Reformat the copyright notice.
11607 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11609 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11610 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11611 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11612 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11613 Revert this part of:
11614 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11615 Build gdb directly from *.o files not using libgdb.a.
11616 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11618 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11620 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11621 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11622 Reformat the copyright header.
11624 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11626 Revert this part of:
11627 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11628 Remove the gdbtui binary.
11629 * gdb.c (main): Remove args.interpreter_p initialization.
11630 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11631 * main.h (struct captured_main_args): Remove interpreter_p.
11633 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11635 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11637 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11639 * top.c (print_gdb_version): Update copyright year.
11641 2012-01-02 Yao Qi <yao@codesourcery.com>
11643 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11645 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11646 Joel Brobecker <brobecker@adacore.com>
11648 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11649 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11651 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11652 fall through into AT_ENTRY_POINT.
11653 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11654 DUMMY_ADDR with it.
11655 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11656 PPC_INSN_SIZE skip to 3 times.
11658 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11660 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11662 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11664 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11666 Build gdb directly from *.o files not using libgdb.a.
11667 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11668 (COMMON_OBS): Remove solib-target.o.
11669 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11670 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11671 (LIBGDB_OBS, libgdb.a): Move it above.
11672 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11673 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11674 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11675 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11676 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11677 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11678 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11679 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11680 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11681 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11682 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11683 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11684 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11685 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11686 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11687 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11688 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11689 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11690 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11691 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11692 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11693 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11694 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11695 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11696 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11697 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11698 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11700 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11702 Remove the gdbtui binary.
11703 * .gitignore (/gdbtui): Remove.
11704 * Makefile.in (TUI): Remove.
11705 (SUBDIR_TUI_OBS): Remove tui-main.o.
11706 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11707 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11708 (tui-main.o): Remove.
11709 (all_object_files): Remove tui-main.o.
11710 * NEWS: New note for the gdbtui removal.
11711 * configure: Rebuilt.
11712 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11713 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11714 CONFIG_UNINSTALL respectively.
11715 * gdb.c (main): Remove args.interpreter_p initialization.
11716 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11717 * main.h (struct captured_main_args): Remove interpreter_p.
11718 * tui/tui-main.c: Remove.
11720 2012-01-01 Doug Evans <dje@google.com>
11722 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11723 (dwarf2_physname, read_import_statement): Ditto.
11724 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11725 (process_structure_scope read_subroutine_type): Ditto.
11726 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11727 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11728 (dwarf2_fetch_die_location_block): Ditto.
11729 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11731 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11732 All callers updated.
11733 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11734 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11735 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11737 * dwarf2read.c (load_cu): Move assert to more useful location.
11739 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11740 All callers updated.
11742 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11743 (dwarf2_elf_names): Minor reformat.
11744 (dwarf2_per_cu_data): Tweak comment.
11745 (dwarf2_read_section): Fix comment.
11746 (create_all_comp_units): Fix comment.
11747 (load_full_comp_unit): Fix comment.
11748 (process_full_comp_unit): Fix comment.
11749 (read_signatured_type): Fix comment.
11751 For older changes see ChangeLog-2011.
11757 version-control: never