1 2012-11-30 Yao Qi <yao@codesourcery.com>
3 * breakpoint.c (print_one_breakpoint_location): Combine two
4 blocks handling 'hit count' together.
6 2012-11-30 Yao Qi <yao@codesourcery.com>
8 * infrun.c (error_is_running, ensure_not_running): Move them
10 * infcmd.c (error_is_running, ensure_not_running): ... here.
12 * inferior.h: Remove declarations of error_is_running and
15 2012-11-30 Yao Qi <yao@codesourcery.com>
17 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
20 2012-11-30 Yao Qi <yao@codesourcery.com>
22 * infrun.c: Make the declaration of 'init_infwait_state'
24 (init_infwait_state): Make it 'static'.
26 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
28 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
29 return value to void to avoid compiler warning.
31 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
33 * opencl-lang.c (opencl_print_type): New function.
34 (opencl_language_arch_info): Install it.
36 2012-11-29 Tom Tromey <tromey@redhat.com>
38 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
40 * common/common-utils.c (xasprintf, xvasprintf): Remove.
41 * common/common-utils.h (xasprintf, xvasprintf): Remove.
43 2012-11-29 Jerome Guitton <guitton@adacore.com>
45 * ada-lang.c (ada_is_interface_tag): New function.
46 (ada_is_ignored_field): Add interface tags to the list
49 2012-11-29 Jerome Guitton <guitton@adacore.com>
51 * ada-lang.h (ada_tag_value_at_base_address): New function
53 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
55 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
56 relocate the class-wide value if need be.
57 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
58 Let ada_tag_value_at_base_address relocate the class-wide access/ref
59 before dereferencing it.
60 * ada-valprint.c (ada_val_print_1): Relocate to base address
61 before displaying the content of an interface-wide ref.
63 2012-11-29 Jerome Guitton <guitton@adacore.com>
65 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
67 2012-11-29 Joel Brobecker <brobecker@adacore.com>
71 2012-11-29 Yao Qi <yao@codesourcery.com>
72 Tom Tromey <tromey@redhat.com>
74 * eval.c (evaluate_subexp_standard): Get the correct pointer
75 type for TYPE_CODE_MEMBERPTR.
77 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
79 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
80 since now it is being done by binutils' powerpc_init_dialect().
82 2012-11-28 Tom Tromey <tromey@redhat.com>
85 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
86 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
88 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
89 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
90 (gdb_bfd_openr_next_archived_file): Use it.
92 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
94 * configure.ac: Check for linux/perf_event.h.
95 * config.in: Regenerated.
96 * configure: Regenerated.
98 2012-11-28 Yao Qi <yao@codesourcery.com>
100 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
101 abbreviate 'delete tracepoints' to 'delete tr'.
102 * corefile.c (_initialize_core): Call add_alias_cmd to
103 abbreviate 'set gnutarget' to 'set g'.
104 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
105 'show convenience' to 'show conv'.
107 2012-11-27 Joel Brobecker <brobecker@adacore.com>
109 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
110 call to sparc_supply_fpregset.
111 (fill_fpregset): Fix first parameter in call to
112 sparc_collect_fpregset.
114 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
115 Kazu Hirata <kazu@codesourcery.com>
116 Yao Qi <yao@codesourcery.com>
118 * objfiles.c (init_entry_point_info): Call
119 gdbarch_convert_from_func_ptr_addr and
120 gdbarch_addr_bits_remove here ...
121 (entry_point_address_query): ... instead of here.
122 * solib-svr4.c (exec_entry_point): Call
123 gdbarch_addr_bits_remove.
124 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
127 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
128 Yao Qi <yao@codesourcery.com>
130 * eval.c (evaluate_subexp_standard): Add handling of
131 TYPE_CODE_MEMBERPTR when calling functions. Correct the
132 result of ptype for calling a TYPE_CODE_METHODPTR.
134 2012-11-27 Yao Qi <yao@codesourcery.com>
136 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
140 2012-11-26 Alexander Larsson <alexl@redhat.com>
141 Jan Kratochvil <jan.kratochvil@redhat.com>
142 Tom Tromey <tromey@redhat.com>
144 * NEWS: Mention mini debuginfo feature.
145 * minidebug.c: New file.
146 * configure.ac: Check for lzma.
147 * configure, config.in: Rebuild.
148 * Makefile.in (LIBLZMA): New variable.
149 (CLIBS): Include LIBLZMA.
150 (SFILES): Mention minidebug.c.
151 (COMMON_OBS): Mention minidebug.o.
152 * symfile.c (read_symbols): New function.
153 (syms_from_objfile, reread_symbols): Call it.
154 * symfile.h (find_separate_debug_file_in_section): Declare.
156 2012-11-26 Keith Seitz <keiths@redhat.com>
158 * exec.c (exec_file_attach): Move cleanup after verifying that
159 memory has in fact been allocated.
161 2012-11-26 Tom Tromey <tromey@redhat.com>
163 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
164 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
166 * skip.c (skip_info): Use SYMBOL_SYMTAB.
168 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
169 Pedro Alves <palves@redhat.com>
171 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
172 size parameter passed to readlink by one byte.
173 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
174 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
175 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
176 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
179 2012-11-26 Yao Qi <yao@codesourcery.com>
181 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
182 extraneous parentheses.
184 2012-11-26 Yao Qi <yao@codesourcery.com>
186 * remote.c (remote_start_remote): Typo fix.
188 2012-11-23 David S. Miller <davem@davemloft.net>
190 * sparc-tdep.h (struct sparc_fpregset): New data structure.
191 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
192 sparc32_sol2_fpregset): Declare new globals.
193 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
195 * sparc64-tdep.h (sparc64_supply_fpregset,
196 sparc64_collect_fpregset): Likewise.
197 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
199 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
200 (sparc_fpregset): Declare new global.
201 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
203 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
205 (fill_fpregset): Likewise.
206 (_initialize_sparc_linux_nat): Set sparc_fpregset to
207 sparc32_bsd_fpregset.
208 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
209 sparc32_bsd_fpregset down into handler.
210 (sparc32_linux_collect_core_fpregset): Likewise.
211 * sparc-nat.c (sparc_fpregset): Define.
212 (sparc_supply_fpregset): Add 'fpregset' argument.
213 (sparc_collect_fpregset): Likewise.
214 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
215 into fpregset handler.
216 (sparc_store_inferior_registers): Likewise.
217 (_initialize_sparc_nat): Set sparc_fpregset to
218 sparc32_sunos4_fpregset if NULL.
219 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
221 (fill_fpregset): Likewise.
222 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
223 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
224 use it to compute offsets.
225 (sparc32_collect_fpregset): Likewise.
226 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
227 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
229 (fill_fpregset): Likewise.
230 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
232 (sparc64_linux_collect_core_fpregset): Likewise.
233 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
234 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
235 use it to compute offsets.
236 (sparc64_collect_fpregset): Likewise.
237 (sparc64_bsd_fpregset): Define.
238 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
239 sparc64_bsd_fpregset down into handler.
240 (sparc64fbsd_collect_fpregset): Likewise.
241 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
242 and pass sparc{32,64}_bsd_fpregset down into handler.
243 (sparc64nbsd_collect_fpregset): Likewise.
244 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
245 sparc64_bsd_fpregset down into handler.
246 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
247 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
248 to sparc32_bsd_fpregset.
249 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
250 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
251 (sparc32nbsd_supply_fpregset): Likewise.
253 2012-11-21 Tom Tromey <tromey@redhat.com>
255 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
257 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
259 * c-typeprint.c (c_type_print_base): Update.
261 2012-11-21 Yao Qi <yao@codesourcery.com>
264 * gdbarch.sh (smash_text_address): Remove.
265 * gdbarch.c, gdbarch.h: Regenerate.
266 * arm-tdep.c (arm_smash_text_address): Remove.
267 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
268 * hppa-tdep.c (hppa_smash_text_address): Remove.
269 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
270 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
272 * coffread.c (coff_symtab_read): Caller update.
273 * dbxread.c (process_one_symbol): Likewise.
274 * elfread.c (record_minimal_symbol): Likewise.
275 * somread.c (som_symtab_read): Likewise.
277 2012-11-20 Pierre Muller <muller@sourceware.org>
279 ARI fixes: sprintf rule.
280 Replace sprintf function calls for char arrays by
281 calls to xsnprintf calls.
282 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
283 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
284 (arm_neon_quad_read, arm_pseudo_read): Ditto.
285 (arm_neon_quad_write, arm_pseudo_write): Ditto.
286 * breakpoint.c (condition_completer): Ditto.
287 (create_tracepoint_from_upload): Ditto.
288 * dwarf2read.c (file_full_name): Ditto.
289 * gcore.c (gcore_command): Ditto.
290 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
291 * go32-nat.c (go32_sysinfo): Ditto.
292 * interps.c (interp_set): Ditto.
293 * m32c-tdep.c (make_types): Ditto.
294 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
295 * remote-m32r-sdi.c (m32r_open): Ditto.
296 * sol-thread.c (td_err_string): Ditto.
297 (td_state_string, solaris_pid_to_str): Ditto.
298 * symtab.c (gdb_mangle_name): Ditto.
299 * cli/cli-script.c (execute_control_command): Ditto.
300 (define_command, document_command): Ditto.
301 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
302 * tui/tui-stack.c (tui_make_status_line): Ditto.
303 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
305 2012-11-20 Mike Frysinger <vapier@gentoo.org>
307 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
308 it when looking at ptr->func.
309 * command.h (complete_on_cmdlist): Add a fourth arg.
310 * completer.c (complete_line_internal): Add local ignore_help_classes,
311 and set it to 1 when reason is not handle_help. Pass this down to
312 lookup_cmd_1 and complete_on_cmdlist.
314 2012-11-20 Tom Tromey <tromey@redhat.com>
316 * completer.c (count_struct_fields): Remove.
317 (expression_completer): Don't call count_struct_fields.
319 2012-11-20 Pedro Alves <palves@redhat.com>
321 * annotate.c (breakpoints_changed): Rename to ...
322 (annotate_breakpoints_changed): ... this.
323 (annotate_stopped, breakpoint_changed): Adjust caller.
324 * annotate.h (breakpoints_changed): Rename to ...
325 (annotate_breakpoints_changed): ... this.
326 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
327 (do_map_commands_command, init_raw_breakpoint, clear_command)
328 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
330 2012-11-20 David S. Miller <davem@davemloft.net>
332 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
333 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
335 (get_cores_used_by_process): Update comment.
337 2012-11-20 Yao Qi <yao@codesourcery.com>
339 * objfiles.c (init_entry_point_info): Remove trailing spaces.
341 2012-11-20 Yao Qi <yao@codesourcery.com>
343 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
344 to deprecated_context_hook.
346 2012-11-19 Yao Qi <yao@codesourcery.com>
348 * infrun.c (infwait_state): Add static.
350 2012-11-16 Keith Seitz <keiths@redhat.com>
353 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
354 parameter and pass it to lookup_symbol_file.
355 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
356 to search base classes.
357 (cp_lookup_symbol_namespace): Likewise.
358 (lookup_namespace_scope): Likewise.
359 (lookup_symbol_file): Add SEARCH parameter.
360 If SEARCH is non-zero and no symbol is found, lookup the class
361 and call cp_lookup_nested_symbol.
362 (find_symbol_in_baseclass): New function.
363 (cp_lookup_nested_symbol): Do not let
364 cp_lookup_symbol_in_namespace search through base classes.
365 Do that later when there is no global symbol match.
367 2012-11-16 Doug Evans <dje@google.com>
369 * main.c (gdb_datadir_provided): New static global.
370 (get_init_files): If --data-directory is provided,
371 and SYSTEM_GDBINIT lives in data-directory, look for it there.
374 2012-11-15 Pierre Muller <muller@sourceware.org>
376 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
377 * gdb_stat.h: Delete. Moved to common directory.
378 * common/gdb_stat.h: New file.
379 * gdb_wait.h: Delete. Moved to common directory.
380 * common/gdb_wait.h: New file.
381 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
383 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
385 (stat.h rule): Adapt to new gdb_stat.h location.
386 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
388 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
391 2012-11-15 Pierre Muller <muller@sourceware.org>
393 * configure.ac (AC_HEADER_STAT): Remove.
394 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
395 and corresponding code.
396 * configure: Regenerate.
397 * config.in: Regenerate.
399 2012-11-15 Pierre Muller <muller@sourceware.org>
401 ARI xasprintf rule fixes.
402 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
403 instead of xasprintf.
404 (open_and_init_dwp_file): Ditto.
406 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
408 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
411 2012-11-14 Tom Tromey <tromey@redhat.com>
413 * configure, config.in: Rebuild.
414 * configure.ac: Don't check for ctype.h, time.h.
415 * expprint.c: Don't use HAVE_CTYPE_H.
417 2012-11-13 Tom Tromey <tromey@redhat.com>
419 * gdbarch.h, gdbarch.c: Rebuild.
420 * gdbarch.sh (set_target_gdbarch): Rename from
421 deprecated_target_gdbarch_select_hack.
422 * arch-utils.c (gdbarch_update_p): Update.
423 (set_gdbarch_from_file): Update.
425 2012-11-14 Pierre Muller <muller@sourceware.org>
427 * MAINTAINERS (Responsible Maintainers/misc): Add myself
428 as responsible of contrib/ari directory.
430 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
431 Yao Qi <yao@codesourcery.com>
433 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
435 (arm_m_exception_cache, arm_m_exception_this_id)
436 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
437 (arm_m_exception_unwind): New.
438 (arm_gdbarch_init): Register arm_m_exception_unwind.
440 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
442 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
443 parameter COUNT, for pattern filling of memory regions.
446 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
448 * disasm.h (DISASSEMBLY_FILENAME): New macro.
449 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
450 to print_source_lines ().
451 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
453 * source.c (print_source_lines_base): Prefix source line with
454 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
456 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
458 * symtab.h (print_source_lines_flags): New enum.
459 * source.c (print_source_lines_base): Change noerror to flags.
460 (print_source_lines): Change noerror to flags.
462 2012-11-13 Pierre Muller <muller@sourceware.org>
464 ARI fixes: Avoid sprintf function use rule.
465 * charset.c (convert_between_encodings): Use xsnprintf.
466 * cli-out.c (cli_field_int): Likewise.
467 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
468 * expprint.c (op_name_standard): Likewise.
469 * frv-tdep.c (set_variant_num_gprs): Likewise.
470 (set_variant_num_fprs): Likewise.
471 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
472 * nto-tdep.c (nto_find_and_open_solib): Likewise.
473 (nto_init_solib_absolute_prefix): Likewise.
474 * source.c (init_source_path): Likewise.
475 (print_source_lines_base): Likewise.
476 * valprint.c (print_wchar): Likewise.
477 * mi/mi-out.c (mi_field_int): Likewise.
478 windows-nat.c (windows_pid_to_exec_file): Likewise.
479 (windows_create_inferior): Likewise.
480 (_initialize_check_for_gdb_ini): Likewise.
482 2012-11-12 Joel Brobecker <brobecker@adacore.com>
484 * frame.h (deprecated_frame_register_read): Renames
486 * frame.c (deprecated_frame_register_read): Renames
487 frame_register_read. Update all callers.
488 * i386-tdep.c: Update all callers of frame_register_read.
489 * infcmd.c: Likewise.
491 * mips-tdep.c: Likewise.
492 * mt-tdep.c: Likewise.
493 * sh64-tdep.c: Likewise.
495 2012-11-12 Joel Brobecker <brobecker@adacore.com>
497 * frame.h (frame_register_read): Remove FIXME comment.
498 * frame.c (frame_register_read): Add suggestion explaining
499 which function to use in place of this one.
501 2012-11-12 Tom Tromey <tromey@redhat.com>
503 * python/python.c (start_type_printers): Initialize 'result_obj'.
505 2012-11-12 Tom Tromey <tromey@redhat.com>
508 * data-directory/Makefile.in (PYTHON_FILES): Add
510 * python/lib/gdb/command/type_printers.py: New file.
511 * python/lib/gdb/command/types.py (TypePrinter): New class.
512 (_get_some_type_recognizers, get_type_recognizers,
513 apply_type_recognizers, register_type_printer): New
515 * python/py-objfile.c (objfile_object) <type_printers>: New
517 (objfpy_dealloc): Decref new field.
518 (objfpy_new): Set new field.
519 (objfpy_get_type_printers, objfpy_set_type_printers): New
521 (objfile_to_objfile_object): Set new field.
522 (objfile_getset): Add "type_printers".
523 * python/py-progspace.c (pspace_object) <type_printers>: New
525 (pspy_dealloc): Decref new field.
526 (pspy_new): Set new field.
527 (pspy_get_type_printers, pspy_set_type_printers): New functions.
528 (pspace_to_pspace_object): Set new field.
529 (pspace_getset): Add "type_printers".
530 * python/python.c (start_type_printers, apply_type_printers,
531 free_type_printers): New functions.
532 (_initialize_python): Set gdb.type_printers.
533 * python/python.h (start_type_printers, apply_type_printers,
534 free_type_printers): Declare.
535 * typeprint.c (type_print_raw_options, default_ptype_flags):
536 Update for new fields.
537 (do_free_global_table, create_global_typedef_table,
538 find_global_typedef): New functions.
539 (find_typedef_in_hash): Use find_global_typedef.
540 (whatis_exp): Use create_global_typedef_table. Change cleanup
542 * typeprint.h (struct type_print_options) <global_typedefs,
543 global_printers>: New fields.
545 2012-11-12 Tom Tromey <tromey@redhat.com>
547 * c-typeprint.c (find_typedef_for_canonicalize,
548 print_name_maybe_canonical): New functions.
549 (c_print_type): Look up type name.
550 (cp_type_print_derivation_info): Add flags argument. Use
551 print_name_maybe_canonical.
552 (cp_type_print_method_args): Add wrapping.
553 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
554 (c_type_print_template_args): New function.
555 (c_type_print_base): Change wrapping. Use
556 print_name_maybe_canonical.
557 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
559 * gdbtypes.c (types_equal): No longer static.
560 * gdbtypes.h (types_equal): Declare.
561 * typeprint.c (type_print_raw_options, default_ptype_flags):
563 (struct typedef_hash_table): New.
564 (hash_typedef_field, eq_typedef_field,
565 recursively_update_typedef_hash, add_template_parameters,
566 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
567 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
568 copy_typedef_hash, find_typedef_in_hash): New functions.
569 * typeprint.h (struct type_print_options) <local_typedefs>:
571 (recursively_update_typedef_hash, add_template_parameters,
572 create_typedef_hash, free_typedef_hash,
573 make_cleanup_free_typedef_hash, copy_typedef_hash,
574 find_typedef_in_hash): Declare.
576 2012-11-12 Tom Tromey <tromey@redhat.com>
578 * cp-support.c (inspect_type,
579 replace_typedefs_qualified_name, replace_typedefs): Add
580 finder, data arguments. Call as needed.
581 (cp_canonicalize_string_full): New function.
582 (cp_canonicalize_string_no_typedefs): Rewrite.
583 * cp-support.h (canonicalization_ftype): New typedef.
584 (cp_canonicalize_string_full): Declare.
586 2012-11-12 Tom Tromey <tromey@redhat.com>
589 * c-typeprint.c (c_type_print_base): Handle print_method and
590 print_typedefs flags.
591 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
592 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
594 * typeprint.c (type_print_raw_options, default_ptype_flags):
595 Update for new field.s
596 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
597 (setprinttypelist, showprinttypelist, print_methods,
598 print_typedefs): New globals.
599 (set_print_type, show_print_type, set_print_type_methods,
600 show_print_type_methods, set_print_type_typedefs,
601 show_print_type_typedefs): New functions.
602 (_initialize_typeprint): Update documentation. Add "print
603 type methods" and "print type typedefs" parameters.
604 * typeprint.h (struct type_print_options) <print_methods,
605 print_typedefs>: New fields.
607 2012-11-12 Tom Tromey <tromey@redhat.com>
609 * c-typeprint.c (cp_type_print_method_args): Add flags
610 argument. Call c_print_type, not type_print.
611 (c_type_print_base): Call c_print_type, not type_print.
614 2012-11-12 Tom Tromey <tromey@redhat.com>
616 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
617 to type-printing functions.
618 * ada-lang.h (ada_print_type): Add argument.
619 * ada-typeprint.c (print_array_type, print_variant_clauses,
620 print_variant_part, print_selected_record_field_types,
621 print_record_field_types, print_unchecked_union_type,
622 print_func_type, ada_print_type): Add flags argument.
623 (ada_print_typedef): Update.
624 * c-exp.y (OPERATOR conversion_type_id): Update.
625 * c-lang.h (c_print_type, c_type_print_base): Update.
626 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
627 c_type_print_modifier, c_type_print_args,
628 c_type_print_varspec_suffix, c_type_print_base): Add flags
630 * cp-valprint.c (cp_print_class_member): Update.
631 * dwarf2read.c (dwarf2_compute_name): Update.
632 * f-lang.h (f_print_type): Add argument.
633 * f-typeprint.c (f_print_type): Add flags argument.
634 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
635 * go-lang.h (go_print_type): Add argument.
636 * go-typeprint.c (go_print_type): Add flags argument.
637 * jv-lang.h (java_print_type): Add argument.
638 * jv-typeprint.c (java_type_print_base, java_print_type): Add
640 * language.c (unk_lang_print_type): Add flags argument.
641 * language.h (struct language_defn) <la_print_type>: Add flags
643 (LA_PRINT_TYPE): Likewise.
644 * m2-lang.h (m2_print_type): Add argument.
645 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
646 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
647 m2_unbounded_array, m2_record_fields): Add flags argument.
648 * p-lang.h (pascal_print_type, pascal_type_print_base,
649 pascal_type_print_varspec_prefix): Add argument.
650 * p-typeprint.c (pascal_print_type,
651 pascal_type_print_varspec_prefix, pascal_print_func_args,
652 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
654 * symmisc.c (print_symbol): Update.
655 * typeprint.c (type_print_raw_options, default_ptype_flags):
657 (type_print): Update.
658 * typeprint.h (struct type_print_options): New.
659 (type_print_raw_options): Declare.
660 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
662 2012-11-10 Keith Seitz <keiths@redhat.com>
664 * breakpoint.c (clear_command): Add cleanup for
665 sals.sals if an argument is given.
667 * linespec.c (parse_linespec): Do cleanups after
668 parsing a convenience variable.
670 2012-11-10 Keith Seitz <keiths@redhat.com>
673 * c-valprint.c (c_val_print): For character arrays
674 with "print null" option on, print ellipses if
675 the output is truncated and the next character is not \000.
676 * valprint.c (MAX_WCHARS): Define.
677 (WCHAR_BUFLEN): Likewise.
678 (WCHAR_BUFLEN_MAX): Likewise.
679 (struct converted_character): New structure.
680 (count_next_character): New function.
681 (print_converted_chars_to_obstack): New function.
682 (generic_printstr): Rewrite using count_next_character
683 and print_converted_chars_to_obstack.
685 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
687 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
688 while executing the gdb command.
689 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
690 are called from prompt_for_continue.
691 * tui/tui-io.c (tui_redisplay_readline): Likewise.
693 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
697 * tui/tui.c (tui_rl_command_key): Do not call execute_command
698 but insert the command to execute in readline's buffer.
700 2012-11-09 Tom Tromey <tromey@redhat.com>
702 * gdbarch.sh (target_gdbarch): Remove macro.
703 (get_target_gdbarch): Rename to target_gdbarch.
704 * gdbarch.c, gdbarch.h: Rebuild.
705 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
706 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
707 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
708 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
709 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
710 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
711 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
712 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
713 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
714 procfs.c, progspace.c, ravenscar-thread.c, record.c,
715 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
716 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
717 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
718 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
719 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
720 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
721 target-descriptions.c, target.c, target.h, tracepoint.c,
722 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
723 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
724 python/py-inferior.c, python/python.c: Update.
726 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
728 * source.c (print_source_lines_base): Add fullname field giving
729 full path to file in mi output.
730 * NEWS: Mention the new fullname field.
732 2012-11-09 Yao Qi <yao@codesourcery.com>
734 * NEWS: Mention the fix to the ambiguity of 'fo' command.
736 2012-11-09 Pedro Alves <palves@redhat.com>
740 * infrun.c: Include target-descriptions.h.
741 (follow_exec): Fetch new target description.
743 2012-11-09 Yao Qi <yao@codesourcery.com>
745 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
748 2012-11-09 Yao Qi <yao@codesourcery.com>
750 * breakpoint.c: Declare set_tracepoint_count.
751 (install_breakpoint): Call set_tracepoint_count if B is a
753 (trace_command): Don't call set_tracepoint_count. Re-indent.
754 (strace_command, ftrace_command):
755 (create_tracepoint_from_upload): Likewise.
757 2012-11-09 Pedro Alves <palves@redhat.com>
759 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
760 (get_target_gdbarch) <gdbarch.h>: New function.
761 (startup_gdbarch) <gdbarch.h>: Declare.
762 <gdbarch.c> (target_gdbarch): Delete.
763 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
764 current inferior's gdbarch.
765 <gdbarch.c> (get_target_gdbarch): New function.
766 * inferior.c: Include target-descriptions.h.
767 (free_inferior): Free target description info.
768 (add_inferior_with_spaces): Set the inferior's initial
770 (clone_inferior_command): Copy the original inferior's target
771 description if it was user specified.
772 (initialize_inferiors): Add comment.
773 * inferior.h (struct target_desc_info): Forward declare.
774 (struct inferior) <gdbarch>: New field.
775 * linux-nat.c: Include target-descriptions.h.
776 (linux_child_follow_fork): Copy the parent's architecture and
777 target description to the child.
778 * target-descriptions.c: Include inferior.h.
779 (struct target_desc_info): New structure, holding the equivalents
781 (target_desc_fetched, current_target_desc)
782 (target_description_filename): ... these removed globals.
783 (get_tdesc_info, target_desc_info_from_user_p)
784 (copy_inferior_target_desc_info, target_desc_info_free): New.
785 (target_desc_fetched, current_target_desc)
786 (target_description_filename): Reimplemented as convenience
788 (tdesc_filename_cmd_string): New global.
789 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
790 tdescs filename ..." commands to the per-inferior equivalent.
791 (show_tdesc_filename_cmd): Get the value to show from the
792 per-inferior description filename.
793 (_initilize_target_descriptions): Change the "set/show tdesc
794 filename" commands' variable.
795 * target-descriptions.h (struct target_desc, struct target_desc_info)
796 (struct inferior): Forward declare.
797 (target_find_description, target_clear_description)
798 (target_current_description): Adjust comments.
799 (copy_inferior_target_desc_info, target_desc_info_free)
800 (target_desc_info_from_user_p). Declare.
802 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
804 * tui/tui-hooks.c (tui_about_to_proceed): New function.
805 (tui_target_wait_hook): Remove.
806 (tui_install_hooks): Install the about_to_proceed observer.
807 (tui_remove_hooks): And remove it here.
809 2012-11-08 Tom Tromey <tromey@redhat.com>
811 * linux-tdep.c (linux_make_siginfo_note): New function.
812 (linux_make_corefile_notes): Use it.
813 * corelow.c (get_core_siginfo): New function.
814 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
816 2012-11-08 Tom Tromey <tromey@redhat.com>
819 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
820 (zlib_decompress_section): Remove.
821 (gdb_bfd_map_section): Only check for compressed section
822 in mmap case. Use bfd_get_full_section_contents.
823 * osabi.c (check_note): Add 'sectsize' argument. Read
825 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
826 section data. Update for check_note change.
827 * xcoffread.c (xcoff_initial_scan): Use
828 bfd_get_full_section_contents.
829 * py-auto-load.c (auto_load_section_scripts): Use
830 bfd_get_full_section_contents.
831 * contrib/cc-with-tweaks.sh: Add -Z option.
833 2012-11-08 Tom Tromey <tromey@redhat.com>
835 * python/py-bpevent.c: Include defs.h.
836 * python/py-continueevent.c: Include defs.h.
837 * python/py-event.c: Include defs.h.
838 * python/py-event.h: Don't include defs.h.
839 * python/py-events.h: Don't include defs.h.
840 * python/py-evts.c: Include defs.h.
841 * python/py-exitedevent.c: Include defs.h.
842 * python/py-newobjfileevent.c: Include defs.h.
843 * python/py-signalevent.c: Include defs.h.
844 * python/py-stopevent.c: Include defs.h.
845 * python/py-threadevent.c: Include defs.h.
847 2012-11-08 Pierre Muller <muller@sourceware.org>
849 * update-web-ari.sh (print_heading): Add number of files
851 (nb_files): New variable counting the number of sources
852 files found by gdb_find.sh script.
853 (debug_awk): New variable to allow extra debug output.
854 (indexes): Add more information if DEBUG_AWK is set.
856 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
858 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
859 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
860 following the change in PLT call stubs on linker.
862 2012-11-08 Pierre Muller <muller@sourceware.org>
864 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
866 (AWK): Use = instead of == for sh test to avoid warning.
867 (Linux rule): Correct [:digit] into [[:digit:]].
868 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
869 (vasprintf rule): Adapt to common subdirectory moves.
870 (xasprintf rule): Idem.
871 (xvasprintf rule): Idem.
872 (var_boolean rule): Accept occurence in == or != test.
874 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
876 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
878 * tui/tui-hooks.c (tui_inferior_exit): New function.
879 (tui_detach_hook): Remove.
880 (tui_install_hooks): Install the inferior exit observer.
881 (tui_remove_hooks): Remove it.
883 2012-11-08 Yao Qi <yao@codesourcery.com>
886 * source.c (_initialize_source): Call add_com_alias to abbreviate
887 'forward-search' as 'fo'.
889 2012-11-07 Pedro Alves <palves@redhat.com>
891 * arm-tdep.c: Make defs.h be the first include.
892 * coff-pe-read.c: Ditto.
896 * ppcnbsd-nat.c: Ditto.
897 * ada-varobj.h: Don't include defs.h.
898 * i386-darwin-tdep.h: Ditto.
901 2012-11-07 Pedro Alves <palves@redhat.com>
903 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
906 2012-11-07 Pierre Muller <muller@sourceware.org>
908 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
909 File already uses "gdb_dirent.h" header.
911 2012-11-07 Yao Qi <yao@codesourcery.com>
913 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
916 2012-11-06 Tom Tromey <tromey@redhat.com>
918 * target.h (inferior_has_forked, inferior_has_vforked)
919 (inferior_has_execd, inferior_has_called_syscall): Remove
922 2012-11-06 Pierre Muller <muller@sourceware.org>
924 * remote.c (remote_insert_hw_breakpoint): ARI fix,
925 add missing internalization markup.
927 2012-11-06 Pedro Alves <palves@redhat.com>
931 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
933 2012-11-06 Pierre Muller <muller@sourceware.org>
935 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
938 2012-11-05 Joel Brobecker <brobecker@adacore.com>
940 * gnulib/update-gnulib.sh: New script.
942 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
944 * MAINTAINERS: Update my email address.
946 2012-11-05 Tom Tromey <tromey@redhat.com>
948 * frame.c (put_frame_register): Don't use temporary buffer.
950 2012-11-05 Pedro Alves <palves@redhat.com>
952 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
953 child. Clear 'pending_detach'.
954 * infrun.c (handle_vfork_child_exec_or_exit): Clear
955 'pending_detach' in the vfork parent.
957 2012-11-05 Doug Evans <dje@google.com>
959 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
960 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
961 * dwarf2read.c: #include "elf-bfd.h".
962 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
963 (dwop_section_names): Renamed from dwo_section names. All uses
964 updated. Add entries for .debug_cu_index, .debug_tu_index.
965 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
967 (struct dwp_sections): New type.
968 (struct virtual_dwo_sections): New type.
969 (struct dwp_hash_table): New type.
970 (struct dwp_file): New type.
971 (init_cutu_and_read_dies): Ensure DWO info/types section has been
972 read in. Handle DWOs coming from DWP files.
973 (lookup_dwo_file_slot): New function.
974 (dwarf2_locate_dwo_sections): Move definition closer to use.
975 (create_dwo_debug_info_hash_table_reader): Renamed from
976 create_debug_info_hash_table_reader. All callers updated.
977 (create_dwo_debug_info_hash_table): Renamed from
978 create_debug_info_hash_table. All callers updated.
979 (create_dwp_hash_table): New function.
980 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
981 (lookup_dwo_in_dwp): New function.
982 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
983 is_dwp. All callers updated.
984 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
985 (open_and_init_dwo_file): Renamed from init_dwo_file.
987 (lookup_dwo_file): Delete.
988 (dwarf2_locate_dwp_sections): New function.
989 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
990 (allocate_dwp_loaded_cutus_table): New function.
991 (open_and_init_dwp_file): New function.
992 (lookup_dwo_cutu): New function.
993 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
995 2012-11-03 Yao Qi <yao@codesourcery.com>
998 * breakpoint.c (trace_pass_set_count): Call
999 observer_notify_breakpoint_modified instead of
1000 observer_notify_tracepoint_modified.
1001 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1003 2012-11-02 Tom Tromey <tromey@redhat.com>
1005 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1006 argument to complete_on_enum.
1008 2012-11-02 Tom Tromey <tromey@redhat.com>
1010 * configure: Rebuild.
1011 * configure.ac (build_warnings): Add -Wempty-body.
1012 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1013 * remote.c (handle_notification): Use braces for empty 'else' body.
1014 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1016 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1018 * solib-som.c (som_relocate_section_addresses): Use braces
1019 for empty 'else' body.
1020 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1021 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1023 2012-11-02 Pedro Alves <palves@redhat.com>
1027 * infrun.c (handle_inferior_event)
1028 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1029 null_ptid before handling a vfork child exec or exit. Switch to
1030 the event ptid afterwards.
1032 2012-11-02 Yao Qi <yao@codesourcery.com>
1034 * std-operator.def: Remove OP_LABELED.
1035 * eval.c: Remove the declaration of 'get_label'.
1036 (get_label): Remove.
1037 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1039 Remove local variable 'variantno' and related code.
1040 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1042 * expprint.c (print_subexp_standard): Likewise.
1043 (dump_subexp_body_standard): Likewise.
1044 * parse.c (operator_length_standard): Likewise.
1046 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1048 Incorporate ARI web page generator into GDB sources.
1049 * contrib/ari/create-web-ari-in-src.sh: New file.
1050 * contrib/ari/gdb_ari.sh: New file.
1051 * contrib/ari/gdb_find.sh: New file.
1052 * contrib/ari/update-web-ari.sh: New file.
1054 2012-10-31 Tom Tromey <tromey@redhat.com>
1056 * gdbarch.c: Rebuild.
1057 * gdbarch.sh: Remove references to gdbarch_swap.
1058 * corelow.c (core_open): Remove obsolete comment.
1060 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1063 * c-typeprint.c (c_print_type): Don't print a space for vector
1064 types, this is handled within the suffix.
1065 (c_type_print_varspec_suffix): Add a space to vector suffix.
1067 2012-10-26 Pedro Alves <palves@redhat.com>
1069 * amd64-tdep.c (amd64_relocate_instruction): Use
1070 store_unsigned_integer instead of memcpy.
1071 * i386-tdep.c (i386_relocate_instruction): Ditto.
1073 2012-10-26 Pedro Alves <palves@redhat.com>
1075 * infrun.c (handle_inferior_event): Merge handling of
1076 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1079 2012-10-26 Pedro Alves <palves@redhat.com>
1081 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1084 2012-10-26 Pedro Alves <palves@redhat.com>
1086 * target.c (target_waitstatus_to_string): Handle
1087 TARGET_WAITKIND_VFORK_DONE.
1089 2012-10-26 Pedro Alves <palves@redhat.com>
1091 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1092 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1094 2012-10-24 Tristan Gingold <gingold@adacore.com>
1096 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1099 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1101 * ravenscar-thread.c (ravenscar_wait): Only update the list
1102 of threads and inferior_ptid if the inferior is still alive.
1104 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1106 * ada-lang.c (is_known_support_routine): Use lbasename when
1107 matching the symtab's filename against
1108 known_runtime_file_name_patterns.
1110 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1112 * ada-lang.c (ada_same_array_size_p): New function.
1113 (ada_promote_array_of_integrals): New function.
1114 (coerce_for_assign): Add handling of arrays where the elements
1115 are integrals of a smaller size than the size of the target
1118 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1120 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1121 against maximum exponent value.
1123 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1125 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1128 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1130 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1131 strip typedef layer when computing the fixed type's field type,
1132 only when computing its size.
1134 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1137 * i386-tdep.c (i386_return_value): Handle complex double and long
1140 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1142 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1143 New local variable args_len.
1144 Quote the name of the executable when computing the command line.
1146 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1151 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1153 * amd64-tdep.c (amd64_classify): Classify complex types.
1154 (amd64_return_value): Handle the COMPLEX_X87 class.
1156 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1158 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1159 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1161 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1163 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1165 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1166 to amd64_windows_auto_wide_charset.
1168 2012-10-23 Yao Qi <yao@codesourcery.com>
1170 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1171 * event-top.h: Remove its declaration.
1172 (async_request_quit): Call mark_async_signal_handler instead of
1173 mark_async_signal_handler_wrapper.
1174 (async_do_nothing, async_disconnect): Likewise.
1175 (async_stop_sig): Likewise.
1176 * remote.c (handle_remote_sigint): Likewise.
1177 (handle_remote_sigint_twice): Likewise.
1179 2012-10-23 Yao Qi <yao@codesourcery.com>
1181 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1182 with 'static struct async_signal_handler *'.
1183 (sighup_token, sigquit_token, sigstp_token): Likewise.
1185 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1187 * gdbarch.sh (function_list): Use 'pstring' when printing
1188 a variable which could return NULL.
1189 * gdbarch.c: Regenerate.
1191 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1192 Tom Tromey <tromey@redhat.com>
1194 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1195 inneffective if condition by gdb assertion. Add function
1196 description comment.
1198 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1200 * parser-defs.h (struct exp_descriptor): Document constraint
1201 on return value for "op_name" callbacks.
1203 2012-10-18 Tom Tromey <tromey@redhat.com>
1205 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1206 * symtab.c (iterate_over_some_symtabs): Constify.
1207 * source.h (symtab_to_fullname): Return 'const char *'.
1208 * source.c (symtab_to_fullname): Return 'const char *'.
1209 * python/py-symtab.c (stpy_fullname): Constify.
1210 * cli/cli-cmds.c (edit_command): Constify.
1211 * breakpoint.c (print_breakpoint_location)
1212 (update_static_tracepoint): Constify.
1214 2012-10-18 Tom Tromey <tromey@redhat.com>
1216 * breakpoint.c (compare_breakpoints): Fix comparison.
1218 2012-10-18 Tom Tromey <tromey@redhat.com>
1220 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1221 gdb_wchar_t to convert_between_encodings.
1223 2012-10-17 Yao Qi <yao@codesourcery.com>
1225 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1226 more parameter 'inferior'.
1227 * corefile.c (write_memory_with_notification): Caller update.
1229 * mi/mi-cmd-var.c: Include "mi-main.h".
1230 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1231 to 1 and restore it later.
1232 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1233 and "data-write-memory-bytes.
1234 * mi/mi-interp.c: Include objfiles.h.
1235 (mi_interpreter_init): Call observer_attach_memory_changed.
1236 (mi_memory_changed): New.
1237 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1240 * NEWS: Mention new MI notification "memory-changed".
1242 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1244 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1246 2012-10-15 Doug Evans <dje@google.com>
1248 New option -nh: inhibit loading of ~/.gdbinit.
1249 * NEWS: Mention -nh.
1250 * main.c (captured_main): Recognize and process -nh.
1251 (print_gdb_help): Mention -nh.
1252 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1254 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1258 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1260 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1261 nor pc_regnum_from_eax.
1262 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1263 nor pc_regnum_from_eax.
1265 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1267 Fix entry values resolving in inlined frames.
1268 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1269 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1272 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1274 * configure.ac: Build with -DMS_WIN64 if building with Python
1275 enabled using GCC on amd64-windows.
1276 * configure: Regenerate.
1278 2012-10-15 Tom Tromey <tromey@redhat.com>
1281 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1284 2012-10-15 Tom Tromey <tromey@redhat.com>
1287 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1289 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1291 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1292 reset thread numbering back to 1.
1294 2012-10-11 Doug Evans <dje@google.com>
1296 PR breakpoints/14643.
1297 * linespec.c (struct ls_parser): New member keyword_ok.
1298 (linespec_lexer_lex_string): Add comment.
1299 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1301 (parse_linespec): Set keyword_ok.
1303 2012-10-10 Doug Evans <dje@google.com>
1305 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1306 "0x" prefix on address in log message.
1308 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1309 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1310 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1311 (lookup_dwo_file): Add const to dwo_name parameter.
1312 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1314 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 Fix crash during stepping on ppc32.
1317 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1320 2012-10-03 Doug Evans <dje@google.com>
1323 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1325 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1327 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1328 output and use uint32_t not long to ensure 4 byte size.
1330 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1332 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1335 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1337 * target.c (simple_search_memory): Include access length in
1340 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1341 Edjunior Machado <emachado@linux.vnet.ibm.com>
1344 * solib.c (solib_find): Prevent GDB from loading native libraries when
1345 debugging a cross-target corefile.
1347 2012-09-28 selven <pcthegreat@gmail.com>
1349 Make definition match declaration.
1351 * regcache.c (regcache_register_status): Change return type to
1352 enum register_status.
1354 2012-09-28 Yao Qi <yao@codesourcery.com>
1356 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1357 write_memory_with_notification instead of write_memory.
1358 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1359 instead of target_write_memory.
1361 2012-09-28 Yao Qi <yao@codesourcery.com>
1363 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1364 when the length of content is not an even number.
1366 2012-09-27 Tom Tromey <tromey@redhat.com>
1368 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1369 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1371 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1373 * sol-thread.c (sol_thread_fetch_registers)
1374 (sol_thread_store_registers): Delete commented out code.
1376 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1378 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1379 Move these functions to sparc-sol-thread.c.
1380 * sparc-sol-thread.c: New file.
1381 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1382 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1384 * configure: Regenerate.
1386 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1388 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1389 Remove commented-out code.
1391 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1393 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1394 Enable this code for sparc hosts only.
1396 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1398 * procfs.h (procfs_find_LDT_entry): Add declaration.
1399 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1400 function procfs_find_LDT_entry.
1402 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1404 * procfs.c (proc_get_LDT_entry): Make static.
1406 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1408 * procfs.c (proc_find_memory_regions): Fix declaration.
1410 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1412 * amd64-tdep.c (amd64_return_value): Revert previous change
1413 that used TYPE_LENGTH directly.
1414 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1415 (bfin_store_return_value): Likewise.
1416 * cris-tdep.c (cris_store_return_value): Likewise.
1417 (cris_extract_return_value): Likewise.
1418 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1419 * hppa-tdep.c (hppa64_return_value): Likewise.
1420 * lm32-tdep.c (lm32_store_return_value): Likewise.
1421 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1422 * spu-tdep.c (spu_value_from_register): Likewise.
1423 * vax-tdep.c (vax_return_value): Likewise.
1425 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1427 * gdbtypes.c (lookup_array_range_type): Expand parameters
1428 LOW_BOUND and HIGH_BOUND to LONGEST.
1429 (lookup_string_range_type): Likewise.
1430 * gdbtypes.h (lookup_array_range_type): Likewise.
1431 (lookup_string_range_type): Likewise.
1432 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1433 Expand HIGHBOUND to ssize_t.
1434 (value_string): Likewise.
1435 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1436 (value_string): Likewise.
1438 2012-09-27 Yao Qi <yao@codesourcery.com>
1440 PR breakpoints/13898
1441 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1442 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1443 per breakpoint type.
1445 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1447 * procfs.c: Add gdb_bfd header.
1448 * rs6000-nat.c: Likewise.
1449 * solib-pa64.c: Likewise.
1450 * spu-linux-nat.c: Likewise.
1451 * windows-nat.c: Likewise.
1453 2012-09-26 Tom Tromey <tromey@redhat.com>
1455 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1457 2012-09-26 Tom Tromey <tromey@redhat.com>
1459 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1460 (read_common_block): Handle child DIEs with
1461 DW_AT_data_member_location.
1462 (new_symbol_full): Add special case for common blocks.
1464 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1465 Tom Tromey <tromey@redhat.com>
1467 * dwarf2read.c (read_common_block): Rewrite.
1468 (new_symbol_full): Handle DW_TAG_common_block.
1469 * f-lang.c (head_common_list, find_common_for_function):
1471 * f-lang.h (struct common_entry, struct saved_f77_common,
1472 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1473 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1474 BLANK_COMMON_NAME_LOCAL): Remove.
1475 (struct common_block): New.
1476 * f-valprint.c (list_all_visible_commons): Remove.
1477 (info_common_command_for_block): New function.
1478 (info_common_command): Use it.
1479 * stack.c (iterate_over_block_locals): Special case for
1480 COMMON_BLOCK_DOMAIN.
1481 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1483 (struct general_symbol_info) <value.common_block>: New field.
1484 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1486 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 Tom Tromey <tromey@redhat.com>
1489 * f-lang.c (allocate_saved_bf_node,
1490 allocate_saved_function_node, allocate_saved_f77_common_node,
1491 allocate_common_entry_node, tail_common_list, current_common,
1492 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1493 tmp_bf_ptr, add_common_block, add_common_entry,
1494 find_first_common_named, patch_common_entries,
1495 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1496 global_remote_debug, get_bf_for_fcn, saved_function_list,
1497 saved_function_list_end, clear_function_list, struct saved_fcn,
1498 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1499 SAVED_BF, SAVED_BF_PTR): Remove.
1500 * f-lang.h (tail_common_list, current_common,
1501 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1502 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1503 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1504 real_main_c_value): Remove.
1505 * f-valprint.c (there_is_a_visible_common_named): Remove.
1507 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1509 * breakpoint.c (update_global_location_list): Ignore previous
1510 duplicate status of a breakpoint when starting a new scan for
1511 duplicate breakpoints.
1513 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1514 PR breakpoints/14419
1515 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1516 support LLVM compiler.
1518 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1520 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1521 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1522 (bfin_store_return_value): Likewise.
1523 * cris-tdep.c (cris_store_return_value): Likewise.
1524 (cris_extract_return_value): Likewise.
1525 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1526 * hppa-tdep.c (hppa64_return_value): Likewise.
1527 * lm32-tdep.c (lm32_store_return_value): Likewise.
1528 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1529 * spu-tdep.c (spu_value_from_register): Likewise.
1530 * vax-tdep.c (vax_return_value): Likewise.
1532 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1534 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1535 parameter LEN to ssize_t.
1537 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1539 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1541 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1543 (alpha_store_return_value): Likewise.
1544 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1545 (amd64_push_arguments): Likewise.
1546 * ax-gdb.c (gen_trace_static_fields): Likewise.
1547 (gen_traced_pop): Likewise.
1548 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1549 * breakpoint.c (update_watchpoint): Likewise.
1550 * findcmd.c (parse_find_args): Use local variable for type
1552 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1553 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1554 (h8300_store_return_value): Likewise.
1555 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1556 Use i386_darwin_arg_type_alignment directly.
1557 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1558 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1559 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1560 (m68hc11_extract_return_value): Likewise.
1561 * mep-tdep.c (mep_push_dummy_call): Likewise.
1562 * printcmd.c (float_type_from_length): Likewise.
1563 * s390-tdep.c (s390_value_from_register): Likewise.
1564 * stack.c (read_frame_arg): Likewise.
1565 * tracepoint.c (encode_actions_1): Likewise.
1566 * valops.c (value_fetch_lazy): Use local variable for type
1567 instead of length. Use TYPE_LENGTH directly.
1568 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1570 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1572 * symtab.c (skip_prologue_sal): Fix typo in comment.
1574 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1576 * linespec.c (create_sals_line_offset): Fix typo in comment.
1578 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1580 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1581 use plongest to print the array size.
1583 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1585 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1586 * p-valprint.c (pascal_type_print_base): Likewise.
1588 2012-09-22 Yao Qi <yao@codesourcery.com>
1590 * remote.c (remote_get_trace_status): Remove setting default
1591 values of fields of 'ts'.
1593 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1595 Fix internal error on canonicalization of clang types.
1596 * cp-name-parser.y (operator): New comment at make_operator call for
1597 new, delete, new[] and delete[].
1598 (exp): Use "sizeof ". Add new comment at make_operator call.
1600 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1602 Fix disassemble without parameters in tailcall frame.
1603 * cli/cli-cmds.c (disassemble_current_function): Use
1604 get_frame_address_in_block.
1606 2012-09-21 Tom Tromey <tromey@redhat.com>
1608 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1609 TYPE_CODE_UNION>: Unify, removing a goto.
1611 2012-09-21 Tom Tromey <tromey@redhat.com>
1613 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1615 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1617 * findvar.c (read_frame_register_value): Mark the result value as
1618 optimized out if any of the input registers have been optimized out.
1620 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1622 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1624 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1626 * eval.c (evaluate_subexp_standard): Eliminate single-use
1629 2012-09-21 Yao Qi <yao@codesourcery.com>
1631 * mi/mi-interp.c: Declare mi_record_changed.
1632 (mi_interpreter_init): Call observer_attach_record_changed.
1633 (mi_record_changed): New.
1634 * record.c (record_open): Call observer_notify_record_changed.
1635 (cmd_record_stop): Call observer_notify_record_changed.
1638 2012-09-20 Tom Tromey <tromey@redhat.com>
1641 * python/python.c (finalize_python): New function.
1642 (_initialize_python): Make a final cleanup.
1644 2012-09-19 Doug Evans <dje@google.com>
1646 * buildsym.h (param_symbols): Delete, unused.
1647 (context_stack): Delete member "params", unused.
1648 * buildsym.c (push_context): Update.
1649 * dwarf2read.c (read_func_scope): Update.
1651 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1653 * sh-tdep.c (sh_register_convert_to_virtual)
1654 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1655 all callers. Just do a memcpy if not the little-endian case.
1657 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1658 set_gdbarch_double_format and set_gdbarch_long_double_format.
1659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1660 set_gdbarch_double_format.
1661 * sh-tdep.c (sh_gdbarch_init): Likewise.
1663 * NEWS: Document the removal of SH's 'regs' command.
1664 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1667 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1669 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1672 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1674 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1675 language when iterating over symbols.
1677 2012-09-18 Yao Qi <yao@codesourcery.com>
1679 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1680 (mi_interpreter_init): Call observer_attach_tsv_created and
1681 observer_attach_tsv_deleted.
1682 (mi_tsv_created, mi_tsv_deleted): New.
1683 * tracepoint.c (delete_trace_state_variable): Call
1684 observer_notify_tsv_deleted.
1685 (trace_variable_command): Call observer_notify_tsv_created.
1686 (delete_trace_variable_command): Call
1687 observer_notify_tsv_deleted.
1688 (create_tsv_from_upload): Call observer_notify_tsv_created.
1691 2012-09-18 Yao Qi <yao@codesourcery.com>
1693 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1694 if traceframe changed.
1695 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1697 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1698 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1699 'traceframe_changed'.
1700 (mi_traceframe_changed): New.
1701 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1703 * NEWS: Mention the new MI notification.
1705 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1707 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1709 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1711 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1712 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1713 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1714 Extend code also for PaX support. Convert all gdb_assert to warning
1717 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1719 Implement auto-load user conveniences suggested by Doug Evans.
1720 * auto-load.c: Include top.h.
1721 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1722 (_initialize_auto_load): New variable scripts_directory_help. Mention
1723 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1724 scripts-directory. Document in online help one can use also files for
1725 set auto-load safe-path.
1726 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1727 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1729 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1731 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1734 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1736 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1737 ELTLEN and use TYPE_LENGTH directly.
1738 (m2_val_print): Likewise.
1739 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1740 variable LEN and use TYPE_LENGTH directly.
1741 (m68k_svr4_store_return_value): Likewise.
1742 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1743 ARGLEN and use TYPE_LENGTH directly.
1744 (mips_o64_push_dummy_call): Likewise.
1745 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1746 variable LENGTH and use TYPE_LENGTH directly.
1747 (s390_function_arg_float): Likewise.
1748 (s390_function_arg_integer): Likewise.
1749 (s390_push_dummy_call): Likewise.
1750 (s390_return_value_convention): Likewise.
1751 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1752 TYPE_LENGTH directly.
1754 2012-09-17 Yao Qi <yao@codesourcery.com>
1756 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1757 Update comment to add_setshow_integer_cmd.
1758 * cli/cli-setshow.c (do_set_command): Handle case
1759 'var_zuinteger_unlimited'.
1760 (do_show_command): Likewise.
1761 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1762 for command 'remotetimeout'.
1763 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1765 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1766 for command 'set listsize'.
1768 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1770 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1773 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1777 (frame_pop): Drop also TAILCALL_FRAME frames.
1778 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1780 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 Pedro Alves <palves@redhat.com>
1784 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1785 function start if we are already at function start. Both for
1786 reverse-next and for reverse-step into function without line number
1789 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1791 Code cleanup - rename 'inline' depth to 'artificial' depth.
1792 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1793 frame_id_artificial_p, extend the comment.
1794 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1795 * frame.c (fprint_frame_id): Rename at a user, change debug output
1796 text to "artificial=".
1797 (skip_inlined_frames): Rename to ...
1798 (skip_artificial_frames): ... here. Extend the comment.
1799 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1800 (frame_id_inlined_p): Rename to ...
1801 (frame_id_artificial_p): ... here. Rename at a user.
1802 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1803 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1805 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1807 (frame_id_inlined_p): Rename to ...
1808 (frame_id_artificial_p): ... here.
1809 * inline-frame.c (inline_frame_this_id): Rename at a user.
1811 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1813 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1814 vector variables using vector_size syntax rather than array
1817 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1819 * valarith.c (value_concat): Replace unsafe ALLOCA with
1822 2012-09-14 Pedro Alves <palves@redhat.com>
1824 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1826 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1828 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1829 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1830 data-directory as appropriate.
1832 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1834 * printcmd.c (ui_printf): Eliminate single-use variable
1837 2012-09-14 Yao Qi <yao@codesourcery.com>
1838 Pedro Alves <palves@redhat.com>
1840 * valops.c (value_assign): Move observer_notify_target_changed
1841 below to replace reinit_frame_cache.
1843 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1845 Refactor Python "gdb" module into a proper Python package, by
1846 introducing a new "_gdb" module for code implemented in C, and
1847 using reload/__import__ instead of exec.
1848 * python/lib/gdb/__init__.py: Import * from _gdb.
1849 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1850 prompt_hook, sys.argv): Moved from finish_python_initialization.
1851 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1852 (packages, auto_load_packages): New list and function replacing
1853 module_dict and auto-loading code, using __file__ instead of
1854 gdb.PYTHONDIR and reload/__import__ instead of exec.
1855 (GdbSetPythonDirectory): Replacing function of the same name
1856 from finish_python_initialization, using reload/__import__ instead
1857 of exec, as well as call auto_load_packages.
1858 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1859 gdb_python_module and not gdb_module.
1860 * python/python-internal.h (gdb_python_module): Declare.
1861 * python/python.c (gdb_python_module): New global.
1862 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1863 (_initialize_python): Rename gdb module to _gdb.
1864 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1865 (finish_python_initialization): Move Python code to
1866 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1869 2012-09-13 Pedro Alves <palves@redhat.com>
1871 * Makefile.in (COMMON_OBS): Add registry.o.
1872 * registry.c: New file.
1873 * registry.h (struct registry_container): Declare.
1874 (registry_data_callback): New typedef.
1875 (struct registry_data, struct registry_data_registration, struct
1876 registry_data_registry): New type.
1877 (register_data_with_cleanup, registry_alloc_data)
1878 (registry_callback_adaptor, registry_clear_data)
1879 (registry_container_free_data, registry_set_data, registry_data):
1881 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1882 the new common structures and functions.
1883 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1886 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1888 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1889 there is an error inserting hardware breakpoints and use the
1890 error message from the target.
1892 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1893 Catch this exception and print the error message contained within. Do not
1894 print the default hardware error breakpoint message in this case.
1896 2012-09-12 Doug Evans <dje@google.com>
1898 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1901 2012-09-11 Doug Evans <dje@google.com>
1903 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1904 .gdb_index symbol attributes if there are none.
1906 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1908 * symtab.h (struct minimal_symbol) [has_size]: New field.
1909 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1910 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1911 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1912 minimal symbols if the symbol's size is actually known.
1913 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1914 of msymbol's size field. Add comment.
1915 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1916 SET_MSYMBOL_SIZE to set the minimal symbol size.
1918 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1920 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1921 minimal_symbol struct object, rather than setting some of its
1924 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1926 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1927 passed_a_ptr flag when displaying typedef types.
1929 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1931 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1932 the optimized_out flag is preserved.
1934 2012-09-10 Anthony Green <green@moxielogic.com>
1936 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1937 prologue changes in GCC.
1939 2012-09-10 Keith Seitz <keiths@redhat.com>
1942 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1943 (BOOL_CONVERSION_BADNESS): ... this.
1944 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1945 (rank_one_type): Allow all boolean conversions
1946 permitted by the standard.
1948 2012-09-06 Tom Tromey <tromey@redhat.com>
1950 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1951 Don't decref py_objfile.
1953 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1955 Do not enable -lmcheck by default when Python is enabled with
1957 * configure.ac: (python_has_threads) New variable, by testing
1958 if WITH_THREAD is defined in Python.h.
1959 Move --enable-lmcheck after --with-python.
1960 Do not enable -lmcheck by default if python_has_threads=yes.
1961 Warn if --enable-lmcheck and python_has_threads=yes.
1962 * configure: Regenerate.
1964 2012-08-31 Yao Qi <yao@codesourcery.com>
1966 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1967 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1968 Update some commands.
1969 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1970 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1973 2012-08-31 Yao Qi <yao@codesourcery.com>
1975 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1977 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1979 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1981 2012-08-29 Doug Evans <dje@google.com>
1983 * main.c (print_gdb_help): Remove reference to
1984 --use-deprecated-index-sections.
1986 2012-08-28 Yao Qi <yao@codesourcery.com>
1988 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1989 (init_cmds): Call add_setshow_uinteger_cmd for command
1990 'max-user-call-depth'.
1991 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1992 declaration of 'max_user_call_depth'.
1993 * frame.c (backtrace_limit): Add 'unsigned'.
1994 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1996 * remote.c (remoteaddresssize): Add 'unsigned'.
1997 (remote_address_masked): Change local var 'address_size' to
1999 (_initialize_remote): Call add_setshow_uinteger_cmd for
2000 'remoteaddresssize'.
2001 * top.c (history_size): Add 'unsigned'.
2002 (show_commands): Change local variables to 'unsigned'.
2003 (set_history_size_command): Don't check history_size is negative.
2004 Adjust the condition to call unstifle_history and set history_size
2007 2012-08-28 Pedro Alves <palves@redhat.com>
2011 * infcmd.c (default_print_one_register_info): New, factored out
2012 from default_print_registers_info.
2013 (default_print_registers_info): Use it. Mark value unavailable if
2015 (registers_info): Print user registers with
2016 default_print_one_register_info.
2018 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2021 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2022 is not NULL before referencing it.
2024 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2026 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2027 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2030 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2031 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 * auto-load.c (auto_load_objfile_script): Rename to ...
2034 (auto_load_objfile_script_1): ... here, change variable realname to
2035 parameter realname, document it, add return value, add variable retval.
2036 (auto_load_objfile_script): New function.
2038 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2041 followed by a whitespace.
2043 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2047 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2048 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2051 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2053 * memattr.c (create_mem_region): Fix memory region overlapping
2056 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2058 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2059 with xmalloc/cleanup.
2060 * mt-tdep.c (mt_push_dummy_call): Likewise.
2061 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2062 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2064 2012-08-24 Yao Qi <yao@codesourcery.com>
2066 * jv-exp.y (push_expression_name): Add "." at the end of error
2069 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2071 Document how to return from "python-interactive" to GDB.
2072 * python/python.c (_initialize_python): Update documentation.
2074 2012-08-23 Pedro Alves <palves@redhat.com>
2076 * infrun.c (_initialize_infrun) <handle command help text>:
2077 Mention that multiple signals are supported.
2079 2012-08-23 Pedro Alves <palves@redhat.com>
2081 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2084 2012-08-23 Yao Qi <yao@codesourcery.com>
2086 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2087 (tfind_1): Don't call registers_changed, set_traceframe_num,
2088 and clear_traceframe_info.
2089 Call set_current_traceframe.
2090 (set_current_traceframe): call set_traceframe_num.
2092 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2094 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2095 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2097 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2099 Enable readline in Python in a GDB-specific way and block the
2100 standard Python readline module to prevent conflicts with GDB.
2101 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2102 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2103 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2104 * python/py-gdb-readline.c: New file.
2105 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2107 * python/python.c (_initialize_python): Call
2108 gdbpy_initialize_gdb_readline.
2110 2012-08-22 Keith Seitz <keiths@redhat.com>
2112 * defs.h: Include build-gnulib/config.h
2114 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2116 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2119 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2121 Add a new "python-interactive" command that starts a standard
2122 Python interactive prompt with "pi" as alias, and add "py" as
2123 an alias to "python".
2124 * NEWS: Mention the new commands.
2125 * python/python.c (eval_python_command): New function.
2126 (python_interactive_command): For "python-interactive" with
2127 arguments, call eval_python_command. For "python-interactive"
2128 without arguments, call PyRun_InteractiveLoop.
2129 (_initialize_python): Add "python-interactive" command with
2130 "pi" as alias, and add "py" as an alias to "python".
2132 2012-08-22 Tom Tromey <tromey@redhat.com>
2134 * defs.h (quit_flag): Don't declare.
2135 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2136 (QUIT): Use new functions.
2137 * event-top.c (command_handler): Use clear_quit_flag.
2138 (handle_sigint): Use set_quit_flag.
2139 (async_request_quit): Use check_quit_flag. Don't check
2141 * exceptions.c (throw_exception): Use clear_quit_flag.
2142 * main.c (captured_main): Use clear_quit_flag.
2143 * python/python.c (clear_quit_flag, set_quit_flag)
2144 (check_quit_flag): New functions.
2145 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2147 * remote.c (remote_wait_as): Use check_quit_flag,
2149 (remote_start_remote): Call QUIT.
2150 * symfile.c (load_progress): Use check_quit_flag.
2151 * top.c (command_loop): Use clear_quit_flag.
2152 (command_line_input): Call QUIT.
2153 * utils.c (quit_flag): Conditionally define.
2154 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2156 (prompt_for_continue): Call QUIT. Use quit, not
2158 * remote-mips.c (mips_expect_timeout): Call QUIT.
2159 * monitor.c (monitor_expect): Call QUIT.
2161 2012-08-22 Tom Tromey <tromey@redhat.com>
2163 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2164 (async_init_signals): Update.
2165 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2166 (SIGWINCH_HANDLER_BODY): Remove.
2168 2012-08-22 Tom Tromey <tromey@redhat.com>
2170 * jit.c (jit_object_close_impl): Don't malloc the objfile
2172 * objfiles.c (allocate_objfile): Don't malloc the objfile
2174 (free_objfile): Don't free the objfile name.
2175 * objfiles.h (struct objfile) <name>: Update comment.
2176 * symfile.c (reread_symbols): Fix reference counting. Don't
2177 malloc objfile name.
2179 2012-08-22 Tom Tromey <tromey@redhat.com>
2181 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2182 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2183 (symfile_bfd_open): Likewise.
2184 (generic_load): Likewise.
2185 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2186 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2188 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2190 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2191 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2192 (pmon_load_fast): Likewise.
2193 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2194 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2195 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2196 (macho_check_dsym): Likewise.
2197 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2198 (m32r_upload_command): Likewise.
2199 * gdb_bfd.h (gdb_bfd_cache): Declare.
2200 * gdb_bfd.c (struct gdb_bfd_data): New.
2201 (gdb_bfd_cache): New global.
2202 (struct gdb_bfd_cache_search): New.
2203 (hash_bfd): New function.
2205 (gdb_bfd_open): Likewise.
2206 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2207 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2209 * exec.c (exec_file_attach): Use gdb_bfd_open.
2210 * dsrec.c (load_srec): Use gdb_bfd_open.
2212 2012-08-22 Tom Tromey <tromey@redhat.com>
2214 * dwarf2read.c (macro_start_file): Update.
2215 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2216 (free_objfile_per_bfd_storage): Destroy macro_cache.
2217 (allocate_objfile, free_objfile): Update.
2218 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2220 (struct objfile) <macro_cache>: Remove.
2221 * symfile.c (reread_symbols): Update.
2222 * symmisc.c (print_symbol_bcache_statistics): Update.
2223 (print_objfile_statistics): Update.
2225 2012-08-22 Tom Tromey <tromey@redhat.com>
2227 * elfread.c (elf_symtab_read): Update.
2228 * objfiles.c (objfiles_bfd_data): New global.
2229 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2230 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2231 (allocate_objfile, free_objfile): Update.
2232 (_initialize_objfiles): Initialize objfiles_bfd_data.
2233 * objfiles.h (struct objfile_per_bfd_storage): New.
2234 (struct objfile) <per_bfd>: New field.
2235 <filename_cache>: Remove.
2236 (set_objfile_per_bfd): Declare.
2237 * symfile.c (reread_symbols): Update. Call
2238 set_objfile_per_bfd.
2239 (allocate_symtab): Update.
2240 * symmisc.c (print_symbol_bcache_statistics): Update.
2241 (print_objfile_statistics): Print the size of the BFD obstack.
2243 2012-08-22 Tom Tromey <tromey@redhat.com>
2245 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2246 * gdb_bfd.c: Use DEFINE_REGISTRY.
2247 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2248 (gdb_bfd_ref): Call bfd_alloc_data.
2249 (gdb_bfd_unref): Call bfd_free_data.
2251 2012-08-22 Tom Tromey <tromey@redhat.com>
2253 * registry.h (struct registry_fields): New.
2254 (REGISTRY_FIELDS): Redefine.
2255 (REGISTRY_ACCESS_FIELD): New macro.
2256 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2259 2012-08-22 Tom Tromey <tromey@redhat.com>
2261 * auto-load.c (_initialize_auto_load): Update.
2262 * solib-svr4.c (_initialize_svr4_solib): Update
2263 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2264 * solib-darwin.c (_initialize_darwin_solib): Update.
2265 * registry.h: New file.
2266 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2267 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2268 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2269 (register_program_space_data_with_cleanup)
2270 (register_program_space_data, program_space_alloc_data)
2271 (clear_program_space_data, set_program_space_data)
2272 (program_space_data): Don't declare.
2273 * progspace.c: Use DEFINE_REGISTRY.
2274 (struct program_space_data, struct
2275 program_space_data_registration, struct
2276 program_space_data_registry, program_space_data_registry)
2277 (register_program_space_data_with_cleanup)
2278 (register_program_space_data, program_space_alloc_data)
2279 (program_space_free_data, clear_program_space_data)
2280 (set_program_space_data, program_space_data): Remove.
2281 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2282 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2283 (register_objfile_data_with_cleanup, register_objfile_data)
2284 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2286 * objfiles.c: Use DEFINE_REGISTRY.
2287 (struct objfile_data, struct objfile_data_registration, struct
2288 objfile_data_registry, objfile_data_registry)
2289 (register_objfile_data_with_cleanup, register_objfile_data)
2290 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2291 (set_objfile_data, objfile_data): Remove.
2292 (_initialize_objfiles): Update.
2293 * jit.c (_initialize_jit): Update.
2294 * inflow.c (_initialize_inflow): Update.
2295 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2296 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2297 (register_inferior_data_with_cleanup, register_inferior_data)
2298 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2300 * inferior.c: Use DEFINE_REGISTRY.
2301 (struct inferior_data, struct inferior_data_registration, struct
2302 inferior_data_registry, inferior_data_registry)
2303 (register_inferior_data_with_cleanup, register_inferior_data)
2304 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2305 (set_inferior_data, inferior_data): Remove.
2306 * auxv.c (_initialize_auxv): Update.
2307 * ada-lang.c (_initialize_ada_language): Update.
2308 * breakpoint.c (_initialize_breakpoint): Update.
2309 * i386-nat.c (i386_use_watchpoints): Update.
2311 2012-08-22 Tom Tromey <tromey@redhat.com>
2313 * exec.c (exec_close, exec_file_attach): Update.
2314 (add_to_section_table): Initialize 'key' field.
2315 (add_target_sections, remove_target_sections): Add 'key' argument.
2316 * exec.h (add_target_sections, remove_target_sections): Add
2318 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2319 (reload_shared_libraries_1): Update.
2320 * target.h (struct target_section) <key>: New field.
2322 2012-08-22 Tom Tromey <tromey@redhat.com>
2324 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2326 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2328 * symfile.c (allocate_symtab): Use host_address_to_string
2329 function instead of cast of pointer to long which is not
2330 compatible with x86_64-w64-mingw32 build.
2332 2012-08-19 Andrew Pinski <apinski@cavium.com>
2334 * mips-tdep.c (is_octeon): New function.
2335 (is_octeon_bbit_op): New function.
2336 (mips32_next_pc): Handle Octeon's bbit instructions.
2337 (mips32_instruction_has_delay_slot): Likewise.
2339 2012-08-19 Andrew Pinski <apinski@cavium.com>
2341 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2342 before the function.
2344 2012-08-19 Andrew Pinski <apinski@cavium.com>
2346 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2348 2012-08-19 Keith Seitz <keiths@redhat.com>
2351 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2352 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2354 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2356 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2357 The typo broke "make TAGS".
2359 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2363 2012-08-17 Keith Seitz <keiths@redhat.com>
2366 * gdbtypes.c (strict_type_checking): New variable.
2367 (show_strict_type_checking): New function.
2368 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2369 if strict type checking is disabled.
2370 (_initialize_gdbtypes): Add "check type" subcommand.
2371 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2373 2012-08-17 Keith Seitz <keiths@redhat.com>
2375 * language.h (type_mode): Remove.
2376 (type_check): Remove.
2377 (struct language_defn): Remove la_type_check.
2378 (STRICT_TYPE): Remove unused macro.
2379 (type_error): Remove.
2380 * language.c (set_type_range_case): Renamed to ...
2381 (set_range_case): ... this. Update all callers.
2382 Remove type_mode/type_check.
2383 (type_mode): Remove.
2384 (type_check): Remove.
2385 (show_type_command): Remove.
2386 (set_type_command): Remove.
2387 (language_info): Remove type checking output.
2388 (type_error): Remove unused function.
2389 (range_error): Update comment.
2390 (unknown_language_defn): Remove la_type_check.
2391 (auto_language_defn): Likewise.
2392 (local_language_defn): Likewise.
2393 (_initialize_language): Remove "check type" subcommand.
2394 * ada-lang.c (ada_language_defn): Remove la_type_check.
2395 * c-lang.c (c_language_defn): Likewise.
2396 (cplus_language_defn): Likewise.
2397 (asm_language_defn): Likewise.
2398 (minimal_language_defn): Likewise.
2399 * d-lang.c (d_language_defn): Likewise.
2400 * f-lang.c (f_language_defn): Likewise.
2401 * go-lang.c (go_language_defn): Likewise.
2402 * jv-lang.c (java_language_defn): Likewise.
2403 * m2-lang.c (m2_language_defn): Likewise.
2404 * objc-lang.c (objc_language_defn): Likewise.
2405 * opencl-lang.c (opencl_language_defn): Likewise.
2406 * p-lang.c (pascal_language_defn): Likewise.
2408 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2410 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2412 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2414 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2416 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2417 using the regache. Use ia64_hpux_get_register_from_save_state_t
2418 to access the bsp and bspstore registers if not.
2420 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2422 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2423 * breakpoint.c (detach_breakpoints): Change pid parameter into
2424 a ptid. Adjust code accordingly.
2425 * infrun.c (handle_inferior_event): Delete variable child_pid.
2426 Update call to detach_breakpoints to pass the child ptid for
2428 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2429 assert that inferior_ptid's lwp is zero.
2430 (linux_handle_extended_wait): Update call to detach_breakpoints.
2431 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2434 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2436 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2437 parent, only call detach_breakpoints if tts.tts_event ==
2440 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2442 * dwarf2-frame.c (dwarf2_frame_cache): Use
2443 get_frame_address_in_block instead of get_frame_pc as
2444 the bound for executing the frame's FDE.
2446 2012-08-16 Yao Qi <yao@codesourcery.com>
2448 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2449 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2450 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2451 (c_type_print_varspec_suffix): Likewise.
2452 * eval.c (evaluate_subexp_standard): Likewise.
2453 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2454 (f_type_print_varspec_suffix): Likewise.
2455 * gdbtypes.c (is_scalar_type): Likewise.
2456 (recursive_dump_type): Likewise.
2457 * infcall.c (value_arg_coerce): Likewise.
2458 * m2-valprint.c (m2_val_print): Likewise.
2459 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2460 (pascal_type_print_varspec_suffix): Likewise.
2461 (pascal_type_print_base): Likewise.
2462 * p-valprint.c (pascal_val_print): Likewise.
2463 (pascal_val_print): Likewise.
2464 * valops.c (value_slice): Likewise.
2465 * valprint.c (scalar_type_p): Likewise.
2466 * valarith.c (value_bitstring_subscript): Remove.
2467 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2468 Remove comment on TYPE_CODE_BITSTRING.
2470 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2471 TYPE_CODE_BITSTRING.
2473 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2476 2012-08-16 Yao Qi <yao@codesourcery.com>
2478 * tracepoint.c (trace_find_none_command): Remove.
2479 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2481 2012-08-16 Yao Qi <yao@codesourcery.com>
2483 * remote.c (handle_notification): Remove parameter 'length'.
2484 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2486 2012-08-15 Keith Seitz <keiths@redhat.com>
2488 * gdbtypes.c (opaque_type_resolution): Make static.
2489 Add missing comment.
2490 (overload_debug): Add missing comment.
2491 (show_opaque_type_resolution): Likewise.
2492 (show_overload_debug): Likewise.
2493 (print_bit_vector): Remove unnecessary forward declaration.
2494 (print_arg_types): Likewise.
2495 (dump_fn_fieldlists): Likewise.
2496 (print_cplus_stuff): Likewise.
2498 2012-08-15 Tom Tromey <tromey@redhat.com>
2500 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2501 (gdb_bfd_ref): Initialize new field.
2502 (gdb_bfd_unref): Unref the archive BFD.
2503 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2506 2012-08-15 Tom Tromey <tromey@redhat.com>
2509 * python/py-bpevent.c (create_breakpoint_event_object): Update
2511 * python/py-event.c (evpy_add_attribute): Update comment.
2512 * python/py-exitedevent.c (create_exited_event_object): Fix
2513 reference counting and error handling.
2514 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2515 Fix reference counting.
2516 * python/py-signalevent.c (create_signal_event_object): Fix
2517 reference counting and error handling.
2518 * python/py-stopevent.c (emit_stop_event): Fix reference
2520 * python/py-threadevent.c (get_event_thread): Return a
2522 * python/py-type.c (convert_field): Fix reference counting.
2524 2012-08-15 Tom Tromey <tromey@redhat.com>
2526 * dwarf2read.c (dwarf_decode_macro_bytes)
2527 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2530 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2532 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2533 stepi, nexti, finish, next, step, jump, and continue commands.
2534 * infrun.c (_initialize_infrun): Update help text for the handle
2537 2012-08-14 Doug Evans <dje@google.com>
2539 * gdbtypes.c (struct extra): Delete, unused.
2541 * gdbtypes.c: Whitespace cleanup.
2542 (address_space_name_to_int): Remove "extern" from definition.
2543 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2545 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2546 TYPE_POINTER_TYPE (type).
2548 2012-08-14 Gary Benson <gbenson@redhat.com>
2550 * solib-svr4.c (svr4_free_library_list): Use free_so.
2552 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2554 * .gitignore: Add go-exp.c.
2556 2012-08-13 Doug Evans <dje@google.com>
2558 * value.c (show_convenience): Tweak comment.
2559 (_initialize_values): Mention convenience functions in the help text
2560 for "show convenience".
2562 2012-08-13 Yao Qi <yao@codesourcery.com>
2564 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2565 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2567 * eval.c (evaluate_subexp_standard): Likewise.
2568 * expprint.c (print_subexp_standard): Likewise.
2569 (dump_subexp_body_standard): Likewise.
2570 * parse.c (operator_length_standard): Likewise.
2572 2012-08-13 Yao Qi <yao@codesourcery.com>
2574 * std-operator.def: Remove OP_BITSTRING.
2575 * breakpoint.c (watchpoint_exp_is_const): Update.
2576 * eval.c (evaluate_subexp_standard): Remove handling to
2578 * expprint.c (print_subexp_standard): Likewise.
2579 (dump_subexp_body_standard): Likewise.
2580 * parse.c (operator_length_standard): Likewise.
2581 * valops.c (value_bitstring): Remove.
2582 * value.h: Remove the declaration of 'value_bitstring'.
2584 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2586 * linespec.c (find_methods): Remove unused variables `i1' and
2588 (decode_line_full): Likewise for `arg_start'.
2590 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2592 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2593 (zlib_decompress_section): Likewise for `section_data'.
2594 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2596 2012-08-10 Doug Evans <dje@google.com>
2598 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2599 * NEWS: Document them.
2600 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2602 * python/py-type.c (typy_array_1): New function.
2603 (typy_array): Call it.
2604 (typy_vector): New function.
2605 (type_object_methods): Add "vector".
2606 * python/lib/gdb/function/__init__.py: New file.
2607 * python/lib/gdb/function/strfns.py: New file.
2609 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2611 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2612 for TYPE_FIELD_BITPOS.
2613 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2615 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2618 * common/vec.h (VEC_merge): Define.
2619 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2620 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2621 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2622 * completer.c: Include gdb_signals.h.
2623 (signal_completer): Define.
2624 * completer.h (signal_completer): Add prototype.
2625 * infcmd.c (_initialize_infcmd): Assign the command
2626 completer for "signal" to handle_completer.
2627 * infrun.c: Include completer.h.
2628 (handle_completer): Define.
2629 (_initialize_infrun): Declare a new local variable c. Store the
2630 result of add_com("handle") to it. Assign the command
2631 completer for "handle" to handle_completer.
2633 2012-08-09 Yao Qi <yao@codesourcery.com>
2635 * cli/cli-decode.c (set_cmd_prefix): New.
2636 (lookup_cmd_for_prefixlist): New.
2637 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2638 of each cmd_list_element in *prefixlist.
2639 (add_setshow_cmd_full): set_cmd_prefix.
2640 (add_alias_cmd): Likewise.
2641 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2642 Declare 'auto_boolean_enums'.
2643 * cli/cli-setshow.c: Include "observer.h".
2644 (notify_command_param_changed_p): New.
2645 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2647 (do_setshow_command): Split it to ...
2648 (do_set_command, do_show_command): ... them. New.
2649 (do_set_command): Call observer_notify_command_param_changed if
2650 notify_command_param_changed_p returns true.
2651 (cmd_show_list): Caller update.
2652 * auto-load.c (set_auto_load_cmd): Likewise.
2653 * remote.c (show_remote_cmd): Likewise.
2654 * cli/cli-setshow.h: Update declarations.
2655 * top.c (execute_command): Call do_set_command and do_show_command.
2657 * NEWS: Mention new MI notification.
2658 * mi/mi-interp.c: Declare mi_command_param_changed.
2659 (mi_interpreter_init): Attach mi_command_param_changed to
2660 observer command_param_changed.
2661 (mi_command_param_changed): New.
2662 Remove mi_suppress_breakpoint_notifications.
2663 Define global variable mi_suppress_notification.
2664 (mi_breakpoint_created): Update.
2665 (mi_breakpoint_deleted): Likewise.
2666 (mi_breakpoint_modified): Likewise.
2667 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2668 'gdb-set' and set mi_suppress_notification.
2669 * mi/mi-main.h: (mi_suppress_notification): New struct.
2671 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2672 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2676 2012-08-09 Yao Qi <yao@codesourcery.com>
2678 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2679 (skiplist): Move it to skip.c.
2680 (init_cmd_lists): Remove code setting enablebreaklist and
2682 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2683 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2685 * gdbcmd.h: Likewise.
2686 * skip.c (_initialize_step_skip): Move 'skiplist' from
2689 2012-08-09 Yao Qi <yao@codesourcery.com>
2691 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2692 * gnu-nat.c, symfile.c: Likewise.
2694 2012-08-08 Aaron Gamble <agamble@google.com>
2696 * utils.c (prompt_for_continue_wait_time): New static global.
2697 (make_command_stats_cleanup): Initialize it.
2698 (report_command_stats): Subtract time waiting for user.
2699 (prompt_for_continue): Track time waiting for user.
2700 (defaulted_query): Track time waiting for user.
2702 2012-08-08 Doug Evans <dje@google.com>
2704 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2706 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2707 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2708 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2709 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2710 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2711 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2713 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2714 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2715 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2716 (dump_prefix_expression): Handle OP_TYPE.
2718 2012-08-08 Keith Seitz <keiths@redhat.com>
2720 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2723 2012-08-08 Doug Evans <dje@google.com>
2725 * linux-thread-db.c: #include "gdb_vecs.h".
2726 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2728 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2729 (thread_db_load_search): Use a vector to iterate over path elements.
2730 Handle text appearing after "$pdir".
2732 * gdb_string.h: Moved to ...
2733 * common/gdb_string.h: ... here.
2734 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2735 gdb_string.h and gdb_assert.h.
2737 2012-08-08 Yao Qi <yao@codesourcery.com>
2739 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2740 (tic6x_value_to_register): Likewise.
2741 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2742 and set_gdbarch_value_to_register.
2744 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2745 Jean-Marc Saffroy <saffroy@gmail.com>
2748 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2749 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2750 * gcore.c (gcore_create_callback): New function comment. Add modified
2751 parameter. Only write modified regions. Set SEC_READONLY exactly
2752 according to MODIFIED.
2753 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2754 the passed modified value to FUNC.
2755 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2756 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2757 first. New variables modified and has_anonymous. Parse the lines of
2758 smaps file. Add the passed MODIFIED value to FUNC.
2759 * procfs.c (find_memory_regions_callback): Add the passed modified
2762 2012-08-06 Tom Tromey <tromey@redhat.com>
2764 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2765 (dwarf2_frame_cache): Use it.
2766 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2767 cache initialization constraint.
2769 2012-08-06 Tom Tromey <tromey@redhat.com>
2772 * varobj.c (update_dynamic_varobj_children): Don't call
2775 2012-08-06 Tom Tromey <tromey@redhat.com>
2778 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2780 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2782 * NEWS: New entry for 'cd' default parameters.
2783 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2785 2012-08-03 Tom Tromey <tromey@redhat.com>
2787 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2790 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2792 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2793 to attempting lseek/write.
2794 (inf_child_fileio_pread): Likewise for pread.
2796 2012-08-02 Yao Qi <yao@codesourcery.com>
2798 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2799 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2800 add_setshow_zinteger_cmd.
2801 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2802 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2803 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2804 instead of add_setshow_zinteger_cmd.
2805 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2806 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2807 instead of add_setshow_zinteger_cmd.
2808 * frame.c (frame_debug): Add 'unsigned'.
2809 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2810 add_setshow_zinteger_cmd.
2811 * frame.h: Update the declaration of 'frame_debug'.
2812 * gdbtypes.c (overload_debug): Add 'unsigned'.
2813 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2814 add_setshow_zinteger_cmd.
2815 * inferior.h: Update declaration of 'debug_infrun'.
2816 * infrun.c (debug_infrun): Add 'unsigned'.
2817 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2818 add_setshow_zinteger_cmd.
2819 * jit.c (jit_debug): Add 'unsigned'.
2820 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2821 add_setshow_zinteger_cmd.
2822 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2823 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2824 instead of add_setshow_zinteger_cmd.
2825 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2826 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2827 add_setshow_zinteger_cmd.
2828 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2829 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2830 instead of add_setshow_zinteger_cmd.
2831 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2832 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2833 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2834 intead of add_setshow_zinteger_cmd.
2835 * mips-tdep.c (mips_debug): Add 'unsigned'.
2836 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2837 instead of add_setshow_zinteger_cmd.
2838 * monitor.c (monitor_debug): Add 'unsigned'.
2839 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2840 add_setshow_zinteger_cmd.
2841 * observer.c (observer_debug): Add 'unsigned'.
2842 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2843 add_setshow_zinteger_cmd.
2844 * parse.c (expressiondebug): Add 'unsigned'.
2845 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2846 add_setshow_zinteger_cmd.
2847 * record.c (record_debug): Add 'unsigned'.
2848 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2849 add_setshow_zinteger_cmd.
2850 * record.h: Update the declaration of 'record_debug'.
2851 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2852 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2853 add_setshow_zinteger_cmd.
2854 * serial.c (global_serial_debug_p): Add 'unsigned'.
2855 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2856 add_setshow_zinteger_cmd.
2857 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2858 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2859 add_setshow_zinteger_cmd.
2860 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2861 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2862 add_setshow_zinteger_cmd.
2863 * target.c (targetdebug): Add 'unsigned'.
2864 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2865 add_setshow_zinteger_cmd.
2866 * valops.c (overload_debug): Add 'unsigned'.
2867 * varobj.c (varobjdebug): Add 'unsigned'.
2868 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2869 add_setshow_zinteger_cmd.
2870 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2871 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2872 instead of add_setshow_zinteger_cmd.
2874 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2875 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2876 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2877 instead of add_setshow_zinteger_cmd.
2878 * gdbarch.c, gdbarch.h: Re-generated.
2880 2012-08-02 Yao Qi <yao@codesourcery.com>
2882 * nto-tdep.c: Don't include cli/cli-decode.h and
2884 (_initialize_nto_tdep): Remove.
2885 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2887 Remove macro nto_internal_debugging.
2889 2012-08-01 Richard Henderson <rth@redhat.com>
2891 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2892 (mep-*-*) [gdb_target_obs]: Likewise.
2894 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2896 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2897 linux_get_siginfo_type.
2899 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2901 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2903 (call_function_by_hand) <ON_STACK>: Call write_memory with
2904 gdbarch_breakpoint_from_pc, if possible.
2905 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2908 2012-07-31 Yao Qi <yao@codesourcery.com>
2910 * tracepoint.c: Add 'static' for some variables.
2912 2012-07-31 Yao Qi <yao@codesourcery.com>
2914 * go32-nat.c: Declare _initialize_go32_nat.
2915 * ser-go32.c: Declare _initialize_ser_dos.
2916 * top.c (do_chdir_cleanup): Add 'static'.
2918 2012-07-30 Keith Seitz <keiths@redhat.com>
2920 * linespec.c (linespec_lex_number): A number followed
2921 by quotes is a valid number, too.
2923 2012-07-30 Tom Tromey <tromey@redhat.com>
2925 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2927 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2929 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2930 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2932 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2934 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2935 invalid or reevaluated to prevent prevent references to possibly
2936 delete'd type objects being left in the varobj.
2938 2012-07-27 Tom Tromey <tromey@redhat.com>
2939 Jan Kratochvil <jan.kratochvil@redhat.com>
2941 * copying.awk: Print buffer-read-only and vi ro markers.
2942 * copying.c: Rebuild.
2943 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2944 * gdbarch.c, gdbarch.h: Rebuild.
2945 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2946 buffer-read-only and vi ro markers.
2947 * features/arm-with-iwmmxt.c: Rebuild.
2948 * features/arm-with-m-fpa-layout.c: Rebuild.
2949 * features/arm-with-m-vfp-d16.c: Rebuild.
2950 * features/arm-with-m.c: Rebuild.
2951 * features/arm-with-neon.c: Rebuild.
2952 * features/arm-with-vfpv2.c: Rebuild.
2953 * features/arm-with-vfpv3.c: Rebuild.
2954 * features/i386/amd64-avx-linux.c: Rebuild.
2955 * features/i386/amd64-avx.c: Rebuild.
2956 * features/i386/amd64-linux.c: Rebuild.
2957 * features/i386/amd64.c: Rebuild.
2958 * features/i386/i386-avx-linux.c: Rebuild.
2959 * features/i386/i386-avx.c: Rebuild.
2960 * features/i386/i386-linux.c: Rebuild.
2961 * features/i386/i386-mmx-linux.c: Rebuild.
2962 * features/i386/i386-mmx.c: Rebuild.
2963 * features/i386/i386.c: Rebuild.
2964 * features/i386/x32-avx-linux.c: Rebuild.
2965 * features/i386/x32-avx.c: Rebuild.
2966 * features/i386/x32-linux.c: Rebuild.
2967 * features/i386/x32.c: Rebuild.
2968 * features/mips-dsp-linux.c: Rebuild.
2969 * features/mips-linux.c: Rebuild.
2970 * features/mips64-dsp-linux.c: Rebuild.
2971 * features/mips64-linux.c: Rebuild.
2972 * features/rs6000/powerpc-32.c: Rebuild.
2973 * features/rs6000/powerpc-32l.c: Rebuild.
2974 * features/rs6000/powerpc-403.c: Rebuild.
2975 * features/rs6000/powerpc-403gc.c: Rebuild.
2976 * features/rs6000/powerpc-405.c: Rebuild.
2977 * features/rs6000/powerpc-505.c: Rebuild.
2978 * features/rs6000/powerpc-601.c: Rebuild.
2979 * features/rs6000/powerpc-602.c: Rebuild.
2980 * features/rs6000/powerpc-603.c: Rebuild.
2981 * features/rs6000/powerpc-604.c: Rebuild.
2982 * features/rs6000/powerpc-64.c: Rebuild.
2983 * features/rs6000/powerpc-64l.c: Rebuild.
2984 * features/rs6000/powerpc-7400.c: Rebuild.
2985 * features/rs6000/powerpc-750.c: Rebuild.
2986 * features/rs6000/powerpc-860.c: Rebuild.
2987 * features/rs6000/powerpc-altivec32.c: Rebuild.
2988 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2989 * features/rs6000/powerpc-altivec64.c: Rebuild.
2990 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2991 * features/rs6000/powerpc-cell32l.c: Rebuild.
2992 * features/rs6000/powerpc-cell64l.c: Rebuild.
2993 * features/rs6000/powerpc-e500.c: Rebuild.
2994 * features/rs6000/powerpc-e500l.c: Rebuild.
2995 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2996 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2997 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2998 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2999 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3000 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3001 * features/rs6000/powerpc-vsx32.c: Rebuild.
3002 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3003 * features/rs6000/powerpc-vsx64.c: Rebuild.
3004 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3005 * features/rs6000/rs6000.c: Rebuild.
3006 * features/s390-linux32.c: Rebuild.
3007 * features/s390-linux32v1.c: Rebuild.
3008 * features/s390-linux32v2.c: Rebuild.
3009 * features/s390-linux64.c: Rebuild.
3010 * features/s390-linux64v1.c: Rebuild.
3011 * features/s390-linux64v2.c: Rebuild.
3012 * features/s390x-linux64.c: Rebuild.
3013 * features/s390x-linux64v1.c: Rebuild.
3014 * features/s390x-linux64v2.c: Rebuild.
3015 * features/tic6x-c62x-linux.c: Rebuild.
3016 * features/tic6x-c62x.c: Rebuild.
3017 * features/tic6x-c64x-linux.c: Rebuild.
3018 * features/tic6x-c64x.c: Rebuild.
3019 * features/tic6x-c64xp-linux.c: Rebuild.
3020 * features/tic6x-c64xp.c: Rebuild.
3022 2012-07-27 Tom Tromey <tromey@redhat.com>
3024 * c-exp.y (classify_name): Avoid assignment in condition.
3026 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3028 * amd64-windows-tdep.c: Include "frame.h".
3029 (amd64_windows_skip_trampoline_code): New function.
3030 (amd64_windows_init_abi): Add trampoline registration.
3032 2012-07-27 Yao Qi <yao@codesourcery.com>
3034 * tracepoint.c (cur_traceframe_number): Remove.
3035 (set_tfile_traceframe): Remove.
3036 (tfile_trace_find, tfile_fetch_registers): Update callers.
3037 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3038 (tfile_open, tfile_trace_find): Likewise.
3040 2012-07-27 Yao Qi <yao@codesourcery.com>
3042 * thread.c (switch_to_thread): Don't call registers_changed.
3044 2012-07-26 Tom Tromey <tromey@redhat.com>
3046 * Makefile.in (SFILES): Remove objc-exp.y.
3047 (YYFILES): Remove objc-exp.c.
3048 (YYOBJ): Remove objc-exp.o.
3049 (local-maintainer-clean): Don't mention objc-exp.c.
3050 * c-exp.y: Include objc-lang.h.
3051 (%union) <class>: New field.
3052 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3053 (exp): Clone subscript production for OBJC_LBRAC. Add various
3054 Objective C productions.
3055 (msglist, msgarglist, msgarg): New productions.
3056 (array_mod, func_mod, operator): Clone productions for
3058 (parse_string_or_char): Handle '@' strings.
3059 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3060 (classify_name): Check la_name_of_this. Recognize ObjC class
3062 * objc-exp.y: Remove.
3063 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3064 * objc-lang.h (objc_parse, objc_error): Don't declare.
3066 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3068 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3070 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3072 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3075 2012-07-26 Tom Tromey <tromey@redhat.com>
3077 * copying.c: Rebuild.
3078 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3081 2012-07-26 Tom Tromey <tromey@redhat.com>
3083 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3085 (print_objfile_statistics): Likewise.
3086 (maintenance_print_symbols): Likewise.
3087 (maintenance_print_msymbols): Likewise.
3088 (maintenance_print_objfiles): Likewise.
3089 * psymtab.c (print_partial_symbols): Call QUIT.
3090 (maintenance_print_psymbols): Likewise. Don't modify
3092 * copying.c (show_copying_command): Don't modify immediate_quit.
3093 (show_warranty_command): Likewise.
3094 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3096 2012-07-26 Keith Seitz <keiths@redhat.com>
3098 * linespec.c (linespec_lexer_lex_number): The input
3099 is also a valid number if the next character is a comma
3102 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3104 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3107 2012-07-26 Tristan Gingold <gingold@adacore.com>
3109 * machoread.c: Include gdb_bfd.h.
3111 2012-07-26 Tristan Gingold <gingold@adacore.com>
3113 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3116 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3118 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3120 (dwarf2_evaluate_loc_desc): Likewise.
3121 (dwarf2_loc_desc_needs_frame): Likewise.
3122 (locexpr_describe_location_1): Likewise.
3123 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3125 (struct dwarf2_loclist_baton): Likewise.
3126 * dwarf2read.c (struct dwarf_block): Likewise.
3127 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3128 (decode_locdesc): Expand SIZE and I to size_t.
3130 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3132 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3134 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3136 * doublest.c (convert_doublest_to_floatformat): If the exponent
3137 is too small, treat the value as zero. If the exponent is too
3138 large, treat the value as infinity.
3140 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3142 * configure.ac: Add --enable-lmcheck configure option.
3143 * configure: Regenerate.
3145 2012-07-25 Tom Tromey <tromey@redhat.com>
3147 * NEWS: Mention maint info bfds.
3148 * gdb_bfd.c (all_bfds): New global.
3149 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3150 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3153 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3155 * configure.tgt: Add v850*-*-rtems*.
3157 2012-07-25 Tom Tromey <tromey@redhat.com>
3159 * macrotab.c (macro_bcache_str): Remove cast.
3161 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3163 * linespec.c (linespec_lexer_lex_number): Update comments,
3164 change the return and add check to make sure the input is
3165 the decimal numbers.
3166 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3167 false, call linespec_lexer_lex_string.
3169 2012-07-24 Tom Tromey <tromey@redhat.com>
3171 * symfile.c (symbol_file_add): Don't open BFD twice.
3173 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3175 * breakpoint.c (create_breakpoint): Store condition for pending
3178 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3180 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3181 (m68k_return_value): Handle complex types like structures.
3182 (m68k_svr4_return_value): Likewise.
3184 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3186 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3187 parameters to bfd_get_section_name.
3189 2012-07-24 Yao Qi <yao@codesourcery.com>
3191 * cli/cli-setshow.c: Handle case 'var_uinteger'
3192 and 'var_zuninteger' together. Handle case 'var_integer' and
3193 'var_zinteger' together.
3195 2012-07-23 Keith Seitz <keiths@redhat.com>
3197 * linespec.c (convert_linespec_to_sal): Don't add
3198 any symbols to the result vector if symbol_to_sal
3201 2012-07-23 Keith Seitz <keiths@redhat.com>
3203 * linespec.c (decode_objc): Record the function name
3206 2012-07-23 Tom Tromey <tromey@redhat.com>
3208 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3210 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3211 (map_vmap): Acquire a reference to the BFD.
3213 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3215 * p-valprint.c (pascal_object_print_value): Replace potentially
3216 unsafe alloca with xmalloc/xfree.
3217 * valops.c (search_struct_method): Likewise.
3219 2012-07-23 Tom Tromey <tromey@redhat.com>
3221 * solib-svr4.c (enable_break): Update.
3222 * bfd-target.h (target_bfd_reopen): Update documentation.
3224 2012-07-23 Tom Tromey <tromey@redhat.com>
3226 * symfile.c (separate_debug_file_exists): Update.
3227 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3228 (reread_symbols): Update.
3229 * elfread.c (build_id_verify): Update.
3230 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3231 bfd_open_maybe_remote.
3233 2012-07-23 Tom Tromey <tromey@redhat.com>
3235 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3237 2012-07-23 Tom Tromey <tromey@redhat.com>
3239 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3241 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3243 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3244 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3246 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3247 * objfiles.c (allocate_objfile): Acquire a new reference.
3248 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3249 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3250 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3251 a cleanup for 'nbfd'.
3252 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3254 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3255 make a cleanup for 'abfd'.
3256 (symbol_file_add): Make a BFD cleanup.
3258 2012-07-23 Tom Tromey <tromey@redhat.com>
3260 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3261 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3262 * corelow.c (core_open): Use gdb_bfd_fopen.
3263 * dsrec.c (load_srec): Use gdb_bfd_openr.
3264 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3265 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3266 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3267 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3268 (gdb_bfd_fdopenr): New functions.
3269 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3270 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3271 (gdb_bfd_fdopenr): Declare.
3272 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3273 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3274 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3275 gdb_bfd_openr_next_archived_file.
3276 (macho_check_dsym): Use gdb_bfd_openr.
3277 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3278 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3279 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3280 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3282 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3283 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3284 gdb_bfd_openr_next_archived_file.
3285 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3287 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3289 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3290 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3291 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3292 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3293 (symfile_bfd_open): Use gdb_bfd_fopen.
3294 (generic_load): Use gdb_bfd_openr.
3295 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3297 2012-07-23 Tom Tromey <tromey@redhat.com>
3299 * bfd-target.c (target_bfd_reopen): Update.
3300 * cli/cli-dump.c (bfd_openr_with_cleanup)
3301 (bfd_openw_with_cleanup): Update.
3302 * corelow.c (core_open): Update.
3303 * dsrec.c (load_srec): Update.
3304 * exec.c (exec_file_attach): Update.
3305 * gcore.c (create_gcore_bfd): Update.
3306 * gdb_bfd.c (gdb_bfd_ref): Return void.
3307 (gdb_bfd_open): Update.
3308 * gdb_bfd.h (gdb_bfd_ref): Return void.
3310 * jit.c (jit_bfd_try_read_symtab): Update.
3311 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3312 * machoread.c (macho_symfile_read_all_oso): Update.
3313 (macho_check_dsym): Update.
3314 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3315 * remote-m32r-sdi.c (m32r_load): Update.
3316 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3317 * rs6000-nat.c (add_vmap): Update.
3318 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3320 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3321 * solib-spu.c (spu_bfd_open): Update.
3322 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3323 * spu-linux-nat.c (spu_bfd_open): Update.
3324 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3325 (generic_load): Update.
3326 * windows-nat.c (windows_make_so): Update.
3328 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3330 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3332 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3334 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3335 SIGTRAMP_FRAME unwinding.
3337 2012-07-20 Doug Evans <dje@google.com>
3339 * NEWS: Document new options "set/show use-deprecated-index-sections",
3340 and delete reference to --use-deprecated-index-sections.
3341 * symfile.h (use_deprecated_index_sections): Delete.
3342 * dwarf2read.c (use_deprecated_index_sections): Make static.
3343 (read_index_from_section): Update wording of how to load
3344 deprecated index sections.
3345 (_initialize_dwarf2_read): New options
3346 "set/show use-deprecated-index-sections".
3347 * main.c (captured_main): Delete --use-deprecated-index-sections.
3349 2012-07-20 Pedro Alves <palves@redhat.com>
3354 * infrun.c (handle_inferior_event) <new thread>: Don't special
3355 case minus_one_ptid.
3356 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3357 * linux-thread-db.c (thread_get_info_callback): Don't return early
3358 if the thread is zombie.
3359 (thread_from_lwp): Change return type to void. Rewrite stale
3361 (attach_thread): Don't return early if the thread is zombie,
3362 instead set its "dying" flag.
3363 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3364 (find_new_threads_callback): Don't return early if the thread is
3367 2012-07-20 Pedro Alves <palves@redhat.com>
3369 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3370 * target.c (target_wait): Likewise.
3371 (str_comma_list_concat_elem, do_option, target_options_to_string):
3373 * target.h (target_options_to_string): Declare.
3375 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3376 Tom Tromey <tromey@redhat.com>
3378 * dwarf2read.c (dwarf_decode_macros)
3379 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3380 DW_MACRO_GNU_transparent_include_alt>: New cases.
3381 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3382 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3384 2012-07-20 Tom Tromey <tromey@redhat.com>
3386 * dwarf2read.c (try_open_dwo_file): Don't call
3387 gdb_bfd_stash_filename.
3389 2012-07-20 Pedro Alves <palves@redhat.com>
3391 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3392 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3393 (i386_process_record): Tweak description comments.
3395 2012-07-20 Pedro Alves <palves@redhat.com>
3397 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3398 (i386_process_record): Use record_read_memory.
3399 * record.c (record_read_memory): New function.
3400 (record_arch_list_add_mem, record_exec_insn): Use
3402 * record.h (record_read_memory): Declare.
3404 2012-07-20 Yao Qi <yao@codesourcery.com>
3406 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3409 2012-07-19 Pedro Alves <palves@redhat.com>
3411 * record.c (record_resume): Ask the target beneath to report all
3414 2012-07-19 Doug Evans <dje@google.com>
3416 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3417 there's no section at address zero.
3418 (dwarf2_record_block_ranges): Ditto.
3420 2012-07-19 Yao Qi <yao@codesourcery.com>
3422 * command.h, remote.c: Fix a typo in comment.
3424 2012-07-19 Tom Tromey <tromey@redhat.com>
3427 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3428 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3429 OP_DECLTYPE>: New cases.
3430 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3431 (type_exp): Add new productions.
3432 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3434 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3436 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3437 OP_DECLTYPE>: New case.
3438 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3440 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3441 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3443 2012-07-19 Tom Tromey <tromey@redhat.com>
3445 * c-exp.y (enum token_flags): New.
3446 (struct token) <cxx_only>: Remove.
3448 (tokentab3, tokentab2, ident_tokens): Update.
3449 (lex_one_token): Update. Handle FLAG_SHADOW.
3451 2012-07-19 Tom Tromey <tromey@redhat.com>
3453 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3454 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3455 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3456 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3457 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3458 type_exp production where appropriate.
3459 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3460 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3461 <UNOP_MEMVAL_TYPE>: New case.
3462 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3463 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3464 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3465 <UNOP_MEMVAL_TYPE>: New case.
3466 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3467 UNOP_REINTERPRET_CAST>: Update.
3468 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3469 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3470 UNOP_REINTERPRET_CAST>: Update.
3471 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3472 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3473 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3476 2012-07-19 Yao Qi <yao@codesourcery.com>
3477 Jan Kratochvil <jan.kratochvil@redhat.com>
3479 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3480 and case 'var_optional_filename' together.
3481 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3482 instead of add_setshow_optional_filename_cmd for setshow command
3483 'args'. Set completer for 'set args'.
3485 2012-07-18 Doug Evans <dje@google.com>
3487 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3488 * common/gdb_vecs.c: New file, contents from utils.c.
3489 * common/host-defs.h: New file, contents from defs.h.
3490 * utils.h: New file, contents from defs.h.
3491 * defs.h: Move all declarations of objects defined in utils.c
3492 to utils.h (except QUIT() and related).
3493 #include "utils.h", "host-defs.h".
3494 * probe.h (probe_p): Move here from gdb_vecs.h.
3495 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3496 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3497 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3498 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3499 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3500 (COMMON_OBS): Add gdb_vecs.o.
3501 (gdb_vecs.o): New rule.
3503 2012-07-18 Keith Seitz <keiths@redhat.com>
3505 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3506 parameter. If non-zero, use SYMNAME as the canonical name
3509 (convert_linespec_to_sals): Use add_sal_to_sals for
3511 (decode_line_full): No need to "fill in missing canonical names"
3512 anymore. Simply make cleanups for the allocated names.
3514 2012-07-18 Keith Seitz <keiths@redhat.com>
3516 * linespec.c (struct linespec): Constify expression,
3517 source_filename, function_name, and label_name.
3518 (symbol_not_found_error): Make all parameters const.
3519 (linespec_parser_delete): No need to check for NULL
3520 when using xfree. Cast const char * to char * for xfree.
3522 2012-07-18 Keith Seitz <keiths@redhat.com>
3524 * breakpoint.c (invalid_thread_id_error): New function.
3525 (find_condition_and_thread): Use invalid_thread_id_error.
3526 (watch_command_1): Likewise.
3528 2012-07-18 Tom Tromey <tromey@redhat.com>
3530 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3531 * contrib/cc-with-tweaks.sh: New file.
3533 2012-07-18 Tom Tromey <tromey@redhat.com>
3535 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3536 (locate_dwz_sections): Recognize .gdb_index.
3537 (create_cus_from_index_list): New function.
3538 (create_cus_from_index): Use it. Handle .dwz data.
3539 (read_index_from_section): New function, extracted from
3541 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3544 2012-07-18 Tom Tromey <tromey@redhat.com>
3546 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3547 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3548 <is_dwz>: New field.
3549 (struct dwz_file): New.
3550 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3551 (locate_dwz_sections, dwarf2_get_dwz_file)
3552 (get_abbrev_section_for_cu): New functions.
3553 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3554 (read_and_check_type_unit_head): Add abbrev_section argument.
3555 (create_debug_types_hash_table): Update.
3556 (init_cutu_and_read_dies): Use proper abbrev section.
3557 (init_cutu_and_read_dies_no_follow): Likewise.
3558 (set_partial_user): Do nothing if PST==NULL.
3559 (read_comp_units_from_section): New function.
3560 (create_all_comp_units): Use it.
3561 (scan_partial_symbols, partial_die_parent_scope): Update.
3562 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3563 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3564 (find_partial_die): Add offset_in_dwz argument. Update.
3565 (guess_partial_die_structure_name, fixup_partial_die): Update.
3566 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3567 DW_FORM_GNU_strp_alt.
3568 (read_indirect_string_from_dwz): New function.
3569 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3570 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3571 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3572 (follow_die_offset): Add offset_in_dwz argument.
3573 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3574 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3575 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3576 Handle new macro forms.
3577 (dwarf_decode_macros): Update.
3578 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3579 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3580 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3581 (create_debug_types_hash_table): Use correct abbrev section.
3582 (get_debug_line_section): New function.
3583 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3584 (process_full_comp_unit): Pass 'required' argument to
3585 end_symtab_get_static_block.
3586 * buildsym.h (end_symtab_get_static_block): Update.
3587 * buildsym.c (end_symtab_get_static_block): Add 'required'
3589 (end_symtab, end_expandable_symtab): Update.
3591 2012-07-18 Tom Tromey <tromey@redhat.com>
3593 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3595 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3596 (zlib_decompress_section): Remove.
3597 (dwarf2_read_section): Use gdb_bfd_map_section.
3598 (munmap_section_buffer): Remove.
3599 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3600 munmap_section_buffer.
3601 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3602 (struct gdb_bfd_section_data): New.
3603 (free_one_bfd_section): New function.
3604 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3605 (get_section_descriptor, zlib_decompress_section)
3606 (gdb_bfd_map_section): New functions.
3607 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3609 2012-07-18 Tom Tromey <tromey@redhat.com>
3611 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3613 2012-07-18 Tom Tromey <tromey@redhat.com>
3615 * gdb_bfd.c (struct gdb_bfd_data): New.
3616 (gdb_bfd_cache): New global.
3617 (struct gdb_bfd_cache_search): New.
3618 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3619 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3620 * gdb_bfd.h (gdb_bfd_open): Declare.
3622 2012-07-18 Tom Tromey <tromey@redhat.com>
3624 * utils.c (make_cleanup_bfd_unref): Rename from
3625 make_cleanup_bfd_close.
3626 * defs.h (make_cleanup_bfd_unref): Rename from
3627 make_cleanup_bfd_close.
3628 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3629 (bfd_openw_with_cleanup): Update.
3630 * corelow.c (core_open): Update.
3631 * dsrec.c (load_srec): Update.
3632 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3633 * remote-m32r-sdi.c (m32r_load): Update.
3634 * remote-mips.c (mips_load_srec): Update.
3635 (pmon_load_fast): Update.
3636 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3638 (darwin_bfd_open): Update.
3639 * solib.c (solib_bfd_fopen): Update.
3640 * symfile-mem.c (symbol_file_add_from_memory): Update.
3641 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3642 (symfile_bfd_open): Update.
3643 (generic_load): Update.
3645 2012-07-18 Tom Tromey <tromey@redhat.com>
3647 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3648 (pmon_load_fast): Likewise.
3649 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3650 (m32r_upload_command): Likewise.
3651 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3652 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3653 Use make_cleanup_bfd_close.
3655 2012-07-18 Tom Tromey <tromey@redhat.com>
3657 * symfile.c (symfile_bfd_open): Don't copy name. Call
3658 gdb_bfd_stash_filename.
3659 (load_command): Open the new BFD before freeing the old.
3660 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3661 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3662 Call gdb_bfd_stash_filename.
3663 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3664 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3665 gdb_bfd_stash_filename.
3666 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3667 Free found_pathname.
3668 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3669 gdb_bfd_stash_filename.
3670 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3671 * machoread.c (macho_add_oso_symfile): Call
3672 gdb_bfd_stash_filename.
3673 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3674 gdb_bfd_stash_filename.
3675 (macho_check_dsym): Don't copy filename. Call
3676 gdb_bfd_stash_filename.
3677 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3678 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3679 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3680 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3681 * exec.c (exec_close): Don't free the BFD's filename.
3682 (exec_file_attach): Don't copy the filename. Call
3683 gdb_bfd_stash_filename.
3684 * corelow.c (core_close): Don't free the BFD's filename.
3685 (core_open): Call gdb_bfd_stash_filename.
3686 * corefile.c (reopen_exec_file): Remove #if 0 code.
3687 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3689 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3691 2012-07-18 Tom Tromey <tromey@redhat.com>
3693 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3695 (free_dwo_file): Use gdb_bfd_unref.
3696 * cli/cli-dump.c: Include gdb_bfd.h.
3697 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3698 (bfd_openr_with_cleanup): Likewise.
3699 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3701 * utils.c: Include gdb_bfd.h.
3702 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3703 * symfile.c: Include gdb_bfd.h.
3704 (separate_debug_file_exists): Use gdb_bfd_unref.
3705 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3706 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3707 (generic_load): Use gdb_bfd_ref.
3708 (reread_symbols): Use gdb_bfd_unref.
3709 * symfile-mem.c: Include gdb_bfd.h.
3710 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3711 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3712 * solib.c: Include gdb_bfd.h.
3713 (solib_bfd_fopen): Use gdb_bfd_ref.
3714 (solib_bfd_open): Use gdb_bfd_unref.
3715 (free_so_symbols): Use gdb_bfd_unref.
3716 (reload_shared_libraries_1): Use gdb_bfd_unref.
3717 * solib-spu.c: Include gdb_bfd.h.
3718 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3719 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3721 * solib-frv.c: Include gdb_bfd.h.
3722 (enable_break2): Use gdb_bfd_unref.
3723 * solib-dsbt.c: Include gdb_bfd.h.
3724 (enable_break2): Use gdb_bfd_unref.
3725 * solib-darwin.c: Include gdb_bfd.h.
3726 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3728 (darwin_bfd_open): Use gdb_bfd_unref.
3729 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3730 * remote-mips.c: Include gdb_bfd.h.
3731 (mips_load_srec): Use gdb_bfd_ref.
3732 (pmon_load_fast): Use gdb_bfd_ref.
3733 * remote-m32r-sdi.c: Include gdb_bfd.h.
3734 (m32r_load): Use gdb_bfd_ref.
3735 * record.c: Include gdb_bfd.h.
3736 (record_save_cleanups): Use gdb_bfd_unref.
3737 (cmd_record_save): Use gdb_bfd_unref.
3738 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3740 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3741 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3742 * objfiles.c: Include gdb_bfd.h.
3743 (free_objfile): Use gdb_bfd_unref.
3744 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3746 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3747 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3748 (macho_check_dsym): Likewise.
3749 * m32r-rom.c: Include gdb_bfd.h.
3750 (m32r_load): Use gdb_bfd_ref.
3751 (m32r_upload_command): Use gdb_bfd_ref.
3752 * jit.c: Include gdb_bfd.h.
3753 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3754 * gdb_bfd.h: New file.
3755 * gdb_bfd.c: New file.
3756 * gcore.c: Include gdb_bfd.h.
3757 (create_gcore_bfd): Use gdb_bfd_ref.
3758 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3759 (gcore_command): Use gdb_bfd_unref.
3760 * exec.c: Include gdb_bfd.h.
3761 (exec_close): Use gdb_bfd_unref.
3762 (exec_close_1): Use gdb_bfd_unref.
3763 (exec_file_attach): Use gdb_bfd_ref.
3764 * elfread.c: Include gdb_bfd.h.
3765 (build_id_verify): Use gdb_bfd_unref.
3766 * dsrec.c: Include gdb_bfd.h.
3767 (load_srec): Use gdb_bfd_ref.
3768 * corelow.c: Include gdb_bfd.h.
3769 (core_close): Use gdb_bfd_unref.
3770 (core_open): Use gdb_bfd_ref.
3771 * bfd-target.c: Include gdb_bfd.h.
3772 (target_bfd_xclose): Use gdb_bfd_unref.
3773 (target_bfd_reopen): Use gdb_bfd_ref.
3774 * Makefile.in (SFILES): Add gdb_bfd.c.
3775 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3776 (COMMON_OBS): Add gdb_bfd.o.
3778 2012-07-18 Keith Seitz <keiths@redhat.com>
3780 * breakpoint.c (find_condition_and_thread): Initialize
3782 (create_breakpiont): find_condition_and_thread will now
3783 initialize COND_STRING, THREAD, and REST (and TASK).
3784 (addr_string_to_sals): Likewise.
3786 2012-07-18 Pedro Alves <palves@redhat.com>
3788 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3789 Pull the single step breakpoints out of the target.
3791 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3793 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3794 * stap-probe.c (compile_probe_arg): Likewise.
3796 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3798 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3799 (elf_compile_to_ax): Likewise.
3800 * infrun.c (insert_exception_resume_from_probe): Likewise.
3801 (check_exception_resume): Remove `objfile' variable.
3802 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3803 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3804 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3805 (compare_entries): Rename to...
3806 (compare_probes): ...this. Adjust function to work with
3807 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3809 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3811 (print_ui_out_info): Adjust argument to be `struct probe *'.
3812 (info_probes_for_ops): Adjust internal computations to use
3814 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3815 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3816 gen_info_probes_table_values>: Remove `objfile' argument.
3817 (struct probe) <objfile>: New field.
3818 (find_probe_by_pc): Remove `objfile' argument.
3819 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3820 (stap_get_probe_argument_count): Likewise.
3821 (stap_get_arg): Likewise.
3822 (stap_evaluate_probe_argument): Likewise.
3823 (stap_compile_to_ax): Likewise.
3824 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3825 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3826 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3827 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3828 sym_compile_to_ax>: Likewise.
3830 2012-07-18 Terry Guo <terry.guo@arm.com>
3833 * defs.h (GDB_MI_MSG_WIDTH): New.
3834 * ser_base (ser_base_read_error_fd): New function.
3835 (do_ser_base_readchar): Poll error file descriptor as well as
3837 (generic_readchar): Refactor error handling.
3839 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3841 * NEWS: Create a new section for the next release branch.
3842 Rename the section of the current branch, now that it has
3845 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3847 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3848 * version.in: Bump version to 7.5.50.20120718-cvs.
3850 2012-07-17 Keith Seitz <keiths@redhat.com>
3852 * linespec.c (linespec_parse_line_offset): Make parameter
3855 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 * f-valprint.c (info_common_command): New variable frame_id.
3859 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3860 * printcmd.c (print_variable_and_value): Extend function comment.
3861 Add comment for invalidated FRAME.
3862 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3863 FI form FRAME_ID after each print_frame_local_vars.
3864 (struct print_variable_and_value_data): Change frame to frame_id.
3865 (do_print_variable_and_value): New variable frame, initialize it from
3866 p->frame_id. Add comment for invalidated FRAME.
3867 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3868 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3869 for invalidated FRAME.
3871 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3872 Pedro Alves <palves@redhat.com>
3874 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3877 2012-07-16 Tom Tromey <tromey@redhat.com>
3879 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3881 2012-07-15 Doug Evans <dje@google.com>
3883 * dwarf2read.c (stmt_list_hash): New struct.
3884 (type_unit_group): Embed "per_cu" member, remove pointer.
3885 New union member "t", move member "tus" into it, all uses updated.
3886 New member "hash", replaces member "line_offset, all uses updated.
3887 (quick_file_names): Replace member "offset" with "hash", all uses
3889 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3890 (hash_file_name_entry, eq_file_name_entry): Call them.
3891 (hash_type_unit_group, eq_type_unit_group): Ditto.
3892 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3893 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3894 (dw2_get_file_names): Update.
3895 (create_type_unit_group): Replace "per_cu" arg with "cu".
3896 All callers updated. Fix "quick" (.gdb_index) handling.
3897 (get_type_unit_group): Replace "per_cu" arg with "cu".
3898 All callers updated.
3899 (build_type_unit_groups): Don't reset tu_stats.
3901 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3902 "tab_cur_size". Change member "tab" to be a htab_t.
3903 (create_filename_seen_cache): Update.
3904 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3905 (filename_seen): Update.
3907 2012-07-13 Doug Evans <dje@google.com>
3909 * symtab.c (filename_seen): Update comment.
3911 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3912 Doug Evans <dje@google.com>
3914 * buildsym.c (end_symtab_1): Split it to ...
3915 (end_symtab_get_static_block): ... this ...
3916 (end_symtab_from_static_block): ... and this function.
3917 (end_symtab, end_expandable_symtab): Call them.
3918 * buildsym.h (end_symtab_get_static_block)
3919 (end_symtab_from_static_block): New declarations.
3920 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3921 Set its valid CU ranges.
3923 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3925 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3926 DW_OP_GNU_parameter_ref.
3928 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3930 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3931 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3933 2012-07-13 Doug Evans <dje@google.com>
3935 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3936 (filename_seen_cache): New struct.
3937 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3938 (create_filename_seen_cache): New function.
3939 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3940 (filename_seen): Delete arg "first". New arg "cache". All callers
3942 (output_source_filename_data): New struct.
3943 (output_source_filename): Delete arg "first". New arg "data".
3944 All callers updated.
3945 (sources_info): Delete local "first". New locals "data", "cleanups".
3946 Rewrite to use filename_seen_cache.
3947 (add_partial_filename_data): Delete member "first". New member
3948 "filename_seen_cache". All uses updated.
3949 (make_source_files_completion_list): Rewrite to use
3950 filename_seen_cache.
3952 2012-07-12 Doug Evans <dje@google.com>
3954 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3956 2012-07-10 Doug Evans <dje@google.com>
3959 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3960 all_type_unit_groups, type_unit_groups, tu_stats.
3961 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3962 All uses updated. Add type_unit_group to union "s".
3963 (type_unit_group): New struct.
3964 (IS_TYPE_UNIT_GROUP): New macro.
3965 (abbrev_table): Delete unused member "section".
3966 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3967 (dw2_get_cu): Assert not used with type_unit_group.
3968 (dw2_get_primary_cu): New function.
3969 (dw2_build_type_unit_groups_reader): New function.
3970 (dw2_build_type_unit_groups): New function.
3971 (dw2_get_file_names): Assert not called on type units.
3972 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3973 Redo loop to iterate over type unit groups instead of type units.
3974 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3975 (read_abbrev_offset): New function.
3976 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3978 (create_partial_symtab): New function.
3979 (process_psymtab_comp_unit_reader): Assert not used with type units.
3980 Call create_partial_symtab.
3981 (process_psymtab_type_unit): Delete.
3982 (hash_type_unit_group, eq_type_unit_group): New functions.
3983 (allocate_type_unit_groups_table): New function.
3984 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3985 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3986 (create_type_unit_group, get_type_unit_group): New functions.
3987 (tu_abbrev_offset): New struct.
3988 (sort_tu_by_abbrev_offset): New function.
3989 (add_type_unit_group_to_table): New function.
3990 (build_type_unit_groups): New function.
3991 (build_type_psymtabs_reader): New function.
3992 (build_type_psymtab_dependencies): New function.
3993 (build_type_psymtabs): Rewrite.
3994 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3995 is seen in a type unit.
3996 (process_queue): Move symtab expansion debugging printfs here.
3997 Call process_full_type_unit for type units.
3998 (compute_symtab_includes): Assert not called for type units.
3999 (process_cu_includes): Don't call compute_symtab_includes for
4001 (process_full_type_unit): New function.
4002 (process_imported_unit_die): Flag an error if called for type units.
4003 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4004 updated. Assert not called for type units.
4005 (read_file_scope): Call dwarf2_start_symtab.
4006 (setup_type_unit_groups): New function.
4007 (read_type_unit_scope): Rewrite.
4008 (abbrev_table_read_table): Initialize abbrev_table->offset.
4009 (abbrev_table_free_cleanup): New function.
4010 (dwarf2_start_symtab): New function.
4011 (load_full_type_unit): Assert not called for type unit groups.
4012 * buildsym.c (finish_block_internal): New arg "expandable".
4013 All callers updated.
4014 (start_symtab): Move most contents to ...
4015 (restart_symtab): ... here. New function.
4016 (reset_symtab_globals): New function.
4017 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4018 Call reset_symtab_globals.
4019 (end_symtab, end_expandable_symtab): New functions.
4020 (set_missing_symtab, augment_type_symtab): New functions.
4021 * buildsym.h (end_expandable_symtab): Declare.
4022 (augment_type_symtab, restart_symtab): Declare.
4023 * psympriv.h (struct partial_symtab): New member "anonymous".
4024 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4026 (read_psymtabs_with_filename): Ditto.
4027 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4028 (expand_symtabs_matching_via_partial): Ditto.
4029 (dump_psymtab): Update.
4030 * dictionary.c (dict_add_pending): New function.
4031 * dictionary.h (dict_add_pending): Declare.
4033 2012-07-09 Doug Evans <dje@google.com>
4035 * buildsym.c (start_subfile): Remove unnecessary check for
4038 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4040 * dwarf2read.c (load_full_type_unit): Simplify.
4042 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4043 to struct signatured_type **. All uses updated.
4045 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4046 All callers updated.
4048 2012-07-09 Tom Tromey <tromey@redhat.com>
4050 * c-exp.y (check_parameter_typelist): New function.
4051 (parameter_typelist): Call it.
4052 * eval.c (make_params): Handle '(void)' case.
4053 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4056 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4058 * common/linux-ptrace.c: Include gdb_assert.h.
4059 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4060 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4062 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4064 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4065 * linux-nat.c (linux_child_post_attach)
4066 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4068 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4070 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4071 nptl <2.7 bug workaround for core files.
4073 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4075 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4077 (save_siginfo): Remove.
4078 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4080 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4081 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4082 * linux-nat.h (struct lwp_info): Remove field siginfo.
4084 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4086 Code cleanup for the next patch.
4087 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4088 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4090 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4091 (ia64_linux_stopped_data_address):
4092 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4094 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4095 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4096 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4099 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4102 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4103 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4105 2012-07-06 Tom Tromey <tromey@redhat.com>
4107 * c-exp.y (DOTDOTDOT): New token.
4108 (func_mod, exp): Use parameter_typelist.
4109 (parameter_typelist): New production.
4110 (tokentab3): Add "..." token.
4111 * eval.c (make_params): Handle varargs.
4112 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4115 2012-07-06 Tom Tromey <tromey@redhat.com>
4118 * c-exp.y (%union) <tvec>: Change type.
4119 (func_mod): Now uses <tvec> type.
4120 (exp): Update for tvec change.
4121 (direct_abs_decl): Push the typelist.
4122 (func_mod): Return a typelist.
4123 (nonempty_typelist): Update for tvec change.
4124 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4125 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4126 * parse.c (pop_type_list): New function.
4127 (push_typelist): New function.
4128 (follow_types): Handle tp_function_with_arguments.
4129 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4130 (enum type_pieces) <tp_function_with_arguments>: New constant.
4131 (union type_stack_elt) <typelist_val>: New field.
4132 (push_typelist): Declare.
4134 2012-07-06 Tom Tromey <tromey@redhat.com>
4136 * c-exp.y (%union) <type_stack>: New field.
4137 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4138 (ptr_operator_ts): New production.
4140 * parse.c (type_stack_reserve): New function.
4141 (check_type_stack_depth): Use it.
4142 (pop_type_stack, append_type_stack, push_type_stack)
4143 (get_type_stack, type_stack_cleanup): New functions.
4144 (follow_types): Handle tp_type_stack.
4145 (_initialize_parse): Simplify initialization.
4146 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4148 (union type_stack_elt) <stack_val>: New field.
4149 (get_type_stack, append_type_stack, push_type_stack)
4150 (type_stack_cleanup): Declare.
4152 2012-07-06 Tom Tromey <tromey@redhat.com>
4154 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4156 (struct type_stack): New.
4157 * parse.c (type_stack, type_stack_size, type_stack_depth):
4159 (type_stack): New global.
4160 (parse_exp_in_context, check_type_stack_depth)
4161 (insert_into_type_stack, insert_type, push_type, push_type_int)
4162 (insert_type_address_space, pop_type, pop_type_int)
4163 (_initialize_parse): Update.
4165 2012-07-06 Tom Tromey <tromey@redhat.com>
4167 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4170 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4172 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4174 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4175 Jan Kratochvil <jan.kratochvil@redhat.com>
4177 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4178 alloca with xmalloc/xfree.
4180 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4182 * MAINTAINERS (Write After Approval): Add myself to the list.
4184 2012-07-05 Doug Evans <dje@google.com>
4186 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4188 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4190 * ax-gdb.c (cli/cli-utils.h): New include.
4191 (linespec.h): Ditto.
4192 (agent_eval_command_one): New function.
4193 (agent_command_1): Ditto.
4194 (agent_command): Call function agent_command_1.
4195 (agent_eval_command): Ditto.
4196 (_initialize_ax_gdb): Change help for "maint agent"
4197 and "maint agent-eval".
4199 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4201 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4202 * cli/cli-utils.c (check_for_argument): New function.
4203 * cli/cli-utils.h (check_for_argument): Ditto.
4205 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4207 * NEWS: Mention x32 ABI support.
4209 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4211 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4212 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4214 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4215 and pc_regnum_from_eax to -1. Update SP regnum from
4216 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4219 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4222 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4225 * dwarf2expr.h: Include gdbtypes.h.
4226 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4227 these forward declarations.
4228 (cu_offset, sect_offset): Move these ...
4229 * gdbtypes.h: Remove include dwarf2expr.h.
4230 (cu_offset, sect_offset): ... here.
4232 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4234 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4235 (amd64_linux_sigtramp_code): This.
4236 (amd64_x32_linux_sigtramp_code): New.
4237 (LINUX_SIGTRAMP_LEN): Updated.
4238 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4240 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4242 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4244 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4246 * config.in: Regenerate.
4247 * configure: Regenerate.
4248 * configure.ac: Remove check for gnu/libc-version.h.
4249 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4251 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4252 variables libc_version, libc_major and libc_minor. Replace sscanf by
4253 inferior_has_bug. Extend the comment.
4255 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4257 * linux-thread-db.c (inferior_has_bug): New function.
4258 (thread_db_find_new_threads_silently): Return boolean as checked by
4259 inferior_has_bug, describe it in the comments.
4260 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4261 earlier. Abort the initialization if it returned non-zero.
4262 (thread_db_new_objfile): Exclude debug files.
4263 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4266 2012-07-02 Doug Evans <dje@google.com>
4268 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4269 related to queue management.
4271 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4272 instead of "debug dwarf2-die" in debugging printfs.
4273 (create_debug_info_hash_table_reader): Ditto.
4274 (create_debug_info_hash_table): Ditto.
4275 (init_dwo_file): Ditto.
4276 (init_cutu_and_read_dies): Add debugging printf.
4277 (init_cutu_and_read_dies_no_follow): Ditto.
4278 (process_psymtab_comp_unit_reader): Ditto.
4280 2012-07-02 Stan Shebs <stan@codesourcery.com>
4282 Add target-side support for dynamic printf.
4283 * NEWS: Mention the additional style.
4284 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4285 (struct bp_location): New field cmd_bytecode.
4286 * breakpoint.c: Include format.h.
4287 (disconnected_dprintf): New global.
4288 (parse_cmd_to_aexpr): New function.
4289 (build_target_command_list): New function.
4290 (insert_bp_location): Call it.
4291 (remove_breakpoints_pid): Skip dprintf breakpoints.
4292 (print_one_breakpoint_location): Ditto.
4293 (dprintf_style_agent): New global.
4294 (dprintf_style_enums): Add dprintf_style_agent.
4295 (update_dprintf_command_list): Add agent case.
4296 (agent_printf_command): New function.
4297 (_initialize_breakpoint): Add new commands.
4298 * common/ax.def (printf): New bytecode.
4299 * ax.h (ax_string): Declare.
4300 * ax-gdb.h (gen_printf): Declare.
4301 * ax-gdb.c: Include cli-utils.h, format.h.
4302 (gen_printf): New function.
4303 (maint_agent_print_command): New function.
4304 (_initialize_ax_gdb): Add maint agent-printf command.
4305 * ax-general.c (ax_string): New function.
4306 (ax_print): Add printf disassembly.
4307 * Makefile.in (SFILES): Add format.c
4308 (COMMON_OBS): Add format.o.
4309 * common/format.h: New file.
4310 * common/format.c: New file.
4311 * printcmd.c: Include format.h.
4312 (ui_printf): Call parse_format_string.
4313 * remote.c (remote_state): New field breakpoint_commands.
4314 (PACKET_BreakpointCommands): New enum.
4315 (remote_breakpoint_commands_feature): New function.
4316 (remote_protocol_features): Add new BreakpointCommands entry.
4317 (remote_can_run_breakpoint_commands): New function.
4318 (remote_add_target_side_commands): New function.
4319 (remote_insert_breakpoint): Call it.
4320 (remote_insert_hw_breakpoint): Ditto.
4321 (_initialize_remote): Add new packet configuration for
4322 target-side breakpoint commands.
4323 * target.h (struct target_ops): New field
4324 to_can_run_breakpoint_commands.
4325 (target_can_run_breakpoint_commands): New macro.
4326 * target.c (update_current_target): Handle
4327 to_can_run_breakpoint_commands.
4329 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4331 Execute -ix and -iex only after system and user gdbinit files.
4332 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4333 processing down after gdbinit files.
4335 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4337 Add fnmatch-gnu module.
4338 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4339 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4340 * gnulib/aclocal.m4: Regenerate.
4341 * gnulib/config.in: Regenerate.
4342 * gnulib/configure: Regenerate.
4343 * gnulib/import/dummy.c: Remove.
4344 * gnulib/import/Makefile.am: Regenerate.
4345 * gnulib/import/Makefile.in: Likewise.
4346 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4347 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4348 * gnulib/import/alloca.c: New file.
4349 * gnulib/import/alloca.in.h: Likewise.
4350 * gnulib/import/config.charset: Likewise.
4351 * gnulib/import/fnmatch.c: Likewise.
4352 * gnulib/import/fnmatch.in.h: Likewise.
4353 * gnulib/import/fnmatch_loop.c: Likewise.
4354 * gnulib/import/localcharset.c: Likewise.
4355 * gnulib/import/localcharset.h: Likewise.
4356 * gnulib/import/m4/alloca.m4: Likewise.
4357 * gnulib/import/m4/codeset.m4: Likewise.
4358 * gnulib/import/m4/configmake.m4: Likewise.
4359 * gnulib/import/m4/fcntl-o.m4: Likewise.
4360 * gnulib/import/m4/fnmatch.m4: Likewise.
4361 * gnulib/import/m4/glibc21.m4: Likewise.
4362 * gnulib/import/m4/localcharset.m4: Likewise.
4363 * gnulib/import/m4/locale-fr.m4: Likewise.
4364 * gnulib/import/m4/locale-ja.m4: Likewise.
4365 * gnulib/import/m4/locale-zh.m4: Likewise.
4366 * gnulib/import/m4/mbrtowc.m4: Likewise.
4367 * gnulib/import/m4/mbsinit.m4: Likewise.
4368 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4369 * gnulib/import/m4/mbstate_t.m4: Likewise.
4370 * gnulib/import/m4/stdbool.m4: Likewise.
4371 * gnulib/import/m4/wchar_h.m4: Likewise.
4372 * gnulib/import/m4/wctype_h.m4: Likewise.
4373 * gnulib/import/m4/wint_t.m4: Likewise.
4374 * gnulib/import/mbrtowc.c: Likewise.
4375 * gnulib/import/mbsinit.c: Likewise.
4376 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4377 * gnulib/import/mbsrtowcs-state.c: Likewise.
4378 * gnulib/import/mbsrtowcs.c: Likewise.
4379 * gnulib/import/ref-add.sin: Likewise.
4380 * gnulib/import/ref-del.sin: Likewise.
4381 * gnulib/import/stdbool.in.h: Likewise.
4382 * gnulib/import/streq.h: Likewise.
4383 * gnulib/import/strnlen1.c: Likewise.
4384 * gnulib/import/strnlen1.h: Likewise.
4385 * gnulib/import/verify.h: Likewise.
4386 * gnulib/import/wchar.in.h: Likewise.
4387 * gnulib/import/wctype.in.h: Likewise.
4389 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4391 Support shell wildcards for 'set auto-load safe-path'.
4392 * auto-load.c: Include fnmatch.h.
4393 (filename_is_in_dir): Rename to ...
4394 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4395 it. Update function comment. Rename dir_len to pattern_len. New
4396 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4397 messages. Use gdb_filename_fnmatch.
4398 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4400 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4401 * defs.h (gdb_filename_fnmatch): New declaration.
4402 * utils.c: Include fnmatch.h.
4403 (gdb_filename_fnmatch): New function.
4405 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4407 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4408 `-probe' and `-probe-stap' options.
4410 2012-07-01 Yao Qi <yao@codesourcery.com>
4412 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4413 always_inserted_off, and always_inserted_enums.
4414 Change always_inserted_mode's type to 'enum auto_boolean'.
4415 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4417 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4418 of add_setshow_enum_cmd.
4419 * infrun.c: Remove can_use_displaced_stepping_auto,
4420 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4421 can_use_displaced_stepping_enum.
4422 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4423 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4424 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4425 add_setshow_enum_cmd.
4427 2012-06-30 Doug Evans <dje@google.com>
4429 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4430 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4431 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4433 2012-06-29 Doug Evans <dje@google.com>
4435 * linespec.c: #include "stack.h".
4436 (decode_line_with_current_source): Moved here from symtab.c and
4437 renamed from decode_line_spec. All callers updated.
4438 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4439 renamed from decode_line_spec_1. All callers updated.
4440 * linespec.h (decode_line_with_current_source): Move declaration here
4441 from symtab.h and renamed from decode_line_spec.
4442 (decode_line_with_last_displayed): Move declaration here from symtab.h
4443 and renamed from decode_line_spec_1.
4444 * macrocmd.c: #include "linespec.h".
4445 * symtab.c: Remove #include "linespec.h".
4447 2012-06-28 Doug Evans <dje@google.com>
4449 * dwarf2read.c (get_cu_length): New function.
4450 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4451 (create_debug_types_hash_table): Ditto.
4452 (init_cutu_and_read_dies): Ditto.
4453 (init_cutu_and_read_dies_no_follow): Ditto.
4455 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4457 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4458 (struct abbrev_table): Define.
4459 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4461 (init_cutu_and_read_dies): Update.
4462 (abbrev_table_alloc_abbrev): New function. Replaces
4463 dwarf_alloc_abbrev. All callers updated.
4464 (abbrev_table_add_abbrev): New function.
4465 (abbrev_table_lookup_abbrev): New function. Replaces
4466 dwarf2_lookup_abbrev. All callers updated.
4467 (abbrev_table_read_table): New function. Contents moved here from
4468 dwarf2_read_abbrevs.
4469 (dwarf2_read_abbrevs): Call it.
4470 (abbrev_table_free): New function.
4471 (dwarf2_free_abbrev_table): Call it.
4473 2012-06-28 Stan Shebs <stan@codesourcery.com>
4475 * osdata.c (info_osdata_command): Filter out "Title" columns
4477 * common/linux-osdata.c (struct osdata_type): Add title field.
4478 (osdata_table): Add titles to each entry.
4479 (linux_command_xfer_osdata): Add a column for title data.
4481 2012-06-28 Stan Shebs <stan@codesourcery.com>
4483 Make logging work for MI.
4485 * interps.h (interp_set_logging_ftype): New typedef.
4486 (struct interp_procs): New field set_logging_proc.
4487 (current_interp_set_logging): Declare.
4488 * interps.c (current_interp_set_logging): New function.
4489 * cli/cli-logging.c: Include interps.h.
4490 (set_logging_redirect): Call current_interp_set_logging.
4491 (pop_output_files): Ditto.
4492 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4493 * mi/mi-console.h (mi_console_set_raw): Declare.
4494 * mi/mi-console.c (mi_console_set_raw): New function.
4495 * mi/mi-interp.c (saved_raw_stdout): New global.
4496 (mi_set_logging): New function.
4497 (_initialize_mi_interp): Add it to interp procs.
4499 2012-06-28 Doug Evans <dje@google.com>
4501 * symtab.c (lookup_symbol_aux_objfile): Use
4502 ALL_OBJFILE_PRIMARY_SYMTABS.
4504 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4506 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4508 * common/buffer.c: Include inttypes.h and stdint.h.
4509 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4511 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4512 Pedro Alves <palves@redhat.com>
4514 * gdbthread.h (ALL_THREADS): New macro.
4515 (thread_list): Declare.
4516 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4517 going, but instead fall through to the stepping handling.
4518 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4519 the passed in signal. Adjust debug output.
4520 (resume_callback): Rename to ...
4521 (linux_nat_resume_callback): ... this. Pass the thread's last
4522 stop signal, if in "pass" state.
4523 (linux_nat_resume): Adjust to rename.
4524 (stop_wait_callback): New assertion. Don't respawn signals;
4525 instead let the LWP remain with SIGNALLED set.
4526 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4527 * remote.c (append_pending_thread_resumptions): New.
4528 (remote_vcont_resume): Call it.
4529 * target.h (target_resume): Extend comment.
4531 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4533 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4535 2012-06-27 Doug Evans <dje@google.com>
4537 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4538 Delete have_addr_base, unused. All uses updated.
4539 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4540 (dwarf2_get_pc_bounds): Add ranges_base.
4541 (dwarf2_record_block_ranges): Ditto.
4543 2012-06-27 Tom Tromey <tromey@redhat.com>
4546 * varobj.c (varobj_create): Update.
4547 (varobj_set_value): Update.
4548 * tracepoint.c (validate_actionline): Update.
4549 (encode_actions_1): Update.
4550 * parse.c (parse_exp_1): Add 'pc' argument.
4551 (parse_exp_in_context): Add 'pc' argument. Change how
4552 expression_context_pc is set.
4553 (parse_expression): Update.
4554 (parse_field_expression): Update.
4555 * expression.h (parse_exp_1): Update.
4556 * eval.c (parse_to_comma_and_eval): Update.
4557 * breakpoint.c (set_breakpoint_condition): Update.
4558 (update_watchpoint): Update.
4559 (init_breakpoint_sal): Update
4560 (find_condition_and_thread): Update.
4561 (watch_command_1): Update.
4562 (update_breakpoint_locations): Update.
4563 * ada-lang.c (ada_read_renaming_var_value): Update.
4564 (create_excep_cond_exprs): Update.
4566 2012-06-27 Doug Evans <dje@google.com>
4568 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4571 2012-06-26 Doug Evans <dje@google.com>
4573 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4575 (error_check_comp_unit_head): New arg abbrev_section. All callers
4577 (read_and_check_comp_unit_head): Ditto.
4578 (read_and_check_type_unit_head): Ditto.
4580 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4582 New attribute 'last' for gdb.Symtab_and_line.
4583 * NEWS (Python Scripting): Add entry about the new attribute.
4584 * python/py-symtab.c (salpy_get_last): New function which
4585 implements the get method for the 'last' attribute of
4586 gdb.Symtab_and_line.
4587 (sal_object_getset): Add entry for the 'last' attribute.
4589 2012-06-26 Doug Evans <dje@google.com>
4591 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4592 (dwo_sections): Add macinfo, macro.
4593 (dwarf2_locate_dwo_sections): Watch for macro sections.
4594 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4595 All callers updated. Handle DWO files.
4597 * NEWS: Mention new options "set debug dwarf2-read" and
4598 "set debug symtab-create".
4599 * dwarf2read.c (dwarf2_read_debug): New static global.
4600 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4601 (process_queue): Ditto.
4602 (process_full_comp_unit): Ditto.
4603 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4604 * elfread.c (elf_symfile_read): Add debugging printf.
4605 * minsyms.c (install_minimal_symbols): Ditto.
4606 * psymtab.c (allocate_psymtab): Ditto.
4607 * symfile.c (allocate_symtab): Ditto.
4608 * symtab.c (symtab_create_debug): New global.
4609 (_initialize_symtab): Add new option "set debug symtab-create".
4610 * symtab.h (symtab_create_debug): Declare.
4612 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4613 (lookup_dwo_type_unit): Ditto.
4615 2012-06-26 Roland McGrath <roland@hack.frob.com>
4616 H.J. Lu <hongjiu.lu@intel.com>
4618 * amd64-linux-nat.c: Include <sys/user.h>.
4619 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4620 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4621 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4623 * configure.ac: Check if the fs_base and gs_base members of
4624 `struct user_regs_struct' exist.
4625 * config.in: Regenerated.
4626 * configure: Likewise.
4628 2012-06-25 Michael Eager <eager@eagercon.com>
4631 * python/python.c (gdbpy_write): Check for interrupted output.
4633 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4635 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4636 register as a stack alignment in ARM mode.
4638 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4640 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4641 * gnulib/config.in: Regenerate.
4642 * gnulib/configure: Likewise.
4643 * gnulib/import/m4/extensions.m4: Update it.
4644 * gnulib/import/m4/gnulib-common.m4: Likewise.
4645 * gnulib/import/m4/memmem.m4: Likewise.
4646 * gnulib/import/m4/mmap-anon.m4: Likewise.
4647 * gnulib/import/m4/multiarch.m4: Likewise.
4648 * gnulib/import/stdint.in.h: Likewise.
4650 2012-06-24 Yao Qi <yao@codesourcery.com>
4652 * corefile.c (write_memory_with_notification): New.
4653 * gdbcore.h: Declare write_memory_with_notification.
4654 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4655 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4656 * valops.c (value_assign): Likewise.
4657 * python/py-inferior.c (infpy_write_memory): Call
4658 'write_memory_with_notification'.
4660 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4662 * cc-with-index.sh: Use also -ex "set auto-load no".
4664 2012-06-23 Doug Evans <dje@google.com>
4667 * NEWS: Document additions to .gdb_index.
4668 * dwarf2read.c: #include "gdb/gdb-index.h".
4669 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4670 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4671 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4672 (dwarf2_read_index): Recognize version 7.
4673 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4674 block_kind, domain): All callers updated.
4675 (dw2_find_symbol_file): Handle new index CU values.
4676 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4677 (add_index_entry): New args is_static, kind. All callers updated.
4678 (offset_type_compare, uniquify_cu_indices): New functions
4679 (symbol_kind): New function.
4680 (write_psymtabs_to_index): Remove duplicate CU values.
4681 (write_psymtabs_to_index): Write .gdb_index version 7.
4683 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4685 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4686 * configure: Regenerate.
4688 2012-06-20 Yao Qi <yao@codesourcery.com>
4690 * python/py-inferior.c: Update comments of infpy_read_memory
4691 and infpy_write_memory.
4693 2012-06-19 Tom Tromey <tromey@redhat.com>
4696 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4697 (push_type_address_space): Remove.
4698 * parse.c (insert_into_type_stack): New function.
4699 (insert_type): Likewise.
4700 (insert_type_address_space): Rename from push_type_address_space.
4701 Insert tp_space_identifier.
4702 * c-exp.y (ptr_operator): New production.
4703 (abs_decl): Use ptr_operator.
4704 (space_identifier): Call insert_type_address_space.
4705 (ptype): Don't use const_or_volatile_or_space_identifier.
4706 (const_or_volatile_noopt): Call insert_type.
4707 (conversion_type_id, conversion_declarator): New productions.
4708 (operator): Use conversion_type_id.
4710 2012-06-18 Doug Evans <dje@google.com>
4712 * symtab.h (minimal_symbol): New member created_by_gdb.
4713 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4715 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4716 (search_symbols): Call it instead of lookup_symbol.
4717 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4719 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4720 Adjust address for DW_OP_GNU_addr_index.
4721 * dwarf2expr.h (dwarf_expr_context): Update comment.
4722 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4723 all callers updated. Handle TLS vars described with
4724 DW_OP_GNU_const_index.
4725 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4726 and DW_OP_GNU_const_index.
4727 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4729 * block.c (find_block_in_blockvector): Make explicit the fact that we
4730 ignore GLOBAL_BLOCK.
4732 2012-06-18 Tom Tromey <tromey@redhat.com>
4734 * c-exp.y (operator): Remove trailing space after "delete" and
4737 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4738 Jan Kratochvil <jan.kratochvil@redhat.com>
4740 Switch i386 and derived targets to ON_STACK.
4741 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4742 (amd64_dicos_init_abi): Remove its installment.
4743 * dicos-tdep.c (dicos_init_abi): Remove the
4744 set_gdbarch_call_dummy_location call. Update the comment here.
4745 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4746 (i386_dicos_init_abi): Remove its installment.
4747 * i386-tdep.c (i386_push_dummy_code): New function.
4748 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4749 i386_push_dummy_code.
4751 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4753 Remove stale dummy frames.
4754 * breakpoint.c: Include dummy-frame.h.
4755 (longjmp_breakpoint_ops): New variable.
4756 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4757 bp_longjmp_call_dummy.
4758 (bpstat_what, bptype_string, print_one_breakpoint_location)
4759 (init_bp_location): Support bp_longjmp_call_dummy.
4760 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4761 (set_longjmp_breakpoint_for_call_dummy)
4762 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4764 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4765 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4766 FIXME comment and extend the other comment for bp_call_dummy.
4767 (set_longjmp_breakpoint_for_call_dummy)
4768 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4769 * dummy-frame.c: Include gdbthread.h.
4770 (pop_dummy_frame_bpt): New function.
4771 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4772 (dummy_frame_discard): New function.
4773 (cleanup_dummy_frames): Update the comment about longjmps.
4774 * dummy-frame.h (dummy_frame_discard): New declaration.
4775 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4776 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4777 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4778 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4779 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4780 keep_going if IS_LONGJMP and there is no other reason to stop.
4782 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4784 * remote-sim.c (sim_command_completer): Initialize
4787 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4789 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4790 * dwarf2loc.c (call_site_parameter_matches): Support
4791 CALL_SITE_PARAMETER_PARAM_OFFSET.
4792 (needs_dwarf_reg_entry_value): Push stub value.
4793 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4794 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4795 * gdbtypes.h (enum call_site_parameter_kind): New item
4796 CALL_SITE_PARAMETER_PARAM_OFFSET.
4797 (struct call_site.parameter.u): New field param_offset.
4799 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 Code cleanup: Generalize call_site.parameter key.
4802 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4803 variable dwarf_reg. New variable kind_u. Update parameters to
4804 push_dwarf_reg_entry_value.
4805 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4806 * dwarf2expr.h (enum call_site_parameter_kind)
4807 (union call_site_parameter_u): Forward declarations.
4808 (struct dwarf_expr_context_funcs): Update parameters and their
4809 description for push_dwarf_reg_entry_value.
4810 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4811 * dwarf2loc.c (call_site_parameter_matches): New function.
4812 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4813 description. Use call_site_parameter_matches.
4814 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4815 Update parameters and their description.
4816 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4817 New variable kind_u. Adjust the caller for updated parameters.
4818 (needs_dwarf_reg_entry_value): Update parameters.
4819 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4820 instead of attr. Update for the changed fields of struct
4821 call_site_parameter.
4822 * gdbtypes.h: Include dwarf2expr.h.
4823 (enum call_site_parameter_kind): New.
4824 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4825 fb_offset into new union u.
4827 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4829 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4830 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4833 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4835 * amd64-linux-nat.c (compat_x32_clock_t): New.
4836 (compat_x32_siginfo_t): Likewise.
4837 (compat_x32_siginfo_from_siginfo): Likewise.
4838 (siginfo_from_compat_x32_siginfo): Likewise.
4839 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4840 and siginfo_from_compat_x32_siginfo for x32.
4842 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4844 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4846 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4848 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4849 instead of gdbarch_ptr_bit.
4850 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4851 (amd64_supply_native_gregset): Likewise.
4852 (amd64_collect_native_gregset): Likewise.
4853 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4854 (amd64_supply_xsave): Likewise.
4855 (amd64_collect_fxsave): Likewise.
4856 (amd64_collect_xsave): Likewise.
4858 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4860 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4861 (amd64_linux_read_description): Check DS segment register for
4864 2012-06-15 Tom Tromey <tromey@redhat.com>
4866 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4867 init_cutu_and_read_dies.
4869 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4871 * MAINTAINERS (Write After Approval): Add myself to the list.
4873 2012-06-15 Tom Tromey <tromey@redhat.com>
4875 * valops.c (value_find_oload_method_list): Now static.
4876 * value.h (value_find_oload_method_list): Don't declare.
4878 2012-06-15 Tom Tromey <tromey@redhat.com>
4880 * valops.c (find_overload_match): Use value_ind.
4882 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4884 * infrun.c (handle_inferior_event): Correct indentation.
4886 2012-06-14 Doug Evans <dje@google.com>
4888 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4889 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4891 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4892 updated. Handle DEBUG_LOC_START_LENGTH.
4893 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4894 (loclist_describe_location): Ditto.
4896 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4899 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4900 after hiding inline functions.
4902 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4904 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4905 _initialize_inf_ttrace.
4907 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4909 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4910 _initialize_hppa_hpux_nat.
4912 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4914 * remote-sim.c (sim_command_completer): Change type of return
4915 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4917 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4918 Jan Kratochvil <jan.kratochvil@redhat.com>
4921 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4922 stack on a 16-byte boundary.
4924 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4926 * jit.c (finalize_symtab): Set function's return type to 'void' by
4929 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4930 H.J. Lu <hongjiu.lu@intel.com>
4932 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4933 Move bits common to both the classic LP64 and the new x32 ILP32
4935 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4936 (amd64_x32_linux_init_abi): New function.
4937 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4940 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4941 * i386-tdep.c (i386_pseudo_register_name): Make public.
4942 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4943 * amd64-tdep.c (amd64_dword_names): Add "eip".
4944 (amd64_x32_pseudo_register_type): New function
4945 (amd64_x32_init_abi): New function.
4947 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4950 * inferior.h (struct inferior_suspend_state): Comment out.
4951 (struct inferior): Comment out the field suspend.
4952 * infrun.c (struct infcall_suspend_state): Comment out the field
4954 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4957 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4959 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4960 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4961 function comment. Return ERROR for unresolved cases. Implement
4962 returning proper NAME.
4963 (yylex): Accept also NAME from classify_inner_name.
4964 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4965 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4967 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4969 2012-06-13 Tom Tromey <tromey@redhat.com>
4971 * breakpoint.c (condition_completer): New function.
4972 (_initialize_breakpoint): Use it.
4973 * value.c (complete_internalvar): New function.
4974 * value.h (complete_internalvar): Declare.
4976 2012-06-13 Tom Tromey <tromey@redhat.com>
4978 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4979 * breakpoint.c (catch_syscall_completer): Return a VEC.
4980 * cli/cli-cmds.c (complete_command): Update.
4981 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4982 (complete_on_enum): Likewise.
4983 * command.h: Include gdb_vecs.h.
4984 (completer_ftype): Change return type.
4985 (complete_on_cmdlist, complete_on_enum): Likewise.
4986 * completer.c (noop_completer, filename_completer)
4987 (location_completer): Return a VEC.
4988 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4990 (expression_completer, complete_line_internal, complete_line)
4991 (command_completer): Return a VEC.
4992 (gdb_completion_word_break_characters, line_completion_function):
4994 * completer.h: Include gdb_vecs.h.
4995 (complete_line, noop_completer, filename_completer)
4996 (expression_completer, location_completer, command_completer):
4998 * f-lang.c (f_word_break_characters): Return a VEC.
4999 * interps.c (interpreter_completer): Return a VEC.
5000 * language.h (struct language_defn)
5001 <la_make_symbol_completion_list>: Return a VEC.
5002 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5003 * symtab.c (free_completion_list): Take a VEC.
5004 (return_val_size, return_val_index): Remove.
5005 (return_val): Now a VEC.
5006 (completion_list_add_name): Update.
5007 (default_make_symbol_completion_list_break_on)
5008 (default_make_symbol_completion_list, make_symbol_completion_list)
5009 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5011 (add_filename_to_list): Update.
5012 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5014 (maybe_add_partial_symtab_filename): Update.
5015 (make_source_files_completion_list): Return a VEC.
5016 * symtab.h (default_make_symbol_completion_list_break_on)
5017 (default_make_symbol_completion_list, make_symbol_completion_list)
5018 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5019 (make_source_files_completion_list): Update.
5021 2012-06-13 Tom Tromey <tromey@redhat.com>
5023 * breakpoint.c (add_catch_command): Use completer_ftype.
5024 * breakpoint.h: Include command.h.
5025 (add_catch_command): Use completer_ftype.
5026 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5027 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5028 Use completer_ftype.
5029 * command.h (completer_ftype): New typedef.
5030 (set_cmd_completer): Use it.
5031 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5034 2012-06-13 Pedro Alves <palves@redhat.com>
5036 Partial revert of previous change.
5038 * serial.c (scb_base): New global.
5039 (serial_for_fd): New.
5040 (serial_open, serial_fdopen_ops): Link new serial in open serials
5042 (do_serial_close): Unlink serial from the open serials chain.
5044 2012-06-12 Pedro Alves <palves@redhat.com>
5046 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5048 (prepare_for_detach): No longer context switch here in non-stop
5050 (fetch_inferior_event): Ditto.
5051 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5052 to the event thread before removing breakpoints. Switch to the
5053 event thread before inserting breakpoints and resuming.
5054 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5055 event thread before resuming.
5056 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5057 Switch to the event thread before removing breakpoints.
5059 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5061 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5062 special characters correctly for the Windows shells. See
5063 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5065 [!__MINGW32__]: Remove extra double quote character from special
5068 2012-06-11 Stan Shebs <stan@codesourcery.com>
5070 * ui-out.h: Remove #if 0 declarations.
5071 * ui-out.c: Remove #if 0 functions.
5073 2012-06-11 Pedro Alves <palves@redhat.com>
5075 * ser-base.c (run_async_handler_and_reschedule): New.
5076 (fd_event, push_event): Use it.
5077 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5078 reference count to 1.
5079 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5081 (serial_is_open, serial_ref, serial_unref): New.
5082 * serial.h (serial_open): Adjust comment.
5083 (serial_is_open): Declare.
5084 (serial_close): Adjust comment.
5085 (serial_ref, serial_unref) Declare.
5086 (struct serial): New field 'refcnt'.
5088 2012-06-11 Pedro Alves <palves@redhat.com>
5090 Remove #if 0'd "connect" command, and unnecessary associated
5091 refcounting and serial reuse bits.
5093 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5094 * serial.c (last_serial_opened): Delete.
5096 (serial_open): Adjust.
5097 (serial_for_fd): Delete.
5098 (serial_fdopen_ops, do_serial_close): Adjust.
5099 (serial_fdopen_ops): Adjust.
5101 2012-06-11 Pedro Alves <palves@redhat.com>
5103 * serial.c (do_serial_close): Remove early return when SCB is
5106 2012-06-11 Tom Tromey <tromey@redhat.com>
5108 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5110 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5112 Fix regression by the "ambiguous linespec" series.
5113 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5114 get_last_displayed_symtab and get_last_displayed_line and depending
5117 2012-06-11 Tom Tromey <tromey@redhat.com>
5119 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5120 (dw2_find_symbol_file): Use it.
5122 2012-06-11 Michael Eager <eager@eagercon.com>
5124 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5125 * mips-linux-tdep.h (mips_signals): New
5127 2012-06-11 Tom Tromey <tromey@redhat.com>
5129 * infrun.c (handle_inferior_event)
5130 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5132 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5133 exception logic in all cases. Update comments.
5134 (insert_longjmp_resume_breakpoint): Set the exception resume
5137 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5139 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5141 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5143 * valarith.c (binop_types_user_defined_p): Fix a typo.
5145 2012-06-08 Yao Qi <yao@codesourcery.com>
5146 Chung-Lin Tang <cltang@codesourcery.com>
5148 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5149 * arch-utils.h: Declare.
5150 * gdbarch.sh: Add return_in_first_hidden_param_p.
5151 * gdbarch.c, gdbarch.h: Regenerated.
5152 * infcall.c (call_function_by_hand): Call
5153 gdbarch_return_in_first_hidden_param_p instead of
5154 language_pass_by_reference.
5156 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5157 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5158 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5159 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5160 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5161 `cplus_return_struct_by_reference'.
5162 (tic6x_return_value): Handle language cplusplus.
5163 (tic6x_return_in_first_hidden_param_p): New.
5164 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5166 2012-06-07 Doug Evans <dje@google.com>
5168 * dwarf2read.c (dwarf2_cu): Add comment.
5170 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5172 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5174 (mips_eabi_push_dummy_call): Likewise.
5175 (mips_n32n64_push_dummy_call): Likewise.
5176 (mips_o32_push_dummy_call): Likewise.
5177 (mips_o64_push_dummy_call): Likewise.
5179 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5181 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5183 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5185 * mips-tdep.c (mips_pseudo_register_type): Use
5186 mips_float_register_p.
5188 2012-06-06 Pedro Alves <palves@redhat.com>
5190 * infrun.c (handle_inferior_event): Remove calls to
5191 reinit_frame_cache that follow a context_switch call.
5193 2012-06-06 Pedro Alves <palves@redhat.com>
5195 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5196 context_switch and remove stale comment.
5198 2012-06-06 Pedro Alves <palves@redhat.com>
5200 * infrun.c (struct execution_control_state): Remove
5201 `new_thread_event' field.
5202 (handle_inferior_event): Simplify new threads handling; don't
5203 resume the inferior if we find a new thread.
5205 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5207 * NEWS: Document the deprecation of SH's 'regs' command.
5208 * inferior.h (all_registers_info): Add function declaration.
5209 * sh-tdep.c (sh_show_regs): Remove variable.
5210 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5211 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5212 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5213 (sh_show_regs_command): Remove functions.
5214 (sh_gdbarch_init): Don't set sh_show_regs.
5215 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5216 'info all-registers'.
5217 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5218 (sh64_show_regs): Remove functions.
5219 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5221 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5223 * configure.ac: Move development=true below AC_INIT.
5224 * configure: Regenerate.
5226 2012-06-05 Stan Shebs <stan@codesourcery.com>
5228 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5231 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5233 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5234 argument as ssize_t.
5235 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5236 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5237 * target.c (target_read_stack, target_write_memory)
5238 (target_write_raw_memory): Likewise.
5239 * target.h (target_read_stack, target_write_memory)
5240 (target_write_raw_memory): Likewise.
5242 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5244 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5245 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5246 * target.c (target_read_memory): Change LEN to ssize_t.
5247 * target.h (target_read_memory): Change LEN to ssize_t.
5249 2012-06-05 Pedro Alves <palves@redhat.com>
5253 * breakpoint.c (until_break_command): Only fetch the selected
5254 frame after decode_line_1.
5256 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5258 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5259 event breakpoint at _start, __start or main if a program
5260 interpreter is not found.
5262 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5264 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5266 * windows-tdep.c: #include "objfiles.h".
5267 (windows_iterate_over_objfiles_in_search_order): New function.
5268 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5269 iterate_over_objfiles_in_search_order gdbarch method to
5270 windows_iterate_over_objfiles_in_search_order.
5271 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5273 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5275 * gdbarch.sh: Add generation of
5276 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5277 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5278 (iterate_over_objfiles_in_search_order): New gdbarch method.
5279 * gdbarch.h, gdbarch.c: Regenerate.
5280 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5282 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5284 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5285 out of lookup_symbol_aux_symtabs.
5286 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5287 call to lookup_symbol_aux_objfile.
5288 (struct global_sym_lookup_data): New type.
5289 (lookup_symbol_global_iterator_cb): New function.
5290 (lookup_symbol_global): Search for symbol using
5291 gdbarch_iterate_over_objfiles_in_search_order and
5292 lookup_symbol_global_iterator_cb.
5293 * findvar.c (struct minsym_lookup_data): New type.
5294 (minsym_lookup_iterator_cb): New function.
5295 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5296 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5297 and minsym_lookup_iterator_cb.
5299 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5301 Revert the following patch:
5302 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5303 try locating the symbol in the symbol's own objfile first, before
5304 extending the search to all objfiles.
5305 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5306 out of lookup_symbol_aux_symtabs.
5307 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5308 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5309 Do not search EXCLUDE_OBJFILE.
5310 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5311 (lookup_symbol_global): Search for matches in the block's objfile
5312 first, before searching all other objfiles.
5314 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5316 * breakpoint.c (find_condition_and_thread): Stop parsing
5317 as soon as the first invalid keyword is found.
5319 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5321 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5323 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5325 * config/djgpp/djcheck.sh: Add copyright header.
5327 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5329 * copyright.py (update_files, main): Fix path to update-copyright
5332 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5334 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5335 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5336 for which a reminder to update by hand is printed.
5338 2012-06-04 Doug Evans <dje@google.com>
5340 * buildsym.c (make_blockvector): Add comment.
5342 2012-06-04 Pedro Alves <palves@redhat.com>
5344 * arch-utils.c (default_gdb_signal_from_target): Delete.
5345 * arch-utils.h (default_gdb_signal_from_target): Delete.
5346 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5347 gdbarch_gdb_signal_from_target_p.
5348 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5350 * gdbarch.h: Regenerate.
5351 * gdbarch.c: Regenerate.
5353 2012-06-04 Pedro Alves <palves@redhat.com>
5355 * gdbarch.sh (gdb_signal_from_target): Mention that the
5356 implementation of the method must be host independent.
5357 * gdbarch.h: Regenerate.
5359 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5361 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5363 (target_read_memory_bfd): New function.
5364 (symbol_file_add_from_memory): Use it.
5366 2012-06-03 Doug Evans <dje@google.com>
5368 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5370 (basic_lookup_transparent_type): Ditto.
5372 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5373 (ALL_PRIMARY_SYMTABS): Use it.
5374 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5375 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5376 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5377 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5378 (basic_lookup_transparent_type): Ditto.
5380 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5382 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5383 it to optimize resolution of demangled name.
5385 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5387 * configure.ac (development): Define new variable.
5388 Call AC_CHECK_LIB for mcheck if $development.
5389 (ERROR_ON_WARNING): Enable it by default only if $development.
5390 * config.in: Regenerate.
5391 * configure: Regenerate.
5393 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5395 * target.c (target_read_memory): Make LEN argument as size_t.
5396 * target.h (target_read_memory): Likewise.
5398 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5400 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5402 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5404 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5405 BookE interface for PowerPC server processors if not available
5406 in the Linux Kernel.
5408 2012-05-31 Keith Seitz <keiths@redhat.com>
5410 * linespec.c (decode_objc): Add cleanup to free
5412 (find_linespec_symbols): Add cleanup to free CLASSES.
5413 * symfile.c (find_separate_debug_file_by_debuglink): Add
5414 cleanup to free DEBUGLINK.
5415 * ui-out.c (clear_header_list): No need to check if
5416 HEADER_NEXT.COLHDR is NULL.
5417 Free HEADER_NEXT.COL_NAME.
5419 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5421 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5424 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5426 * configure.host (gdb_host_cpu): Handle tilegx*.
5427 (gdb_host): Handle tilegx-*-linux*.
5428 * tilegx-linux-nat.c: New file.
5429 * config/tilegx/linux.mh: New file.
5431 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5433 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5434 tilegx-linux-tdep.o.
5435 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5436 tilegx-linux-tdep.c.
5437 * configure.tgt: Handle tilegx-*-linux*.
5438 * tilegx-tdep.h: New file.
5439 * tilegx-tdep.c: New file.
5440 * tilegx-linux-tdep.c: New file.
5441 * regformats/reg-tilegx.dat: New file.
5443 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5445 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5446 accounting of hw watchpoints on ppc.
5448 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5450 * source.c (openp): Expand tilde in path entries.
5452 2012-05-29 Doug Evans <dje@google.com>
5454 * buildsym.c (block_compar): Fix comment.
5455 (end_symtab): Fix and clarify some comments.
5457 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5458 cleanup_undefined_types.
5459 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5460 All callers updated.
5462 2012-05-29 Tom Tromey <tromey@redhat.com>
5464 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5466 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5467 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5469 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5472 2012-05-29 Tristan Gingold <gingold@adacore.com>
5474 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5475 (struct darwin_info): ... New struct.
5476 (solib_darwin_pspace_data): New variable.
5477 (darwin_pspace_data_cleanup): New function.
5478 (get_darwin_info): Likewise.
5479 (darwin_dyld_version_ok, darwin_load_image_infos)
5480 (darwin_solib_get_all_image_info_addr_at_init)
5481 (darwin_solib_read_all_image_info_addr): Add info argument.
5483 (darwin_current_sos): Use per pspace structure.
5484 (darwin_solib_create_inferior_hook): Likewise.
5485 (darwin_clear_solib): Likewise.
5486 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5488 2012-05-28 Pedro Alves <palves@redhat.com>
5490 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5491 block that uses them. Clear ecss before handling each event.
5493 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 * solib-svr4.c (svr4_current_sos): New comment on
5496 svr4_current_sos_via_xfer_libraries fall back.
5498 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5500 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5501 it as a fallback for TYPE_IS_OPAQUE.
5502 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5503 symbols for lookup_symbol.
5505 2012-05-24 John Steele Scott <toojays@toojays.net>
5507 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5508 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5509 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5510 (check_producer): ... this new function, which also checks for ICC
5511 and caches the result.
5512 (producer_is_icc): New function.
5513 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5516 2012-05-24 Pedro Alves <palves@redhat.com>
5520 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5521 (default_gdb_signal_to_target): ... this. Add comment.
5522 (default_gdb_signal_from_host): Rename to ...
5523 (default_gdb_signal_from_target): ... this. Add comment.
5524 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5525 (default_gdb_signal_to_target): ... this.
5526 (default_gdb_signal_from_host): Rename to ...
5527 (default_gdb_signal_from_target): ... this.
5528 * corelow.c (core_open): Adjust to naming change. Replace comment.
5529 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5530 (gdb_signal_from_target): ... this. Adjust to
5531 default_gdb_signal_from_host naming change. Extend comment.
5532 (gdb_signal_to_host): Rename to ...
5533 (gdb_signal_to_target): ... this. Adjust to
5534 default_gdb_signal_to_host naming change.
5535 * gdbarch.h, gdbarch.c: Renegerate.
5537 2012-05-24 Pedro Alves <palves@redhat.com>
5541 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5543 2012-05-24 Pedro Alves <palves@redhat.com>
5547 Replace target_signal with gdb_signal throughout.
5549 2012-05-24 Pedro Alves <palves@redhat.com>
5553 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5554 string, instead of reusing the va_list argument.
5556 2012-05-24 Tom Tromey <tromey@redhat.com>
5558 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5561 2012-05-23 Doug Evans <dje@google.com>
5563 * symtab.c (search_symbols): Formatting fixes.
5564 (print_symbol_info): Formatting fixes.
5566 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5567 int64_t change to leb128 API.
5568 (read_encoded_value, decode_frame_entry_1): Ditto.
5569 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5570 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5571 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5572 (execute_stack_op): Ditto.
5573 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5574 (safe_read_uleb128, safe_read_sleb128): Ditto.
5575 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5576 (dwarf2_compile_expr_to_ax): Ditto.
5577 (locexpr_describe_location_piece): Ditto.
5578 (disassemble_dwarf_expression): Ditto.
5579 (locexpr_describe_location_1): Ditto.
5581 2012-05-23 Stan Shebs <stan@codesourcery.com>
5582 Kwok Cheung Yeung <kcy@codesourcery.com>
5584 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5585 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5586 (mi-cmd-info.o): New rule.
5587 * osdata.h (info_osdata_command): New declaration.
5588 * osdata.c (info_osdata_command): Change to non-static.
5589 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5590 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5591 * mi/mi-cmd-info.c: New file.
5593 2012-05-23 Doug Evans <dje@google.com>
5595 * symtab.c (search_symbols): Pass NULL for file_matcher to
5596 expand_symtabs_matching if there are no files to match.
5598 * gdbtypes.c (lookup_typename): Simplify.
5600 2012-05-23 Pedro Alves <palves@redhat.com>
5602 * arch-utils.h (default_target_signal_to_host): Delete.
5603 * arch-utils.c (default_target_signal_to_host): Delete.
5604 * gdbarch.sh (target_signal_to_host): Remove.
5605 * gdbarch.h, gdbarch.c: Regenerate.
5607 2012-05-22 Doug Evans <dje@google.com>
5609 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5611 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5612 (execute_cfa_program): Update to match API of leb128 functions.
5613 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5615 (read_unsigned_leb128, read_signed_leb128): Delete.
5616 (read_initial_length): Change type of buf argument to
5618 (read_encoded_value): Update to match API of leb128 functions.
5619 (decode_frame_entry): Change result to "const gdb_byte *", and
5620 similarly for "start" parameter.
5621 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5622 (dwarf2_build_frame_info): Change local frame_ptr to
5624 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5625 read_uleb128, read_sleb128. All callers updated.
5626 (safe_skip_leb128): New function.
5627 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5628 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5629 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5630 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5631 read_uleb128, read_sleb128.
5632 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5633 (execute_stack_op): Update to match API of leb128 functions.
5634 * dwarf2expr.h: #include "leb128.h".
5635 (read_uleb128, read_sleb128): Delete.
5636 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5637 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5638 * dwarf2loc.c (debug_loc_kind): New enum.
5639 (decode_debug_loc_addresses): New function.
5640 (decode_debug_loc_dwo_addresses): New function.
5641 (dwarf2_find_location_expression): Rewrite.
5642 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5643 (locexpr_describe_location_piece): Ditto.
5644 (disassemble_dwarf_expression): Ditto.
5645 (locexpr_describe_location_1): Ditto.
5646 (loclist_describe_location): Rewrite.
5647 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5648 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5649 (dwarf2_section_buffer_overflow_complaint): Renamed from
5650 dwarf2_macros_too_long_complaint. All callers updated.
5651 (skip_leb128): Delete.
5652 (init_cu_die_reader): Initialize reader->buffer_end.
5653 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5654 (skip_form_bytes): New arg buffer_end. All callers updated.
5655 Replace call to skip_leb128 with gdb_skip_leb128.
5656 (skip_unknown_opcode): New arg mac_end. All callers updated.
5657 (fill_in_loclist_baton): Initialize baton->from_dwo.
5659 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5661 * mips-linux-nat.c (mips_linux_read_description): Use a more
5662 verbose error message.
5664 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5666 * NEWS: Add MIPS/Linux DSP support.
5667 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5668 (SIGCONTEXT_DSPCTL): New macro.
5669 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5670 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5671 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5672 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5673 (N64_SIGCONTEXT_HI3): Likewise.
5674 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5675 (N64_SIGCONTEXT_LO3): Likewise.
5676 (N64_SIGCONTEXT_DSPCTL): Likewise.
5677 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5678 (mips_linux_o32_sigframe_init): Handle DSP registers.
5679 (mips_linux_n32n64_sigframe_init): Likewise.
5681 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5683 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5686 2012-05-22 Pedro Alves <palves@redhat.com>
5688 * target.h (store_waitstatus): Move declaration ...
5689 * inf-child.h (store_waitstatus): ... here.
5690 * target.c: Move inclusion of gdb_wait.h, and ...
5691 (store_waitstatus): ... this ...
5692 * inf-child.c: ... here.
5693 * linux-nat.c: Include inf-child.h.
5694 * rs6000-nat.c: Include inf-child.h.
5695 * spu-linux-nat.c: Include inf-child.h.
5697 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5699 * tracepoint.c (start_tracing): Add missing i18n markup.
5700 (stop_tracing, set_trace_user): Ditto.
5701 (set_trace_notes, set_trace_stop_notes): Ditto.
5703 2012-05-21 Tom Tromey <tromey@redhat.com>
5706 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5708 * value.h (value_cast_pointers): Update.
5709 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5710 (value_cast): Update.
5711 (update_search_result): New function.
5712 (do_search_struct_field): New, from search_struct_field. Check
5713 for ambiguous results.
5714 (search_struct_field): Rewrite.
5715 * infcall.c (value_arg_coerce): Update.
5716 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5717 value_cast_pointers.
5718 * ada-lang.c (ada_convert_actual): Update.
5720 2012-05-21 Tom Tromey <tromey@redhat.com>
5722 * macroexp.c (macro_stringify): Terminate the string.
5724 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5728 * auto-load.c (auto_load_expand_dir_vars): New function.
5729 (auto_load_safe_path_vec_update): Use it, remove the
5730 substitute_path_component call thanks to it.
5731 (auto_load_objfile_script): Remove the debug_file_directory processing.
5732 Use auto_load_expand_dir_vars, remove the substitute_path_component
5734 * configure: Regenerate.
5735 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5736 path. Escape $ also for $debugdir.
5737 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5738 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5740 2012-05-20 Doug Evans <dje@google.com>
5742 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5743 before use. Check for symtab->includes == NULL before scanning it.
5745 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5747 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5749 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5751 * NEWS: Add microMIPS support and "set mips compression",
5752 "show mips compression" commands.
5753 * mips-tdep.h (mips_isa): New enum.
5754 (gdbarch_tdep): Add mips_isa.
5755 (mips_pc_is_mips16): Update prototype.
5756 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5757 * mips-tdep.c (mips_compression_mips16): New variable.
5758 (mips_compression_micromips): Likewise.
5759 (mips_compression_strings): Likewise.
5760 (mips_compression_string): Likewise.
5761 (is_mips16_isa, is_micromips_isa): New functions.
5762 (is_mips16_addr): Rename to...
5763 (is_compact_addr): ... this.
5764 (unmake_mips16_addr): Likewise to...
5765 (unmake_compact_addr): ... this.
5766 (make_mips16_addr): Likewise to...
5767 (make_compact_addr): ... this.
5768 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5770 (mips_elf_make_msymbol_special): Handle microMIPS code.
5771 (msymbol_is_special): Rename to...
5772 (msymbol_is_mips16): ... this.
5773 (mips_make_symbol_special, mips_pc_is_mips16): Update
5775 (msymbol_is_mips, msymbol_is_micromips): New functions.
5776 (mips16_to_32_reg): Rename to...
5777 (mips_reg3_to_reg): ... this.
5778 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5779 (mips_pc_isa): Likewise.
5780 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5782 (mips_fetch_instruction): Pass return status instead of printing
5783 an error message if requested. Handle microMIPS code. Bail out
5785 (micromips_op): New macro.
5786 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5787 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5788 (b6s4_op, b7s3_reg): Likewise.
5789 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5790 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5791 (mips_insn_size): New function.
5792 (mips32_next_pc): Update mips_fetch_instruction call.
5793 (micromips_relative_offset7): New function.
5794 (micromips_relative_offset10): Likewise.
5795 (micromips_relative_offset16): Likewise.
5796 (micromips_pc_insn_size): Likewise.
5797 (micromips_bc1_pc): Likewise.
5798 (micromips_next_pc): Likewise.
5799 (unpack_mips16): Update mips_fetch_instruction call.
5800 (extended_mips16_next_pc): Update according to change to
5802 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5804 (mips16_scan_prologue): Update mips_fetch_instruction call.
5805 Update according to change to mips16_to_32_reg.
5806 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5807 (mips_insn16_frame_base_sniffer): Likewise.
5808 (micromips_decode_imm9): New function.
5809 (micromips_scan_prologue): Likewise.
5810 (mips_micro_frame_cache): Likewise.
5811 (mips_micro_frame_this_id): Likewise.
5812 (mips_micro_frame_prev_register): Likewise.
5813 (mips_micro_frame_sniffer): Likewise.
5814 (mips_micro_frame_unwind): New variable.
5815 (mips_micro_frame_base_address): New function.
5816 (mips_micro_frame_base): New variable.
5817 (mips_micro_frame_base_sniffer): New function.
5818 (mips32_scan_prologue): Update mips_fetch_instruction call.
5819 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5820 rather than for MIPS16.
5821 (mips_insn32_frame_base_sniffer): Likewise.
5822 (mips_addr_bits_remove): Handle microMIPS code.
5823 (deal_with_atomic_sequence): Rename to...
5824 (mips_deal_with_atomic_sequence): ... this. Update the type
5825 of the variable used to hold an instruction. Remove the ISA bit
5826 check. Update mips_fetch_instruction call.
5827 (micromips_deal_with_atomic_sequence): New function.
5828 (deal_with_atomic_sequence): Likewise.
5829 (mips_about_to_return): Handle microMIPS code. Update
5830 mips_fetch_instruction call.
5831 (heuristic_proc_start): Check for the standard MIPS ISA rather
5832 than for MIPS16. Update mips_pc_is_mips16 and
5833 mips_fetch_instruction calls. Handle microMIPS code.
5834 (mips_push_dummy_code): Handle microMIPS code.
5835 (mips_eabi_push_dummy_call): Likewise.
5836 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5837 (mips_o64_push_dummy_call): Handle microMIPS code.
5838 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5839 (is_delayed): Remove function.
5840 (mips_single_step_through_delay): Replace the call to is_delayed
5841 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5842 Handle microMIPS code.
5843 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5845 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5847 (micromips_in_function_epilogue_p): New function.
5848 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5850 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5852 (gdb_print_insn_mips): Likewise.
5853 (mips_breakpoint_from_pc): Likewise.
5854 (mips_remote_breakpoint_from_pc): New function.
5855 (mips32_instruction_has_delay_slot): Simplify making use of the
5856 updated mips_fetch_instruction interface.
5857 (micromips_instruction_has_delay_slot): New function.
5858 (mips16_instruction_has_delay_slot): Simplify making use of the
5859 updated mips_fetch_instruction interface.
5860 (mips_adjust_breakpoint_address): Check for the standard MIPS
5861 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5862 calls. Handle microMIPS code.
5863 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5864 (mips_skip_trampoline_code): Handle microMIPS code.
5865 (global_mips_compression): New function.
5866 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5867 file flags. Register the microMIPS remote breakpoint handler
5868 and heuristic frame unwinder.
5869 (show_mips_compression): New function.
5870 (_initialize_mips_tdep): Add the "set mips compression" and
5871 "show mips compression" commands.
5873 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5878 * amd64-darwin-tdep.c:
5879 * arm-symbian-tdep.c:
5883 * bfin-linux-tdep.c:
5890 * dwarf2-frame-tailcall.c:
5919 * microblaze-tdep.c:
5920 * mips-linux-tdep.c:
5928 * python/py-finishbreakpoint.c:
5929 * python/py-inferior.c:
5930 * python/py-infthread.c:
5934 * remote-m32r-sdi.c:
5938 * rs6000-aix-tdep.c:
5964 * amd64-darwin-tdep.c:
5965 * arm-symbian-tdep.c:
5966 * arm-tdep.c: Delete unused variables.
5968 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5970 Rename $ddir to $datadir.
5971 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5972 * auto-load.c (auto_load_safe_path_vec_update)
5973 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5974 * configure: Regenerate.
5975 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5976 Likewise. Remove the 'use $ddir' help string.
5978 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5980 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5981 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5983 2012-05-18 Tom Tromey <tromey@redhat.com>
5986 * valprint.h (struct value_print_options) <symbol_print>: New
5988 * valprint.c (user_print_options): Add default for symbol_print.
5989 (show_symbol_print): New function.
5990 (generic_val_print): Respect symbol_print.
5991 (_initialize_valprint): Add "print symbol" setting.
5992 * f-valprint.c (f_val_print): Respect symbol_print.
5993 * c-valprint.c (c_val_print): Respect symbol_print.
5995 * printcmd.c (print_address_symbolic): Return int. Ignore some
5997 (print_address_demangle): Return int.
5998 * defs.h: (print_address_symbolic): Return int.
5999 * value.h (print_address_demangle): Return int.
6001 2012-05-18 Tom Tromey <tromey@redhat.com>
6003 * valprint.c (val_print_string): Don't print leading space.
6004 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6005 print space before string or vtbl.
6006 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6008 * jv-valprint.c (java_value_print): Print space before string.
6009 * go-valprint.c (print_go_string): Print space before string.
6010 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6011 space before string.
6012 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6013 space before string or vtbl.
6014 * auxv.c (fprint_target_auxv): Print space after address.
6016 2012-05-18 Tom Tromey <tromey@redhat.com>
6018 * printcmd.c (print_address_demangle): Remove special case for 0.
6020 2012-05-18 Tom Tromey <tromey@redhat.com>
6022 * printcmd.c (print_address_demangle): Add 'opts' argument.
6023 * p-valprint.c (pascal_val_print): Update.
6024 * jv-valprint.c (java_val_print): Update.
6026 * valprint.c (generic_val_print): Update.
6027 (print_function_pointer_address): Add 'options' argument. Remove
6028 'addressprint' argument. Update.
6029 * m2-valprint.c (print_unpacked_pointer): Update.
6030 * gnu-v3-abi.c (print_one_vtable): Update.
6031 (gnuv3_print_method_ptr): Update.
6032 * f-valprint.c (f_val_print): Update.
6033 * cp-valprint.c (cp_print_value_fields): Update.
6034 * valprint.h (print_function_pointer_address): Update.
6035 * c-valprint.c (c_val_print): Update.
6037 2012-05-18 Tom Tromey <tromey@redhat.com>
6039 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6040 directly corresponding to the found psymtab.
6041 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6042 (dw2_find_pc_sect_symtab): Use it.
6043 * block.h (blockvector_contains_pc): Declare.
6044 * block.c (find_block_in_blockvector): New function.
6045 (blockvector_for_pc_sect): Use it.
6046 (blockvector_contains_pc): New function.
6048 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6050 * mips-tdep.h (mips_write_pc): New prototype.
6051 * mips-tdep.c (mips_write_pc): Make external, add description.
6052 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6055 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6057 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6059 (mips_unwind_pc, mips_write_pc): Likewise.
6060 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6063 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6065 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6066 proc_warn, proc_error, proc_get_status, proc_flags,
6067 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6068 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6069 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6070 proc_stop_process, proc_wait_for_stop, proc_run_process,
6071 proc_set_traced_signals, proc_set_traced_faults,
6072 proc_set_traced_sysentry, proc_set_traced_sysexit,
6073 proc_set_held_signals, proc_get_held_signals,
6074 proc_get_traced_signals, proc_get_traced_faults,
6075 proc_get_traced_sysentry, proc_get_traced_sysexit,
6076 proc_clear_current_fault, proc_set_current_signal,
6077 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6078 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6079 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6080 proc_get_current_thread, proc_get_current_thread,
6081 proc_get_current_thread, proc_update_threads,
6082 proc_update_threads, proc_update_threads, proc_update_threads,
6083 proc_iterate_over_threads, procfs_find_new_threads,
6084 procfs_pid_to_str): Make static. Remove advance declaration.
6085 (proc_cursig): Make static. Conditionalized defintion on
6086 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6087 (proc_syscall, proc_set_kill_on_last_close,
6088 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6089 proc_get_pending_signals, proc_get_signal_actions,
6090 proc_trace_signal, proc_ignore_signal): Delete.
6092 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6094 * coffread.c (cs_section_address): Passing proper argument for
6095 `bfd_get_section_vma'.
6096 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6097 `bfd_get_section_flags'.
6098 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6099 `bfd_get_section_vma'.
6101 2012-05-16 Tom Tromey <tromey@redhat.com>
6104 * macrotab.h: (macro_define_special): Declare.
6105 (enum macro_special_kind): New.
6106 (struct macro_definition) <argc, replacement>: Update comments.
6107 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6108 (macro_define_object_internal): New function.
6109 (macro_define_object): Use it.
6110 (macro_define_special): New function.
6111 (fixup_definition): New function.
6112 (macro_lookup_definition, foreach_macro_in_scope)
6113 (foreach_macro): Use fixup_definition.
6114 * macroexp.h (macro_stringify): Declare.
6115 * macroexp.c (free_buffer_return_text): New function.
6116 (stringify): Constify "arg".
6117 (macro_stringify): New function.
6118 * dwarf2read.c (macro_start_file): Call macro_define_special.
6120 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6121 Maciej W. Rozycki <macro@mips.com>
6123 * breakpoint.h (bp_location): Add related_address member.
6124 * inferior.h (get_return_value): Take a pointer to struct value
6125 instead of struct type for the function requested.
6126 * value.h (using_struct_return): Likewise.
6127 * gdbarch.sh (return_value): Take a pointer to struct value
6128 instead of struct type for the function requested.
6129 * breakpoint.c (set_breakpoint_location_function): Initialize
6130 related_address for bp_gnu_ifunc_resolver breakpoints.
6131 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6132 requested function's address to gdbarch_return_value.
6133 * eval.c (evaluate_subexp_standard): Pass the requested
6134 function's address to using_struct_return.
6135 * infcall.c (call_function_by_hand): Pass the requested
6136 function's address to using_struct_return and
6137 gdbarch_return_value.
6138 * infcmd.c (get_return_value): Take a pointer to struct value
6139 instead of struct type for the function requested.
6140 (print_return_value): Update accordingly.
6141 (finish_command_continuation): Likewise.
6142 * stack.c (return_command): Pass the requested function's
6143 address to using_struct_return and gdbarch_return_value.
6144 * value.c (using_struct_return): Take a pointer to struct value
6145 instead of struct type for the function requested. Pass the
6146 requested function's address to gdbarch_return_value.
6147 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6148 New function_value member, replacing function_type.
6149 (bpfinishpy_dealloc): Update accordingly.
6150 (bpfinishpy_pre_stop_hook): Likewise.
6151 (bpfinishpy_init): Likewise. Record the requested function's
6153 * mips-tdep.c (mips_fval_reg): New enum.
6154 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6155 words put in GP registers.
6156 (mips_o64_push_dummy_call): Update a comment.
6157 (mips_o32_return_value): Take a pointer to struct value instead
6158 of struct type for the function requested and use it to check if
6159 using the MIPS16 calling convention. Return the designated
6160 general purpose registers for floating-point values returned in
6162 (mips_o64_return_value): Likewise.
6163 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6164 (ppc_sysv_abi_broken_return_value): Likewise.
6165 (ppc64_sysv_abi_return_value): Likewise.
6166 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6167 value instead of struct type for the function requested.
6168 * amd64-tdep.c (amd64_return_value): Likewise.
6169 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6170 * arm-tdep.c (arm_return_value): Likewise.
6171 * avr-tdep.c (avr_return_value): Likewise.
6172 * bfin-tdep.c (bfin_return_value): Likewise.
6173 * cris-tdep.c (cris_return_value): Likewise.
6174 * frv-tdep.c (frv_return_value): Likewise.
6175 * h8300-tdep.c (h8300_return_value): Likewise.
6176 (h8300h_return_value): Likewise.
6177 * hppa-tdep.c (hppa32_return_value): Likewise.
6178 (hppa64_return_value): Likewise.
6179 * i386-tdep.c (i386_return_value): Likewise.
6180 * ia64-tdep.c (ia64_return_value): Likewise.
6181 * iq2000-tdep.c (iq2000_return_value): Likewise.
6182 * lm32-tdep.c (lm32_return_value): Likewise.
6183 * m32c-tdep.c (m32c_return_value): Likewise.
6184 * m32r-tdep.c (m32r_return_value): Likewise.
6185 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6186 * m68k-tdep.c (m68k_return_value): Likewise.
6187 (m68k_svr4_return_value): Likewise.
6188 * m88k-tdep.c (m88k_return_value): Likewise.
6189 * mep-tdep.c (mep_return_value): Likewise.
6190 * microblaze-tdep.c (microblaze_return_value): Likewise.
6191 * mn10300-tdep.c (mn10300_return_value): Likewise.
6192 * moxie-tdep.c (moxie_return_value): Likewise.
6193 * mt-tdep.c (mt_return_value): Likewise.
6194 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6195 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6196 (ppc_sysv_abi_broken_return_value): Likewise.
6197 (ppc64_sysv_abi_return_value): Likewise.
6198 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6199 * rl78-tdep.c (rl78_return_value): Likewise.
6200 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6201 * rx-tdep.c (rx_return_value): Likewise.
6202 * s390-tdep.c (s390_return_value): Likewise.
6203 * score-tdep.c (score_return_value): Likewise.
6204 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6205 (sh_return_value_fpu): Likewise.
6206 * sh64-tdep.c (sh64_return_value): Likewise.
6207 * sparc-tdep.c (sparc32_return_value): Likewise.
6208 * sparc64-tdep.c (sparc64_return_value): Likewise.
6209 * spu-tdep.c (spu_return_value): Likewise.
6210 * tic6x-tdep.c (tic6x_return_value): Likewise.
6211 * v850-tdep.c (v850_return_value): Likewise.
6212 * vax-tdep.c (vax_return_value): Likewise.
6213 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6214 * xtensa-tdep.c (xtensa_return_value): Likewise.
6215 * gdbarch.c: Regenerate.
6216 * gdbarch.h: Regenerate.
6218 2012-05-15 Tom Tromey <tromey@redhat.com>
6220 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6222 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6224 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6225 of command in two error message.
6227 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6229 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6231 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6233 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6235 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6237 * NEWS (show auto-load scripts-directory): Add forgotten command.
6239 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6241 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6244 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6246 * amd64-tdep.c: Include features/i386/x32.c and
6247 features/i386/x32-avx.c.
6248 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6249 initialize_tdesc_x32_avx.
6251 2012-05-14 Stan Shebs <stan@codesourcery.com>
6254 * breakpoint.h (enum bptype): New type bp_dprintf.
6255 (struct breakpoint): New field extra_string.
6256 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6257 (create_breakpoint): Add extra_string arg.
6258 * breakpoint.c (dprintf_breakpoint_ops): New.
6259 (is_breakpoint): Add bp_dprintf.
6260 (bpstat_what): Add dprintf case.
6261 (bptype_string): Ditto.
6262 (print_one_breakpoint_location): Ditto.
6263 (init_bp_location): Ditto.
6264 (bkpt_print_mention): Ditto.
6265 (dprintf_style_enums): New array.
6266 (dprintf_style): New global.
6267 (dprintf_function): New global.
6268 (dprintf_channel): New global.
6269 (update_dprintf_command_list): New function.
6270 (update_dprintf_commands): New function.
6271 (init_breakpoint_sal): Add extra_string argument, handle it.
6272 (create_breakpoint_sal): Add extra_string argument.
6273 (create_breakpoints_sal): Add extra_string argument, update callers.
6274 (find_condition_and_thread): Add extra argument.
6275 (create_breakpoint): Add extra_string argument, record it.
6276 (dprintf_command): New function.
6277 (break_command_1): Add arg to create_breakpoint call.
6278 (handle_gnu_v3_exceptions): Ditto.
6279 (trace_command): Ditto.
6280 (ftrace_command): Ditto.
6281 (strace_command): Ditto.
6282 (bkpt_print_mention): Add dprintf case.
6283 (create_breakpoint_sal_default): Add extra_string argument.
6284 (_initialize_breakpoint): Add new commands.
6285 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6286 * python/py-breakpoint.c (bppy_init): Ditto.
6287 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6289 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6291 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6293 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6295 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6298 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6300 Add a new function gdb.find_pc_line to the Python API.
6301 * NEWS (Python Scripting): Add entry about the new function.
6302 * python/python.c (gdbpy_find_pc_line): New function which
6303 implements gdb.find_pc_line.
6304 (GdbMethods): Add entry for the new function.
6306 2012-05-12 Pedro Alves <palves@redhat.com>
6308 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6309 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6311 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6313 * inferior.c: Include completer.h
6314 (initialize_inferiors): Set completer of add-inferior to
6317 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6319 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6320 gdbarch_ptr_bit for x32 core dump.
6322 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6324 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6325 and features/i386/x32-avx-linux.c.
6327 2012-05-11 Stan Shebs <stan@codesourcery.com>
6328 Kwok Cheung Yeung <kcy@codesourcery.com>
6330 * NEWS: Describe new info os commands.
6331 * common/linux-osdata.c (PID_T, TIME_T): Define.
6332 (MAX_PID_T_STRLEN): New.
6333 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6335 (command_from_pid): Add comment. Change to use PID_T.
6336 (commandline_from_pid): Change to use PID_T.
6337 (user_from_pid): Add comment.
6338 (get_process_owner): Add comment. Change to use PID_T and
6340 (get_number_of_cpu_cores): Add comment.
6341 (get_cores_used_by_process): Add comment. Change to use PID_T and
6343 (linux_xfer_osdata_processes): Change to use PID_T and
6345 (compare_processes): New function.
6346 (linux_xfer_osdata_processgroups): New function.
6347 (linux_xfer_osdata_threads): Change to use PID_T.
6348 (linux_xfer_osdata_fds): New function.
6349 (format_socket_state, print_sockets): New functions.
6350 (union socket_addr): New union.
6351 (linux_xfer_osdata_isockets): New function.
6352 (time_from_time_t, group_from_gid): New functions.
6353 (linux_xfer_osdata_shm): New function.
6354 (linux_xfer_osdata_sem): New function.
6355 (linux_xfer_osdata_msg): New function.
6356 (linux_xfer_osdata_modules): New function.
6357 (osdata_table): Add new entries.
6358 * common/buffer.c (buffer_xml_printf): Add support for long and
6359 long long format specifiers.
6361 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6363 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6364 (tdesc_x32_avx_linux): Likewise.
6366 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6368 Implement multi-component --with-auto-load-dir.
6369 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6371 (--with-auto-load-safe-path): Update the default value description.
6372 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6374 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6375 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6376 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6377 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6378 "set auto-load scripts-directory".
6379 * config.in: Regenerate.
6380 * configure: Regenerate.
6381 * configure.ac (--with-auto-load-dir): New configure option.
6382 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6384 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6386 Provide $ddir substitution for --with-auto-load-safe-path.
6387 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6389 * auto-load.c: Include observer.h.
6390 (auto_load_safe_path_vec_update): Call substitute_path_component for
6391 each component. New variable ddir_subst.
6392 (auto_load_gdb_datadir_changed): New function.
6393 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6394 AUTO_LOAD_SAFE_PATH. New comment.
6395 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6396 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6397 * config.in: Regenerate.
6398 * configure: Regenerate.
6399 * configure.ac (--auto-load-safe-path): Rename
6400 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6401 GDB_DATADIR/auto-load.
6402 * defs.h (substitute_path_component): New declaration.
6403 * top.c: Include observer.h.
6404 (set_gdb_datadir): New function.
6405 (init_main): Install it for "set data-directory".
6406 * utils.c (substitute_path_component): New function.
6408 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6410 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6411 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6412 DEBUG_FILE_DIRECTORY. Handle multiple components of
6413 DEBUG_FILE_DIRECTORY.
6415 2012-05-10 Tom Tromey <tromey@redhat.com>
6417 * dwarf2read.c (recursively_write_psymbols): New function.
6418 (write_psymtabs_to_index): Use it.
6420 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6422 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6423 (load_partial_comp_unit): Update.
6424 (queue_comp_unit): Add argument 'pretend_language'.
6425 (process_queue): Update.
6426 (psymtab_to_symtab_1): Skip dependencies that have a user.
6427 (load_partial_comp_unit_reader): Give meaning to the 'data'
6429 (load_full_comp_unit): Add 'pretend_language' argument.
6430 (process_full_comp_unit): Add 'pretend_language' argument. Set
6432 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6434 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6435 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6437 (prepare_one_comp_unit): Add 'pretend_language' argument.
6439 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6440 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6441 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6442 (dw2_do_instantiate_symtab): Check whether symtab was read in
6444 (dw2_instantiate_symtab): Add assertion. Call
6445 process_cu_includes.
6446 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6447 (partial_symtab_p): New typedef.
6448 (set_partial_user): New function.
6449 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6450 (scan_partial_symbols): Add imported CU to imported_symtabs.
6451 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6452 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6453 (get_symtab, recursively_compute_inclusions)
6454 (compute_symtab_includes, process_cu_includes)
6455 (process_imported_unit_die): New functions.
6456 (process_die) <DW_TAG_imported_unit>: New case.
6457 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6459 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6461 (struct partial_die_info) <locdesc>: Remove.
6463 (process_psymtab_comp_unit): Add 'read_partial' argument.
6465 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6466 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6467 (add_partial_symbol): Update.
6468 (process_die): Handle DW_TAG_partial_unit.
6469 (read_file_scope): Update comment.
6470 (load_partial_dies): Handle DW_TAG_imported_unit.
6471 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6472 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6474 2012-05-10 Tom Tromey <tromey@redhat.com>
6476 * cc-with-dwz.sh: New file.
6478 2012-05-10 Tom Tromey <tromey@redhat.com>
6480 * symtab.h (struct symtab) <includes, user>: New fields.
6481 * block.h (struct block_iterator) <d, idx, which>: New fields.
6482 * block.c (initialize_block_iterator, find_iterator_symtab)
6483 (block_iterator_step, block_iter_name_step)
6484 (block_iter_match_step): New functions.
6485 (block_iterator_first, block_iterator_next)
6486 (block_iter_name_first, block_iter_name_next)
6487 (block_iter_match_first, block_iter_match_next): Rewrite.
6488 (get_block_symtab): New function.
6490 2012-05-10 Tom Tromey <tromey@redhat.com>
6492 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6494 * jit.c (finalize_symtab): Use allocate_global_block,
6496 * buildsym.c (finish_block_internal): New function, from old
6498 (finish_block): Rewrite.
6499 (end_symtab): Use finish_block_internal, set_block_symtab.
6500 * block.h (struct global_block): New.
6501 (allocate_global_block, set_block_symtab): Declare.
6502 * block.c (allocate_global_block, set_block_symtab): New
6505 2012-05-10 Tom Tromey <tromey@redhat.com>
6507 * psymtab.c (partial_map_expand_apply): Add assertion.
6508 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6509 (psymtab_to_symtab): Find unshared psymtab.
6510 (dump_psymtab): Print including psymtabs.
6511 (recursively_search_psymtabs): New function.
6512 (expand_symtabs_matching_via_partial): Use it.
6513 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6515 (enum psymtab_search_status): New.
6517 2012-05-10 Tom Tromey <tromey@redhat.com>
6519 * tracepoint.c (scope_info): Update.
6520 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6521 (find_pc_sect_symtab, search_symbols)
6522 (default_make_symbol_completion_list_break_on)
6523 (make_file_symbol_completion_list): Update.
6524 * symmisc.c (dump_symtab_1): Update.
6525 * stack.c (print_frame_args, iterate_over_block_locals)
6526 (print_frame_labels, iterate_over_block_arg_vars): Update.
6527 * python/py-block.c (block_object) <dict>: Remove.
6529 <iter>: Change type.
6530 (blpy_iter): Update.
6531 (blpy_block_syms_iternext): Update.
6532 * psymtab.c (map_block): Use block iterators.
6533 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6534 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6535 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6536 * infrun.c (check_exception_resume): Update.
6537 * cp-support.c (make_symbol_overload_list_block): Update.
6538 * coffread.c (patch_opaque_types): Update.
6539 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6540 * block.h (struct block_iterator): New.
6541 (block_iterator_first, block_iterator_next, block_iter_name_first)
6542 (block_iter_name_next, block_iter_match_first)
6543 (block_iter_match_next): Declare.
6544 (ALL_BLOCK_SYMBOLS): Redefine.
6545 * block.c (block_iterator_first, block_iterator_next)
6546 (block_iter_name_first, block_iter_name_next)
6547 (block_iter_match_first, block_iter_match_next): New functions.
6548 * ada-lang.c (ada_add_block_symbols)
6549 (ada_make_symbol_completion_list): Use block iterator.
6551 2012-05-10 Tom Tromey <tromey@redhat.com>
6553 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6554 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6555 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6556 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6557 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6560 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6562 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6563 print-file-var-lib2.c, print-file-var-main.c and
6564 print-file-var.exp (located in gdb/testsuite/gdb.base).
6566 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6568 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6569 try locating the symbol in the symbol's own objfile first, before
6570 extending the search to all objfiles.
6571 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6572 out of lookup_symbol_aux_symtabs.
6573 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6574 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6575 Do not search EXCLUDE_OBJFILE.
6576 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6577 (lookup_symbol_global): Search for matches in the block's objfile
6578 first, before searching all other objfiles.
6580 2012-05-10 Tristan Gingold <gingold@adacore.com>
6582 * printcmd.c (set_command): Add pre/post inc/dec.
6584 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6586 * gdb.1: Document -ex option.
6588 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6590 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6591 * inferior.h (AT_SYMBOL): Delete.
6593 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6595 * mips-tdep.c (mips_push_dummy_code): New function.
6596 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6597 ON_STACK and install mips_push_dummy_code as our gdbarch
6598 push_dummy_code routine.
6600 2012-05-09 Pedro Alves <palves@redhat.com>
6602 * target.c (set_maintenance_target_async_permitted): Rename to ...
6603 (set_target_async_command): ... this.
6604 (show_maintenance_target_async_permitted): Rename to ...
6605 (show_target_async_command): ... this.
6606 (initialize_targets): Adjust.
6608 2012-05-08 Doug Evans <dje@google.com>
6610 * go-exp.y (classify_name): Add missing assignment of fields of
6613 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6615 Display the ">" prompt in interactive mode while reading canned
6616 commands, even when the current interpreter is MI.
6618 * interps.c (interp_set_temp): New function.
6620 * interps.h (interp_set_temp): Add prototype.
6622 * cli/cli-script.c (restore_interp): New cleanup function.
6623 (read_command_lines): Temporarily override the current interpreter
6624 with CLI and arrange for restoring the original one.
6626 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6628 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6630 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6632 * probe.c (parse_probes): Move conditional to check for
6633 debuginfo files from here...
6634 * stap-probe.c (stap_get_probes): ... to here.
6636 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6637 H.J. Lu <hongjiu.lu@intel.com>
6639 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6640 `movl %esp, %ebp' for the X32 ABI.
6642 2012-05-07 Tom Tromey <tromey@redhat.com>
6644 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6646 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6647 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6648 (dwarf_stack_op_name): Remove.
6649 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6650 (decode_locdesc): Use get_DW_OP_name.
6651 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6652 (dwarf2_compile_expr_to_ax): Likewise.
6653 (disassemble_dwarf_expression): Likewise.
6654 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6656 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6658 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6659 (sh_linux_sigtramp_cache): New function.
6660 (sh_linux_sigreturn_init): New function.
6661 (sh_linux_rt_sigreturn_init): New function.
6662 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6664 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6666 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6667 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6668 (sh_linux_init_abi): Add init calls to register new tramp_frame
6669 definitions under 32-bit SH, update comments.
6671 2012-05-07 Pedro Alves <palves@redhat.com>
6675 * amd64-linux-tdep.c: Include glibc-tdep.h.
6676 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6677 gdbarch_skip_solib_resolver callback.
6679 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6681 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6682 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6683 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6684 (add_auto_load_safe_path): Change the error message.
6685 (_initialize_auto_load): Change the "safe-path" help text.
6686 * configure: Regenerate
6687 * configure.ac (--without-auto-load-safe-path): Set
6688 WITH_AUTO_LOAD_SAFE_PATH to /.
6690 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6692 * stap-probe.h: Do not include unecessary `probe.h'.
6694 2012-05-05 Alan Modra <amodra@gmail.com>
6696 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6697 bfd_und_section_ptr.
6698 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6699 and bfd_com_section_ptr.
6701 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6703 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6705 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6707 * windows-nat.h (segment_register_p_ftype): New typedef.
6708 (windows_set_segment_register_p): Add declaration.
6709 * windows-nat.c (segment_register_p): New static global.
6710 (windows_set_segment_register_p): New function.
6711 (do_windows_fetch_inferior_registers): Add special handling
6712 for segment registers.
6713 * amd64-windows-nat.c: #include "amd64-tdep.h".
6714 (amd64_windows_segment_register_p): New function.
6715 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6716 * i386-windows-nat.c: #include "i386-tdep.h".
6717 (i386_windows_segment_register_p): New function.
6718 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6720 2012-05-04 Tristan Gingold <gingold@adacore.com>
6722 * printcmd.c (set_command): Emit a warning if the expression is not
6725 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6727 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6730 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6732 * stap-probe.c (stap_is_operator): Change declaration.
6733 (stap_get_opcode): Change return value.
6734 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6735 `stap_parse_argument_1'.
6737 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6739 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6742 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6744 Add two new methods global_block and static_block to gdb.Symtab
6746 * NEWS (Python scripting): Add entry about the new methods.
6747 * python/py-symtab.c (stpy_global_block): New function which
6748 implements the gdb.Symtab.global_block() method.
6749 (stpy_static_block): New function which implements the
6750 gdb.Symtab.static_block() method.
6751 (symtab_object_methods): Add entries for the two new methods.
6753 2012-05-03 Doug Evans <dje@google.com>
6755 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6758 2012-05-03 Yao Qi <yao@codesourcery.com>
6760 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6762 (i386_process_record): Ditto.
6764 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6766 * infcall.c (unwind_on_signal_p): Make static.
6768 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6770 * sol-thread.c (solaris_pid_to_str): Make static.
6771 (_initialize_sol_thread): Add prototype.
6773 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6775 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6777 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6779 * MAINTAINERS: Remove myself.
6781 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6783 Fix --without-auto-load-safe-path for MS-Windows host platform.
6784 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6786 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6788 * gdb_curses.h: Undefine KEY_EVENT before including curses
6789 headers. Move "#undef MOUSE_MOVED" before any curses header
6792 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6794 * features/i386/i386-mmx-linux.c: Regenerate.
6795 * features/rs6000/powerpc-32.c: Likewise.
6796 * features/rs6000/powerpc-32l.c: Likewise.
6797 * features/rs6000/powerpc-403.c: Likewise.
6798 * features/rs6000/powerpc-403gc.c: Likewise.
6799 * features/rs6000/powerpc-405.c: Likewise.
6800 * features/rs6000/powerpc-505.c: Likewise.
6801 * features/rs6000/powerpc-601.c: Likewise.
6802 * features/rs6000/powerpc-602.c: Likewise.
6803 * features/rs6000/powerpc-603.c: Likewise.
6804 * features/rs6000/powerpc-604.c: Likewise.
6805 * features/rs6000/powerpc-64.c: Likewise.
6806 * features/rs6000/powerpc-64l.c: Likewise.
6807 * features/rs6000/powerpc-750.c: Likewise.
6808 * features/rs6000/powerpc-860.c: Likewise.
6809 * features/rs6000/powerpc-e500.c: Likewise.
6810 * features/rs6000/powerpc-e500l.c: Likewise.
6811 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6812 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6813 * features/rs6000/rs6000.c: Likewise.
6815 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6817 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6819 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6820 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6821 (stap_parse_argument) <e>: Likewise.
6822 (handle_stap_probe) <byte_order>: Likewise.
6824 2012-04-30 Doug Evans <dje@google.com>
6826 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6827 init_and_read_dies_worker. All callers updated.
6828 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6829 replaced with init_cutu_and_read_dies.
6830 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6831 (find_partial_die): Remove FIXME. Don't free current CU.
6833 2012-04-30 Sterling Augustine <saugustine@google.com>
6835 * contrib: New directory.
6836 * contrib/test_pubnames_and_indexes.py: New file.
6838 2012-04-30 Doug Evans <dje@google.com>
6840 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6841 All callers updated.
6842 (init_cu_die_reader): Verify the section is non-empty.
6843 (dwarf_decode_line_header): Don't dereference section->asection
6844 until we know the section is present.
6846 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6848 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6851 2012-04-29 Yao Qi <yao@codesourcery.com>
6853 * gdb-code-style.el: New hook gdb-markup-hook
6854 and gdb-comment-hook.
6856 2012-04-28 Doug Evans <dje@google.com>
6858 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6859 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6861 * symfile.h (dwarf2_debug_sections): New member addr.
6862 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6863 (ctx_no_get_addr_index): New function.
6864 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6865 (ctx_no_get_addr_index): Declare.
6866 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6867 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6868 (dwarf_expr_ctx_funcs): Update.
6869 (needs_get_addr_index): New function.
6870 (needs_frame_ctx_funcs): Update.
6871 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6872 * dwarf2read.c: #include "gdbcore.h".
6873 (dwarf2_per_objfile): New members addr, dwo_files.
6874 (dwarf2_elf_names): Add entry for addr.
6875 (struct dwo_section_names): New type.
6876 (dwo_section_names): New static global.
6877 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6878 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6879 old debug_types_section member updated to use this.
6880 Rename member debug_types_section to info_or_types_section,
6882 (signatured_type): Rename member type_offset to type_offset_in_tu,
6883 all uses updated. New member type_offset_in_section.
6884 (struct dwo_sections): New type.
6885 (struct dwo_unit): New type.
6886 (struct dwo_file): New type.
6887 (die_reader_specs): New member dwo_file.
6888 (dwarf2_locate_sections): Watch for .debug_addr.
6889 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6890 (dwarf2_read_section): Get bfd of section from bfd's asection,
6892 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6893 (create_signatured_type_table_from_index): Initialize
6894 sig_type->info_or_types_section.
6895 (dw2_get_file_names): Statement lists for type units with DWO files
6896 live in the DWO file.
6897 (create_debug_types_hash_table): New function.
6898 (create_all_type_units): Rewrite.
6899 (init_cu_die_reader): New arg dwo_file, all callers updated.
6900 (init_and_read_dies_worker): Get section from
6901 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6902 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6903 continue reading the CU/TU from there.
6904 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6905 updated. Get section from this_cu->info_or_types_section.
6906 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6907 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6908 DW_FORM_GNU_str_index.
6909 (hash_dwo_file, eq_dwo_file): New functions.
6910 (allocate_dwo_file_hash_table): New function.
6911 (hash_dwo_unit, eq_dwo_unit): New functions.
6912 (allocate_dwo_unit_table): New function.
6913 (dwarf2_locate_dwo_sections): New function.
6914 (struct create_dwo_info_table_data): New type.
6915 (create_debug_info_hash_table_reader): New function.
6916 (create_debug_info_hash_table): New function.
6917 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6918 (lookup_dwo_file): New function.
6919 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6920 (free_dwo_file, free_dwo_file_cleanup): New functions.
6921 (free_dwo_file_from_slot, free_dwo_files): New functions.
6922 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6923 (dwarf2_record_block_ranges): Ditto.
6924 (read_partial_die): Ditto.
6925 (process_enumeration_scope): Update to use type_offset_in_section.
6926 (read_full_die_1): New function.
6927 (read_full_die): Rewrite.
6928 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6929 DW_FORM_GNU_str_index.
6930 (read_addr_index_1, read_addr_index): New functions.
6931 (read_addr_index_from_leb128): New function.
6932 (struct dwarf2_read_addr_index_data): New type.
6933 (dwarf2_read_addr_index_reader): New function.
6934 (dwarf2_read_addr_index): New function.
6935 (read_str_index): New function.
6936 (leb128_size): New function.
6937 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6938 If processing a type unit from a DWO file, get the line section
6940 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6941 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6942 DW_FORM_GNU_str_index.
6943 (lookup_die_type): Check whether section offset of type's die is
6944 known before looking it up. Remove assert. Condition can
6945 legimately happen for inter-cu type references.
6946 (dwarf_attr_name): Handle Fission attributes.
6947 (dwarf_form_name): Handle Fission forms.
6948 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6949 DW_FORM_GNU_str_index.
6950 (follow_die_sig): Update to use type_offset_in_section.
6951 (decode_locdesc): New case DW_OP_GNU_addr_index.
6952 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6953 DW_FORM_GNU_str_index.
6954 (cu_debug_loc_section): New function.
6955 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6956 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6957 Free DWO files if present.
6958 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6960 Refactor DIE reading.
6961 * dwarf2read.c (dwarf2_per_objfile): Replace members
6962 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6963 (die_reader_specs): New member "die_section". Temporarily make
6964 member "buffer" non-const, pending constifying all info_ptr uses.
6965 (die_reader_func_ftype): New typedef.
6966 (dw2_get_file_names_reader): New function.
6967 (dw2_get_file_names): Rewrite.
6968 (read_and_check_type_unit_head): Rename arg type_offset to
6970 (create_all_type_units): Improve debugging message.
6971 Improve dummy type unit check.
6972 (init_cu_die_reader): New arg "section". All callers updated.
6973 (init_and_read_dies_worker): New function.
6974 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6975 (init_cutu_and_read_dies_no_follow): New function.
6976 (init_cutu_and_read_dies_simple): New function.
6977 (process_psymtab_comp_unit_reader): New function.
6978 (process_psymtab_comp_unit): Delete args section,
6979 is_debug_types_section. Rewrite. All callers updated.
6980 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6981 All callers updated. Rewrite.
6982 (load_partial_comp_unit_reader): New function.
6983 (load_partial_comp_unit): Rewrite.
6984 (skip_children): New arg reader. Delete args buffer, cu.
6985 All callers updated.
6986 (skip_one_die): New arg reader. Delete args buffer, cu.
6987 All callers updated.
6988 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6989 All callers updated.
6990 (load_full_comp_unit_reader): New function.
6991 (load_full_comp_unit): Rewrite.
6992 (read_comp_unit): Delete.
6993 (read_die_and_children_1): Delete, contents moved ...
6994 (read_die_and_children): ... here.
6995 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6996 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6997 All callers updated.
6998 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6999 All callers updated.
7000 (find_partial_die): Rewrite load_all_dies support.
7001 (read_attribute_value): New arg reader. Delete args abfd, cu.
7002 All callers updated.
7003 (read_attribute): New arg reader. Delete args abfd, cu.
7004 All callers updated.
7005 (load_full_type_unit): Add assert.
7006 (read_signatured_type_reader): New function.
7007 (read_signatured_type): Rewrite.
7008 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7009 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7010 All callers updated. Set per_cu->cu = NULL after freeing it.
7011 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7012 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7013 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7014 (set_die_type): Update.
7015 (get_die_type_at_offset): Update.
7016 (read_file_scope): Call prepare_one_comp_unit.
7017 (read_type_unit_scope): Ditto.
7018 (prepare_one_comp_unit): Set producer if present.
7020 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7022 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7023 gettext function on `error'.
7025 2012-04-27 Doug Evans <dje@google.com>
7027 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7030 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7031 Tom Tromey <tromey@redhat.com>
7033 * breakpoint.c (struct breakpoint_objfile_data)
7034 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7035 <exception_probes>: New fields.
7036 (free_breakpoint_probes): New function.
7037 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7038 `_Unwind_DebugHook'.
7039 (create_exception_master_breakpoint): Likewise.
7040 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7041 * infrun.c: Including necessary header files for handling SystemTap
7043 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7044 via SystemTap probes.
7045 (check_exception_resume): Remove `func' argument. Handle exception
7046 unwinding breakpoint set via a SystemTap probe.
7047 (insert_exception_resume_from_probe): New function.
7049 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7050 Tom Tromey <tromey@redhat.com>
7051 Jan Kratochvil <jan.kratochvil@redhat.com>
7053 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7054 (COMMON_OBS): Likewise.
7055 (HFILES_NO_SRCDIR): Add `probe'.
7056 * NEWS: Mention support for static and SystemTap probes.
7057 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7058 SystemTap probes' arguments parser.
7059 * arm-linux-tdep.c: Including headers needed to perform the parsing
7060 of SystemTap probes' arguments.
7061 (arm_stap_is_single_operand): New function.
7062 (arm_stap_parse_special_token): Likewise.
7063 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7064 probes' arguments parser.
7065 * ax-gdb.c (require_rvalue): Removing static declaration.
7066 (gen_expr): Likewise.
7067 * ax-gdb.h (gen_expr): Declaring function.
7068 (require_rvalue): Likewise.
7069 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7070 (bkpt_probe_breakpoint_ops): New variable.
7071 (momentary_breakpoint_from_master): Set the `probe' value.
7072 (add_location_to_breakpoint): Likewise.
7073 (break_command_1): Using proper breakpoint_ops according to the
7074 argument passed by the user in the command line.
7075 (bkpt_probe_insert_location): New function.
7076 (bkpt_probe_remove_location): Likewise.
7077 (bkpt_probe_create_sals_from_address): Likewise.
7078 (bkpt_probe_decode_linespec): Likewise.
7079 (tracepoint_probe_create_sals_from_address): Likewise.
7080 (tracepoint_probe_decode_linespec): Likewise.
7081 (tracepoint_probe_breakpoint_ops): New variable.
7082 (trace_command): Using proper breakpoint_ops according to the
7083 argument passed by the user in the command line.
7084 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7085 static probes on breakpoints and tracepoints.
7086 * breakpoint.h (struct bp_location) <probe>: New field.
7087 * cli-utils.c (skip_spaces_const): New function.
7088 (extract_arg): Likewise.
7089 * cli-utils.h (skip_spaces_const): Likewise.
7090 (extract_arg): Likewise.
7091 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7092 * configure.ac: Append `stap-probe.o' to be generated when ELF
7094 * configure: Regenerate.
7095 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7096 * elfread.c: Include `probe.h' and `arch-utils.h'.
7097 (probe_key): New variable.
7098 (elf_get_probes): New function.
7099 (elf_get_probe_argument_count): Likewise.
7100 (elf_evaluate_probe_argument): Likewise.
7101 (elf_compile_to_ax): Likewise.
7102 (elf_symfile_relocate_probe): Likewise.
7103 (stap_probe_key_free): Likewise.
7104 (elf_probe_fns): New variable.
7105 (elf_sym_fns): Add `sym_probe_fns' value.
7106 (elf_sym_fns_lazy_psyms): Likewise.
7107 (elf_sym_fns_gdb_index): Likewise.
7108 (_initialize_elfread): Initialize objfile cache for static
7110 * gdb_vecs.h (struct probe): New forward declaration.
7111 (probe_p): New VEC declaration.
7112 * gdbarch.c: Regenerate.
7113 * gdbarch.h: Regenerate.
7114 * gdbarch.sh (stap_integer_prefix): New variable.
7115 (stap_integer_suffix): Likewise.
7116 (stap_register_prefix): Likewise.
7117 (stap_register_suffix): Likewise.
7118 (stap_register_indirection_prefix): Likewise.
7119 (stap_register_indirection_suffix): Likewise.
7120 (stap_gdb_register_prefix): Likewise.
7121 (stap_gdb_register_suffix): Likewise.
7122 (stap_is_single_operand): New function.
7123 (stap_parse_special_token): Likewise.
7124 (struct stap_parse_info): Forward declaration.
7125 * i386-tdep.c: Including headers needed to perform the parsing
7126 of SystemTap probes' arguments.
7127 (i386_stap_is_single_operand): New function.
7128 (i386_stap_parse_special_token): Likewise.
7129 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7130 probes' arguments parser.
7131 * i386-tdep.h (i386_stap_is_single_operand): New function.
7132 (i386_stap_parse_special_token): Likewise.
7133 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7134 * mipsread.c (ecoff_sym_fns): Likewise.
7135 * objfiles.c (objfile_relocate1): Support relocation for static
7137 * parse.c (prefixify_expression): Remove static declaration.
7138 (initialize_expout): Likewise.
7139 (reallocate_expout): Likewise.
7140 * parser-defs.h (initialize_expout): Declare function.
7141 (reallocate_expout): Likewise.
7142 (prefixify_expression): Likewise.
7143 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7144 of SystemTap probes' arguments.
7145 (ppc_stap_is_single_operand): New function.
7146 (ppc_stap_parse_special_token): Likewise.
7147 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7148 probes' arguments parser.
7149 * probe.c: New file, for generic statically defined probe support.
7150 * probe.h: Likewise.
7151 * s390-tdep.c: Including headers needed to perform the parsing of
7152 SystemTap probes' arguments.
7153 (s390_stap_is_single_operand): New function.
7154 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7155 probes' arguments parser.
7156 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7157 * stap-probe.c: New file, for SystemTap probe support.
7158 * stap-probe.h: Likewise.
7159 * symfile.h: Include `gdb_vecs.h'.
7160 (struct sym_probe_fns): New struct.
7161 (struct sym_fns) <sym_probe_fns>: New field.
7162 * symtab.c (init_sal): Initialize `probe' field.
7163 * symtab.h (struct probe): Forward declaration.
7164 (struct symtab_and_line) <probe>: New field.
7165 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7167 (stop_tracing): Likewise.
7168 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7170 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7171 Tom Tromey <tromey@redhat.com>
7173 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7174 and to compile agent expressions.
7175 * infrun.c (siginfo_make_value): New argument `ignore'.
7176 (siginfo_funcs): New struct.
7177 (_initialize_infrun): New argument when calling
7178 `create_internalvar_type_lazy'.
7179 * thread.c (thread_id_make_value): New argument `ignore'.
7180 (thread_funcs): New struct.
7181 (_initialize_thread): New argument when calling
7182 `create_internalvar_type_lazy'.
7183 * tracepoint.c (sdata_make_value): New argument `ignore'.
7184 (sdata_funcs): New struct.
7185 (_initialize_tracepoint): New argument when calling
7186 `create_internalvar_type_lazy'.
7187 * value.c (make_value): New struct.
7188 (create_internalvar_type_lazy): New argument `data'.
7189 (compile_internalvar_to_ax): New function.
7190 (value_of_internalvar): Properly handling `make_value' case.
7191 (clear_internalvar): Likewise.
7192 (show_convenience): Adding `TRY_CATCH' block.
7193 * value.h (internalvar_make_value): Delete, replace by...
7194 (struct internalvar_funcs): ... this.
7195 (create_internalvar_type_lazy) <fun>: Delete argument.
7196 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7197 (compile_internalvar_to_ax): New function.
7198 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7199 (tlb_funcs): New struct.
7200 (_initialize_windows_tdep): New argument when calling
7201 `create_internalvar_type_lazy'.
7203 2012-04-27 Mark Wielaard <mjw@redhat.com>
7205 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7206 see whether it is an address or a constant offset from DW_AT_low_pc.
7207 (dwarf2_record_block_ranges): Likewise.
7208 (read_partial_die): Likewise.
7210 2012-04-26 Mark Wielaard <mjw@redhat.com>
7212 * MAINTAINERS (Write After Approval): Add myself to the list.
7214 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7216 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7217 (proc_prettyprint_signal): Likewise.
7218 (proc_prettyprint_faultset): Likewise.
7219 (proc_prettyprint_fault): Likewise.
7220 (proc_prettyprint_actionset): Likewise.
7221 (proc_prettyprint_flags): Move to new proc-flags.c section.
7222 (proc_prettyfprint_flags): New prototype.
7223 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7224 (proc_syscall, proc_cursig): Likewise.
7225 (proc_set_kill_on_last_close): Likewise.
7226 (proc_unset_kill_on_last_close): Likewise.
7227 (proc_set_watchpoint): Make static.
7228 (proc_delete_dead_threads): Likewise.
7229 (procfs_set_watchpoint): Likewise.
7230 (_initialize_procfs): Add prototype.
7231 * proc-events.c: Include proc-utils.h.
7232 (init_syscall_table): Make static.
7233 * proc-api.c (_initialize_proc_api): Add prototype.
7234 * proc-flags.c: Include proc-utils.h.
7236 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7238 * configure.ac: Add AC_ARG_PROGRAM.
7239 * configure: Regenerate.
7241 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7243 Fix DW_AT_lower_bound defaults for DWARF-4+.
7244 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7245 high. New variable low_default_is_valid. Implement DWARF-4+
7246 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7247 no default by the DWARF standard.
7249 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7250 Maciej W. Rozycki <macro@codesourcery.com>
7252 * infrun.c (handle_inferior_event): Move the check for return
7253 trampolines ahead of the check for function trampolines.
7254 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7255 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7256 (mips_str_mips16_ret_stub): Likewise.
7257 (mips_str_call_fp_stub): Likewise.
7258 (mips_str_call_stub): Likewise.
7259 (mips_str_fn_stub): Likewise.
7260 (mips_str_pic): Likewise.
7261 (mips_in_frame_stub): New function.
7262 (mips_unwind_pc): Return the return address rather than the PC
7263 if the PC of an intermediate frame is inside a call thunk.
7264 (mips_is_stub_suffix): New function.
7265 (mips_is_stub_mode): Likewise.
7266 (mips_get_mips16_fn_stub_pc): Likewise.
7267 (mips_skip_mips16_trampoline_code): Update to handle all the
7268 currently generated stub types. Don't recurse into __fn_stub
7269 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7270 Use cooked register accesses.
7271 (mips_in_return_stub): Reintroduce function.
7272 (mips_skip_trampoline_code): Traverse trampolines recursively.
7273 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7275 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7279 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7281 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7282 * features/arm-with-m-vfp-d16.xml: New file. Describes
7283 Cortex-M with VFPv4-sp-d16 FPU register layout.
7284 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7285 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7286 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7287 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7288 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7290 2012-04-25 Doug Evans <dje@google.com>
7292 * cli/cli-decode.c (print_doc_line): Use stream instead of
7295 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7297 * features/arm-with-iwmmxt.c: Regenerate.
7298 * features/arm-with-m-fpa-layout.c: Likewise.
7299 * features/arm-with-m.c: Likewise.
7300 * features/arm-with-neon.c: Likewise.
7301 * features/arm-with-vfpv2.c: Likewise.
7302 * features/arm-with-vfpv3.c: Likewise.
7303 * features/mips-dsp-linux.c: Likewise.
7304 * features/mips-linux.c: Likewise.
7305 * features/mips64-dsp-linux.c: Likewise.
7306 * features/mips64-linux.c: Likewise.
7307 * features/s390-linux32.c: Likewise.
7308 * features/s390-linux32v1.c: Likewise.
7309 * features/s390-linux32v2.c: Likewise.
7310 * features/s390-linux64.c: Likewise.
7311 * features/s390-linux64v1.c: Likewise.
7312 * features/s390-linux64v2.c: Likewise.
7313 * features/s390x-linux64.c: Likewise.
7314 * features/s390x-linux64v1.c: Likewise.
7315 * features/s390x-linux64v2.c: Likewise.
7316 * features/tic6x-c62x-linux.c: Likewise.
7317 * features/tic6x-c62x.c: Likewise.
7318 * features/tic6x-c64x-linux.c: Likewise.
7319 * features/tic6x-c64x.c: Likewise.
7320 * features/tic6x-c64xp-linux.c: Likewise.
7321 * features/tic6x-c64xp.c: Likewise.
7322 * target-descriptions.c: Only generate `field_type' and `type'
7323 variables when needed.
7325 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7327 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7329 2012-04-25 Doug Evans <dje@google.com>
7331 Initial pass at Go language support.
7333 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7335 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7336 (YYFILES): Add go-exp.c.
7337 (YYOBJ): Add go-exp.o.
7338 (local-maintainer-clean): Delete go-exp.c.
7339 * defs.h (enum language): Add language_go.
7340 * dwarf2read.c: #include "go-lang.h".
7341 (fixup_go_packaging): New function.
7342 (process_full_comp_unit): Call it when processing Go CUs.
7343 (dwarf2_physname): Add Go support.
7344 (read_file_scope): Handle missing language spec for GNU Go.
7345 (set_cu_language): Handle DW_LANG_Go.
7346 * go-exp.y: New file.
7347 * go-lang.h: New file.
7348 * go-lang.c: New file.
7349 * go-typeprint.c: New file.
7350 * go-valprint.c: New file.
7351 * symtab.c: #include "go-lang.h".
7352 (symbol_set_language): Handle language_go.
7353 (symbol_find_demangled_name, symbol_set_names): Ditto.
7354 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7356 2012-04-24 Jim Meyering <meyering@redhat.com>
7358 avoid a few strncpy-induced buffer overruns
7359 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7360 fname and psargs before trying to concatenate.
7361 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7362 "name" before applying strchr.
7364 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7366 * CONTRIBUTE: Use unified diff instead of context diff when
7369 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7371 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7372 code. Handle JR.HB correctly.
7374 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7377 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7378 with the other MIPS16 helpers.
7380 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7382 * observer.sh: Conditionally declare `args', thus cleaning up
7383 unused instances of this variable.
7385 2012-04-24 Yao Qi <yao@codesourcery.com>
7387 Revert this patch to allow breakpoint always-inserted
7389 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7390 * breakpoint.c: Include record.h.
7391 (breakpoints_always_inserted_mode): Return false when the record
7394 * breakpoint.c (iterate_over_bp_locations): New.
7395 * breakpoint.h: Declare.
7396 New typedef walk_bp_location_callback.
7397 * record.c (record_open): Call record_init_record_breakpoints.
7398 (record_sync_record_breakpoints): New.
7399 (record_init_record_breakpoints): New.
7400 * NEWS: Mention supporting breakpoint always-inserted mode in
7403 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7405 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7408 2012-04-24 Yao Qi <yao@codesourcery.com>
7410 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7411 (is_catchpoint): ... it.
7412 (print_one_breakpoint_location): Caller update.
7413 * breakpoint.h: Update declaration.
7415 2012-04-23 David S. Miller <davem@davemloft.net>
7417 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7419 2012-04-23 Tom Tromey <tromey@redhat.com>
7421 * buildsym.c (add_free_pendings): Remove.
7422 * buildsym.h (add_free_pendings): Remove.
7424 2012-04-23 Doug Evans <dje@google.com>
7426 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7427 attr.u.unsnd instead of attr.u.addr.
7428 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7429 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7431 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7432 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7434 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7436 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7438 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7439 (mips_o32_return_value): Likewise.
7440 (mips_o64_return_value): Likewise.
7442 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7444 * ada-lang.c (ada_evaluate_subexp): Add cases for
7445 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7446 their treatment in eval.c.
7448 2012-04-21 David S. Miller <davem@davemloft.net>
7450 * sparc-tdep.c (X_DISP10): Define.
7451 (sparc_analyze_control_transfer): Handle compare-and-branch.
7453 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7455 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7456 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7458 2012-04-20 Nigel Stephens <nigel@mips.com>
7459 Maciej W. Rozycki <macro@codesourcery.com>
7461 * mips-tdep.c (mips_float_register_p): New function.
7462 (mips_convert_register_float_case_p): Use mips_float_register_p.
7463 (mips_register_type): Likewise.
7464 (mips_print_register): Likewise.
7465 (print_gp_register_row): Likewise.
7466 (mips_print_registers_info): Likewise.
7468 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7470 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7473 2012-04-20 Andrew Pinski <apinski@cavium.com>
7475 * MAINTAINERS (Write After Approval): Add myself to the list.
7477 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7479 * MAINTAINERS: Update my e-mail address.
7481 2012-04-20 Pedro Alves <palves@redhat.com>
7483 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7485 * configure: Regenerate.
7487 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7489 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7491 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7493 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 Fix compilation compatibility with python-2.4
7496 * python/py-type.c (convert_field): Cast ADDRSTRING for
7497 PyObject_SetAttrString as non-const. New comment.
7499 2012-04-19 Tom Tromey <tromey@redhat.com>
7501 * top.c (quit_target): Use all_cleanups.
7502 * main.c (captured_command_loop): Use all_cleanups.
7503 * exceptions.c (throw_exception): Use all_cleanups.
7505 2012-04-19 Pedro Alves <palves@redhat.com>
7507 * Makefile.in (GNULIB_BUILDDIR): New.
7508 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7509 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7510 (CLEANDIRS). Remove gnulib/import.
7511 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7513 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7514 (gnulib/import/Makefile): Replace gnulib/import with
7515 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7516 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7517 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7518 acx_configure_dir.m4.
7519 * acinclude.m4: Include acx_configure_dir.m4.
7520 * acx_configure_dir.m4: New file.
7521 * aclocal.m4: Regenerate.
7522 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7523 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7524 (GNULIB): New variable.
7525 (GNULIB_STDINT_H): Adjust.
7526 (AC_OUTPUT): Don't output gnulib/Makefile.
7527 * gdb/defs.h: Include build-gnulib/config.h.
7528 * aclocal.m4: Regenerate.
7529 * config.in: Regenerate.
7530 * configure: Regenerate.
7532 * gnulib/Makefile.in: New file.
7533 * gnulib/configure.ac: New file.
7534 * gnulib/aclocal.m4: New file.
7535 * gnulib/config.in: New file.
7536 * gnulib/configure: New file.
7537 * gnulib/: Re-run gnulib-tool to adjust.
7539 2012-04-19 Doug Evans <dje@google.com>
7541 * cleanups.h (struct cleanup): Move to cleanups.c.
7542 (make_cleanup_dtor_ftype): New typedef.
7543 (make_cleanup_dtor): Use it.
7544 (ALL_CLEANUPS): Replace with ...
7545 (all_cleanups): ... this. Declare. All uses updated.
7546 * cleanups.c: #include "gdb_assert.h".
7547 (sentinel_cleanup): New static global.
7548 (SENTINEL_CLEANUP): Define.
7549 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7550 (make_my_cleanup2): Assert result is non-NULL.
7551 (all_cleanups): New function.
7552 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7555 2012-04-19 Pedro Alves <palves@redhat.com>
7557 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7558 Adjust paths to gnulib imported files.
7560 2012-04-19 Pedro Alves <palves@redhat.com>
7562 * gnulib/: Move whole directory ...
7563 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7564 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7565 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7566 (aclocal_m4_deps): Adjust.
7567 * aclocal.m4: Regenerate.
7568 * configure: Regenerate.
7569 * configure.ac: Adjust AC_OUTPUT output.
7571 2012-04-19 Yao Qi <yao@codesourcery.com>
7573 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7575 * vec.c: Move it ...
7576 * common/vec.c: ... here.
7577 * vec.h: Move it ...
7578 * common/vec.h: ... here.
7580 2012-04-19 Yao Qi <yao@codesourcery.com>
7582 * gdb-code-style.el: New.
7584 2012-04-18 Pedro Alves <palves@redhat.com>
7586 Update gnulib from latest git.
7587 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7589 * gnulib/Makefile.am: Update.
7590 * gnulib/dummy.c: Update.
7591 * gnulib/extra/arg-nonnull.h: Update.
7592 * gnulib/extra/c++defs.h: Update.
7593 * gnulib/extra/update-copyright: Update.
7594 * gnulib/extra/warn-on-use.h: Update.
7595 * gnulib/inttypes.in.h: Update.
7596 * gnulib/m4/00gnulib.m4: Update.
7597 * gnulib/m4/extensions.m4: Update.
7598 * gnulib/m4/gnulib-cache.m4: Update.
7599 * gnulib/m4/gnulib-common.m4: Update.
7600 * gnulib/m4/gnulib-comp.m4: Update.
7601 * gnulib/m4/gnulib-tool.m4: Update.
7602 * gnulib/m4/include_next.m4: Update.
7603 * gnulib/m4/inttypes-pri.m4: Update.
7604 * gnulib/m4/inttypes.m4: Update.
7605 * gnulib/m4/longlong.m4: Update.
7606 * gnulib/m4/memchr.m4: Update.
7607 * gnulib/m4/memmem.m4: Update.
7608 * gnulib/m4/mmap-anon.m4: Update.
7609 * gnulib/m4/multiarch.m4: Update.
7610 * gnulib/m4/onceonly.m4: Update.
7611 * gnulib/m4/stddef_h.m4: Update.
7612 * gnulib/m4/stdint.m4: Update.
7613 * gnulib/m4/string_h.m4: Update.
7614 * gnulib/m4/warn-on-use.m4: Update.
7615 * gnulib/m4/wchar_h.m4: Update.
7616 * gnulib/m4/wchar_t.m4: Update.
7617 * gnulib/m4/wint_t.m4: Update.
7618 * gnulib/memchr.c: Update.
7619 * gnulib/memmem.c: Update.
7620 * gnulib/stddef.in.h: Update.
7621 * gnulib/stdint.in.h: Update.
7622 * gnulib/str-two-way.h: Update.
7623 * gnulib/string.in.h: Update.
7624 * gnulib/wchar.in.h: Update.
7626 * gnulib/extra/arg-nonnull.h: Delete.
7627 * gnulib/extra/c++defs.h: Delete.
7628 * gnulib/extra/warn-on-use.h: Delete.
7629 * gnulib/m4/wchar_h.m4: Delete.
7630 * gnulib/m4/wint_t.m4: Delete.
7631 * gnulib/wchar.in.h: Delete.
7633 * gnulib/extra/snippets/arg-nonnull.h: New.
7634 * gnulib/extra/snippets/c++defs.h: New.
7635 * gnulib/extra/snippets/warn-on-use.h: New.
7637 * aclocal.m4: Regenerate.
7638 * config.in: Regenerate.
7639 * configure: Regenerate.
7640 * gnulib/Makefile.in: Regenerate.
7642 2012-04-18 Pedro Alves <palves@redhat.com>
7644 Reimport the update-copyright module from gnulib
7645 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7647 * configure: Regenerate.
7648 * gnulib/Makefile.am: Update.
7649 * gnulib/Makefile.in: Regenerate.
7650 * gnulib/extra/update-copyright: Update.
7651 * gnulib/m4/gnulib-cache.m4: Update.
7652 * gnulib/m4/gnulib-comp.m4: Update.
7654 2012-04-18 Tristan Gingold <gingold@adacore.com>
7656 * configure.ac (aix): Put -lpthread into libs.
7657 * configure: Regenerate.
7659 2012-04-18 Tom Tromey <tromey@redhat.com>
7661 * linespec.c (convert_linespec_to_sals): Don't use
7663 (compare_msymbols): Arguments are minsym_and_objfile, not
7664 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7666 2012-04-18 Pedro Alves <palves@redhat.com>
7668 Revert gnulib/ part of:
7669 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7670 Copyright year update in most files (performed by copyright.sh).
7672 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7674 Fix 64-bit constants on 32-bit hosts.
7675 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7676 from unsigned long to ULONGEST.
7677 (read_signed_leb128): Change declaration return type from long to
7679 (dwarf2_const_value_attr): Change declaration parameter value from long
7681 (dwarf2_compute_name): Change variable value from long to LONGEST.
7682 (read_unsigned_leb128): Change return type, variable result and some
7683 casts from unsigned long to ULONGEST.
7684 (read_signed_leb128): Change return type, variable result and some
7685 casts from long to LONGEST.
7686 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7687 value from long to LONGEST.
7688 (dwarf2_const_value): Change variable value from long to LONGEST.
7689 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7690 plongest and hex_string.
7691 * symtab.h (struct general_symbol_info): Change ivalue from long to
7692 LONGEST, remove the comment.
7693 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7694 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7696 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7699 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7700 * ada-lang.c (ada_discrete_type_high_bound)
7701 (ada_discrete_type_low_bound): Fix function comment. Use
7702 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7703 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7704 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7705 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7706 Use TYPE_FIELD_ENUMVAL.
7707 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7708 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7709 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7710 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7712 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7713 * dwarf2read.c (process_enumeration_scope): Likewise.
7714 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7716 (class StructMainTypePrettyPrinter): Support also
7717 FIELD_LOC_KIND_ENUMVAL.
7718 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7720 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7721 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7722 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7723 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7725 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7726 accommodate enumval.
7727 (struct call_site): Adjust loc_kind to accommodate enumval.
7728 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7729 (TYPE_FIELD_ENUMVAL): New macros.
7730 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7731 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7733 * p-typeprint.c (pascal_type_print_base): Likewise.
7734 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7736 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7737 * python/py-type.c (convert_field): New variable addrstring. Use
7738 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7739 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7740 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7741 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7743 * valprint.c (generic_val_print): Likewise.
7745 2012-04-17 Doug Evans <dje@google.com>
7747 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7749 * dwarf2read.c: Whitespace fixes.
7750 (lookup_signatured_type): Tweak comment.
7751 (get_die_type_at_offset): Fix comment.
7753 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7755 * xcoffread.c (xcoff_secnum_to_sections): New function.
7756 (secnum_to_section, secnum_to_bfd_section): Reimplement
7757 using xcoff_secnum_to_sections. Rename "secnum" parameter
7759 (RECORD_MINIMAL_SYMBOL): Delete.
7760 (record_minimal_symbol): New function.
7761 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7762 by call to record_minimal_symbol and set misc_func_recorded
7763 to 1. Set last_csect_sec to the XCOFF section index instead
7764 of GDB's section_offset index. Update calls to
7765 prim_record_minimal_symbol_and_info to pass the BFD section
7768 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7770 * xcoffread.c (read_xcoff_symtab): Delete variables
7771 last_csect_val and last_csect_sec and associated code.
7773 2012-04-17 Doug Evans <dje@google.com>
7775 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7776 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7777 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7778 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7780 * cleanups.h: New file.
7781 * cleanups.c: New file.
7782 * Makefile.in (SFILES): Add cleanups.c.
7783 (HFILES_NO_SRCDIR): Add cleanups.h.
7784 (COMMON_OBS): Add cleanups.o.
7785 * defs.h (struct cleanup): Moved to cleanups.h.
7786 (do_cleanups,do_final_cleanups): Ditto.
7787 (discard_cleanups,discard_final_cleanups): Ditto
7788 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7789 (save_cleanups,save_final_cleanups): Ditto.
7790 (restore_cleanups,restore_final_cleanups): Ditto.
7791 (null_cleanup): Ditto.
7792 (make_my_cleanup,make_my_cleanup2): Ditto.
7793 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7794 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7795 (do_cleanups,do_final_cleanups): Ditto.
7796 (discard_cleanups,discard_final_cleanups): Ditto
7797 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7798 (save_cleanups,save_final_cleanups): Ditto.
7799 (restore_cleanups,restore_final_cleanups): Ditto.
7800 (null_cleanup): Ditto.
7801 (make_my_cleanup,make_my_cleanup2): Ditto.
7802 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7804 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7806 (make_cleanup_dyn_string_delete): Ditto.
7807 (make_cleanup_ui_file_delete): Ditto.
7808 (make_cleanup_ui_out_redirect_pop): Ditto.
7809 (make_cleanup_free_section_addr_info): Ditto.
7810 (make_cleanup_restore_integer): Ditto.
7811 (make_cleanup_unpush_target): Ditto.
7812 (make_cleanup_value_free_to_mark): Ditto.
7813 (make_cleanup_value_free): Ditto.
7814 (make_cleanup_free_so): Ditto.
7816 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7818 New option "set debug auto-load".
7819 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7820 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7821 (auto_load_safe_path_vec_update)
7822 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7824 (file_is_auto_load_safe): New parameters debug_fmt and ....
7825 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7826 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7827 caller by explanatory string.
7828 (_initialize_auto_load): Register "set debug auto-load".
7829 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7831 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7832 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7833 by explanatory string.
7834 * main.c (captured_main): Likewise.
7835 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7836 (source_section_scripts): Likewise.
7838 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7840 New option "set auto-load safe-path".
7841 * NEWS: New commands "set auto-load safe-path"
7842 and "show auto-load safe-path".
7843 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7844 (auto_load_safe_path, auto_load_safe_path_vec)
7845 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7846 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7847 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7848 (source_gdb_script_for_objfile): New variable is_safe. Call
7849 file_is_auto_load_safe. Return if it is not.
7850 (struct loaded_script): New field loaded.
7851 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7852 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7853 output "Missing" to "No".
7854 (_initialize_auto_load): New variable cmd. Initialize
7855 auto_load_safe_path. Register "set auto-load safe-path",
7856 "show auto-load safe-path" and "add-auto-load-safe-path".
7857 * auto-load.h (maybe_add_script): Add parameter loaded.
7858 (file_is_auto_load_safe): New declaration.
7859 * config.in: Regenerate.
7860 * configure: Regenerate.
7861 * configure.ac: New parameters --with-auto-load-safe-path
7862 and --without-auto-load-safe-path.
7863 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7864 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7865 * main.c (captured_main): Check file_is_auto_load_safe for
7867 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7868 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7869 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7872 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7874 auto-load: Implementation.
7875 * NEWS: New descriptions for "info auto-load",
7876 "info auto-load gdb-scripts", "info auto-load python-scripts",
7877 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7878 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7879 and "show auto-load-scripts". New description for "set auto-load",
7880 "show auto-load", "set auto-load gdb-scripts",
7881 "show auto-load gdb-scripts", "set auto-load python-scripts",
7882 "show auto-load python-scripts", "set auto-load local-gdbinit",
7883 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7884 "show auto-load libthread-db".
7885 * auto-load.c: Remove include python/python-internal.h. Add includes
7886 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7888 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7889 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7890 (gdbpy_global_auto_load): Rename to ...
7891 (global_auto_load): ... here.
7892 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7893 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7894 (script_language_gdb, source_gdb_script_for_objfile): New.
7895 (struct loaded_script): New field language.
7896 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7898 (maybe_add_script): Add parameter language. Drop redundant
7899 entry.full_path initialization. Initialize entry.language and
7901 (auto_load_objfile_script): Change parameter suffix to language.
7902 Remove the call of maybe_add_script.
7903 Call language->source_script_for_objfile.
7904 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7906 (collect_matching_scripts): Adjust it for
7907 struct collect_matching_scripts_data.
7908 (auto_load_info_scripts_pattern_nl): New variable.
7909 (info_auto_load_scripts): Rename to ...
7910 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7911 for struct collect_matching_scripts_data.
7912 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7913 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7914 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7915 (auto_load_info_cmdlist_get): New.
7916 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7917 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7918 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7919 "info auto-load local-gdbinit".
7920 * auto-load.h (struct script_language): New.
7921 (gdbpy_global_auto_load): Rename to ...
7922 (global_auto_load): ... here.
7923 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7924 (auto_load_local_gdbinit_loaded): New declarations.
7925 (maybe_add_script): New parameter language.
7926 (auto_load_objfile_script): Change parameter suffix to language.
7927 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7928 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7929 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7931 * linux-thread-db.c: Include auto-load.h and ctype.h.
7932 (auto_load_thread_db, show_auto_load_thread_db): New.
7933 (struct thread_db_info): New field filename.
7934 (delete_thread_db_info): Call xfree for FILENAME.
7935 (try_thread_db_load): Initialize FILENAME.
7936 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7937 if !AUTO_LOAD_THREAD_DB.
7938 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7939 (_initialize_thread_db): Install auto_load_thread_db
7940 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7941 as "info auto-load libthread-db".
7942 * main.c (captured_main): Rename gdbpy_global_auto_load to
7943 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7944 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7945 (print_gdb_help): Extend the help for 'local init file'.
7946 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7947 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7948 (auto_load_scripts): Rename to ...
7949 (auto_load_python_scripts): ... here, update the comment.
7950 (gdbpy_load_auto_script_for_objfile): New declaration.
7951 (show_auto_load_python_scripts, script_language_python)
7952 (gdbpy_load_auto_script_for_objfile): New.
7953 (source_section_scripts): Refactor the code.
7954 (load_auto_scripts_for_objfile): Rename to ...
7955 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7956 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7957 (info_auto_load_python_scripts): New.
7958 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7959 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7960 Register "set auto-load-scripts" as its deprecated alias. Register
7961 "info auto-load python-scripts". Register "info auto-load-scripts" as
7962 its deprecated alias.
7963 (load_auto_scripts_for_objfile): Rename to ...
7964 (gdbpy_load_auto_scripts_for_objfile): ... here.
7965 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7966 (gdbpy_load_auto_scripts_for_objfile): ... here.
7968 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7970 auto-load: Move files.
7971 * Makefile.in (SFILES): Add auto-load.c.
7972 (HFILES_NO_SRCDIR): Add auto-load.h.
7973 (COMMON_OBS): Add auto-load.o.
7974 (distclean): Change .gdbinit for gdb-gdb.gdb.
7975 * auto-load.c: New file, with parts from python/py-auto-load.c.
7976 * auto-load.h: New file, with parts from python/python.h.
7977 * configure: Regenerate.
7978 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7979 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7980 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7981 * main.c: Include auto-load.h.
7982 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7983 command.h, observer.h and progspace.h to auto-load.c. Add include
7985 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7986 (struct loaded_script, auto_load_pspace_data)
7987 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7988 (hash_loaded_script_entry, eq_loaded_script_entry)
7989 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7990 (maybe_add_script): Move to auto-load.c.
7991 (source_section_scripts): Change maybe_add_script parameters passing,
7992 use script_not_found_warning_print.
7993 (clear_section_scripts, auto_load_objfile_script)
7994 (auto_load_new_objfile, loaded_script_ptr)
7995 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7996 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7997 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7998 auto_load_new_objfile and info_auto_load_scripts initizations to
8000 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8002 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8005 * charset.c (find_charset_names): Remove variables ix and elt.
8006 Use free_char_ptr_vec.
8007 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8008 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8009 debugdir_end. New variable debugdir_len.
8010 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8011 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8013 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8014 and elt. Use free_char_ptr_vec.
8015 * source.c (add_path): Remove variables argv, arg and argv_index.
8016 New variables dir_vec, back_to, ix and name.
8017 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8018 make_cleanup_freeargv. Remove variable separator. Simplify the code
8019 no longer expecting DIRNAME_SEPARATOR.
8020 (openp): Remove variable p, p1 and len. New variables dir_vec,
8021 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8022 no longer expecting DIRNAME_SEPARATOR.
8023 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8024 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8026 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8027 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8028 (dirnames_to_char_ptr_vec): New functions.
8030 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8033 * source.c (add_path): Remove always true conditional 'p == 0' and
8034 unindent its code block.
8036 2012-04-17 Pedro Alves <palves@redhat.com>
8038 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8039 (FIELD_BITPOS_LVAL): ... this.
8040 (FIELD_BITPOS): New.
8041 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8042 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8043 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8045 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8047 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8048 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8049 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8052 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8054 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8055 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8056 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8057 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8058 * jv-lang.c (java_link_class_type): Likewise, once.
8059 * stabsread.c (read_enum_type): Likewise.
8061 2012-04-16 Yao Qi <yao@codesourcery.com>
8063 * common/agent.c (agent_run_command): Add one more parameter `len'.
8065 * common/agent.h: Update declaration.
8066 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8068 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8070 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8073 * value.c (value_actual_type): New function.
8074 * value.h (value_actual_type): New declaration.
8075 * varobj.c (update_type_if_necessary): New function.
8076 (varobj_create): Call value_actual_type instead of
8078 (install_dynamic_child): distinct changed and type changed MI variable
8080 (update_dynamic_varobj_children): Updated for install_dynamic_child
8081 change. All callers updated.
8082 (varobj_update): Support for MI variable object type change if
8083 the value changed and RTTI is used to determine the type.
8084 (create_child_with_value): Call value_actual_type instead of
8086 (adjust_value_for_child_access): Extended with a new parameter which
8087 specify whether the given value should be casted to enclosing type.
8088 All callers updated.
8090 2012-04-14 Yao Qi <yao@codesourcery.com>
8092 Import gnulib module inttypes from git
8093 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8094 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8095 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8096 gnulib/m4/inttypes-pri.m4
8097 * aclocal.m4, config.in, configure: Regenerated.
8098 * gnulib/Makefile.am: Update.
8099 * gnulib/Makefile.in: Update.
8100 * gnulib/m4/gnulib-cache.m4: Update.
8101 * gnulib/m4/gnulib-comp.m4: Update.
8102 * gnulib/inttypes.in.h: New.
8103 * gnulib/m4/inttypes-pri.m4: New.
8104 * gnulib/m4/inttypes.m4: New.
8106 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8108 * infrun.c (resume): Update PC address to the real PC after
8109 preparing to do displaced stepping.
8111 2012-04-12 Doug Evans <dje@google.com>
8113 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8114 All callers updated.
8116 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8118 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8120 2012-04-12 Doug Evans <dje@google.com>
8122 * dwarf2read.c (create_all_type_units): Renamed from
8123 create_debug_types_hash_table. All callers updated.
8125 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8126 local type_sig to sig_type, type_offset to type_offset_in_tu.
8127 (hash_signatured_type): Renamed from hash_type_signature,
8128 all callers updated.
8129 (eq_signatured_type): Renamed from eq_type_signature,
8130 all callers updated.
8131 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8132 (process_enumeration_scope): Ditto.
8133 (lookup_signatured_type_at_offset): Ditto.
8134 (load_full_type_unit, read_signatured_type): Ditto.
8136 2012-04-12 Yao Qi <yao@codesourcery.com>
8138 * remote.c (async_remote_interrupt): Correct function name in
8140 (async_remote_interrupt_twice): Ditto.
8142 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8144 * source.c (find_and_open_source): Consistently pass resulting
8145 full path through xfullpath.
8147 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8149 Provide more specific displaced-stepping memory error message.
8150 * infrun.c (displaced_step_prepare): New variable status. Call
8151 target_read_memory instead of read_memory, provide more specific
8154 2012-04-11 Tristan Gingold <gingold@adacore.com>
8157 * darwin-nat.c (darwin_execvp): Revert previous patch.
8159 2012-04-11 Tristan Gingold <gingold@adacore.com>
8162 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8165 2012-04-11 Tristan Gingold <gingold@adacore.com>
8167 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8170 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8172 New command 'explore' which helps explore values and types in
8174 * NEWS: Add an entry about the new 'explore' command.
8175 * data-directory/Makefile.in: Add gdb/command/explore.py
8176 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8177 command using the GDB Python API.
8179 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8181 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8182 extension in jump target calculation.
8184 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8186 * mips-tdep.c (mips32_next_pc): Handle JALX.
8188 2012-04-10 Yao Qi <yao@codesourcery.com>
8190 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8192 2012-04-10 Yao Qi <yao@codesourcery.com>
8194 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8195 and gnulib/m4/gnulib-tool.m4.
8197 2012-04-10 Doug Evans <dje@google.com>
8199 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8200 (load_partial_dies): Clarify comment.
8201 (find_partial_die): Support rereading type units.
8202 Clarify CU handling, if we know offset is in CU, don't search for the
8203 containing CU. Add comment regarding memory waste.
8205 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8207 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8208 i386/x32-avx and i386/x32-avx-linux.
8209 (i386/x32-expedite): New.
8210 (i386/x32-linux-expedite): Likewise.
8211 (i386/x32-avx-expedite): Likewise.
8212 (i386/x32-avx-linux-expedite): Likewise.
8213 ($(outdir)/i386/x32.dat): Likewise.
8214 ($(outdir)/i386/x32-linux.dat): Likewise.
8215 ($(outdir)/i386/x32-avx.dat): Likewise.
8216 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8218 * features/i386/x32-avx-linux.xml: New file.
8219 * features/i386/x32-avx.xml: Likewise.
8220 * features/i386/x32-core.xml: Likewise.
8221 * features/i386/x32-linux.xml: Likewise.
8222 * features/i386/x32.xml: Likewise.
8224 * features/i386/x32-avx-linux.c: New. Generated.
8225 * features/i386/x32-avx.c: Likewise.
8226 * features/i386/x32-linux.c: Likewise.
8227 * features/i386/x32.c: Likewise.
8228 * regformats/i386/x32-avx-linux.dat: Likewise.
8229 * regformats/i386/x32-avx.dat: Likewise.
8230 * regformats/i386/x32-linux.dat: Likewise.
8231 * regformats/i386/x32.dat: Likewise.
8233 2012-04-10 Tristan Gingold <gingold@adacore.com>
8235 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8236 code to kill the inferior.
8238 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8240 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8242 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8244 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8245 (yyvsp): New defines.
8246 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8248 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8250 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8252 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8254 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8257 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8259 * sparc64-tdep.c (sparc64_store_arguments)
8260 (sparc64_store_arguments): Fix coding style.
8262 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8264 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8265 complex floats, adjust some related comments and tighten a related
8267 (sparc64_extract_return_value): Handle complex floats.
8269 2012-04-07 Doug Evans <dje@google.com>
8271 * dwarf2read.c (load_partial_dies): Change condition to assert.
8273 2012-04-06 Doug Evans <dje@google.com>
8275 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8278 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8280 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8282 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8283 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8286 2012-04-05 Keith Seitz <keiths@redhat.com>
8288 * linespec.c (decode_compound): Remove.
8289 (enum offset_relative_sign): New enum.
8290 (struct line_offset): New struct.
8291 (struct linespec): New struct.
8292 (struct linespec_state): Move file_symtabs,
8293 user_filename, and user_function into struct linespec.
8294 Make result an anonymous struct holding vectors of
8295 symbolp and minsym_and_objfile_d.
8296 Add language member.
8297 (enum ls_token_type): New enum.
8298 (linespec_keywords): New array.
8299 (struct ls_token): New struct.
8300 (struct ls_parser): New struct.
8301 (linespec_lexer_lex_number): New function.
8302 (linespec_lexer_lex_keyword): New function.
8303 (is_ada_operator): New function.
8304 (skip_quote_char): New function.
8305 (copy_token_string): New function.
8306 (is_closing_quote_enclosed): New function.
8307 (find_parameter_list_end): New function.
8308 (linespec_lexer_lex_string): New function.
8309 (linespec_lexer_lex_one): New function.
8310 (linespec_lexer_consume_token): New function.
8311 (linespec_lexer_peek_token): New function.
8312 (cplusplus_error): Remove unused function.
8313 (find_methods): Update comment.
8314 (find_toplevel_char): Return const.
8315 (is_objc_method_format): Remove unused function.
8316 (find_toplevel_string): New function.
8317 (is_linespec_boundary): Remove.
8318 (symbol_not_found_error): New function.
8319 (find_method_overload_end): Remove function.
8320 (unexpected_linespec_error): New function.
8321 (keep_name_info): Remove.
8322 (linespec_parse_line_offset): New function.
8323 (linespec_parse_basic): New function.
8324 (canonicalize_linespec): New function.
8325 (decode_line_internal): Remove.
8326 (create_sals_line_offset): New function adapted from
8328 (convert_linespec_to_sals): New function.
8329 (parse_linespec): New function.
8330 (linespec_parser_new): New function.
8331 (linespec_state_destructor): Change parameter type to
8332 struct linespec_state *.
8333 Add language parameter.
8334 Remove freeing of moved members.
8335 (linespec_parser_delete): New function.
8336 (decode_line_full): Use parse_linespec and linespec_parser_new.
8337 (decode_line_1): Likewise.
8338 (decode_indirect): Rename to ...
8339 (linespec_expression_to_pc): ... this and rewrite
8340 to simply find CORE_ADDR, storing this result for later
8342 (locate_first_half): Remove.
8343 (deocde_objc): Add parameter LS.
8344 Initialize new struct collect_info members.
8345 Handle minimal symbols, too.
8346 (decode_compound): Delete.
8347 (lookup_prefix_sym): Rewrite.
8348 (compare_msymbols): New function.
8349 (find_method): Rewrite.
8350 Do not call cplusplus_error.
8351 (symtabs_from_filename): Rewrite.
8352 (collect_function_symbols): Delete.
8353 (find_function_symbols): Rewrite without ARGPTR-style
8355 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8356 (decode_dollar): Adapted and renamed to ...
8357 (linespec_parse_variable): ... this.
8358 (find_linespec_symbols): New function.
8359 (decode_label): Adapted and renamed to ...
8360 (find_label_symbols): ... this.
8361 (decode_digits_list_mode): Add and use LS argument.
8362 (decode_digits_ordinary): Likewise.
8363 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8364 If in list mode, allow any symbol class. Otherwise, only
8365 permit LOC_BLOCK symbols.
8366 (minsym_found): Update comments.
8367 (search_minsyms_for_name): Do not convert the matching symbol
8368 into a SAL. Simply push the symbol and objfile into the
8370 (decode_variable): Delete. Contents adapted into
8371 find_linespec_symbols.
8373 * cp-support.c (SKIP_SPACE): Remove.
8374 (operator_tokens): Remove unused global.
8375 (cp_validate_operator): Remove.
8376 * cp-support.h (cp_validate_operator): Remove declaration.
8378 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8380 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8381 for TYPE_VPTR_FIELDNO.
8382 * valprint.c (valprint_check_validity): Make it global, move the
8383 function comment ...
8384 * value.h (valprint_check_validity): ... to this new declaration.
8386 2012-04-02 Tristan Gingold <gingold@adacore.com>
8388 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8389 the STATE32 api for i386 state.
8390 (i386_darwin_store_inferior_registers): Likewise.
8392 2012-04-02 Tristan Gingold <gingold@adacore.com>
8394 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8396 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8399 2012-04-02 Tristan Gingold <gingold@adacore.com>
8402 * darwin-nat.c (darwin_execvp): Set binary preference.
8404 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8406 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8408 2012-03-30 Tom Tromey <tromey@redhat.com>
8410 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8411 of TRY_CATCH. Fix error handling.
8412 * python/py-value.c (convert_value_from_python): Move 'old'
8413 declaration to innermost scope.
8415 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8416 Andrey Smirnov <andrew.smirnov@gmail.com>
8418 -Wshadow warning fix.
8419 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8420 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8421 Adjust code accordingly.
8423 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8425 * ada-lang.c (symbol_completion_add): Rename parameter
8426 "encoded" into "encoded_p". Ajust code and documentation
8429 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8430 Andrey Smirnov <andrew.smirnov@gmail.com>
8432 -Wshadow warning fix.
8433 * ada-lang.c (symbol_completion_add): Rename parameter
8434 "wild_match" into wild_match_p. Update code and documentation
8437 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8439 * ada-lang.c (symbol_completion_match): Rename parameter
8440 "encoded" into "encoded_p". Ajust code and documentation
8443 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8444 Andrey Smirnov <andrew.smirnov@gmail.com>
8446 -Wshadow warning fix.
8447 * ada-lang.c (symbol_completion_match): Rename parameter
8448 "wild_match" into "wild_match_p". Adjust code and function
8449 documentation accordingly.
8451 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8452 Andrey Smirnov <andrew.smirnov@gmail.com>
8454 -Wshadow warning fix.
8455 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8456 "symbol_info" into "info". Adjust code accordingly.
8457 (ada_lookup_symbol): Likewise.
8459 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8461 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8462 of this function's documentation.
8464 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8465 Andrey Smirnov <andrew.smirnov@gmail.com>
8467 -Wshadow warning fix.
8468 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8469 variable into "wild_match_p". Adjust code accordingly.
8471 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8472 Andrey Smirnov <andrew.smirnov@gmail.com>
8474 -Wshadow warning fix.
8475 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8476 parameter into "wild_match_p". Adjust code accordingly.
8477 Document this parameter in the function description.
8479 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8480 Andrey Smirnov <andrew.smirnov@gmail.com>
8482 -Wshadow warning fix.
8483 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8484 "wild_match" parameter to "wild_match_p" (-Wshadow).
8486 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8488 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8489 in function documentation.
8491 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8492 Andrey Smirnov <andrew.smirnov@gmail.com>
8494 -Wshadow warning fix.
8495 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8496 variable into wild_match_p. Adjust code accordingly.
8498 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8499 Andrey Smirnov <andrew.smirnov@gmail.com>
8501 * ada-valprint.c (ada_val_print_1): Move the code handling
8502 TYPE_CODE_ENUM inside its own lexical block. Declare
8503 variables len and val there, instead of in the function's
8504 top level block. Avoid declaring deref_val again in a way
8505 that shadows another variable of the same name declared
8506 in one of the up-level blocks. Just re-use the up-level
8509 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8511 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8512 Replace block_found argument by symbol_info. Adjust
8513 implementation accordingly. Add function documentation.
8514 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8516 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8517 * ada-exp.y (write_object_renaming): Adjust to new
8518 ada_lookup_encoded_symbol API.
8520 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8522 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8525 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8527 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8528 (v850_register_name): Add the mpu and fpu register names.
8529 (v850e_register_name): Add the mpu and fpu register names.
8530 (v850e2_register_name): New function.
8531 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8534 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8536 * NEWS: Add entry for Ada varobj support.
8538 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8540 * varobj.c (default_value_is_changeable_p): New function,
8541 extracted from varobj_value_is_changeable_p. Add declaration.
8542 (ada_value_is_changeable_p): New function, extracted from
8543 varobj_value_is_changeable_p. Add declaration.
8544 (struct language_specific): New field "value_is_changeable_p".
8545 (languages): Add entries for new field.
8546 (varobj_create): Set language before calling install_new_value.
8547 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8548 "value_is_changeable_p" language callback.
8550 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8552 * ada-varobj.h, ada-varobj.c: New files.
8553 * Makefile.in (SFILES): Add ada-varobj.c.
8554 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8555 (COMMON_OBS): Add ada-varobj.o.
8557 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8559 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8560 (struct language_specific): New field "value_has_mutated".
8561 (languages): Set field "value_has_mutated" in each entry of array.
8562 (varobj_value_has_mutated): New function.
8563 (varobj_udpdate): Add handling of type mutation.
8564 (value_of_root): Add handling of type mutation.
8565 (ada_value_has_mutated): New function.
8567 2012-03-28 Pedro Alves <palves@redhat.com>
8569 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8570 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8572 2012-03-28 Tom Tromey <tromey@redhat.com>
8574 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8575 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8578 2012-03-28 Tom Tromey <tromey@redhat.com>
8580 * .dir-locals.el: New file.
8582 2012-03-28 Pedro Alves <palves@redhat.com>
8584 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8586 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8588 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8591 2012-03-27 Pedro Alves <palves@redhat.com>
8593 Eliminate struct ui_stream.
8595 * ui-out.h (struct ui_stream): Delete.
8596 (ui_out_field_stream): Adjust prototype.
8597 (ui_out_stream_new, ui_out_stream_delete)
8598 (make_cleanup_ui_out_stream_delete): Delete declarations.
8599 * ui-out.c (ui_out_field_stream): Change prototype to take a
8600 ui_file instead of a ui_stream. Adjust.
8601 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8602 (make_cleanup_ui_out_stream_delete): Delete.
8603 * breakpoint.c (print_breakpoint_location)
8604 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8605 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8606 * disasm.c (dump_insns): Ditto.
8607 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8609 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8610 ui_stream/ui_out_stream_new.
8611 * infcmd.c (print_return_value): Ditto.
8612 * osdata.c (info_osdata_command): Don't allocate a local
8614 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8615 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8616 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8617 allocate a local ui_stream.
8618 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8619 instead of ui_stream/ui_out_stream_new.
8620 (list_args_or_locals): Don't allocate a local ui_stream.
8621 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8622 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8623 ui_stream/ui_out_stream_new.
8624 * cli/cli-setshow.c (do_setshow_command): Ditto.
8626 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8628 * arm-linux-tdep.c (arm_linux_init_abi): Call
8629 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8630 * arm-tdep.c (arm_process_record): New function.
8631 (deallocate_reg_mem): New function.
8632 (decode_insn): New function.
8633 (thumb_record_branch): New function.
8634 (thumb_record_ldm_stm_swi(): New function.
8635 (thumb_record_misc): New function.
8636 (thumb_record_ld_st_stack): New function.
8637 (thumb_record_ld_st_imm_offset): New function.
8638 (thumb_record_ld_st_reg_offset(): New function.
8639 (thumb_record_add_sub_cmp_mov): New function.
8640 (thumb_record_shift_add_sub): New function.
8641 (arm_record_coproc_data_proc): New function.
8642 (arm_record_coproc): New function.
8643 (arm_record_b_bl): New function.
8644 (arm_record_ld_st_multiple): New function.
8645 (arm_record_ld_st_reg_offset): New function.
8646 (arm_record_ld_st_imm_offset): New function.
8647 (arm_record_data_proc_imm): New function.
8648 (arm_record_data_proc_misc_ld_str): New function.
8649 (arm_record_extension_space): New function.
8650 (arm_record_strx): New function.
8651 (sbo_sbz): New function.
8652 (struct insn_decode_record): New structure for arm insn record.
8653 (REG_ALLOC): New macro for reg allocations.
8654 (MEM_ALLOC): New macro for memory allocations.
8655 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8657 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8659 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8660 (store_register): Likewise.
8662 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8664 * MAINTAINERS (Write After Approval): Add myself to the list.
8666 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8668 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8669 Describe also the option "auto".
8671 2012-03-22 Richard Henderson <rth@redhat.com>
8673 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8674 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8676 2012-03-22 Richard Henderson <rth@redhat.com>
8678 * jit.c (jit_read_code_entry): Compute alignment and offset of
8679 int64_t member before computing entry_size.
8681 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8683 Python scripting: Add new method Value.referenced_value to
8684 gdb.Value which can dereference pointer as well as reference
8686 * NEWS: Add entry under 'Python scripting' about the new method
8687 Value.referenced_value on gdb.Value objects.
8688 * python/py-value.c (valpy_referenced_value): New function
8689 defining a new method on gdb.Value objects which can dereference
8690 pointer and reference values.
8692 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8694 * MAINTAINERS (Write After Approval): Add myself to the list.
8696 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8698 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8699 in addition to "main".
8701 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8703 * expression.h (op_name): Add declaration.
8704 * expprint.c (op_name): Remove declaration. Make non-static.
8705 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8707 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8709 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8711 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8712 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8713 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8714 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8715 (linux_nat_get_siginfo): Likewise.
8716 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8717 (linux_nat_get_siginfo): Likewise.
8718 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8719 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8720 * procfs.c (gdb_siginfo_t): Likewise.
8722 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8724 * .gitignore: Ignore more files.
8726 2012-03-20 Pedro Alves <palves@redhat.com>
8728 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8731 2012-03-20 Yao Qi <yao@codesourcery.com>
8733 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8736 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8738 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8739 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8740 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8742 * dwarf2expr.h (cu_offset, sect_offset): New types.
8743 (struct dwarf_expr_context_funcs) <dwarf_call>
8744 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8746 (struct dwarf_expr_context) <len>: Improve the comment.
8747 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8748 cu_offset and sect_offset.
8749 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8750 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8751 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8752 * dwarf2loc.h: Include dwarf2expr.h.
8753 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8755 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8756 Improve the comment.
8757 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8758 (struct signatured_type, struct line_header, struct partial_die_info)
8759 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8760 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8761 (get_die_type_at_offset, create_cus_from_index)
8762 (create_signatured_type_table_from_index, dw2_get_file_names)
8763 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8764 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8765 (create_debug_types_hash_table, process_psymtab_comp_unit)
8766 (load_partial_comp_unit, create_all_comp_units)
8767 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8768 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8769 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8770 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8771 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8772 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8773 (find_partial_die, read_attribute_value, lookup_die_type)
8774 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8775 (is_ref_attr): New function comment.
8776 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8777 Use cu_offset and sect_offset.
8778 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8779 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8780 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8781 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8782 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8783 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8784 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8787 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8790 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8791 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8793 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8795 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8797 * NEWS: Describe new options --init-command=FILE, -ix and
8798 --init-eval-command=COMMAND, -iex.
8799 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8800 CMDARG_INIT_COMMAND.
8801 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8802 "init-command", "init-eval-command", "ix" and "iex" to the variable
8803 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8804 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8805 (print_gdb_help): Describe --init-command=FILE, -ix and
8806 --init-eval-command=COMMAND, -iex.
8808 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8811 * main.c (struct cmdarg): Move it here from main. Add more comments.
8812 (cmdarg_s, VEC (cmdarg_s)): New.
8813 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8814 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8815 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8816 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8819 2012-03-19 Tom Tromey <tromey@redhat.com>
8821 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8823 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8826 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8829 2012-03-16 Chris January <chris.january@allinea.com>
8831 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8834 2012-03-16 Chris January <chris.january@allinea.com>
8836 * source.c (add_path): Use memmove instead of strcpy because the
8839 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8841 * value.h (set_value_parent): Add declaration.
8842 * value.c (set_value_parent): New function.
8843 (value_address): If VALUE->PARENT is not NULL, then use it as
8844 the base address instead of VALUE->LOCATION.address.
8845 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8846 the same as OBJ's address. Adjust V's offset accordingly.
8849 2012-03-16 Gary Benson <gbenson@redhat.com>
8851 PR breakpoints/10738
8852 * dwarf2read.c (use_deprecated_index_sections): New global.
8853 (struct partial_die_info): New member may_be_inlined.
8854 (read_partial_die): Set may_be_inlined where appropriate.
8855 (add_partial_subprogram): Add partial symbols for partial
8856 DIEs that may be inlined.
8857 (new_symbol_full): Add inlined subroutines to the current
8859 (write_psymtabs_to_index): Bump version number.
8860 (dwarf2_read_index): Read only version 6 indices unless
8861 use_deprecated_index_sections is set.
8862 * linespec.c (symbol_and_data_callback): New structure.
8863 (iterate_inline_only): New function.
8864 (iterate_over_all_matching_symtabs): New argument
8865 "include_inline". If nonzero, also call the callback for
8866 symbols representing inlined subroutines.
8867 (lookup_prefix_sym): Pass extra argument to the above.
8868 (find_function_symbols): Likewise.
8869 (add_matching_symbols_to_info): Likewise.
8870 * NEWS: Mention that GDB can now set breakpoints on inlined
8873 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8875 * p-typeprint.c (pascal_type_print_method_args):
8876 Fix display of parameter of methods.
8878 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8880 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8881 Add missing prototype.
8883 2012-03-16 Yao Qi <yao@codesourcery.com>
8884 Jan Kratochvil <jan.kratochvil@redhat.com>
8886 Fix false compilation warning.
8887 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8889 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8890 Pedro Alves <pedro@codesourcery.com>
8892 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8893 (arm_register_g_packet_guesses): New function.
8894 (arm_gdbarch_init): Don't force a target description with
8895 registers when the executable is detected as M-profile. Instead
8896 set gdbarch->tdep->is_m. Register `g' packet guesses.
8897 (_initialize_arm_tdep): Initialize the new target description.
8898 * features/arm-with-m-fpa-layout.xml: New description.
8899 * features/arm-with-m-fpa-layout.c: New, generated.
8901 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8903 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8904 Update function description.
8905 (insert_bp_location): Do not wipe bl->target_info out.
8906 * mem-break.c: #include "gdb_string.h".
8907 (default_memory_insert_breakpoint): Do not call target_read_memory
8908 with a pointer to the breakpoint's shadow_contents buffer. Use
8909 a local buffer instead.
8910 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8912 2012-03-15 Tom Tromey <tromey@redhat.com>
8914 * NEWS: Mention "info vtbl", not "info vtable".
8915 * cp-support.c (info_vtbl_command): Fix comment.
8916 (_initialize_cp_support): Fix text.
8918 2012-03-15 Tom Tromey <tromey@redhat.com>
8920 * cp-valprint.c (cp_print_value_fields): Use
8921 print_function_pointer_address for vtable slot.
8923 2012-03-15 Tom Tromey <tromey@redhat.com>
8925 * gnu-v3-abi.c (struct value_and_voffset): New.
8926 (hash_value_and_voffset, eq_value_and_voffset)
8927 (compare_value_and_voffset, compute_vtable_size)
8928 (print_one_vtable, gnuv3_print_vtable): New functions.
8929 (init_gnuv3_ops): Initialize 'print_vtable' field.
8930 * cp-support.c (info_vtbl_command): New function.
8931 (_initialize_cp_support): Add "info vtbl".
8932 * cp-abi.h (cplus_print_vtable): Declare.
8933 (struct cp_abi_ops) <print_vtable>: New field.
8934 * cp-abi.c (cplus_print_vtable): New function.
8937 2012-03-15 Tom Tromey <tromey@redhat.com>
8939 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8940 iterate_over_symbols.
8942 2012-03-14 Doug Evans <dje@google.com>
8944 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8945 DW_OP_GNU_parameter_ref.
8947 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8949 Fix double prompt of 'interpreter-exec mi'.
8950 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8951 (mi_interpreter_resume): use it.
8952 (mi_execute_command_input_handler): New function.
8953 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8954 mi_execute_command_input_handler.
8956 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8958 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8960 (darwin_debug_port_info): Make static.
8961 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8962 * machoread.c (_initialize_machoread): Add prototype.
8963 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8964 (i386_darwin_set_control, i386_darwin_get_control)
8965 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8966 i386_darwin_get_status, i386_darwin_get_control):
8967 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8969 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8971 * ax-gdb.c (gen_usual_unary): Remove special handling of
8972 enum and bool types.
8974 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8976 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8978 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8980 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8982 2012-03-13 Chris January <chris.january@allinea.com>
8984 * aix-thread.c (fill_sprs): Store the floating point registers
8985 at the correct offsets into vals.
8987 2012-03-13 Doug Evans <dje@google.com>
8989 * NEWS: Mention symbol-reloading has been deleted.
8990 * symfile.c (symbol_reloading): Delete.
8991 (show_symbol_reloading): Delete.
8992 (_initialize_symfile): Delete set/show symbol-reloading.
8994 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8995 read_in_chain until we have successfully read it in.
8996 (load_full_comp_unit): Ditto.
8997 (read_signatured_type): Add comment.
8999 2012-03-13 Chris January <chris.january@allinea.com>
9001 * stabsread.c (fix_common_block): Change type of valu argument
9004 2012-03-13 Chris January <chris.january@allinea.com>
9006 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9009 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9011 * common/linux-procfs.c (linux_proc_get_int): New, from
9012 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9014 (linux_proc_get_tgid): Only call linux_proc_get_int.
9015 (linux_proc_get_tracerpid): New.
9016 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9017 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9018 linux_proc_pid_has_state.
9019 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9020 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9021 (linux_ptrace_attach_warnings): New.
9022 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9024 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9025 (linux_nat_attach): New variables ex, buffer, message and message_s.
9026 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9028 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9030 * Makefile.in (linux-ptrace.o): New.
9031 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9033 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9034 * common/linux-ptrace.c: New file.
9035 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9036 * config/arm/linux.mh: Likewise.
9037 * config/i386/linux.mh: Likewise.
9038 * config/i386/linux64.mh: Likewise.
9039 * config/ia64/linux.mh: Likewise.
9040 * config/m32r/linux.mh: Likewise.
9041 * config/m68k/linux.mh: Likewise.
9042 * config/mips/linux.mh: Likewise.
9043 * config/pa/linux.mh: Likewise.
9044 * config/powerpc/linux.mh: Likewise.
9045 * config/powerpc/ppc64-linux.mh: Likewise.
9046 * config/powerpc/spu-linux.mh: Likewise.
9047 * config/s390/s390.mh: Likewise.
9048 * config/sparc/linux.mh: Likewise.
9049 * config/sparc/linux64.mh: Likewise.
9050 * config/xtensa/linux.mh: Likewise.
9051 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9052 common/linux-procfs.c.
9053 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9055 2012-03-13 Hui Zhu <teawater@gmail.com>
9056 Pedro Alves <palves@redhat.com>
9058 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9059 CREATE_BREAKPOINT_FLAGS_INSERTED.
9060 (create_breakpoint_sal, create_breakpoints_sal)
9061 (base_breakpoint_create_breakpoints_sal)
9062 (tracepoint_create_breakpoints_sal)
9063 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9065 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9066 (ftrace_command, strace_command): Adjust.
9067 (create_tracepoint_from_upload): Pass
9068 CREATE_BREAKPOINT_FLAGS_INSERTED.
9069 * breakpoint.h (enum breakpoint_create_flags): New.
9070 (create_breakpoint): New flags parameter.
9071 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9072 * python/py-breakpoint.c (bppy_init): Adjust.
9073 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9074 * spu-tdep.c (spu_catch_start): Adjust.
9076 2012-03-13 Pedro Alves <palves@redhat.com>
9077 Hui Zhu <teawater@gmail.com>
9078 Yao Qi <yao@codesourcery.com>
9080 * remote.c (struct remote_state): New field `starting_up'.
9081 (remote_start_remote): Set and clear it.
9082 (remote_can_download_tracepoint): If starting up, return false.
9084 2012-03-13 Yao Qi <yao@codesourcery.com>
9086 * inferior.h (struct inferior): Remove fields any_syscall_count,
9087 syscalls_counts and total_syscalls_count. Move them to new
9088 struct catch_syscall_inferior_data in breakpoint.c.
9089 * breakpoint.c: Call DEF_VEC_I(int).
9090 (struct catch_syscall_inferior_data): New.
9091 (get_catch_syscall_inferior_data): New.
9092 (catch_syscall_inferior_data_cleanup): New.
9093 (insert_catch_syscall): Update to access data in
9094 struct catch_syscall_inferior_data.
9095 (insert_catch_syscall): Likewise.
9096 (remove_catch_syscall): Likewise.
9097 (remove_catch_syscall): Likewise.
9098 (is_syscall_catchpoint_enabled): Likewise.
9099 (add_catch_command): Likewise.
9100 (_initialize_breakpoint): Register cleanup.
9101 * breakpoint.h: Removed DEF_VEC_I(int).
9102 * dwarf2loc.c: Call DEF_VEC_I(int).
9103 * mi/mi-main.c: Likewise.
9105 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9107 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9109 2012-03-12 Chris January <chris.january@allinea.com>
9111 * aix-thread.c (_initialize_aix_thread): Add prototype.
9112 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9113 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9115 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9117 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9118 include of "amd64-nat.h".
9120 2012-03-12 Tom Tromey <tromey@redhat.com>
9122 * buildsym.c (record_pending_block): Now static.
9123 * buildsym.h: (record_pending_block): Remove.
9125 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9127 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9129 2012-03-09 Tom Tromey <tromey@redhat.com>
9131 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9132 producer_is_gxx_lt_4_6>: New fields.
9133 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9135 2012-03-09 Tom Tromey <tromey@redhat.com>
9137 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9139 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9141 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9144 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9146 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9148 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9150 Fix -Wmissing-prototypes build.
9151 * arm-linux-nat.c (get_thread_id): Make it static.
9152 * xtensa-linux-nat.c (get_thread_id): Likewise.
9154 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9156 * server.c (process_point_options): If a conditional expression
9157 is found, only print a message if remote_debug is nonzero.
9159 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9161 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9162 of internal error for unknown/unsupported types.
9164 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9166 Fix CU relative vs. absolute DIE offsets.
9167 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9168 offset to offset_in_cu.
9169 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9171 (dwarf2_fetch_die_location_block): Rename parameter offset to
9172 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9174 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9176 * libunwind-frame.c: Rename to ...
9177 * ia64-libunwind-tdep.c: ... here.
9178 * libunwind-frame.h: Rename to ...
9179 * ia64-libunwind-tdep.h: ... here.
9180 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9181 ia64-libunwind-tdep.h.
9182 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9183 * README (--with-libunwind): Rename to ...
9184 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9185 * config.in: Regenerate.
9186 * configure: Regenerate.
9187 * configure.ac: New option --with-libunwind-ia64, make the
9188 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9189 Remove AC_DEFINE for HAVE_LIBUNWIND.
9190 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9191 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9192 Rename libunwind-frame in the general comment.
9193 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9194 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9195 Move forward declarations inside #ifndef. Rename libunwind-frame in
9196 the general comment.
9197 * ia64-tdep.c: Rename libunwind-frame.h #include to
9198 ia64-libunwind-tdep.h.
9199 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9200 (ia64_libunwind_descr): Rename libunwind-frame to
9201 ia64-libunwind-tdep in these function comments.
9202 * ia64-tdep.h: Rename libunwind-frame.h #include to
9203 ia64-libunwind-tdep.h.
9204 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9205 ia64-libunwind-tdep in that data comment.
9207 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9209 * libunwind-frame.h (struct frame_unwind): New declaration.
9211 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9213 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9214 "set breakpoint condition-evaluation" command.
9216 2012-03-08 Tristan Gingold <gingold@adacore.com>
9218 * sparc-stub.c: Move to stubs/
9219 * sh-stub.c: Likewise.
9220 * m68k-stub.c: Likewise.
9221 * m32r-stub.c: Likewise.
9222 * i386-stub.c: Likewise.
9224 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9226 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9227 linux_get_siginfo_type.
9229 * m68klinux-nat.c: Include "gdb_proc_service.h".
9230 (PTRACE_GET_THREAD_AREA): Define.
9231 (ps_get_thread_area): New function.
9233 2012-03-08 Yao Qi <yao@codesourcery.com>
9235 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9237 (remote_query_attached): Likewise.
9238 (remote_static_tracepoint_marker_at): Likewise.
9239 (remote_set_permissions): Likewise.
9240 (remote_detach_1, extended_remote_attach_1): Likewise.
9241 (send_g_packet, remote_vkill): Likewise.
9242 (extended_remote_disable_randomization): Likewise.
9243 (remote_add_target_side_condition): Likewise.
9244 (remote_insert_breakpoint): Likewise.
9245 (remote_remove_breakpoint): Likewise.
9246 (remote_insert_watchpoint): Likewise.
9247 (remote_remove_watchpoint): Likewise.
9248 (remote_insert_hw_breakpoint): Likewise.
9249 (remote_insert_hw_breakpoint): Likewise.
9250 (remote_remove_hw_breakpoint): Likewise.
9251 (remote_download_command_source): Likewise.
9252 (remote_download_tracepoint): Likewise.
9253 (remote_download_trace_state_variable): Likewise.
9254 (remote_disable_tracepoint): Likewise.
9255 (remote_trace_set_readonly_regions): Likewise.
9256 (remote_get_tracepoint_status): Likewise.
9257 (remote_trace_find): Likewise.
9258 (remote_get_trace_state_variable_value): Likewise.
9259 (remote_set_disconnected_tracing): Likewise.
9260 (remote_set_circular_trace_buffer): Likewise.
9261 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9262 (remote_use_agent): Likewise.
9263 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9266 2012-03-07 Pedro Alves <palves@redhat.com>
9268 * NEWS: Mention QProgramSignals.
9269 * inferior.h (update_signals_program_target): Declare.
9270 * infrun.c: (update_signals_program_target): New.
9271 (handle_command): Update the target of the new program signals
9273 * remote.c (PACKET_QProgramSignals): New enum.
9274 (last_program_signals_packet): New global.
9275 (remote_program_signals): New.
9276 (remote_start_remote): Update the target with the program signals
9278 (remote_protocol_features): Add entry for QPassSignals.
9279 (remote_open_1): Free anc clear last_program_signals_packet.
9280 (init_remote_ops): Install remote_program_signals.
9281 * target.c (update_current_target): Adjust.
9282 (target_program_signals): New.
9283 * target.h (struct target_ops) <to_program_signals>: New field.
9284 (target_program_signals): Declare.
9286 2012-03-07 Pedro Alves <palves@redhat.com>
9288 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9291 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9293 * m68klinux-nat.c (getregs_supplies): Make static.
9294 (getfpregs_supplies): Likewise.
9295 (have_ptrace_getregs): Likewise.
9297 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9299 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9300 in call to get_die_type_at_offset.
9302 2012-03-06 Stan Shebs <stan@codesourcery.com>
9304 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9305 * mi/mi-cmd-disas.c: Ditto.
9306 * mi/mi-cmd-env.c: Ditto.
9307 * mi/mi-cmd-file.c: Ditto.
9308 * mi/mi-cmd-stack.c: Ditto.
9309 * mi/mi-cmd-target.c: Ditto.
9310 * mi/mi-cmd-var.c: Ditto.
9311 * mi/mi-cmds.c: Ditto.
9312 * mi/mi-cmds.h: Ditto.
9313 * mi/mi-console.c: Ditto.
9314 * mi/mi-getopt.c: Ditto.
9315 * mi/mi-getopt.h: Ditto.
9316 * mi/mi-interp.c: Ditto.
9317 * mi/mi-main.c: Ditto.
9318 * mi/mi-out.c: Ditto.
9319 * mi/mi-parse.c: Ditto.
9320 * mi/mi-parse.h: Ditto.
9321 * mi/mi-symbol-cmds.c: Ditto.
9323 * mi/mi-getopt.h: Move mi_opt struct up.
9324 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9326 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9328 2012-03-06 Tom Tromey <tromey@redhat.com>
9330 * proc-service.c (ps_pglobal_lookup): Set the current program
9333 2012-03-06 Pedro Alves <palves@redhat.com>
9335 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9337 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9339 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9341 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9344 * common/linux-osdata.c (linux_common_core_of_thread): New function
9346 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9347 call by linux_common_core_of_thread.
9348 (linux_nat_core_of_thread_1): Remove.
9349 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9350 * linux-thread-db.c: Include linux-osdata.h.
9351 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9352 linux_common_core_of_thread.
9354 2012-03-05 Tom Tromey <tromey@redhat.com>
9356 * value.c (value_primitive_field): Don't fetch contents for
9359 2012-03-05 Tom Tromey <tromey@redhat.com>
9361 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9363 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9365 * s390-nat.c: Include "gregset.h".
9367 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9369 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9370 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9371 (libunwind_load): New variable so_error, use it for dlerror. Try to
9372 load also LIBUNWIND_SO_7.
9374 2012-03-05 Pedro Alves <palves@redhat.com>
9376 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9377 is not NULL, and remove resulting dead code.
9379 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9381 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9382 prologue to sh_analyze_prologue.
9383 (sh_analyze_prologue): Make better use of such an upper limit, and
9384 generally be more cautious about accessing memory.
9386 2012-03-05 Tom Tromey <tromey@redhat.com>
9388 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9389 _initialize_ia64_hpux_tdep.
9391 2012-03-05 Pedro Alves <palves@redhat.com>
9395 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9396 the register state is clear, supply explicit zero, instead of
9397 marking the register unavailable.
9399 2012-03-05 Tristan Gingold <gingold@adacore.com>
9401 * NEWS: Mention OpenVMS ia64 new target.
9403 2012-03-05 Tristan Gingold <gingold@adacore.com>
9405 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9406 (ia64_unw_accessors, ia64_unw_rse_accessors)
9407 (ia64_libunwind_descr): Declare.
9408 * ia64-vms-tdep.c: New file.
9409 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9410 (ia64_libunwind_descr): Make them public.
9411 * configure.tgt: Add ia64-*-*vms*.
9412 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9413 (ALLDEPFILES): Add ia64-vms-tdep.c
9415 2012-03-05 Tristan Gingold <gingold@adacore.com>
9417 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9418 * remote.c (PACKET_qXfer_uib): New enum value.
9419 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9420 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9421 (_initialize_remote): Call add_packet_config_cmd for
9424 2012-03-05 Tristan Gingold <gingold@adacore.com>
9426 * osabi.c (gdb_osabi_names): Add OpenVMS.
9427 (generic_elf_osabi_sniffer): Likewise.
9428 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9430 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9432 Removed unused code.
9433 * libunwind-frame.c (libunwind_frame_unwind)
9434 (libunwind_frame_base_address): Remove.
9435 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9437 2012-03-04 Yao Qi <yao@codesourcery.com>
9439 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9440 remove trailing new line.
9441 (agent_run_command, agent_run_command): Add _ markup.
9442 (agent_capability_check): Likewise.
9444 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9446 * breakpoint.c (set_condition_evaluation_mode): Set
9447 CONDITION_EVALUATION_MODE unconditionally.
9449 2012-03-03 Yao Qi <yao@codesourcery.com>
9451 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9452 * common/agent.h: Update declaration.
9453 * inf-child.c (inf_child_use_agent): New.
9454 (inf_child_can_use_agent): New.
9455 (inf_child_target): Initialize fields `to_use_agent'
9456 and `to_can_use_agent'.
9457 * agent.c (agent_new_objfile): New.
9458 (_initialize_agent): Add agent_new_objfile to new_objfile
9461 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9463 (linux_target_install_ops): Initialize field
9464 `to_static_tracepoint_markers_by_strid'.
9465 * remote.c (free_current_marker): Move it to ...
9466 * tracepoint.c (free_current_marker): ... here. New.
9467 (cleanup_target_stop): New.
9468 * tracepoint.h: Declare free_current_marker.
9469 * NEWS: Add one entry about `info static-tracepoint-marker'.
9471 2012-03-03 Yao Qi <yao@codesourcery.com>
9473 * common/agent.c (agent_loaded_p): New.
9474 (agent_look_up_symbols): New global.
9475 * common/agent.h: Declare agent_loaded_p.
9477 2012-03-03 Yao Qi <yao@codesourcery.com>
9479 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9480 (agent_capability_check, agent_capability_invalidate): New.
9481 (symbol_list): New array element.
9482 * common/agent.h (enum agent_capa): New.
9483 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9485 2012-03-03 Yao Qi <yao@codesourcery.com>
9487 * target.h (struct target_ops) <to_use_agent>: New field.
9488 (struct target_ops) <to_can_use_agent>: New field.
9489 (target_use_agent, target_can_use_agent): New macro.
9490 * target.c (update_current_target): Update.
9491 * remote.c: New enum `PACKET_QAgent'.
9492 (remote_protocol_features): Add a new element.
9493 (remote_use_agent, remote_can_use_agent): New.
9494 (init_remote_ops): Initialize field `can_use_agent' with
9495 remote_can_use_agent. Intiailize field `use_agent' with
9497 * common/agent.c (use_agent): New global.
9498 * common/agent.h: Declare it.
9499 * tracepoint.c (info_static_tracepoint_markers_command): Add
9501 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9502 (COMMON_OBS): Add common/agent.o and agent.o
9503 (common-agent.o): New rule.
9506 2012-03-03 Yao Qi <yao@codesourcery.com>
9508 * common/agent.c: New.
9509 * common/agent.h: New.
9510 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9512 * configure, configh.in: Regenerated.
9514 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9516 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9517 unless it exists for this architecture.
9519 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9521 * language.h (struct language_defn): New "method" la_read_var_value.
9522 * findvar.c: #include "language.h".
9523 (default_read_var_value): Renames read_var_value. Rewrite
9524 function description.
9525 (read_var_value): New function.
9526 * value.h (default_read_var_value): Add prototype.
9527 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9529 (ada_language_defn): Add entry for la_read_var_value.
9530 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9531 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9532 language_defn structures to add entry for new la_read_var_value
9535 2012-03-02 Tom Tromey <tromey@redhat.com>
9536 Pedro Alves <palves@redhat.com>
9538 PR breakpoints/13776:
9539 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9541 (delete_longjmp_breakpoint_at_next_stop): New.
9542 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9543 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9544 before deleting the inferior. Add comments.
9545 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9546 breakpoints immediately, but only on next stop. Move that code
9547 next to where we mark other breakpoints for deletion.
9549 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9551 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9553 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9556 2012-03-02 Pedro Alves <palves@redhat.com>
9558 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9560 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9562 Fix -Wmissing-prototypes build.
9563 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9564 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9565 (gdbsim_has_memory): Likewise.
9567 2012-03-02 Yao Qi <yao@codesourcery.com>
9569 Fix -Wmissing-prototypes build.
9570 * charset.c (phony_iconv_open): Make static.
9571 (phony_iconv_close, phony_iconv): Likewise.
9572 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9573 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9575 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9576 * ser-mingw.c (create_select_thread): Make static.
9577 * windows-termcap.c (tgetent): New prototype.
9578 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9580 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9582 Fix -Wmissing-prototypes build.
9583 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9584 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9585 (_initialize_loadable): New prototypes.
9587 2012-03-02 Doug Evans <dje@google.com>
9589 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9590 abbrev table, read_comp_unit will do it.
9592 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9594 Fix -Wmissing-prototypes build.
9595 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9596 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9597 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9598 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9599 (_initialize_arm_symbian_tdep): New prototype.
9600 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9601 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9602 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9604 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9605 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9607 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9608 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9609 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9611 * moxie-tdep.c (moxie_process_record): Likewise.
9612 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9613 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9614 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9615 (_initialize_rl78_tdep): New prototype.
9616 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9617 (_initialize_rx_tdep): New prototype.
9618 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9619 (_initialize_darwin_solib): New prototype.
9620 * solib-spu.c: Include solib-spu.h.
9621 (_initialize_spu_solib): New prototype.
9622 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9623 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9624 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9625 (tic6x_software_single_step): Make it static.
9626 (_initialize_tic6x_tdep): New prototype.
9628 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9630 Fix -Wmissing-prototypes build.
9631 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9632 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9634 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9636 Fix -Wmissing-prototypes build.
9637 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9638 (frv_have_stopped_data_address): Remove.
9640 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9642 Fix -Wmissing-prototypes build.
9643 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9644 * sh-tdep.c: Include sh64-tdep.h.
9645 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9646 * sh64-tdep.c: Include sh64-tdep.h.
9647 * sh64-tdep.h: New file.
9649 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9651 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9653 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9655 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9656 sp_regnum once the gdbarch_init_osabi hook has been called.
9658 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9660 * mips-tdep.c (mips32_bc1_pc): New function.
9661 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9662 BPOSGE32 and BPOSGE64 instructions.
9663 (deal_with_atomic_sequence): Likewise.
9664 (mips32_instruction_has_delay_slot): Likewise.
9666 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9667 Chris Dearman <chris@mips.com>
9668 Maciej W. Rozycki <macro@codesourcery.com>
9669 Joseph Myers <joseph@codesourcery.com>
9671 * features/mips-dsp.xml: New file.
9672 * features/mips64-dsp.xml: New file.
9673 * features/mips-dsp-linux.xml: New file.
9674 * features/mips64-dsp-linux.xml: New file.
9675 * features/Makefile (WHICH): Add mips-dsp-linux and
9677 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9678 * features/mips-dsp-linux.c: New file.
9679 * features/mips64-dsp-linux.c: New file.
9680 * regformats/mips-dsp-linux.dat: New file.
9681 * regformats/mips64-dsp-linux.dat: New file.
9682 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9684 (mips64_linux_register_addr): Likewise.
9685 (mips64_linux_regsets_fetch_registers): Likewise.
9686 (mips64_linux_regsets_store_registers): Likewise.
9687 (mips64_linux_fetch_registers): Update call to
9688 mips64_linux_regsets_fetch_registers.
9689 (mips64_linux_store_registers): Update call to
9690 mips64_linux_regsets_store_registers.
9691 (mips_linux_read_description): Probe for DSP registers.
9692 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9693 and initialize_tdesc_mips64_dsp_linux.
9694 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9695 Remove padding of no longer used embedded register slots.
9696 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9697 (MIPS_RESTART_REGNUM): Redefine enum value.
9698 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9700 (mips_tx39_reg_names): Likewise.
9701 (mips_linux_reg_names): New array of register names for Linux
9703 (mips_register_name): Check for a null pointer in
9704 mips_processor_reg_names and return an empty string.
9705 (mips_register_type): Exclude embedded registers for the IRIX
9707 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9708 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9710 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9711 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9712 (mips_gdbarch_init): Likewise. Initialize internal register
9713 indices for the Linux ABI. Use dynamic numbers to refer to
9714 registers, as applicable, while parsing the target description.
9715 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9717 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9719 * frame.h (read_frame_register_unsigned): Fix typo in function
9722 2012-03-01 Pedro Alves <palves@redhat.com>
9724 * jit-reader.in [!__cplusplus]
9725 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9727 2012-03-01 Pedro Alves <palves@redhat.com>
9729 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9730 * configure: Regenerate.
9732 2012-03-01 Pedro Alves <palves@redhat.com>
9734 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9735 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9736 (ftrace_command, strace_command): Make static.
9737 * d-lang.c (_initialize_d_language): Declare.
9738 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9739 * dwarf2loc.c (_initialize_dwarf2loc):
9740 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9741 * exec.c (exec_get_section_table): Make static.
9742 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9743 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9744 * inferior.c (remove_inferior_command, add_inferior_command)
9745 (clone_inferior_command): Make static.
9746 * linux-nat.c (linux_nat_thread_address_space)
9747 (linux_nat_core_of_thread): Make static.
9748 * linux-tdep.c (_initialize_linux_tdep): Declare.
9749 * objc-lang.c (_initialize_objc_lang): Declare.
9750 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9752 (_initialize_opencl_language): Declare.
9753 * record.c (_initialize_record): Declare.
9754 * remote.c (demand_private_info, remote_get_tib_address)
9755 (remote_supports_cond_tracepoints)
9756 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9758 * skip.c (_initialize_step_skip): Declare.
9759 * symtab.c (skip_prologue_using_lineinfo): Make static.
9760 * tracepoint.c (delete_trace_state_variable)
9761 (trace_variable_command, delete_trace_variable_command)
9762 (get_uploaded_tsv, find_matching_tracepoint_location)
9763 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9765 * value.c (pack_unsigned_long): Make static.
9766 * varobj.c (varobj_ensure_python_env): Make static.
9767 * windows-tdep.c (_initialize_windows_tdep): Declare.
9768 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9770 2012-03-01 Pedro Alves <palves@redhat.com>
9772 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9774 (linux_init_abi): Install it as has_shared_address_space gdbarch
9777 2012-03-01 Pedro Alves <palves@redhat.com>
9779 * observer.c (observer_test_first_notification_function)
9780 (observer_test_second_notification_function)
9781 (observer_test_third_notification_function): Add declarations.
9783 2012-03-01 Pedro Alves <palves@redhat.com>
9785 * common/signals.c (default_target_signal_to_host)
9786 (default_target_signal_from_host): Move ...
9787 * arch-utils.c: ... here.
9788 * arch-utils.h (default_target_signal_to_host)
9789 (default_target_signal_from_host): Declare.
9791 * common/signals.c (target_signal_from_command): Move ...
9792 * infrun.c: ... here.
9793 * inferior.h (target_signal_from_command): Declare.
9794 * target.h (target_signal_from_command)
9795 (default_target_signal_from_host, default_target_signal_to_host):
9796 Delete declarations.
9798 * common/signals.c (_initialize_signals): Delete.
9800 2012-03-01 Pedro Alves <palves@redhat.com>
9802 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9803 both __cplusplus and !__cplusplus.
9805 2012-03-01 Pedro Alves <palves@redhat.com>
9807 * psymtab.c (find_and_open_source): Delete declaration.
9808 * source.c (find_and_open_source): Move comment ...
9809 * source.h (find_and_open_source): ... to this new declaration.
9811 2012-03-01 Pedro Alves <palves@redhat.com>
9813 * inline-frame.c: Include inline-frame.h.
9815 2012-03-01 Pedro Alves <palves@redhat.com>
9817 * tui/tui-data.c (set_gen_win_origin): Delete.
9818 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9819 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9821 2012-03-01 Pedro Alves <palves@redhat.com>
9823 * remote.c (encode_actions): Delete declaration.
9824 * tracepoint.c (encode_actions): Make extern.
9825 * tracepoint.h (encode_actions): Declare.
9827 2012-03-01 Pedro Alves <palves@redhat.com>
9829 * python/py-breakpoint.c: Include python.h.
9830 * python/py-continueevent.c (create_continue_event_object): Make
9832 * python/py-lazy-string.c (stpy_get_type): Make static.
9833 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9835 * python/py-utils.c (unicode_to_target_python_string): Make
9837 * python/py-value.c: Include python.h.
9839 2012-03-01 Pedro Alves <palves@redhat.com>
9841 * inferior.c (delete_threads_of_inferior): Delete.
9843 2012-03-01 Pedro Alves <palves@redhat.com>
9845 Import fallback definitions from glibc.
9847 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9848 ps_prochandle): Forward declare.
9849 (ps_err_e): Use glibc's comments.
9850 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9851 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9852 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9853 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9854 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9855 (struct ps_prochandle): Adjust comment.
9857 2012-03-01 Pedro Alves <palves@redhat.com>
9859 * ada-lang.c (ada_modulus_from_name): Delete.
9860 * ada-lex.l (lexer_init): Make static.
9862 2012-03-01 Pedro Alves <palves@redhat.com>
9866 * frame.c (read_frame_register_unsigned): New.
9867 * frame.h (read_frame_register_unsigned): Declare.
9868 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9870 (print_i387_control_word): New parameter `control_p'. Handle it.
9871 (i387_print_float_info): Handle unavailable float registers.
9873 2012-03-01 Keith Seitz <keiths@redhat.com>
9875 * linespec.c (decode_line_2): Sort the list of methods
9876 alphabetically before presenting the user with a selection
9879 2012-03-01 Doug Evans <dje@google.com>
9881 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9883 (dwarf2_read_abbrevs): Remove corresponding initialization.
9885 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9887 * NEWS: Mention new python command class gdb.COMMAND_USER.
9888 * cli/cli-cmds.c (show_user): Print error when used on a python
9890 (init_cli_cmds): Update documentation strings for "show user" and
9891 "set/show max-user-call-depth" to clarify that it does not apply to
9893 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9895 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9897 * top.c (execute_command): Only execute a user-defined command as a
9898 legacy macro if c->user_commands is set.
9900 2012-03-01 Tom Tromey <tromey@redhat.com>
9902 * valprint.h (struct generic_val_print_decorations): New.
9903 (generic_val_print): Declare.
9904 * valprint.c (generic_val_print): New function.
9905 * p-valprint.c (p_decorations): New global.
9906 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9907 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9908 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9909 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9910 * m2-valprint.c (m2_decorations): New global.
9911 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9912 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9913 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9914 TYPE_CODE_ERROR>: Call generic_val_print.
9915 * f-valprint.c (f_decorations): New global.
9916 (f_val_print): Use print_function_pointer_address.
9917 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9918 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9919 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9921 * c-valprint.c (c_decorations): New global.
9922 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9923 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9924 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9925 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9926 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9927 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9930 2012-03-01 Tom Tromey <tromey@redhat.com>
9932 * valprint.c (val_print): Update.
9933 * p-valprint (pascal_val_print): Return void.
9934 * p-lang.h (pascal_val_print): Return void.
9935 * m2-valprint.c (m2_val_print): Return void.
9936 * m2-lang.h (m2_val_print): Return void.
9937 * language.h (struct language_defn) <la_val_print>: Return void.
9938 * language.c (unk_lang_val_print): Return void.
9939 * jv-valprint.c (java_val_print): Return void.
9940 * jv-lang.h (java_val_print): Return void.
9941 * f-valprint.c (f_val_print): Return void.
9942 * f-lang.h (f_val_print): Return void.
9943 * d-valprint.c (d_val_print): Return void.
9944 (dynamic_array_type): Update.
9945 * d-lang.h (d_val_print): Return void.
9946 * c-valprint.c (c_val_print): Return void.
9947 * c-lang.h (c_val_print): Return void.
9948 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9950 * ada-lang.h (ada_val_print): Return void.
9952 2012-03-01 Tom Tromey <tromey@redhat.com>
9954 * value.h (val_print): Return void.
9955 * valprint.c (val_print): Return void.
9957 2012-03-01 Tom Tromey <tromey@redhat.com>
9959 * value.h (common_val_print): Return void.
9960 * valprint.c (common_val_print): Return void.
9962 2012-03-01 Tom Tromey <tromey@redhat.com>
9964 * value.h (value_print): Return void.
9965 * valprint.c (value_print): Return void.
9966 * p-valprint.c (pascal_value_print): Return void.
9967 * p-lang.h (pascal_value_print): Return void.
9968 * language.h (struct language_defn) <la_value_print>: Return
9970 * language.c (unk_lang_value_print): Return void.
9971 * jv-valprint.c (java_value_print): Return void.
9972 * jv-lang.h (java_value_print): Return void.
9973 * f-valprint.c (c_value_print): Don't declare.
9975 * c-valprint.c (c_value_print): Return void.
9976 * c-lang.h (c_value_print): Return void.
9977 * ada-valprint.c (ada_value_print): Return void.
9978 * ada-lang.h (ada_value_print): Return void.
9980 2012-03-01 Tom Tromey <tromey@redhat.com>
9982 * value.c (value_primitive_field): Handle virtual base classes.
9984 2012-03-01 Tom Tromey <tromey@redhat.com>
9986 * gdbtypes.h (struct vbase): Remove.
9988 2012-03-01 Tom Tromey <tromey@redhat.com>
9990 * c-valprint.c (print_function_pointer_address): Move...
9991 * valprint.c: ... here. Make non-static.
9992 * m2-valprint.c (print_function_pointer_address): Remove.
9993 * valprint.h (print_function_pointer_address): Declare.
9995 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9997 * NEWS: Document the fact that one can provide a condition when
9998 creating an Ada exception catchpoint.
10000 2012-03-01 Tom Tromey <tromey@redhat.com>
10002 * valprint.c (val_print_type_code_flags): Fix placement of
10005 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10007 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10008 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10009 environment variable before calling update-copyright.
10011 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10013 * gnulib/extra/update-copyright: Update to the latest from
10014 gnulib's git repository.
10015 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10016 variable to 2 instead of 1.
10018 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10020 * varobj.c (c_value_of_variable): Remove dead code.
10022 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10024 * ada-lex.p (processId): Do not modify already encoded IDs.
10025 Update function documentation.
10027 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10029 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10030 "name" with "struct symbol *name_sym".
10031 * ada-exp.y (write_var_or_type): Update call to
10032 ada_find_renaming_symbol.
10033 "name" with "struct symbol *name_sym". Adjust Implementation
10034 accordingly. Adjust the function documentation.
10036 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10038 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10039 * ada-lang.c (ada_find_any_type): Add advance declaration.
10040 Make static. Replace ada_find_any_symbol by
10041 ada_find_any_type_symbol.
10042 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10043 Improve function description. Make static.
10044 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10045 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10047 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10049 * ada-lang.c (struct tag_args): Delete.
10050 (ada_get_tsd_type): Function body moved up in source file.
10051 (ada_tag_name_1, ada_tag_name_2): Delete.
10052 (ada_get_tsd_from_tag): New function.
10053 (ada_tag_name_from_tsd): New function.
10054 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10055 to determine the tag name.
10057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10059 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10061 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10064 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10066 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10068 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10070 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10073 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10075 * ada-lang.c (constrained_packed_array_type): If there is a
10076 parallel XA type, use it to determine the array index type.
10078 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10080 * ada-valprint.c (ada_val_print_1): If our value is a reference
10081 to an array descriptor, dereference it before converting it
10084 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10086 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10087 creating fixed value.
10088 (ada_value_ind, ada_coerce_ref, assign_component)
10089 (ada_evaluate_subexp): Remove call to unwrap_value before
10090 call to ada_to_fixed_value.
10092 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10094 * ada-lang.c (to_fixed_array_type): Set result's type name.
10096 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10098 * ada-lang.c (catch_ada_exception_command_split): Add new
10099 argument cond_string. Add support for condition at end of
10100 "catch exception" commands.
10101 (ada_decode_exception_location): Add new argument cond_string.
10102 Update call to catch_ada_exception_command_split.
10103 (create_ada_exception_catchpoint): Add new argument cond_string.
10104 Set the breakpoint condition if needed.
10105 (catch_ada_exception_command): Update call to
10106 ada_decode_exception_location.
10107 (ada_decode_assert_location): Add function documentation.
10108 Add support for condition at end of "catch assert" command.
10109 (catch_assert_command): Update calls to ada_decode_assert_location
10110 and create_ada_exception_catchpoint.
10112 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10114 Fix disp-step-syscall.exp: fork: single step over fork.
10115 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10116 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10117 comment, change parameters gdbarch and ptid to regcache. Remove
10118 parameter regcache, initialize gdbarch from regcache here.
10119 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10121 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10123 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10124 'syscall'. Make the 'int' check more strict.
10126 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10128 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10129 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10130 (i386_linux_intx80_sysenter_syscall_record): ... here.
10131 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10132 Use the renamed function name.
10134 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10136 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10137 * breakpoint.c (until_break_command): Likewise.
10138 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10139 * infcall.c (call_function_by_hand): Likewise.
10140 * infcmd.c (finish_forward): Likewise.
10141 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10143 2012-02-28 Tristan Gingold <gingold@adacore.com>
10145 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10146 avoid variable assignments inside condition.
10148 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10150 Fix static analysis issue found by cppcheck.
10151 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10152 uninitialized BUF for size 2.
10154 2012-02-27 Chris Dearman <chris@mips.com>
10155 Nathan Froyd <froydnj@codesourcery.com>
10156 Maciej W. Rozycki <macro@codesourcery.com>
10158 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10159 (mips16_instruction_has_delay_slot): Likewise.
10160 (mips_segment_boundary): Likewise.
10161 (mips_adjust_breakpoint_address): Likewise.
10162 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10164 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10165 Maciej W. Rozycki <macro@codesourcery.com>
10167 * infrun.c (handle_inferior_event): Don't proceed through
10168 shared library trampolines if stepping at the machine
10171 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10173 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10176 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10178 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10179 (sh_stub_unwind_sniffer): New functions.
10180 (sh_stub_unwind): New variable.
10181 (sh_gdbarch_init): Wire everything.
10183 2012-02-27 Pedro Alves <palves@redhat.com>
10185 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10186 (linux_nat_post_attach_wait): Adjust to use
10187 linux_proc_pid_is_stopped.
10188 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10189 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10190 based on pid_is_stopped from both linux-nat.c and
10191 gdbserver/linux-low.c, and renamed.
10193 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10195 * remote.c (remote_watchpoint_addr_within_range): New function.
10196 (init_remote_ops): Use it.
10198 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10200 * target.h (target_watchpoint_addr_within_range): Document macro.
10202 2012-02-24 Pedro Alves <palves@redhat.com>
10204 * stack.c (set_last_displayed_sal): Issue internal_error instead
10205 of warning, and issue it after clearing the last displayed sal.
10207 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10208 Pedro Alves <palves@redhat.com>
10210 * breakpoint.c (until_break_command): Install breakpoints after
10211 all frame manipulations.
10213 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10215 * remote.c (remote_supports_cond_breakpoints): New forward
10217 (remote_add_target_side_condition): New function.
10218 (remote_insert_breakpoint): Add target-side breakpoint
10219 conditional if supported.
10220 (remote_insert_hw_breakpoint): Likewise.
10221 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10224 * target.c (update_current_target): Inherit
10225 to_supports_evaluation_of_breakpoint_conditions.
10226 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10228 * target.h (struct target_ops)
10229 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10230 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10232 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10233 (condition_evaluation_both, condition_evaluation_auto,
10234 condition_evaluation_host, condition_evaluation_target,
10235 condition_evaluation_enums, condition_evaluation_mode_1,
10236 condition_evaluation_mode): New static globals.
10237 (translate_condition_evaluation_mode): New function.
10238 (breakpoint_condition_evaluation_mode): New function.
10239 (gdb_evaluates_breakpoint_condition_p): New function.
10240 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10241 (mark_breakpoint_modified): New function.
10242 (mark_breakpoint_location_modified): New function.
10243 (set_condition_evaluation_mode): New function.
10244 (show_condition_evaluation_mode): New function.
10245 (bp_location_compare_addrs): New function.
10246 (get_first_location_gte_addr): New helper function.
10247 (set_breakpoint_condition): Free condition bytecode if locations
10248 has become unconditional. Call mark_breakpoint_modified (...).
10249 (condition_command): Call update_global_location_list (1) for
10251 (breakpoint_xfer_memory): Use is_breakpoint (...).
10252 (is_breakpoint): New function.
10253 (parse_cond_to_aexpr): New function.
10254 (build_target_condition_list): New function.
10255 (insert_bp_location): Handle target-side conditional
10256 breakpoints and call build_target_condition_list (...).
10257 (update_inserted_breakpoint_locations): New function.
10258 (insert_breakpoint_locations): Handle target-side conditional
10260 (bpstat_check_breakpoint_conditions): Add comment.
10261 (bp_condition_evaluator): New function.
10262 (bp_location_condition_evaluator): New function.
10263 (print_breakpoint_location): Print information on where the condition
10265 (print_one_breakpoint_location): Likewise.
10266 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10267 breakpoint location.
10268 (force_breakpoint_reinsertion): New functions.
10269 (update_global_location_list): Handle target-side breakpoint
10271 Reinsert locations that are already inserted if conditions have
10273 (bp_location_dtor): Free agent expression bytecode.
10274 (disable_breakpoint): Call mark_breakpoint_modified (...).
10275 Call update_global_location_list (...) with parameter 1 for breakpoints.
10276 (disable_command): Call mark_breakpoint_location_modified (...).
10277 Call update_global_location_list (...) with parameter 1 for breakpoints.
10278 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10279 (enable_command): mark_breakpoint_location_modified (...).
10280 (_initialize_breakpoint): Update documentation and add
10281 condition-evaluation breakpoint subcommand.
10283 * breakpoint.h: Include ax.h.
10284 (condition_list): New data structure.
10285 (condition_status): New enum.
10286 (bp_target_info) <cond_list>: New field.
10287 (bp_location) <condition_changed, cond_bytecode>: New fields.
10288 (is_breakpoint): New prototype.
10290 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10292 * remote.c (remote_state) <cond_breakpoints>: New field.
10293 (PACKET_ConditionalBreakpoints): New enum.
10294 (remote_cond_breakpoint_feature): New function.
10295 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10296 (remote_supports_cond_breakpoints): New function.
10297 (_initialize_remote): Add new packet configuration for
10298 target-side conditional breakpoints.
10300 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10302 * NEWS: Mention target-side conditional breakpoint support,
10303 new condition-evaluation breakpoint subcommand and remote
10306 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10308 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10311 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10313 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10314 (after_prologue): Remove.
10316 2012-02-23 Tom Tromey <tromey@redhat.com>
10318 * jv-valprint.c (java_val_print): Remove dead code.
10320 2012-02-23 Tristan Gingold <gingold@adacore.com>
10322 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10323 known_tasks_element and known_tasks_length fields.
10324 (read_known_tasks_array): Change argument type. Use pointer type
10325 and number of elements from DATA. Adjust.
10326 (read_known_tasks_list): Likewise.
10327 (get_known_tasks_addr): Remove.
10328 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10329 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10330 type and array length. Merge former get_known_tasks_addr code.
10332 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10335 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10336 it after set_momentary_breakpoint.
10338 2012-02-22 Sterling Augustine <saugustine@google.com>
10341 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10343 2012-02-22 Gary Benson <gbenson@redhat.com>
10345 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10346 (find_slot_in_mapped_hash): Likewise.
10348 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10351 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10352 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10353 * configure: Regenerate.
10355 2012-02-21 Tristan Gingold <gingold@adacore.com>
10356 Pedro Alves <palves@redhat.com>
10358 * ia64-tdep.c: Do not include libunwind-ia64.h.
10359 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10360 Include libunwind-ia64.h instead of libunwind.h.
10361 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10362 for libunwind.h existence.
10363 * configure, config.in: Regenerate.
10365 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10367 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10368 instead of value_rtti_target_type.
10369 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10370 instead of value_rtti_target_type.
10371 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10372 value_rtti_target_type.
10373 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10374 (value_rtti_target_type): Rename to ...
10375 (value_rtti_indirect_type): ... here and make it indirect. Update
10377 * value.c (readjust_indirect_value_type): New function.
10378 (coerce_ref): Support for enclosing type setting for references
10379 with readjust_indirect_value_type.
10380 * value.h (readjust_value_type): New declaration.
10381 (value_rtti_target_type): Rename to ...
10382 (value_rtti_indirect_type): ... here.
10384 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10386 * MAINTAINERS (Write After Approval): Add myself to the list.
10388 2012-02-20 Doug Evans <dje@google.com>
10390 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10391 Rename objfile_p_char parameter to objfilep.
10392 (build_objfile_section_table): Result is now void. All callers
10394 * objfiles.h (struct objfile): Tweak comments, whitespace.
10395 (build_objfile_section_table): Update.
10397 * elfread.c (elf_symfile_segments): Fix warning text.
10399 2012-02-20 Tom Tromey <tromey@redhat.com>
10402 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10403 particular set of file names once.
10404 (dw2_map_symbol_filenames): Likewise.
10406 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10409 * main.c (write_files): Remove the declaration.
10410 (external_editor_command): Move the declaration ...
10411 [GDBTK] (external_editor_command): ... here. Fix the comment.
10413 2012-02-20 Tom Tromey <tromey@redhat.com>
10415 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10418 2012-02-20 Tristan Gingold <gingold@adacore.com>
10420 * darwin-nat.h (enum darwin_msg_state): Add comments.
10422 2012-02-20 Tristan Gingold <gingold@adacore.com>
10424 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10427 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10429 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10430 between function description and implementation.
10432 2012-02-17 Tom Tromey <tromey@redhat.com>
10435 * python/py-event.c (event_object_getset): New global.
10436 (event_object_type): Reference it.
10437 * python/py-type.c (field_object_getset): New global.
10438 (field_object_type): Reference it.
10439 * python/python-internal.h (gdb_py_generic_dict): Declare.
10440 * python/py-utils.c (gdb_py_generic_dict): New function.
10442 2012-02-17 Tristan Gingold <gingold@adacore.com>
10444 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10446 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10448 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10449 TYPE_CALLING_CONVENTION annotation.
10451 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10453 * MAINTAINERS: Add rx to target ISA section.
10454 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10455 (ALLDEPFILES): Add rx-tdep.c.
10457 2012-02-16 Tom Tromey <tromey@redhat.com>
10459 * symfile.c (symbol_file_add_main_1): Use inferior's
10461 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10462 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10464 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10466 (follow_exec): Use inferior's symfile_flags.
10467 * inferior.h (struct inferior) <symfile_flags>: New field.
10469 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10472 * remote-sim.c (gdbsim_create_inferior): Call error() when
10473 sim_create_inferior() fails.
10475 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10477 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10479 2012-02-16 Tom Tromey <tromey@redhat.com>
10482 * thread.c (struct current_thread_cleanup) <was_removable>: New
10484 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10485 (make_cleanup_restore_current_thread): Initialize new field.
10487 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10489 * MAINTAINERS: Add rl78 to target ISA section.
10490 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10491 (ALLDEPFILES): Add rl78-tdep.c.
10492 * NEWS: Mention rl78 as a new target.
10494 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10496 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10498 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10500 2012-02-15 Tom Tromey <tromey@redhat.com>
10503 * infcmd.c (registers_info): Print just the current register's
10506 2012-02-15 Tom Tromey <tromey@redhat.com>
10508 * python/py-symbol.c (sympy_value): Use _().
10510 2012-02-15 Pedro Alves <palves@redhat.com>
10512 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10513 output to be like native targets'.
10514 (remote_pid_to_str): Special case the null ptid.
10516 2012-02-14 Stan Shebs <stan@codesourcery.com>
10518 * NEWS: Mention enable count command.
10519 * breakpoint.h (struct breakpoint): New field enable_count.
10520 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10521 (enable_breakpoint): Add arg to call.
10522 (struct disp_data): New struct.
10523 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10524 (do_map_enable_once_breakpoint): Create a struct and pass it.
10525 (do_map_enable_delete_breakpoint): Ditto.
10526 (do_map_enable_count_breakpoint): New function.
10527 (enable_count_command): New function.
10528 (bpstat_stop_status): Decrement enable_count.
10529 (print_one_breakpoint_location): Report enable count.
10530 (_initialize_breakpoint): Add enable count command.
10532 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10534 * rl78-tdep.c (reggroups.h): Include.
10535 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10536 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10537 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10538 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10539 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10540 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10541 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10542 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10543 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10544 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10545 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10546 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10547 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10548 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10549 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10550 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10551 beginning of register list.
10552 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10553 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10554 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10555 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10556 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10557 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10558 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10559 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10560 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10561 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10562 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10563 the pseudo registers. Rearrange other pseudo registers too so
10564 that the bank registers appear at the end.
10565 (rl78_register_type): Account for the fact that the byte sized
10566 bank registers are now pseudo-registers.
10567 (rl78_register_name): Rearrange the register name array. Make
10568 initial set of raw banked registers inaccessible.
10569 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10570 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10571 case for copying bytes back and forth between raw and pseudo
10572 versions of the banked registers. Update other cases to reflect
10574 (rl78_return_value): Update to account for changed names of
10576 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10577 rl78_register_sim_regno().
10579 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10581 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10582 the name parameter being passed to find_pc_partial_function().
10584 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10586 * MAINTAINERS: Step down from being ia64 target maintainer.
10588 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10590 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10591 compilation warning.
10593 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10595 Fix crash on loaded shlibs without loaded exec_bfd.
10596 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10597 (set_section_command): Replace exec_bfd by p->bfd.
10599 2012-02-10 Tom Tromey <tromey@redhat.com>
10601 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10602 when we have a C++ qualified name.
10604 2012-02-10 Pedro Alves <palves@redhat.com>
10606 * inferior.c (inferior_pid_to_str): New.
10607 (print_inferior, inferior_command): Use it.
10609 2012-02-10 Pedro Alves <palves@redhat.com>
10611 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10613 * configure: Regenerate.
10615 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10617 * linespec.c (decode_line_internal): Fix comment correctness.
10619 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10622 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10623 * amd64bsd-nat.c: Add support for debug registers (adapted from
10625 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10626 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10627 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10628 (amd64bsd_dr_get_control): New functions.
10629 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10630 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10631 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10632 watchpoints initialization.
10633 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10635 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10637 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10639 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10641 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10643 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10645 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10647 * language.h (symbol_name_cmp_ftype): Renames
10648 symbol_name_match_p_ftype.
10649 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10650 la_get_symbol_name_match_p.
10651 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10652 ada_get_symbol_name_match_p. Update comment.
10653 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10654 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10655 Renames symbol_name_match_p. Update field type.
10656 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10657 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10658 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10659 "la_get_symbol_name_cmp" in comments.
10660 * language.c: Likewise.
10662 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10664 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10666 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10667 (amd64_sol2_gregset32_reg_offs): Likewise.
10669 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10671 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10672 of the returned BFD is allocated by GDB.
10674 2012-02-07 Tom Tromey <tromey@redhat.com>
10677 * python/python-internal.h (frame_object_type): Declare.
10678 * python/py-symbol.c (sympy_needs_frame): New function.
10679 (sympy_value): New function.
10680 (symbol_object_getset): Add "needs_frame".
10681 (symbol_object_methods): Add "value".
10682 * python/py-frame.c (frame_object_type): No longer static.
10684 2012-02-07 Tom Tromey <tromey@redhat.com>
10687 * python/py-symbol.c (sympy_line): New function.
10688 (symbol_object_getset): Add "line".
10690 2012-02-07 Tom Tromey <tromey@redhat.com>
10692 * charset.c (find_charset_names): Check 'in' against NULL.
10694 2012-02-06 Doug Evans <dje@google.com>
10696 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10697 and fields.name members from char * to const char *. All uses updated.
10698 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10699 from char * to const char *. All uses updated.
10700 (type_name_no_tag): Update.
10701 (lookup_unsigned_typename, lookup_signed_typename): Update.
10702 * gdbtypes.c (type_name_no_tag): Change result type
10703 from char * to const char *. All callers updated.
10704 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10705 name parameter from char * to const char *.
10706 * symtab.h (struct cplus_specific): Change type of demangled_name
10707 member from char * to const char *. All uses updated.
10708 (struct general_symbol_info): Change type of name and
10709 mangled_lang.demangled_name members from char * to const char *.
10711 (symbol_get_demangled_name, symbol_natural_name): Update.
10712 (symbol_demangled_name, symbol_search_name): Update.
10713 * symtab.c (symbol_get_demangled_name): Change result type
10714 from char * to const char *. All callers updated.
10715 (symbol_natural_name, symbol_demangled_name): Ditto.
10716 (symbol_search_name): Ditto.
10717 (completion_list_add_name): Change type of symname,sym_text,
10718 text,word parameters from char * to const char *.
10719 (completion_list_objc_symbol): Change type of sym_text,
10720 text,word parameters from char * to const char *.
10721 * ada-lang.c (find_struct_field): Change type of name parameter
10722 from char * to const char *.
10723 (encoded_ordered_before): Similarly for N0,N1 parameters.
10724 (old_renaming_is_invisible): Similarly for function_name parameter.
10725 (ada_type_name): Change result type from char * to const char *.
10726 All callers updated.
10727 * ada-lang.h (ada_type_name): Update.
10728 * buildsym.c (hashname): Change type of name parameter
10729 from char * to const char *.
10730 * buildsym.h (hashname): Update.
10731 * dbxread.c (end_psymtab): Change type of include_list parameter
10732 from char ** to const char **.
10733 * dwarf2read.c (determine_prefix): Change result type
10734 from char * to const char *. All callers updated.
10735 * f-lang.c (find_common_for_function): Change type of name, funcname
10736 parameters from char * to const char *.
10737 * f-lang.c (find_common_for_function): Update.
10738 * f-valprint.c (list_all_visible_commons): Change type of funcname
10739 parameters from char * to const char *.
10740 * gdbarch.sh (static_transform_name): Change type of name parameter
10741 and result from char * to const char *.
10742 * gdbarch.c: Regenerate.
10743 * gdbarch.h: Regenerate.
10744 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10745 of name parameter from char * to const char *.
10746 * jv-lang.c (java_primitive_type_from_name): Ditto.
10747 (java_demangled_signature_length): Similarly for signature parameter.
10748 (java_demangled_signature_copy): Ditto.
10749 (java_demangle_type_signature): Ditto.
10750 * jv-lang.h (java_primitive_type_from_name): Update.
10751 (java_demangle_type_signature): Update.
10752 * objc-lang.c (specialcmp): Change type of a,b parameters
10753 from char * to const char *.
10754 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10755 from char * to const char *. All callers updated.
10756 * p-lang.h (is_pascal_string_type): Update.
10757 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10758 of name parameter from char * to const char *.
10759 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10760 * utils.c (fprintf_symbol_filtered): Ditto.
10761 * defs.h (fprintf_symbol_filtered): Update.
10762 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10763 * stabsread.h (end_psymtab): Update.
10764 * stack.c (find_frame_funname): Change type of funname parameter
10765 from char ** to const char **.
10766 * stack.h (find_frame_funname): Update.
10767 * typeprint.c (type_print): Change type of varstring parameter
10768 from char * to const char *.
10769 * value.h (type_print): Update.
10770 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10771 from char * to const char *. All callers updated.
10772 (xcoff_end_psymtab): Change type of include_list parameter
10773 from char ** to const char **. All callers updated.
10774 (swap_sym): Similarly for name parameter. All callers updated.
10775 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10777 (process_coff_symbol): Use xstrdup.
10778 * stabsread.c (stabs_method_name_from_physname): Renamed from
10779 update_method_name_from_physname. Change result type from void
10780 to char *. All callers updated.
10781 (read_member_functions): In has_destructor case, store name in objfile
10782 obstack instead of malloc space. In !has_stub case, fix mem leak.
10784 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10786 * configure: Rebuild.
10787 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10790 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10792 * configure.tgt (rl78-*-elf): New target.
10793 * rl78-tdep.c: New file.
10795 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10797 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10798 and continue the loop. Add QUIT statement.
10800 2012-02-03 Tom Tromey <tromey@redhat.com>
10803 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10804 bfd_lookup_symbol_from_symtab.
10805 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10806 gdb_bfd_lookup_symbol_from_symtab.
10808 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10810 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10811 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10812 symbol. Add assertion that sym2 is never NULL.
10814 2012-02-02 Doug Evans <dje@google.com>
10816 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10817 "name" parameter to const char ** from char **. All callers updated.
10818 (find_pc_partial_function): Ditto.
10819 (cache_pc_function_name): Change type to const char * from char *.
10820 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10821 (find_pc_partial_function): Update.
10822 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10823 type of "name" parameter to const char * from char *.
10825 * arch-utils.c (generic_in_solib_return_trampoline): Change
10826 type of "name" parameter to const char * from char *.
10827 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10828 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10829 type of "name" parameter to const char * from char *.
10830 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10831 * gdbarch.c: Regenerate.
10832 * gdbarch.h: Regenerate.
10833 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10834 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10835 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10836 type of "name" parameter to const char * from char *.
10837 * skip.c (skip_function_pc): Ditto.
10838 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10839 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10840 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10841 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10842 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10843 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10844 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10845 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10846 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10848 2012-02-02 Pedro Alves <palves@redhat.com>
10850 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10851 the current inferior has no execution. Make sure the current
10852 remote process matches gdb's current inferior.
10854 2012-02-02 Tom Tromey <tromey@redhat.com>
10857 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10860 2012-02-02 Tom Tromey <tromey@redhat.com>
10863 * symtab.c (lookup_language_this): Set block_found.
10865 2012-02-01 Tom Tromey <tromey@redhat.com>
10868 * jit.c (struct jit_inferior_data): Rewrite.
10869 (struct jit_objfile_data): New.
10870 (get_jit_objfile_data): New function.
10871 (add_objfile_entry): Update.
10872 (jit_read_descriptor): Return int. Replace descriptor_addr
10873 argument with inf_data. Update. Don't call error.
10874 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10876 (jit_inferior_init): Don't look up descriptor. Don't call error.
10877 (jit_reset_inferior_data_and_breakpoints)
10878 (jit_inferior_created_observer): Remove.
10879 (jit_inferior_exit_hook): Update.
10880 (jit_executable_changed_observer): Remove.
10881 (jit_event_handler): Update.
10882 (free_objfile_data): Reset inferior data if needed.
10883 (_initialize_jit): Update.
10885 2012-02-01 Tom Tromey <tromey@redhat.com>
10887 * jit.c (bfd_open_from_target_memory): Move higher in file.
10889 2012-02-01 Tristan Gingold <gingold@adacore.com>
10891 * libunwind-frame.c (libunwind_load): Display message if dlopen
10894 2012-02-01 Gary Benson <gbenson@redhat.com>
10896 * symtab.h (symbol_found_callback_ftype): New typedef.
10897 (iterate_over_symbols): Use the above.
10898 * symtab.c (iterate_over_symbols): Likewise.
10899 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10900 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10901 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10902 (iterate_name_matcher): Document return values.
10903 (collect_one_symbol): Likewise.
10904 (collect_function_symbols): Likewise.
10905 (collect_symbols): Likewise.
10907 2012-02-01 Tom Tromey <tromey@redhat.com>
10909 * ada-lang.c (resolve_subexp): Update.
10910 (ada_lookup_symbol_list): Add 'full_search' argument.
10911 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10912 ada_lookup_symbol_list.
10913 (ada_lookup_encoded_symbol): Update.
10914 (get_var_value): Update.
10915 * ada-exp.y (block_lookup): Update.
10916 (write_var_or_type): Update.
10917 (write_name_assoc): Update.
10918 * ada-lang.h (ada_lookup_symbol_list): Update.
10920 2012-01-31 Tom Tromey <tromey@redhat.com>
10922 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10925 2012-01-31 Doug Evans <dje@google.com>
10927 * symtab.h: Remove outdated comment.
10928 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10930 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10932 Fix build error in Darwin port.
10933 * i386-darwin-nat.c: Include i386-nat.h.
10935 2012-01-30 Tom Tromey <tromey@redhat.com>
10937 PR breakpoints/13568:
10938 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10939 argument. Check for recursive includes.
10940 (dwarf_decode_macros): Create an include hash.
10942 2012-01-30 Michael Eager <eager@eagercon.com>
10944 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10945 * ppc-linux-tdep.c: Include glibc-tdep.h.
10946 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10947 (powerpc_linux_in_plt_stub): New function.
10948 (powerpc_linux_in_dynsym_resolve_code): New function.
10949 (ppc_skip_trampoline_code): New function.
10950 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10951 Use glibc_skip_solib_resolver.
10953 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10955 Code cleanup: Make 1440 bytes of data segment read-only.
10956 * arch-utils.c (endian_enum): Make it const char *const [].
10957 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10959 * breakpoint.c (always_inserted_enums): Likewise.
10960 * cli/cli-cmds.c (script_ext_enums): Likewise.
10961 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10962 enumlist parameter const char *const *.
10963 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10964 const char *const *.
10965 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10966 parameter const char *const *.
10967 * cris-tdep.c (cris_modes): Make it const char *const [].
10968 * filesystem.c (target_file_system_kinds): Likewise.
10969 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10970 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10971 (can_use_displaced_stepping_enum, scheduler_enums)
10972 (exec_direction_names): Likewise.
10973 * language.c (_initialize_language): Make the type_or_range_names and
10974 case_sensitive_names variables const char *const [].
10975 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10976 * python/python.c (python_excp_enums): Likewise.
10977 * remote.c (interrupt_sequence_modes): Likewise.
10978 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10979 * serial.c (logbase_enums): Likewise.
10980 * sh-tdep.c (sh_cc_enum): Likewise.
10981 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10983 * symtab.c (multiple_symbols_modes): Likewise.
10984 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10986 * utils.c (internal_problem_modes): Likewise.
10988 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10990 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10991 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10994 2012-01-27 Doug Evans <dje@google.com>
10996 * configure.ac (with_python): Fix absolute path handling for win32.
10997 * configure: Regenerate.
10999 2012-01-26 Doug Evans <dje@google.com>
11001 * symtab.c: Whitespace cleanup, no code changes.
11003 * symtab.c (lookup_symbol_in_language): Improve comment.
11004 (lookup_symbol_aux): Fix comment.
11006 * psymtab.c (add_psymbol_to_list): Result is now "void".
11007 * psympriv.h (add_psymbol_to_list): Update.
11009 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11011 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11013 Do not open script filenames twice.
11014 * cli/cli-cmds.c (source_script_from_stream): Pass to
11015 source_python_script also STREAM.
11016 * python/py-auto-load.c (source_section_scripts): Pass to
11017 source_python_script_for_objfile also STREAM.
11018 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11020 * python/python-internal.h (source_python_script_for_objfile): New
11021 parameter file, rename parameter file to filename.
11022 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11023 instead if !_WIN32. Update the function comment.
11024 (source_python_script, source_python_script_for_objfile)
11025 (source_python_script): New parameter file, rename parameter file to
11026 filename. Pass FILENAME to python_run_simple_file.
11027 * python/python.h (source_python_script): New parameter file, rename
11028 parameter file to filename.
11030 2012-01-26 Pedro Alves <palves@redhat.com>
11032 * corelow.c (core_has_fake_pid): Delete.
11033 (core_close): Delete references to `core_has_fake_pid'.
11034 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11035 (core_open): Delete references to `core_has_fake_pid'.
11036 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11037 the removed global.
11039 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11041 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11042 Remove language parameter from name_matcher. Adjust the comment.
11043 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11044 Remove language parameter.
11045 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11046 * linespec.c (iterate_name_matcher): Likewise.
11047 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11048 name_matcher. Adjust call accordingly.
11049 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11050 (maintenance_check_symtabs): Adjust type of parameter "fun".
11051 * psymtab.h (maintenance_check_symtabs): Likewise.
11053 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11055 * language.h (symbol_name_match_p_ftype): New typedef.
11056 (struct language_defn): Replace field la_symbol_name_compare
11057 by la_get_symbol_name_match_p.
11058 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11059 (ada_language_defn): Use it.
11060 * linespec.c (struct symbol_matcher_data): New type.
11061 (iterate_name_matcher): Rewrite.
11062 (iterate_over_all_matching_symtabs): Pass a pointer to
11063 a symbol_matcher_data struct to expand_symtabs_matching
11064 instead of just the lookup name.
11065 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11066 opencl-lang.c, p-lang.c, language.c: Delete field
11067 la_symbol_name_compare, and replace by NULL for new field
11068 la_get_symbol_name_match_p.
11069 * symfile.h (struct quick_symbol_functions): Update comment.
11071 2012-01-25 Tom Tromey <tromey@redhat.com>
11073 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11076 2012-01-24 Tom Tromey <tromey@redhat.com>
11079 * solib.c (update_solib_list): Update the program space's
11080 added_solibs and deleted_solibs fields.
11081 * progspace.h (struct program_space) <added_solibs,
11082 deleted_solibs>: New fields.
11083 (clear_program_space_solib_cache): Declare.
11084 * progspace.c (release_program_space): Call
11085 clear_program_space_solib_cache.
11086 (clear_program_space_solib_cache): New function.
11087 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11088 bpstat_stop_status. Use handle_solib_event.
11089 * breakpoint.c: Include gdb_regex.h.
11090 (print_solib_event): New function.
11091 (bpstat_print): Use print_solib_event.
11092 (bpstat_stop_status): Add special case for bp_shlib_event.
11093 (handle_solib_event): New function.
11094 (bpstat_what): Use handle_solib_event.
11095 (struct solib_catchpoint): New.
11096 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11097 (breakpoint_hit_catch_solib, check_status_catch_solib)
11098 (print_it_catch_solib, print_one_catch_solib)
11099 (print_mention_catch_solib, print_recreate_catch_solib): New
11101 (catch_solib_breakpoint_ops): New global.
11102 (catch_load_or_unload, catch_load_command_1)
11103 (catch_unload_command_1): New functions.
11104 (internal_bkpt_check_status): Add special case for
11106 (internal_bkpt_print_it): Use print_solib_event.
11107 (initialize_breakpoint_ops): Initialize
11108 catch_solib_breakpoint_ops.
11109 (_initialize_breakpoint): Register "catch load" and "catch
11111 * breakpoint.h (handle_solib_event): Declare.
11112 * NEWS: Add entry for "catch load" and "catch unload".
11114 2012-01-24 Tom Tromey <tromey@redhat.com>
11116 * ada-lang.c: Include gdb_vecs.h.
11117 * charset.c: Include gdb_vecs.h.
11118 * tracepoint.h: Include gdb_vecs.h.
11119 * gdb_vecs.h: New file.
11121 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11123 * breakpoint.c (breakpoint_hit_catch_fork)
11124 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11125 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11126 * infrun.c (inferior_has_forked, inferior_has_vforked)
11127 (inferior_has_execd, inferior_has_called_syscall): Delete.
11128 (handle_syscall_event): Get syscall_number from the execution
11129 control state's wait status.
11130 (wait_for_inferior): Don't clear syscall_number.
11132 2012-01-24 Pedro Alves <palves@redhat.com>
11134 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11135 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11136 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11137 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11139 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11140 false for events other than TARGET_SIGNAL_TRAP.
11141 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11142 Add `ws' parameter.
11143 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11144 events other than TARGET_SIGNAL_TRAP.
11145 (tracepoint_breakpoint_hit): Add `ws' parameter.
11146 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11148 (bpstat_stop_status): Same.
11149 (pc_at_non_inline_function): Same.
11150 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11151 to pass the current event's waitstatus to bpstat_stop_status
11152 and pc_at_non_inline_function.
11154 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11157 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11158 Update the function comment for it.
11159 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11160 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11163 2012-01-24 Pedro Alves <palves@redhat.com>
11165 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11166 outside `bs->stop' block.
11167 (bpstat_what): Rework bp_shlib_event handling.
11168 (internal_bkpt_check_status): If the breakpoint is a
11169 bp_shlib_event, then set bs->stop and bs->print if
11170 stop_on_solib_events is set.
11172 2012-01-24 Gary Benson <gbenson@redhat.com>
11174 Delete #if 0'd out code.
11175 * stack.c (print_frame_label_vars): Remove.
11176 (catch_info): Likewise.
11177 (_initialize_stack): Remove "info catch" command.
11178 * NEWS: Mention the above.
11180 2012-01-24 Pedro Alves <palves@redhat.com>
11182 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11184 (remote_notice_new_inferior): If the remote end doesn't support
11185 the multiprocess extensions, then the PID is fake.
11186 (add_current_inferior_and_thread): New.
11187 (remote_start_remote): Use it.
11188 (extended_remote_attach_1): Adjust.
11189 (extended_remote_create_inferior_1): Use
11190 add_current_inferior_and_thread.
11192 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11194 Fix watchpoints to be specific for each inferior.
11195 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11196 current_program_space.
11197 * i386-nat.c (i386_inferior_data_cleanup): New.
11198 (i386_inferior_data_get): Replace variable inf_data_local by an
11199 inferior_data call.
11200 (i386_use_watchpoints): Initialize i386_inferior_data.
11201 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11202 specific iterate_over_lwps.
11204 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11206 Fix watchpoints across inferior fork.
11207 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11208 comment for linux_nat_iterate_watchpoint_lwps.
11209 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11210 linux_nat_iterate_watchpoint_lwps.
11211 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11212 * i386-linux-nat.c (update_debug_registers_callback): Update the
11213 comment for linux_nat_iterate_watchpoint_lwps.
11214 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11215 linux_nat_iterate_watchpoint_lwps.
11216 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11217 * i386-nat.c: Include inferior.h.
11218 (dr_mirror): Remove.
11219 (i386_inferior_data, struct i386_inferior_data)
11220 (i386_inferior_data_get): New.
11221 (i386_debug_reg_state): Use i386_inferior_data_get.
11222 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11223 (i386_insert_watchpoint, i386_remove_watchpoint)
11224 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11225 (i386_remove_hw_breakpoint): New variable state, use
11226 i386_debug_reg_state instead of DR_MIRROR.
11227 * linux-nat.c (delete_lwp): New declaration.
11228 (num_lwps): Move here from downwards.
11229 (delete_lwp_cleanup): New.
11230 (linux_child_follow_fork): Create new child_lp, call
11231 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11233 (num_lwps): Move upwards.
11234 (linux_nat_iterate_watchpoint_lwps): New.
11235 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11236 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11238 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11242 2012-01-23 Pedro Alves <palves@redhat.com>
11244 * top.c (caution): Rename to ...
11245 (confirm): ... this.
11246 (show_caution): Rename to ...
11247 (show_confirm): ... this.
11248 (quit_cover): Adjust.
11249 (init_main): Adjust.
11250 * top.h (caution): Rename to ...
11251 (confirm): ... this.
11252 * utils.c (internal_vproblem, defaulted_query): Adjust.
11254 2012-01-23 Pedro Alves <palves@redhat.com>
11256 * top.c (caution): Update comment.
11257 (execute_command): Don't consider the current value of `caution'.
11259 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11261 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11263 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11265 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11266 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11267 * target.c (target_fileio_pwrite): Remove buffer address from
11269 (target_fileio_pread): Likewise.
11271 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11273 * NEWS: Document remote "info proc" and "generate-core-file".
11275 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11277 * gdbarch.sh (find_memory_regions): New callback.
11278 * gdbarch.c, gdbarch.h: Regenerate.
11280 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11281 callback before falling back to target method.
11283 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11284 (linux_target_install_ops): No longer install it.
11286 * linux-tdep.c (linux_find_memory_regions): New function.
11287 (linux_init_abi): Install it.
11289 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11291 * gdbarch.sh (make_corefile_notes): New architecture callback.
11292 * gdbarch.c: Regenerate.
11293 * gdbarch.h: Likewise.
11295 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11296 before target_make_corefile_notes. If NULL is returned, the
11297 target does not support core file generation.
11299 * linux-nat.c: Include "linux-tdep.h".
11300 (find_signalled_thread, find_stop_signal): Remove.
11301 (linux_nat_do_thread_registers): Likewise.
11302 (struct linux_nat_corefile_thread_data): Likewise.
11303 (linux_nat_corefile_thread_callback): Likewise.
11304 (iterate_over_spus): Likewise.
11305 (struct linux_spu_corefile_data): Likewise.
11306 (linux_spu_corefile_callback): Likewise.
11307 (linux_spu_make_corefile_notes): Likewise.
11308 (linux_nat_collect_thread_registers): New function.
11309 (linux_nat_make_corefile_notes): Replace contents by call to
11310 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11311 as native-only callback.
11313 * linux-tdep.h: Include "bfd.h".
11314 (struct regcache): Add forward declaration.
11315 (linux_collect_thread_registers_ftype): New typedef.
11316 (linux_make_corefile_notes): Add prototype.
11317 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11318 "regset.h", and "elf-bfd.h".
11319 (find_signalled_thread, find_stop_signal): New functions.
11320 (linux_spu_make_corefile_notes): Likewise.
11321 (linux_collect_thread_registers): Likewise.
11322 (struct linux_corefile_thread_data): New data structure.
11323 (linux_corefile_thread_callback): New funcion.
11324 (linux_make_corefile_notes): Likewise.
11325 (linux_make_corefile_notes_1): Likewise.
11326 (linux_init_abi): Install it.
11328 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11330 * gdbarch.sh (info_proc): New callback.
11331 * gdbarch.c, gdbarch.h: Regenerate.
11333 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11334 before falling back to the target info_proc callback.
11336 * linux-nat.c: Do not include "cli/cli-utils.h".
11337 (linux_nat_info_proc): Remove.
11338 (linux_target_install_ops): No longer install it.
11340 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11341 (read_mapping): New function.
11342 (linux_info_proc): Likewise.
11343 (linux_init_abi): Install it.
11345 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11347 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11348 * infcmd.c: (info_proc_cmd_1): New function.
11349 (info_proc_cmd): New function, moved here from equivalent routine
11350 orignally in linux-nat.c.
11351 (info_proc_cmd_mappings): Likewise.
11352 (info_proc_cmd_stat): Likewise.
11353 (info_proc_cmd_status): Likewise.
11354 (info_proc_cmd_cwd): Likewise.
11355 (info_proc_cmd_cmdline): Likewise.
11356 (info_proc_cmd_exe): Likewise.
11357 (info_proc_cmd_all): Likewise.
11358 (_initialize_infcmd): Install "info proc" command and subcommands.
11360 * target.h (struct target_ops): Add to_info_proc.
11361 (target_info_proc): Add prototype.
11362 * target.c (target_info_proc): New function.
11364 * procfs.c (procfs_info_proc): Add prototype.
11365 (info_proc_cmd): Rename into ...
11366 (procfs_info_proc): ... this. Update argument types as appropriate
11367 for a to_info_proc implementation. Handle "what" argument.
11368 (procfs_target): Install procfs_info_proc.
11369 (_initialize_procfs): No longer install "info proc" command.
11371 * linux-nat.c: (enum info_proc_what): Remove.
11372 (linux_nat_info_proc_cmd_1): Rename into ...
11373 (linux_nat_info_proc): ... this. Update argument types as appropriate
11374 for a to_info_proc implementation.
11375 (linux_nat_info_proc_cmd): Remove.
11376 (linux_nat_info_proc_cmd_mappings): Likewise.
11377 (linux_nat_info_proc_cmd_stat): Likewise.
11378 (linux_nat_info_proc_cmd_status): Likewise.
11379 (linux_nat_info_proc_cmd_cwd): Likewise.
11380 (linux_nat_info_proc_cmd_cmdline): Likewise.
11381 (linux_nat_info_proc_cmd_exe): Likewise.
11382 (linux_nat_info_proc_cmd_all): Likewise.
11383 (linux_target_install_ops): Install linux_nat_info_proc.
11384 (_initialize_linux_nat): No longer install "info proc" command
11387 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11389 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11390 * config.in, configure: Regenerate.
11392 * target.h (struct target_ops): Add to_fileio_readlink.
11393 (target_fileio_readlink): Add prototype.
11394 * target.c (target_fileio_readlink): New function.
11396 * inf-child.c: Conditionally include <sys/param.h>.
11397 (inf_child_fileio_readlink): New function.
11398 (inf_child_target): Install it.
11400 * remote.c (PACKET_vFile_readlink): New enum value.
11401 (remote_hostio_readlink): New function.
11402 (init_remote_ops): Install it.
11403 (_initialize_remote): Handle vFile:readlink packet type.
11405 2012-01-20 Pedro Alves <palves@redhat.com>
11406 Ulrich Weigand <ulrich.weigand@linaro.org>
11408 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11409 * config.in, configure: Regenerate.
11411 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11412 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11413 (target_fileio_open): Add prototype.
11414 (target_fileio_pwrite): Likewise.
11415 (target_fileio_pread): Likewise.
11416 (target_fileio_close): Likewise.
11417 (target_fileio_unlink): Likewise.
11418 (target_fileio_read_alloc): Likewise.
11419 (target_fileio_read_stralloc): Likewise.
11421 * target.c: Include "gdb/fileio.h".
11422 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11423 (default_fileio_target): New function.
11424 (target_fileio_open): Likewise.
11425 (target_fileio_pwrite): Likewise.
11426 (target_fileio_pread): Likewise.
11427 (target_fileio_close): Likewise.
11428 (target_fileio_unlink): Likewise.
11429 (target_fileio_close_cleanup): Likewise.
11430 (target_fileio_read_alloc_1): Likewise.
11431 (target_fileio_read_alloc): Likewise.
11432 (target_fileio_read_stralloc): Likewise.
11434 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11435 <fcntl.h>, and <unistd.h>.
11436 (inf_child_fileio_open_flags_to_host): New function.
11437 (inf_child_errno_to_fileio_error): Likewise.
11438 (inf_child_fileio_open): Likewise.
11439 (inf_child_fileio_pwrite): Likewise.
11440 (inf_child_fileio_pread): Likewise.
11441 (inf_child_fileio_close): Likewise.
11442 (inf_child_fileio_unlink): Likewise.
11443 (inf_child_target): Install to_fileio routines.
11445 * remote.c (init_remote_ops): Install to_fileio routines.
11447 2012-01-20 Pedro Alves <palves@redhat.com>
11448 Ulrich Weigand <ulrich.weigand@linaro.org>
11450 * remote.c (remote_multi_process_p): Only check for multi-process
11451 protocol feature, do not check for extended protocol.
11452 (remote_supports_multi_process): Check for extended protocol here.
11453 (set_general_process): Likewise.
11454 (extended_remote_kill): Likewise.
11455 (remote_pid_to_str): Likewise.
11456 (remote_query_supported): Always query multiprocess mode.
11458 2012-01-20 Pedro Alves <palves@redhat.com>
11459 Ulrich Weigand <ulrich.weigand@linaro.org>
11461 * inferior.h (struct inferior): Add fake_pid_p.
11462 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11463 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11464 magic_null_ptid since the remote side doesn't provide a real PID.
11466 2012-01-19 Tom Tromey <tromey@redhat.com>
11468 * NEWS: Combine the two Python sections.
11470 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11472 * target.h (target_close): Update comment on the target's unpush state.
11474 2012-01-19 Pedro Alves <palves@redhat.com>
11476 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11477 linux_nat_async directly instead of going through the target
11479 * target.c (unpush_target): Close target after unpushing it, not
11482 2012-01-19 Gary Benson <gbenson@redhat.com>
11484 * mdebugread.c (sort_blocks): Replace integer constants with ones
11485 derived from FIRST_LOCAL_BLOCK.
11487 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11488 Jan Kratochvil <jan.kratochvil@redhat.com>
11491 * symfile.c (find_separate_debug_file): New function.
11492 (terminate_after_last_dir_separator): Likewise.
11493 (find_separate_debug_file_by_debuglink): Also try realpath.
11494 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11495 * configure: Regenerate.
11496 * config.in: Regenerate.
11498 2012-01-18 Doug Evans <dje@google.com>
11500 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11501 (main.o): Remove rule.
11502 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11503 (--with-sysroot): Rewrite.
11504 * configure: Regenerate.
11505 * config.in: Regenerate.
11507 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11509 * parse.c (initialize_expout): New function.
11510 (reallocate_expout): Likewise.
11511 (parse_exp_in_context): Use `initialize_expout' and
11512 `reallocate_expout' when appropriate.
11514 2012-01-18 Pedro Alves <palves@redhat.com>
11516 * record.c (struct record_breakpoint, record_breakpoint_p)
11517 (record_breakpoints): New.
11518 (record_insert_breakpoint, record_remove_breakpoint): Manage
11519 record breakpoints list. Only remove breakpoints from the
11520 inferior if they had been inserted there in the first place.
11522 2012-01-17 Doug Evans <dje@google.com>
11524 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11525 if we know we don't have a file name to look for.
11527 2012-01-17 Pedro Alves <palves@redhat.com>
11529 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11530 the frame's stop reason is UNWIND_UNAVAILABLE.
11532 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11534 Fix compilation error.
11535 * m2-exp.y (yyerror): Use ANSI C prototype.
11537 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11539 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11540 (growbuf_by_size): Likewise.
11541 (yyerror): Likewise.
11542 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11543 (modblock): Remove variable (was #if 0'ed).
11544 (parse_number): Convert prototype from K&R to ANSI C.
11545 (yyerror): Likewise.
11546 * objc-exp.y (parse_number): Likewise.
11547 (yyerror): Likewise.
11548 (yylex): Remove #if 0'ed code.
11549 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11550 (yyerror): Likewise.
11552 2012-01-16 Tom Tromey <tromey@redhat.com>
11555 * symtab.h (compare_filenames_for_search): Declare.
11556 * symtab.c (compare_filenames_for_search): New function.
11557 (iterate_over_some_symtabs): Use it.
11558 * symfile.h (struct quick_symbol_functions)
11559 <map_symtabs_matching_filename>: Change spec.
11560 * psymtab.c (partial_map_symtabs_matching_filename): Use
11561 compare_filenames_for_search. Update for new spec.
11562 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11563 compare_filenames_for_search. Update for new spec.
11564 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11566 2012-01-16 Tom Tromey <tromey@redhat.com>
11569 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11570 (struct main_type) <flag_flag_enum>: New field.
11571 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11572 * NEWS: Add entries.
11573 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11575 * python/lib/gdb/printing.py (_EnumInstance): New class.
11576 (FlagEnumerationPrinter): Likewise.
11578 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11580 * breakpoint.c (create_sals_from_address_default): New function.
11581 (create_breakpoints_sal_default): Likewise.
11582 (decode_linespec_default): Likewise.
11583 (is_marker_spec): Removed.
11584 (strace_marker_p): New function.
11585 (init_breakpoint_sal): Using `strace_marker_p' instead of
11587 (create_breakpoint): Call method `create_sals_from_address' from
11588 breakpoint_ops, replacing code that created SALs conditionally
11589 on the type of the breakpoint. Call method `create_breakpoints_sal',
11590 replacing code that created breakpoints conditionally on the type
11592 (base_breakpoint_create_sals_from_address): New function.
11593 (base_breakpoint_create_breakpoints_sal): Likewise.
11594 (base_breakpoint_decode_linespec): Likewise.
11595 (base_breakpoint_ops): Add methods
11596 `base_breakpoint_create_sals_from_address',
11597 `base_breakpoint_create_breakpoints_sal' and
11598 `base_breakpoint_decode_linespec'.
11599 (bkpt_create_sals_from_address): New function.
11600 (bkpt_create_breakpoints_sal): Likewise.
11601 (bkpt_decode_linespec): Likewise.
11602 (tracepoint_create_sals_from_address): Likewise.
11603 (tracepoint_create_breakpoints_sal): Likewise.
11604 (tracepoint_decode_linespec): Likewise.
11605 (strace_marker_create_sals_from_address): Likewise.
11606 (strace_marker_create_breakpoints_sal): Likewise.
11607 (strace_marker_decode_linespec): Likewise.
11608 (strace_marker_breakpoint_ops): New variable.
11609 (addr_string_to_sals): Remove `marker_spec'. Call method
11610 `decode_linespec' from breakpoint_ops, replacing code that decoded
11611 an address string into a SAL. Use `strace_marker_p' instead of
11613 (strace_command): Decide whether we are dealing with a static
11614 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11615 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11616 * breakpoint.h (linespec_result, linespec_sals): New forward
11618 (breakpoint_ops) <create_sals_from_address>,
11619 <create_breakpoints_sal>, <decode_linespec>: New methods.
11621 2012-01-14 Doug Evans <dje@google.com>
11623 * NEWS: Update text for "maint set python print-stack".
11624 It is deprecated in gdb 7.4 and deleted in 7.5.
11626 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11628 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11629 including curses.h.
11631 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11633 * configure: Regenerate.
11634 * config.in: Regenerate.
11636 2012-01-12 Keith Seitz <keiths@redhat.com>
11639 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11640 (ANONYMOUS_UNION_NAME): Define.
11641 (is_path_expr_parent): New function.
11642 (get_path_expr_parent): New function.
11643 (is_anonymous_child): New function.
11644 (create_child_with_value): If the child is anonymous and without
11645 a name, assign an object name to it.
11646 (c_describe_child): Use get_path_expr_parent to determine
11647 the parent expression.
11648 If there field represents an anonymous struct or union and
11649 has no name, set an appropriate display name and expression.
11650 (cplus_describe_child): Likewise.
11652 2012-01-12 Pedro Alves <palves@redhat.com>
11654 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11655 available when %ebp is found to be zero (outermost).
11657 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11659 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11660 an internal gdb_static_assert.
11661 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11663 2012-01-11 Tom Tromey <tromey@redhat.com>
11666 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11667 catch" and "catch throw".
11669 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11671 * blockframe.c (block_innermost_frame): Start search from selected
11672 frame, if present, or otherwise the current frame.
11674 * c-exp.y (variable): Update innermost_block for
11675 'block COLONCOLON NAME' clause.
11676 * m2-exp.y (variable): Ditto.
11677 * objc-exp.y (variable): Ditto.
11679 2012-01-10 Tom Tromey <tromey@redhat.com>
11682 * python/python.c (finish_python_initialization): Set sys.argv.
11684 2012-01-10 Doug Evans <dje@google.com>
11686 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11687 "want_line_info". All callers updated.
11688 (dwarf_decode_lines_1): New function.
11689 (handle_DW_AT_stmt_list): Add function comment.
11690 New arg "want_line_info". All callers updated.
11691 (read_file_scope,read_type_unit_scope): Move comment from
11692 handle_DW_AT_stmt_list to here.
11694 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11696 Fix regression after libiberty/ update for GCC PR 6057 and others.
11697 * c-exp.y (operator) <OPERATOR DELETE>
11698 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11699 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11700 (make_builtin_type, make_name): New variable i, add gdb_assert.
11701 (operator) <OPERATOR NEW>: Update ARGS to 3.
11702 (operator) <OPERATOR DELETE>: Add trailing space.
11703 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11704 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11705 * cp-support.c (cp_canonicalize_string): Check NULL from
11706 cp_comp_to_string, call warning and return.
11708 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11710 Fix duplicate .o files after omitting libbfd.a.
11711 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11712 (SFILES): Add corelow.c.
11713 (COMMON_OBS): Add corelow.o.
11714 (ALLDEPFILES): Remove corelow.c.
11715 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11716 * config/alpha/alpha-osf3.mh: Likewise.
11717 * config/alpha/fbsd.mh: Likewise.
11718 * config/arm/nbsdaout.mh: Likewise.
11719 * config/arm/nbsdelf.mh: Likewise.
11720 * config/i386/i386gnu.mh: Likewise.
11721 * config/ia64/hpux.mh: Likewise.
11722 * config/ia64/linux.mh: Likewise.
11723 * config/m32r/linux.mh: Likewise.
11724 * config/m68k/linux.mh: Likewise.
11725 * config/mips/irix5.mh: Likewise.
11726 * config/mips/irix6.mh: Likewise.
11727 * config/pa/hpux.mh: Likewise.
11728 * config/pa/linux.mh: Likewise.
11729 * config/powerpc/aix.mh: Likewise.
11730 * config/sparc/linux.mh: Likewise.
11731 * config/sparc/linux64.mh: Likewise.
11732 * config/sparc/sol2.mh: Likewise.
11733 * config/vax/vax.mh: Likewise.
11734 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11735 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11736 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11737 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11738 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11739 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11740 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11741 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11742 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11743 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11744 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11745 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11746 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11747 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11748 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11749 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11750 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11751 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11752 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11753 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11754 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11755 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11756 corelow.o from gdb_target_obs.
11757 * corefile.c (core_target): Update the comment on NULL value.
11758 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11759 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11760 MATCHES. Drop YUMMY set on NULL.
11761 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11762 reclaim CORE_DATA if it is already NULL.
11764 2012-01-09 Doug Evans <dje@google.com>
11766 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11767 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11769 2012-01-09 Keith Seitz <keiths@redhat.com>
11771 * breakpoint.c (wrapper.h): Don't include.
11773 2012-01-09 Keith Seitz <keiths@redhat.com>
11775 * Makefile.in (SFILES): Remove wrapper.c.
11776 (HFILES_NO_SRCDIR): Remove wrapper.h.
11777 (COMMON_OBS): Remove wrapper.o.
11778 * cli/cli-interp.c: Don't inlude wrapper.h.
11779 * corelow.c: Likewise.
11780 (core_open): Replace gdb_target_find_new_threads with
11781 TRY_CATCH around target_find_new_threads.
11782 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11783 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11784 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11785 evaluate_expression.
11786 (varobj_set_value): Likewise for evaluate_expression and
11788 (install_new_variable): Likewise for value_fetch_lazy.
11789 (adjust_value_for_child_access): Likewise for value_ind.
11790 (c_describe_child): Likewise for value_subscript and
11792 (c_value_of_root): Likewise for evaluate_expression.
11793 * wrapper.c: Remove.
11794 * wrapper.h: Remove.
11796 2012-01-09 Doug Evans <dje@google.com>
11798 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11799 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11800 "abfd" args with "section". All callers updated.
11801 Error checking code moved ...
11802 (error_check_comp_unit_head): ... here. New function.
11803 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11804 Delete arg "abfd". New arg "type_offset". All callers updated.
11805 (create_debug_types_hash_table): Simplify by using
11806 read_and_check_type_unit_head.
11808 * parser-defs.h (namecopy): Delete.
11809 * parse.c (namecopy, namecopy_size): Move into copy_name.
11811 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11813 Partially fix duplicate .o files after omitting libbfd.a.
11814 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11815 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11816 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11817 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11818 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11819 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11820 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11822 2012-01-09 Pedro Alves <palves@redhat.com>
11824 * MAINTAINERS: Update my email address.
11826 2012-01-08 Doug Evans <dje@google.com>
11828 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11829 n_type_units. Rename type_comp_units to all_type_units.
11831 (add_signatured_type_cu_to_table): Renamed from
11832 add_signatured_type_cu_to_list. All callers updated.
11834 * gdbtypes.h (struct cplus_struct_type): Delete member
11835 nfn_fields_total. All uses removed.
11837 2012-01-06 Doug Evans <dje@google.com>
11839 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11841 (dwarf2_find_comp_unit): Delete.
11842 (process_psymtab_comp_unit): Make result "void".
11843 Delete args buffer, info_ptr, buffer_size, and replace with
11844 "section". All callers updated.
11845 (dwarf2_build_psymtabs_hard): Simplify.
11847 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11848 Thiago Jung Bauermann <bauerman@br.ibm.com>
11850 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11851 before `struct gdb_exception'.
11852 * breakpoint.c (update_global_location_list_nothrow)
11853 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11854 * cp-abi.c (value_rtti_type): Likewise.
11855 * cp-support.c (cp_validate_operator): Likewise.
11856 * infrun.c (insert_exception_resume_breakpoint)
11857 (check_exception_resume, keep_going): Likewise.
11858 * mi-interp.c (mi_breakpoint_created)
11859 (mi_breakpoint_modified): Likewise.
11860 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11861 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11862 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11864 2012-01-05 Doug Evans <dje@google.com>
11866 * dwarf2read.c (statement_prologue): Delete, unused.
11868 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11869 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11871 * dwarf2read.c (comp_unit_header): Delete, unused.
11873 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11875 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11876 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11878 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11880 * infrun.c (normal_stop): Don't skip calling the normal_stop
11881 observers if the thread was doing a multi-step, but stopped for
11882 some reason other than stepping.
11884 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11886 * cli/cli-decode.h: Add comments.
11887 (CMD_LIST_AMBIGUOUS): Moved to command.h
11888 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11889 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11890 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11891 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11892 (add_com, add_com_alias, add_info, add_info_alias)
11893 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11895 * command.h: Add and adjust comments.
11896 (CMD_LIST_AMBIGUOUS): Moved here.
11897 (help_cmd, help_cmd_list): Delete declarations.
11899 2012-01-04 Doug Evans <dje@google.com>
11901 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11902 All callers updated.
11903 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11904 Replace all arguments with "per_cu". All callers updated.
11906 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11908 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11909 New arg "per_cu". All callers updated.
11911 Delete #if 0'd out code.
11912 * language.c (binop_result_type): Delete.
11913 (simple_type, ordered_type, same_type, integral_type): Delete.
11914 (numeric_type, character_type, string_type, boolean_type): Delete.
11915 (float_type, structured_type): Delete.
11916 * language.h: Update.
11918 2012-01-04 Tom Tromey <tromey@redhat.com>
11920 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11922 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11924 * corefile.c (close_exec_file): Delete.
11925 (reopen_exec_file): Remove commented out code that seems related
11926 to close_exec_file, which is being deleted here.
11927 * inferior.h (close_exec_file): Delete.
11928 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11930 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11932 * ada-lang.c: #include "cli/cli-utils.h".
11933 (get_selections): Use skip_spaces.
11934 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11935 (catch_ada_exception_command_split): Use skip_spaces.
11936 (ada_decode_assert_location): Likewise.
11938 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11940 * linespec.c (decode_line_internal): Check for C++ or Java
11941 compound constructs only if the current language is C, C++
11944 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11947 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11948 Joel Brobecker <brobecker@adacore.com>
11949 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11950 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11952 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11953 fall through into AT_ENTRY_POINT.
11954 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11955 DUMMY_ADDR with it.
11956 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11957 PPC_INSN_SIZE skip to 3 times.
11959 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11961 * linespec.c (add_minsym): Preserve function descriptors.
11963 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11965 * breakpoint.c (all_locations_are_pending): Consider locations
11966 in program spaces executing during startup pending as well.
11968 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11970 Copyright year update in most files of the GDB Project.
11972 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11974 * copyright.sh: Delete.
11975 * copyright.py: Rewrite.
11977 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11979 * gnulib/extra/update-copyright: New file, imported from gnulib.
11981 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11983 * README (Copyright and License Notices): New section.
11985 2012-01-03 Tom Tromey <tromey@redhat.com>
11988 * python/py-value.c (valpy_dereference, valpy_get_address
11989 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11990 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11991 (valpy_absolute, valpy_richcompare): Free intermediate values.
11993 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11995 * ada-lang.c: Reformat the copyright notice.
11997 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11999 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12000 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12001 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12002 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12003 Revert this part of:
12004 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12005 Build gdb directly from *.o files not using libgdb.a.
12006 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12008 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12010 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12011 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12012 Reformat the copyright header.
12014 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12016 Revert this part of:
12017 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12018 Remove the gdbtui binary.
12019 * gdb.c (main): Remove args.interpreter_p initialization.
12020 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12021 * main.h (struct captured_main_args): Remove interpreter_p.
12023 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12025 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12027 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12029 * top.c (print_gdb_version): Update copyright year.
12031 2012-01-02 Yao Qi <yao@codesourcery.com>
12033 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12035 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12036 Joel Brobecker <brobecker@adacore.com>
12038 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12039 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12041 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12042 fall through into AT_ENTRY_POINT.
12043 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12044 DUMMY_ADDR with it.
12045 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12046 PPC_INSN_SIZE skip to 3 times.
12048 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12050 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12052 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12054 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12056 Build gdb directly from *.o files not using libgdb.a.
12057 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12058 (COMMON_OBS): Remove solib-target.o.
12059 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12060 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12061 (LIBGDB_OBS, libgdb.a): Move it above.
12062 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12063 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12064 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12065 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12066 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12067 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12068 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12069 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12070 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12071 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12072 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12073 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12074 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12075 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12076 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12077 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12078 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12079 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12080 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12081 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12082 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12083 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12084 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12085 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12086 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12087 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12088 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12090 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12092 Remove the gdbtui binary.
12093 * .gitignore (/gdbtui): Remove.
12094 * Makefile.in (TUI): Remove.
12095 (SUBDIR_TUI_OBS): Remove tui-main.o.
12096 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12097 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12098 (tui-main.o): Remove.
12099 (all_object_files): Remove tui-main.o.
12100 * NEWS: New note for the gdbtui removal.
12101 * configure: Rebuilt.
12102 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12103 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12104 CONFIG_UNINSTALL respectively.
12105 * gdb.c (main): Remove args.interpreter_p initialization.
12106 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12107 * main.h (struct captured_main_args): Remove interpreter_p.
12108 * tui/tui-main.c: Remove.
12110 2012-01-01 Doug Evans <dje@google.com>
12112 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12113 (dwarf2_physname, read_import_statement): Ditto.
12114 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12115 (process_structure_scope read_subroutine_type): Ditto.
12116 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12117 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12118 (dwarf2_fetch_die_location_block): Ditto.
12119 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12121 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12122 All callers updated.
12123 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12124 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12125 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12127 * dwarf2read.c (load_cu): Move assert to more useful location.
12129 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12130 All callers updated.
12132 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12133 (dwarf2_elf_names): Minor reformat.
12134 (dwarf2_per_cu_data): Tweak comment.
12135 (dwarf2_read_section): Fix comment.
12136 (create_all_comp_units): Fix comment.
12137 (load_full_comp_unit): Fix comment.
12138 (process_full_comp_unit): Fix comment.
12139 (read_signatured_type): Fix comment.
12141 For older changes see ChangeLog-2011.
12147 version-control: never