1 2012-12-07 Tom Tromey <tromey@redhat.com>
3 * typeprint.c (_initialize_typeprint): Set completer
4 for "whatis" and "ptype".
6 2012-12-07 Joel Brobecker <brobecker@adacore.com>
8 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
9 "sim/common/cgen-fpu.h". Remove invalid entries
10 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
11 which actually have an FSF copyright header.
13 2012-12-07 Joel Brobecker <brobecker@adacore.com>
15 * osf-share/AT386/cma_thread_io.h: Delete.
16 * osf-share/HP800/cma_thread_io.h: Delete.
17 * osf-share/README: Delete.
18 * osf-share/RIOS/cma_thread_io.h: Delete.
19 * osf-share/cma_attr.h: Delete.
20 * osf-share/cma_deb_core.h: Delete.
21 * osf-share/cma_debug_client.h: Delete.
22 * osf-share/cma_errors.h: Delete.
23 * osf-share/cma_handle.h: Delete.
24 * osf-share/cma_init.h: Delete.
25 * osf-share/cma_list.h: Delete.
26 * osf-share/cma_mutex.h: Delete.
27 * osf-share/cma_sched.h: Delete.
28 * osf-share/cma_semaphore_defs.h: Delete.
29 * osf-share/cma_sequence.h: Delete.
30 * osf-share/cma_stack.h: Delete.
31 * osf-share/cma_stack_int.h: Delete.
32 * osf-share/cma_tcb_defs.h: Delete.
33 * osf-share/cma_util.h: Delete.
34 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
36 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
37 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
38 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
40 2012-12-06 Pedro Alves <palves@redhat.com>
41 Tom Tromey <tromey@redhat.com>
43 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
45 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
48 * mi/mi-cmd-var.c (varobj_update_one): Take value of
49 attribute "dynamic" and "displayhint" from printed child,
50 not the root variable.
52 2012-12-06 Joel Brobecker <brobecker@adacore.com>
54 * aix-thread.c (getthrds): Fix type of 4th parameter.
55 (get_signaled_thread): Change type of variable ktid to tid_t.
57 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
59 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
60 value of get_frame_block.
62 2012-12-05 Pierre Muller <muller@sourceware.org>
64 Avoid memory leaks on struct cmd_list_element.doc field.
65 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
66 if flags contains DOC_ALLOCATED.
67 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
69 (delete_cmd): Handle DOC_ALLOCATED flag.
70 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
71 in flags filed of struct cmd_list_element.
72 (struct cmd_list_element): Document new flag item.
74 2012-12-04 Doug Evans <dje@google.com>
76 * symmisc.c: Whitespace fixes.
78 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
80 * i386-tdep.c (i386_skip_prologue): Using symbol table
81 to find the end of prologue for clang compiled binaries.
82 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
83 to find the end of prologue for clang compiled binaries.
85 2012-12-03 Doug Evans <dje@google.com>
87 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
88 (dw2_find_symbol_file): Delete unused local file_data.
90 2012-12-03 Tom Tromey <tromey@redhat.com>
92 * ada-exp.y (write_object_renaming, write_var_or_type)
93 (write_ambiguous_var, write_var_from_sym): Make blocks const.
94 * ada-lang.c (replace_operator_with_call)
95 (find_old_style_renaming_symbol): Make blocks const.
96 * ada-lang.h (ada_find_renaming_symbol): Update.
97 (struct ada_symbol_info) <block>: Now const.
98 * breakpoint.c (watch_command_1): Update.
99 * breakpoint.h (struct watchpoint) <exp_valid_block,
100 cond_exp_valid_block>: Now const.
101 * c-exp.y (classify_inner_name, classify_name): Make block
103 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
105 * expression.h (innermost_block, parse_exp_1): Update.
106 (union exp_element) <block>: Now const.
107 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
108 (lookup_struct): Make block argument const.
109 * gdbtypes.h (lookup_template_type): Update.
110 * go-exp.y (classify_name, classify_packaged_name)
111 (package_name_p): Make block argument const.
112 * objc-lang.c (lookup_struct_typedef): Make block argument const.
113 * objc-lang.h (lookup_struct_typedef): Update.
114 * parse.c (parse_exp_in_context, parse_exp_1)
115 (write_exp_elt_block): Make block arguments const.
116 (expression_context_block, innermost_block): Now const.
117 * parser-defs.h (write_exp_elt_block): Update.
118 (expression_context_block, innermost_block, block_found): Now
120 * printcmd.c (struct display) <block>: Now const.
121 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
122 * valops.c (address_of_variable): Make block argument const.
123 * value.h (value_of_variable): Update.
124 * varobj.c (struct varobj_root) <valid_block>: Now const.
126 2012-11-30 Yao Qi <yao@codesourcery.com>
128 * breakpoint.c (print_one_breakpoint_location): Indent code.
130 2012-11-30 Yao Qi <yao@codesourcery.com>
132 * breakpoint.c (print_one_breakpoint_location): Combine two
133 blocks handling 'hit count' together.
135 2012-11-30 Yao Qi <yao@codesourcery.com>
137 * infrun.c (error_is_running, ensure_not_running): Move them
139 * infcmd.c (error_is_running, ensure_not_running): ... here.
141 * inferior.h: Remove declarations of error_is_running and
144 2012-11-30 Yao Qi <yao@codesourcery.com>
146 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
149 2012-11-30 Yao Qi <yao@codesourcery.com>
151 * infrun.c: Make the declaration of 'init_infwait_state'
153 (init_infwait_state): Make it 'static'.
155 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
157 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
158 return value to void to avoid compiler warning.
160 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
162 * opencl-lang.c (opencl_print_type): New function.
163 (opencl_language_arch_info): Install it.
165 2012-11-29 Tom Tromey <tromey@redhat.com>
167 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
169 * common/common-utils.c (xasprintf, xvasprintf): Remove.
170 * common/common-utils.h (xasprintf, xvasprintf): Remove.
172 2012-11-29 Jerome Guitton <guitton@adacore.com>
174 * ada-lang.c (ada_is_interface_tag): New function.
175 (ada_is_ignored_field): Add interface tags to the list
178 2012-11-29 Jerome Guitton <guitton@adacore.com>
180 * ada-lang.h (ada_tag_value_at_base_address): New function
182 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
184 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
185 relocate the class-wide value if need be.
186 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
187 Let ada_tag_value_at_base_address relocate the class-wide access/ref
188 before dereferencing it.
189 * ada-valprint.c (ada_val_print_1): Relocate to base address
190 before displaying the content of an interface-wide ref.
192 2012-11-29 Jerome Guitton <guitton@adacore.com>
194 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
196 2012-11-29 Joel Brobecker <brobecker@adacore.com>
200 2012-11-29 Yao Qi <yao@codesourcery.com>
201 Tom Tromey <tromey@redhat.com>
203 * eval.c (evaluate_subexp_standard): Get the correct pointer
204 type for TYPE_CODE_MEMBERPTR.
206 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
208 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
209 since now it is being done by binutils' powerpc_init_dialect().
211 2012-11-28 Tom Tromey <tromey@redhat.com>
214 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
215 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
217 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
218 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
219 (gdb_bfd_openr_next_archived_file): Use it.
221 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
223 * configure.ac: Check for linux/perf_event.h.
224 * config.in: Regenerated.
225 * configure: Regenerated.
227 2012-11-28 Yao Qi <yao@codesourcery.com>
229 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
230 abbreviate 'delete tracepoints' to 'delete tr'.
231 * corefile.c (_initialize_core): Call add_alias_cmd to
232 abbreviate 'set gnutarget' to 'set g'.
233 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
234 'show convenience' to 'show conv'.
236 2012-11-27 Joel Brobecker <brobecker@adacore.com>
238 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
239 call to sparc_supply_fpregset.
240 (fill_fpregset): Fix first parameter in call to
241 sparc_collect_fpregset.
243 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
244 Kazu Hirata <kazu@codesourcery.com>
245 Yao Qi <yao@codesourcery.com>
247 * objfiles.c (init_entry_point_info): Call
248 gdbarch_convert_from_func_ptr_addr and
249 gdbarch_addr_bits_remove here ...
250 (entry_point_address_query): ... instead of here.
251 * solib-svr4.c (exec_entry_point): Call
252 gdbarch_addr_bits_remove.
253 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
256 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
257 Yao Qi <yao@codesourcery.com>
259 * eval.c (evaluate_subexp_standard): Add handling of
260 TYPE_CODE_MEMBERPTR when calling functions. Correct the
261 result of ptype for calling a TYPE_CODE_METHODPTR.
263 2012-11-27 Yao Qi <yao@codesourcery.com>
265 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
269 2012-11-26 Alexander Larsson <alexl@redhat.com>
270 Jan Kratochvil <jan.kratochvil@redhat.com>
271 Tom Tromey <tromey@redhat.com>
273 * NEWS: Mention mini debuginfo feature.
274 * minidebug.c: New file.
275 * configure.ac: Check for lzma.
276 * configure, config.in: Rebuild.
277 * Makefile.in (LIBLZMA): New variable.
278 (CLIBS): Include LIBLZMA.
279 (SFILES): Mention minidebug.c.
280 (COMMON_OBS): Mention minidebug.o.
281 * symfile.c (read_symbols): New function.
282 (syms_from_objfile, reread_symbols): Call it.
283 * symfile.h (find_separate_debug_file_in_section): Declare.
285 2012-11-26 Keith Seitz <keiths@redhat.com>
287 * exec.c (exec_file_attach): Move cleanup after verifying that
288 memory has in fact been allocated.
290 2012-11-26 Tom Tromey <tromey@redhat.com>
292 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
293 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
295 * skip.c (skip_info): Use SYMBOL_SYMTAB.
297 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
298 Pedro Alves <palves@redhat.com>
300 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
301 size parameter passed to readlink by one byte.
302 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
303 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
304 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
305 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
308 2012-11-26 Yao Qi <yao@codesourcery.com>
310 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
311 extraneous parentheses.
313 2012-11-26 Yao Qi <yao@codesourcery.com>
315 * remote.c (remote_start_remote): Typo fix.
317 2012-11-23 David S. Miller <davem@davemloft.net>
319 * sparc-tdep.h (struct sparc_fpregset): New data structure.
320 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
321 sparc32_sol2_fpregset): Declare new globals.
322 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
324 * sparc64-tdep.h (sparc64_supply_fpregset,
325 sparc64_collect_fpregset): Likewise.
326 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
328 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
329 (sparc_fpregset): Declare new global.
330 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
332 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
334 (fill_fpregset): Likewise.
335 (_initialize_sparc_linux_nat): Set sparc_fpregset to
336 sparc32_bsd_fpregset.
337 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
338 sparc32_bsd_fpregset down into handler.
339 (sparc32_linux_collect_core_fpregset): Likewise.
340 * sparc-nat.c (sparc_fpregset): Define.
341 (sparc_supply_fpregset): Add 'fpregset' argument.
342 (sparc_collect_fpregset): Likewise.
343 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
344 into fpregset handler.
345 (sparc_store_inferior_registers): Likewise.
346 (_initialize_sparc_nat): Set sparc_fpregset to
347 sparc32_sunos4_fpregset if NULL.
348 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
350 (fill_fpregset): Likewise.
351 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
352 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
353 use it to compute offsets.
354 (sparc32_collect_fpregset): Likewise.
355 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
356 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
358 (fill_fpregset): Likewise.
359 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
361 (sparc64_linux_collect_core_fpregset): Likewise.
362 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
363 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
364 use it to compute offsets.
365 (sparc64_collect_fpregset): Likewise.
366 (sparc64_bsd_fpregset): Define.
367 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
368 sparc64_bsd_fpregset down into handler.
369 (sparc64fbsd_collect_fpregset): Likewise.
370 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
371 and pass sparc{32,64}_bsd_fpregset down into handler.
372 (sparc64nbsd_collect_fpregset): Likewise.
373 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
374 sparc64_bsd_fpregset down into handler.
375 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
376 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
377 to sparc32_bsd_fpregset.
378 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
379 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
380 (sparc32nbsd_supply_fpregset): Likewise.
382 2012-11-21 Tom Tromey <tromey@redhat.com>
384 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
386 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
388 * c-typeprint.c (c_type_print_base): Update.
390 2012-11-21 Yao Qi <yao@codesourcery.com>
393 * gdbarch.sh (smash_text_address): Remove.
394 * gdbarch.c, gdbarch.h: Regenerate.
395 * arm-tdep.c (arm_smash_text_address): Remove.
396 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
397 * hppa-tdep.c (hppa_smash_text_address): Remove.
398 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
399 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
401 * coffread.c (coff_symtab_read): Caller update.
402 * dbxread.c (process_one_symbol): Likewise.
403 * elfread.c (record_minimal_symbol): Likewise.
404 * somread.c (som_symtab_read): Likewise.
406 2012-11-20 Pierre Muller <muller@sourceware.org>
408 ARI fixes: sprintf rule.
409 Replace sprintf function calls for char arrays by
410 calls to xsnprintf calls.
411 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
412 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
413 (arm_neon_quad_read, arm_pseudo_read): Ditto.
414 (arm_neon_quad_write, arm_pseudo_write): Ditto.
415 * breakpoint.c (condition_completer): Ditto.
416 (create_tracepoint_from_upload): Ditto.
417 * dwarf2read.c (file_full_name): Ditto.
418 * gcore.c (gcore_command): Ditto.
419 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
420 * go32-nat.c (go32_sysinfo): Ditto.
421 * interps.c (interp_set): Ditto.
422 * m32c-tdep.c (make_types): Ditto.
423 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
424 * remote-m32r-sdi.c (m32r_open): Ditto.
425 * sol-thread.c (td_err_string): Ditto.
426 (td_state_string, solaris_pid_to_str): Ditto.
427 * symtab.c (gdb_mangle_name): Ditto.
428 * cli/cli-script.c (execute_control_command): Ditto.
429 (define_command, document_command): Ditto.
430 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
431 * tui/tui-stack.c (tui_make_status_line): Ditto.
432 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
434 2012-11-20 Mike Frysinger <vapier@gentoo.org>
436 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
437 it when looking at ptr->func.
438 * command.h (complete_on_cmdlist): Add a fourth arg.
439 * completer.c (complete_line_internal): Add local ignore_help_classes,
440 and set it to 1 when reason is not handle_help. Pass this down to
441 lookup_cmd_1 and complete_on_cmdlist.
443 2012-11-20 Tom Tromey <tromey@redhat.com>
445 * completer.c (count_struct_fields): Remove.
446 (expression_completer): Don't call count_struct_fields.
448 2012-11-20 Pedro Alves <palves@redhat.com>
450 * annotate.c (breakpoints_changed): Rename to ...
451 (annotate_breakpoints_changed): ... this.
452 (annotate_stopped, breakpoint_changed): Adjust caller.
453 * annotate.h (breakpoints_changed): Rename to ...
454 (annotate_breakpoints_changed): ... this.
455 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
456 (do_map_commands_command, init_raw_breakpoint, clear_command)
457 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
459 2012-11-20 David S. Miller <davem@davemloft.net>
461 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
462 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
464 (get_cores_used_by_process): Update comment.
466 2012-11-20 Yao Qi <yao@codesourcery.com>
468 * objfiles.c (init_entry_point_info): Remove trailing spaces.
470 2012-11-20 Yao Qi <yao@codesourcery.com>
472 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
473 to deprecated_context_hook.
475 2012-11-19 Yao Qi <yao@codesourcery.com>
477 * infrun.c (infwait_state): Add static.
479 2012-11-16 Keith Seitz <keiths@redhat.com>
482 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
483 parameter and pass it to lookup_symbol_file.
484 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
485 to search base classes.
486 (cp_lookup_symbol_namespace): Likewise.
487 (lookup_namespace_scope): Likewise.
488 (lookup_symbol_file): Add SEARCH parameter.
489 If SEARCH is non-zero and no symbol is found, lookup the class
490 and call cp_lookup_nested_symbol.
491 (find_symbol_in_baseclass): New function.
492 (cp_lookup_nested_symbol): Do not let
493 cp_lookup_symbol_in_namespace search through base classes.
494 Do that later when there is no global symbol match.
496 2012-11-16 Doug Evans <dje@google.com>
498 * main.c (gdb_datadir_provided): New static global.
499 (get_init_files): If --data-directory is provided,
500 and SYSTEM_GDBINIT lives in data-directory, look for it there.
503 2012-11-15 Pierre Muller <muller@sourceware.org>
505 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
506 * gdb_stat.h: Delete. Moved to common directory.
507 * common/gdb_stat.h: New file.
508 * gdb_wait.h: Delete. Moved to common directory.
509 * common/gdb_wait.h: New file.
510 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
512 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
514 (stat.h rule): Adapt to new gdb_stat.h location.
515 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
517 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
520 2012-11-15 Pierre Muller <muller@sourceware.org>
522 * configure.ac (AC_HEADER_STAT): Remove.
523 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
524 and corresponding code.
525 * configure: Regenerate.
526 * config.in: Regenerate.
528 2012-11-15 Pierre Muller <muller@sourceware.org>
530 ARI xasprintf rule fixes.
531 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
532 instead of xasprintf.
533 (open_and_init_dwp_file): Ditto.
535 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
537 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
540 2012-11-14 Tom Tromey <tromey@redhat.com>
542 * configure, config.in: Rebuild.
543 * configure.ac: Don't check for ctype.h, time.h.
544 * expprint.c: Don't use HAVE_CTYPE_H.
546 2012-11-13 Tom Tromey <tromey@redhat.com>
548 * gdbarch.h, gdbarch.c: Rebuild.
549 * gdbarch.sh (set_target_gdbarch): Rename from
550 deprecated_target_gdbarch_select_hack.
551 * arch-utils.c (gdbarch_update_p): Update.
552 (set_gdbarch_from_file): Update.
554 2012-11-14 Pierre Muller <muller@sourceware.org>
556 * MAINTAINERS (Responsible Maintainers/misc): Add myself
557 as responsible of contrib/ari directory.
559 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
560 Yao Qi <yao@codesourcery.com>
562 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
564 (arm_m_exception_cache, arm_m_exception_this_id)
565 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
566 (arm_m_exception_unwind): New.
567 (arm_gdbarch_init): Register arm_m_exception_unwind.
569 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
571 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
572 parameter COUNT, for pattern filling of memory regions.
575 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
577 * disasm.h (DISASSEMBLY_FILENAME): New macro.
578 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
579 to print_source_lines ().
580 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
582 * source.c (print_source_lines_base): Prefix source line with
583 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
585 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
587 * symtab.h (print_source_lines_flags): New enum.
588 * source.c (print_source_lines_base): Change noerror to flags.
589 (print_source_lines): Change noerror to flags.
591 2012-11-13 Pierre Muller <muller@sourceware.org>
593 ARI fixes: Avoid sprintf function use rule.
594 * charset.c (convert_between_encodings): Use xsnprintf.
595 * cli-out.c (cli_field_int): Likewise.
596 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
597 * expprint.c (op_name_standard): Likewise.
598 * frv-tdep.c (set_variant_num_gprs): Likewise.
599 (set_variant_num_fprs): Likewise.
600 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
601 * nto-tdep.c (nto_find_and_open_solib): Likewise.
602 (nto_init_solib_absolute_prefix): Likewise.
603 * source.c (init_source_path): Likewise.
604 (print_source_lines_base): Likewise.
605 * valprint.c (print_wchar): Likewise.
606 * mi/mi-out.c (mi_field_int): Likewise.
607 windows-nat.c (windows_pid_to_exec_file): Likewise.
608 (windows_create_inferior): Likewise.
609 (_initialize_check_for_gdb_ini): Likewise.
611 2012-11-12 Joel Brobecker <brobecker@adacore.com>
613 * frame.h (deprecated_frame_register_read): Renames
615 * frame.c (deprecated_frame_register_read): Renames
616 frame_register_read. Update all callers.
617 * i386-tdep.c: Update all callers of frame_register_read.
618 * infcmd.c: Likewise.
620 * mips-tdep.c: Likewise.
621 * mt-tdep.c: Likewise.
622 * sh64-tdep.c: Likewise.
624 2012-11-12 Joel Brobecker <brobecker@adacore.com>
626 * frame.h (frame_register_read): Remove FIXME comment.
627 * frame.c (frame_register_read): Add suggestion explaining
628 which function to use in place of this one.
630 2012-11-12 Tom Tromey <tromey@redhat.com>
632 * python/python.c (start_type_printers): Initialize 'result_obj'.
634 2012-11-12 Tom Tromey <tromey@redhat.com>
637 * data-directory/Makefile.in (PYTHON_FILES): Add
639 * python/lib/gdb/command/type_printers.py: New file.
640 * python/lib/gdb/command/types.py (TypePrinter): New class.
641 (_get_some_type_recognizers, get_type_recognizers,
642 apply_type_recognizers, register_type_printer): New
644 * python/py-objfile.c (objfile_object) <type_printers>: New
646 (objfpy_dealloc): Decref new field.
647 (objfpy_new): Set new field.
648 (objfpy_get_type_printers, objfpy_set_type_printers): New
650 (objfile_to_objfile_object): Set new field.
651 (objfile_getset): Add "type_printers".
652 * python/py-progspace.c (pspace_object) <type_printers>: New
654 (pspy_dealloc): Decref new field.
655 (pspy_new): Set new field.
656 (pspy_get_type_printers, pspy_set_type_printers): New functions.
657 (pspace_to_pspace_object): Set new field.
658 (pspace_getset): Add "type_printers".
659 * python/python.c (start_type_printers, apply_type_printers,
660 free_type_printers): New functions.
661 (_initialize_python): Set gdb.type_printers.
662 * python/python.h (start_type_printers, apply_type_printers,
663 free_type_printers): Declare.
664 * typeprint.c (type_print_raw_options, default_ptype_flags):
665 Update for new fields.
666 (do_free_global_table, create_global_typedef_table,
667 find_global_typedef): New functions.
668 (find_typedef_in_hash): Use find_global_typedef.
669 (whatis_exp): Use create_global_typedef_table. Change cleanup
671 * typeprint.h (struct type_print_options) <global_typedefs,
672 global_printers>: New fields.
674 2012-11-12 Tom Tromey <tromey@redhat.com>
676 * c-typeprint.c (find_typedef_for_canonicalize,
677 print_name_maybe_canonical): New functions.
678 (c_print_type): Look up type name.
679 (cp_type_print_derivation_info): Add flags argument. Use
680 print_name_maybe_canonical.
681 (cp_type_print_method_args): Add wrapping.
682 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
683 (c_type_print_template_args): New function.
684 (c_type_print_base): Change wrapping. Use
685 print_name_maybe_canonical.
686 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
688 * gdbtypes.c (types_equal): No longer static.
689 * gdbtypes.h (types_equal): Declare.
690 * typeprint.c (type_print_raw_options, default_ptype_flags):
692 (struct typedef_hash_table): New.
693 (hash_typedef_field, eq_typedef_field,
694 recursively_update_typedef_hash, add_template_parameters,
695 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
696 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
697 copy_typedef_hash, find_typedef_in_hash): New functions.
698 * typeprint.h (struct type_print_options) <local_typedefs>:
700 (recursively_update_typedef_hash, add_template_parameters,
701 create_typedef_hash, free_typedef_hash,
702 make_cleanup_free_typedef_hash, copy_typedef_hash,
703 find_typedef_in_hash): Declare.
705 2012-11-12 Tom Tromey <tromey@redhat.com>
707 * cp-support.c (inspect_type,
708 replace_typedefs_qualified_name, replace_typedefs): Add
709 finder, data arguments. Call as needed.
710 (cp_canonicalize_string_full): New function.
711 (cp_canonicalize_string_no_typedefs): Rewrite.
712 * cp-support.h (canonicalization_ftype): New typedef.
713 (cp_canonicalize_string_full): Declare.
715 2012-11-12 Tom Tromey <tromey@redhat.com>
718 * c-typeprint.c (c_type_print_base): Handle print_method and
719 print_typedefs flags.
720 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
721 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
723 * typeprint.c (type_print_raw_options, default_ptype_flags):
724 Update for new field.s
725 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
726 (setprinttypelist, showprinttypelist, print_methods,
727 print_typedefs): New globals.
728 (set_print_type, show_print_type, set_print_type_methods,
729 show_print_type_methods, set_print_type_typedefs,
730 show_print_type_typedefs): New functions.
731 (_initialize_typeprint): Update documentation. Add "print
732 type methods" and "print type typedefs" parameters.
733 * typeprint.h (struct type_print_options) <print_methods,
734 print_typedefs>: New fields.
736 2012-11-12 Tom Tromey <tromey@redhat.com>
738 * c-typeprint.c (cp_type_print_method_args): Add flags
739 argument. Call c_print_type, not type_print.
740 (c_type_print_base): Call c_print_type, not type_print.
743 2012-11-12 Tom Tromey <tromey@redhat.com>
745 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
746 to type-printing functions.
747 * ada-lang.h (ada_print_type): Add argument.
748 * ada-typeprint.c (print_array_type, print_variant_clauses,
749 print_variant_part, print_selected_record_field_types,
750 print_record_field_types, print_unchecked_union_type,
751 print_func_type, ada_print_type): Add flags argument.
752 (ada_print_typedef): Update.
753 * c-exp.y (OPERATOR conversion_type_id): Update.
754 * c-lang.h (c_print_type, c_type_print_base): Update.
755 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
756 c_type_print_modifier, c_type_print_args,
757 c_type_print_varspec_suffix, c_type_print_base): Add flags
759 * cp-valprint.c (cp_print_class_member): Update.
760 * dwarf2read.c (dwarf2_compute_name): Update.
761 * f-lang.h (f_print_type): Add argument.
762 * f-typeprint.c (f_print_type): Add flags argument.
763 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
764 * go-lang.h (go_print_type): Add argument.
765 * go-typeprint.c (go_print_type): Add flags argument.
766 * jv-lang.h (java_print_type): Add argument.
767 * jv-typeprint.c (java_type_print_base, java_print_type): Add
769 * language.c (unk_lang_print_type): Add flags argument.
770 * language.h (struct language_defn) <la_print_type>: Add flags
772 (LA_PRINT_TYPE): Likewise.
773 * m2-lang.h (m2_print_type): Add argument.
774 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
775 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
776 m2_unbounded_array, m2_record_fields): Add flags argument.
777 * p-lang.h (pascal_print_type, pascal_type_print_base,
778 pascal_type_print_varspec_prefix): Add argument.
779 * p-typeprint.c (pascal_print_type,
780 pascal_type_print_varspec_prefix, pascal_print_func_args,
781 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
783 * symmisc.c (print_symbol): Update.
784 * typeprint.c (type_print_raw_options, default_ptype_flags):
786 (type_print): Update.
787 * typeprint.h (struct type_print_options): New.
788 (type_print_raw_options): Declare.
789 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
791 2012-11-10 Keith Seitz <keiths@redhat.com>
793 * breakpoint.c (clear_command): Add cleanup for
794 sals.sals if an argument is given.
796 * linespec.c (parse_linespec): Do cleanups after
797 parsing a convenience variable.
799 2012-11-10 Keith Seitz <keiths@redhat.com>
802 * c-valprint.c (c_val_print): For character arrays
803 with "print null" option on, print ellipses if
804 the output is truncated and the next character is not \000.
805 * valprint.c (MAX_WCHARS): Define.
806 (WCHAR_BUFLEN): Likewise.
807 (WCHAR_BUFLEN_MAX): Likewise.
808 (struct converted_character): New structure.
809 (count_next_character): New function.
810 (print_converted_chars_to_obstack): New function.
811 (generic_printstr): Rewrite using count_next_character
812 and print_converted_chars_to_obstack.
814 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
816 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
817 while executing the gdb command.
818 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
819 are called from prompt_for_continue.
820 * tui/tui-io.c (tui_redisplay_readline): Likewise.
822 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
826 * tui/tui.c (tui_rl_command_key): Do not call execute_command
827 but insert the command to execute in readline's buffer.
829 2012-11-09 Tom Tromey <tromey@redhat.com>
831 * gdbarch.sh (target_gdbarch): Remove macro.
832 (get_target_gdbarch): Rename to target_gdbarch.
833 * gdbarch.c, gdbarch.h: Rebuild.
834 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
835 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
836 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
837 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
838 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
839 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
840 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
841 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
842 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
843 procfs.c, progspace.c, ravenscar-thread.c, record.c,
844 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
845 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
846 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
847 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
848 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
849 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
850 target-descriptions.c, target.c, target.h, tracepoint.c,
851 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
852 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
853 python/py-inferior.c, python/python.c: Update.
855 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
857 * source.c (print_source_lines_base): Add fullname field giving
858 full path to file in mi output.
859 * NEWS: Mention the new fullname field.
861 2012-11-09 Yao Qi <yao@codesourcery.com>
863 * NEWS: Mention the fix to the ambiguity of 'fo' command.
865 2012-11-09 Pedro Alves <palves@redhat.com>
869 * infrun.c: Include target-descriptions.h.
870 (follow_exec): Fetch new target description.
872 2012-11-09 Yao Qi <yao@codesourcery.com>
874 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
877 2012-11-09 Yao Qi <yao@codesourcery.com>
879 * breakpoint.c: Declare set_tracepoint_count.
880 (install_breakpoint): Call set_tracepoint_count if B is a
882 (trace_command): Don't call set_tracepoint_count. Re-indent.
883 (strace_command, ftrace_command):
884 (create_tracepoint_from_upload): Likewise.
886 2012-11-09 Pedro Alves <palves@redhat.com>
888 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
889 (get_target_gdbarch) <gdbarch.h>: New function.
890 (startup_gdbarch) <gdbarch.h>: Declare.
891 <gdbarch.c> (target_gdbarch): Delete.
892 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
893 current inferior's gdbarch.
894 <gdbarch.c> (get_target_gdbarch): New function.
895 * inferior.c: Include target-descriptions.h.
896 (free_inferior): Free target description info.
897 (add_inferior_with_spaces): Set the inferior's initial
899 (clone_inferior_command): Copy the original inferior's target
900 description if it was user specified.
901 (initialize_inferiors): Add comment.
902 * inferior.h (struct target_desc_info): Forward declare.
903 (struct inferior) <gdbarch>: New field.
904 * linux-nat.c: Include target-descriptions.h.
905 (linux_child_follow_fork): Copy the parent's architecture and
906 target description to the child.
907 * target-descriptions.c: Include inferior.h.
908 (struct target_desc_info): New structure, holding the equivalents
910 (target_desc_fetched, current_target_desc)
911 (target_description_filename): ... these removed globals.
912 (get_tdesc_info, target_desc_info_from_user_p)
913 (copy_inferior_target_desc_info, target_desc_info_free): New.
914 (target_desc_fetched, current_target_desc)
915 (target_description_filename): Reimplemented as convenience
917 (tdesc_filename_cmd_string): New global.
918 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
919 tdescs filename ..." commands to the per-inferior equivalent.
920 (show_tdesc_filename_cmd): Get the value to show from the
921 per-inferior description filename.
922 (_initilize_target_descriptions): Change the "set/show tdesc
923 filename" commands' variable.
924 * target-descriptions.h (struct target_desc, struct target_desc_info)
925 (struct inferior): Forward declare.
926 (target_find_description, target_clear_description)
927 (target_current_description): Adjust comments.
928 (copy_inferior_target_desc_info, target_desc_info_free)
929 (target_desc_info_from_user_p). Declare.
931 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
933 * tui/tui-hooks.c (tui_about_to_proceed): New function.
934 (tui_target_wait_hook): Remove.
935 (tui_install_hooks): Install the about_to_proceed observer.
936 (tui_remove_hooks): And remove it here.
938 2012-11-08 Tom Tromey <tromey@redhat.com>
940 * linux-tdep.c (linux_make_siginfo_note): New function.
941 (linux_make_corefile_notes): Use it.
942 * corelow.c (get_core_siginfo): New function.
943 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
945 2012-11-08 Tom Tromey <tromey@redhat.com>
948 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
949 (zlib_decompress_section): Remove.
950 (gdb_bfd_map_section): Only check for compressed section
951 in mmap case. Use bfd_get_full_section_contents.
952 * osabi.c (check_note): Add 'sectsize' argument. Read
954 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
955 section data. Update for check_note change.
956 * xcoffread.c (xcoff_initial_scan): Use
957 bfd_get_full_section_contents.
958 * py-auto-load.c (auto_load_section_scripts): Use
959 bfd_get_full_section_contents.
960 * contrib/cc-with-tweaks.sh: Add -Z option.
962 2012-11-08 Tom Tromey <tromey@redhat.com>
964 * python/py-bpevent.c: Include defs.h.
965 * python/py-continueevent.c: Include defs.h.
966 * python/py-event.c: Include defs.h.
967 * python/py-event.h: Don't include defs.h.
968 * python/py-events.h: Don't include defs.h.
969 * python/py-evts.c: Include defs.h.
970 * python/py-exitedevent.c: Include defs.h.
971 * python/py-newobjfileevent.c: Include defs.h.
972 * python/py-signalevent.c: Include defs.h.
973 * python/py-stopevent.c: Include defs.h.
974 * python/py-threadevent.c: Include defs.h.
976 2012-11-08 Pierre Muller <muller@sourceware.org>
978 * update-web-ari.sh (print_heading): Add number of files
980 (nb_files): New variable counting the number of sources
981 files found by gdb_find.sh script.
982 (debug_awk): New variable to allow extra debug output.
983 (indexes): Add more information if DEBUG_AWK is set.
985 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
987 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
988 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
989 following the change in PLT call stubs on linker.
991 2012-11-08 Pierre Muller <muller@sourceware.org>
993 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
995 (AWK): Use = instead of == for sh test to avoid warning.
996 (Linux rule): Correct [:digit] into [[:digit:]].
997 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
998 (vasprintf rule): Adapt to common subdirectory moves.
999 (xasprintf rule): Idem.
1000 (xvasprintf rule): Idem.
1001 (var_boolean rule): Accept occurence in == or != test.
1003 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1005 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1007 * tui/tui-hooks.c (tui_inferior_exit): New function.
1008 (tui_detach_hook): Remove.
1009 (tui_install_hooks): Install the inferior exit observer.
1010 (tui_remove_hooks): Remove it.
1012 2012-11-08 Yao Qi <yao@codesourcery.com>
1015 * source.c (_initialize_source): Call add_com_alias to abbreviate
1016 'forward-search' as 'fo'.
1018 2012-11-07 Pedro Alves <palves@redhat.com>
1020 * arm-tdep.c: Make defs.h be the first include.
1021 * coff-pe-read.c: Ditto.
1023 * go32-nat.c: Ditto.
1024 * i386-nat.c: Ditto.
1025 * ppcnbsd-nat.c: Ditto.
1026 * ada-varobj.h: Don't include defs.h.
1027 * i386-darwin-tdep.h: Ditto.
1028 * i386-nat.h: Ditto.
1030 2012-11-07 Pedro Alves <palves@redhat.com>
1032 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1035 2012-11-07 Pierre Muller <muller@sourceware.org>
1037 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1038 File already uses "gdb_dirent.h" header.
1040 2012-11-07 Yao Qi <yao@codesourcery.com>
1042 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1045 2012-11-06 Tom Tromey <tromey@redhat.com>
1047 * target.h (inferior_has_forked, inferior_has_vforked)
1048 (inferior_has_execd, inferior_has_called_syscall): Remove
1051 2012-11-06 Pierre Muller <muller@sourceware.org>
1053 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1054 add missing internalization markup.
1056 2012-11-06 Pedro Alves <palves@redhat.com>
1060 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1062 2012-11-06 Pierre Muller <muller@sourceware.org>
1064 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1067 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1069 * gnulib/update-gnulib.sh: New script.
1071 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1073 * MAINTAINERS: Update my email address.
1075 2012-11-05 Tom Tromey <tromey@redhat.com>
1077 * frame.c (put_frame_register): Don't use temporary buffer.
1079 2012-11-05 Pedro Alves <palves@redhat.com>
1081 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1082 child. Clear 'pending_detach'.
1083 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1084 'pending_detach' in the vfork parent.
1086 2012-11-05 Doug Evans <dje@google.com>
1088 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1089 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1090 * dwarf2read.c: #include "elf-bfd.h".
1091 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1092 (dwop_section_names): Renamed from dwo_section names. All uses
1093 updated. Add entries for .debug_cu_index, .debug_tu_index.
1094 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1096 (struct dwp_sections): New type.
1097 (struct virtual_dwo_sections): New type.
1098 (struct dwp_hash_table): New type.
1099 (struct dwp_file): New type.
1100 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1101 read in. Handle DWOs coming from DWP files.
1102 (lookup_dwo_file_slot): New function.
1103 (dwarf2_locate_dwo_sections): Move definition closer to use.
1104 (create_dwo_debug_info_hash_table_reader): Renamed from
1105 create_debug_info_hash_table_reader. All callers updated.
1106 (create_dwo_debug_info_hash_table): Renamed from
1107 create_debug_info_hash_table. All callers updated.
1108 (create_dwp_hash_table): New function.
1109 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1110 (lookup_dwo_in_dwp): New function.
1111 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1112 is_dwp. All callers updated.
1113 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1114 (open_and_init_dwo_file): Renamed from init_dwo_file.
1115 All callers updated.
1116 (lookup_dwo_file): Delete.
1117 (dwarf2_locate_dwp_sections): New function.
1118 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1119 (allocate_dwp_loaded_cutus_table): New function.
1120 (open_and_init_dwp_file): New function.
1121 (lookup_dwo_cutu): New function.
1122 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1124 2012-11-03 Yao Qi <yao@codesourcery.com>
1127 * breakpoint.c (trace_pass_set_count): Call
1128 observer_notify_breakpoint_modified instead of
1129 observer_notify_tracepoint_modified.
1130 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1132 2012-11-02 Tom Tromey <tromey@redhat.com>
1134 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1135 argument to complete_on_enum.
1137 2012-11-02 Tom Tromey <tromey@redhat.com>
1139 * configure: Rebuild.
1140 * configure.ac (build_warnings): Add -Wempty-body.
1141 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1142 * remote.c (handle_notification): Use braces for empty 'else' body.
1143 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1145 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1147 * solib-som.c (som_relocate_section_addresses): Use braces
1148 for empty 'else' body.
1149 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1150 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1152 2012-11-02 Pedro Alves <palves@redhat.com>
1156 * infrun.c (handle_inferior_event)
1157 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1158 null_ptid before handling a vfork child exec or exit. Switch to
1159 the event ptid afterwards.
1161 2012-11-02 Yao Qi <yao@codesourcery.com>
1163 * std-operator.def: Remove OP_LABELED.
1164 * eval.c: Remove the declaration of 'get_label'.
1165 (get_label): Remove.
1166 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1168 Remove local variable 'variantno' and related code.
1169 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1171 * expprint.c (print_subexp_standard): Likewise.
1172 (dump_subexp_body_standard): Likewise.
1173 * parse.c (operator_length_standard): Likewise.
1175 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1177 Incorporate ARI web page generator into GDB sources.
1178 * contrib/ari/create-web-ari-in-src.sh: New file.
1179 * contrib/ari/gdb_ari.sh: New file.
1180 * contrib/ari/gdb_find.sh: New file.
1181 * contrib/ari/update-web-ari.sh: New file.
1183 2012-10-31 Tom Tromey <tromey@redhat.com>
1185 * gdbarch.c: Rebuild.
1186 * gdbarch.sh: Remove references to gdbarch_swap.
1187 * corelow.c (core_open): Remove obsolete comment.
1189 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1192 * c-typeprint.c (c_print_type): Don't print a space for vector
1193 types, this is handled within the suffix.
1194 (c_type_print_varspec_suffix): Add a space to vector suffix.
1196 2012-10-26 Pedro Alves <palves@redhat.com>
1198 * amd64-tdep.c (amd64_relocate_instruction): Use
1199 store_unsigned_integer instead of memcpy.
1200 * i386-tdep.c (i386_relocate_instruction): Ditto.
1202 2012-10-26 Pedro Alves <palves@redhat.com>
1204 * infrun.c (handle_inferior_event): Merge handling of
1205 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1208 2012-10-26 Pedro Alves <palves@redhat.com>
1210 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1213 2012-10-26 Pedro Alves <palves@redhat.com>
1215 * target.c (target_waitstatus_to_string): Handle
1216 TARGET_WAITKIND_VFORK_DONE.
1218 2012-10-26 Pedro Alves <palves@redhat.com>
1220 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1221 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1223 2012-10-24 Tristan Gingold <gingold@adacore.com>
1225 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1228 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1230 * ravenscar-thread.c (ravenscar_wait): Only update the list
1231 of threads and inferior_ptid if the inferior is still alive.
1233 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1235 * ada-lang.c (is_known_support_routine): Use lbasename when
1236 matching the symtab's filename against
1237 known_runtime_file_name_patterns.
1239 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1241 * ada-lang.c (ada_same_array_size_p): New function.
1242 (ada_promote_array_of_integrals): New function.
1243 (coerce_for_assign): Add handling of arrays where the elements
1244 are integrals of a smaller size than the size of the target
1247 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1249 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1250 against maximum exponent value.
1252 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1254 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1257 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1259 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1260 strip typedef layer when computing the fixed type's field type,
1261 only when computing its size.
1263 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1266 * i386-tdep.c (i386_return_value): Handle complex double and long
1269 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1271 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1272 New local variable args_len.
1273 Quote the name of the executable when computing the command line.
1275 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1280 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1282 * amd64-tdep.c (amd64_classify): Classify complex types.
1283 (amd64_return_value): Handle the COMPLEX_X87 class.
1285 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1287 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1288 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1290 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1292 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1294 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1295 to amd64_windows_auto_wide_charset.
1297 2012-10-23 Yao Qi <yao@codesourcery.com>
1299 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1300 * event-top.h: Remove its declaration.
1301 (async_request_quit): Call mark_async_signal_handler instead of
1302 mark_async_signal_handler_wrapper.
1303 (async_do_nothing, async_disconnect): Likewise.
1304 (async_stop_sig): Likewise.
1305 * remote.c (handle_remote_sigint): Likewise.
1306 (handle_remote_sigint_twice): Likewise.
1308 2012-10-23 Yao Qi <yao@codesourcery.com>
1310 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1311 with 'static struct async_signal_handler *'.
1312 (sighup_token, sigquit_token, sigstp_token): Likewise.
1314 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1316 * gdbarch.sh (function_list): Use 'pstring' when printing
1317 a variable which could return NULL.
1318 * gdbarch.c: Regenerate.
1320 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1321 Tom Tromey <tromey@redhat.com>
1323 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1324 inneffective if condition by gdb assertion. Add function
1325 description comment.
1327 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1329 * parser-defs.h (struct exp_descriptor): Document constraint
1330 on return value for "op_name" callbacks.
1332 2012-10-18 Tom Tromey <tromey@redhat.com>
1334 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1335 * symtab.c (iterate_over_some_symtabs): Constify.
1336 * source.h (symtab_to_fullname): Return 'const char *'.
1337 * source.c (symtab_to_fullname): Return 'const char *'.
1338 * python/py-symtab.c (stpy_fullname): Constify.
1339 * cli/cli-cmds.c (edit_command): Constify.
1340 * breakpoint.c (print_breakpoint_location)
1341 (update_static_tracepoint): Constify.
1343 2012-10-18 Tom Tromey <tromey@redhat.com>
1345 * breakpoint.c (compare_breakpoints): Fix comparison.
1347 2012-10-18 Tom Tromey <tromey@redhat.com>
1349 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1350 gdb_wchar_t to convert_between_encodings.
1352 2012-10-17 Yao Qi <yao@codesourcery.com>
1354 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1355 more parameter 'inferior'.
1356 * corefile.c (write_memory_with_notification): Caller update.
1358 * mi/mi-cmd-var.c: Include "mi-main.h".
1359 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1360 to 1 and restore it later.
1361 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1362 and "data-write-memory-bytes.
1363 * mi/mi-interp.c: Include objfiles.h.
1364 (mi_interpreter_init): Call observer_attach_memory_changed.
1365 (mi_memory_changed): New.
1366 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1369 * NEWS: Mention new MI notification "memory-changed".
1371 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1373 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1375 2012-10-15 Doug Evans <dje@google.com>
1377 New option -nh: inhibit loading of ~/.gdbinit.
1378 * NEWS: Mention -nh.
1379 * main.c (captured_main): Recognize and process -nh.
1380 (print_gdb_help): Mention -nh.
1381 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1383 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1387 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1389 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1390 nor pc_regnum_from_eax.
1391 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1392 nor pc_regnum_from_eax.
1394 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1396 Fix entry values resolving in inlined frames.
1397 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1398 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1401 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1403 * configure.ac: Build with -DMS_WIN64 if building with Python
1404 enabled using GCC on amd64-windows.
1405 * configure: Regenerate.
1407 2012-10-15 Tom Tromey <tromey@redhat.com>
1410 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1413 2012-10-15 Tom Tromey <tromey@redhat.com>
1416 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1418 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1420 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1421 reset thread numbering back to 1.
1423 2012-10-11 Doug Evans <dje@google.com>
1425 PR breakpoints/14643.
1426 * linespec.c (struct ls_parser): New member keyword_ok.
1427 (linespec_lexer_lex_string): Add comment.
1428 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1430 (parse_linespec): Set keyword_ok.
1432 2012-10-10 Doug Evans <dje@google.com>
1434 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1435 "0x" prefix on address in log message.
1437 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1438 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1439 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1440 (lookup_dwo_file): Add const to dwo_name parameter.
1441 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1443 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1445 Fix crash during stepping on ppc32.
1446 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1449 2012-10-03 Doug Evans <dje@google.com>
1452 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1454 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1456 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1457 output and use uint32_t not long to ensure 4 byte size.
1459 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1461 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1464 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1466 * target.c (simple_search_memory): Include access length in
1469 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1470 Edjunior Machado <emachado@linux.vnet.ibm.com>
1473 * solib.c (solib_find): Prevent GDB from loading native libraries when
1474 debugging a cross-target corefile.
1476 2012-09-28 selven <pcthegreat@gmail.com>
1478 Make definition match declaration.
1480 * regcache.c (regcache_register_status): Change return type to
1481 enum register_status.
1483 2012-09-28 Yao Qi <yao@codesourcery.com>
1485 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1486 write_memory_with_notification instead of write_memory.
1487 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1488 instead of target_write_memory.
1490 2012-09-28 Yao Qi <yao@codesourcery.com>
1492 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1493 when the length of content is not an even number.
1495 2012-09-27 Tom Tromey <tromey@redhat.com>
1497 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1498 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1500 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1502 * sol-thread.c (sol_thread_fetch_registers)
1503 (sol_thread_store_registers): Delete commented out code.
1505 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1507 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1508 Move these functions to sparc-sol-thread.c.
1509 * sparc-sol-thread.c: New file.
1510 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1511 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1513 * configure: Regenerate.
1515 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1517 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1518 Remove commented-out code.
1520 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1522 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1523 Enable this code for sparc hosts only.
1525 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1527 * procfs.h (procfs_find_LDT_entry): Add declaration.
1528 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1529 function procfs_find_LDT_entry.
1531 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1533 * procfs.c (proc_get_LDT_entry): Make static.
1535 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1537 * procfs.c (proc_find_memory_regions): Fix declaration.
1539 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1541 * amd64-tdep.c (amd64_return_value): Revert previous change
1542 that used TYPE_LENGTH directly.
1543 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1544 (bfin_store_return_value): Likewise.
1545 * cris-tdep.c (cris_store_return_value): Likewise.
1546 (cris_extract_return_value): Likewise.
1547 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1548 * hppa-tdep.c (hppa64_return_value): Likewise.
1549 * lm32-tdep.c (lm32_store_return_value): Likewise.
1550 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1551 * spu-tdep.c (spu_value_from_register): Likewise.
1552 * vax-tdep.c (vax_return_value): Likewise.
1554 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1556 * gdbtypes.c (lookup_array_range_type): Expand parameters
1557 LOW_BOUND and HIGH_BOUND to LONGEST.
1558 (lookup_string_range_type): Likewise.
1559 * gdbtypes.h (lookup_array_range_type): Likewise.
1560 (lookup_string_range_type): Likewise.
1561 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1562 Expand HIGHBOUND to ssize_t.
1563 (value_string): Likewise.
1564 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1565 (value_string): Likewise.
1567 2012-09-27 Yao Qi <yao@codesourcery.com>
1569 PR breakpoints/13898
1570 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1571 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1572 per breakpoint type.
1574 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1576 * procfs.c: Add gdb_bfd header.
1577 * rs6000-nat.c: Likewise.
1578 * solib-pa64.c: Likewise.
1579 * spu-linux-nat.c: Likewise.
1580 * windows-nat.c: Likewise.
1582 2012-09-26 Tom Tromey <tromey@redhat.com>
1584 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1586 2012-09-26 Tom Tromey <tromey@redhat.com>
1588 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1589 (read_common_block): Handle child DIEs with
1590 DW_AT_data_member_location.
1591 (new_symbol_full): Add special case for common blocks.
1593 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1594 Tom Tromey <tromey@redhat.com>
1596 * dwarf2read.c (read_common_block): Rewrite.
1597 (new_symbol_full): Handle DW_TAG_common_block.
1598 * f-lang.c (head_common_list, find_common_for_function):
1600 * f-lang.h (struct common_entry, struct saved_f77_common,
1601 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1602 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1603 BLANK_COMMON_NAME_LOCAL): Remove.
1604 (struct common_block): New.
1605 * f-valprint.c (list_all_visible_commons): Remove.
1606 (info_common_command_for_block): New function.
1607 (info_common_command): Use it.
1608 * stack.c (iterate_over_block_locals): Special case for
1609 COMMON_BLOCK_DOMAIN.
1610 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1612 (struct general_symbol_info) <value.common_block>: New field.
1613 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1615 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 Tom Tromey <tromey@redhat.com>
1618 * f-lang.c (allocate_saved_bf_node,
1619 allocate_saved_function_node, allocate_saved_f77_common_node,
1620 allocate_common_entry_node, tail_common_list, current_common,
1621 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1622 tmp_bf_ptr, add_common_block, add_common_entry,
1623 find_first_common_named, patch_common_entries,
1624 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1625 global_remote_debug, get_bf_for_fcn, saved_function_list,
1626 saved_function_list_end, clear_function_list, struct saved_fcn,
1627 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1628 SAVED_BF, SAVED_BF_PTR): Remove.
1629 * f-lang.h (tail_common_list, current_common,
1630 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1631 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1632 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1633 real_main_c_value): Remove.
1634 * f-valprint.c (there_is_a_visible_common_named): Remove.
1636 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1638 * breakpoint.c (update_global_location_list): Ignore previous
1639 duplicate status of a breakpoint when starting a new scan for
1640 duplicate breakpoints.
1642 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1643 PR breakpoints/14419
1644 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1645 support LLVM compiler.
1647 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1649 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1650 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1651 (bfin_store_return_value): Likewise.
1652 * cris-tdep.c (cris_store_return_value): Likewise.
1653 (cris_extract_return_value): Likewise.
1654 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1655 * hppa-tdep.c (hppa64_return_value): Likewise.
1656 * lm32-tdep.c (lm32_store_return_value): Likewise.
1657 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1658 * spu-tdep.c (spu_value_from_register): Likewise.
1659 * vax-tdep.c (vax_return_value): Likewise.
1661 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1663 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1664 parameter LEN to ssize_t.
1666 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1668 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1670 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1672 (alpha_store_return_value): Likewise.
1673 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1674 (amd64_push_arguments): Likewise.
1675 * ax-gdb.c (gen_trace_static_fields): Likewise.
1676 (gen_traced_pop): Likewise.
1677 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1678 * breakpoint.c (update_watchpoint): Likewise.
1679 * findcmd.c (parse_find_args): Use local variable for type
1681 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1682 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1683 (h8300_store_return_value): Likewise.
1684 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1685 Use i386_darwin_arg_type_alignment directly.
1686 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1687 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1688 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1689 (m68hc11_extract_return_value): Likewise.
1690 * mep-tdep.c (mep_push_dummy_call): Likewise.
1691 * printcmd.c (float_type_from_length): Likewise.
1692 * s390-tdep.c (s390_value_from_register): Likewise.
1693 * stack.c (read_frame_arg): Likewise.
1694 * tracepoint.c (encode_actions_1): Likewise.
1695 * valops.c (value_fetch_lazy): Use local variable for type
1696 instead of length. Use TYPE_LENGTH directly.
1697 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1699 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1701 * symtab.c (skip_prologue_sal): Fix typo in comment.
1703 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1705 * linespec.c (create_sals_line_offset): Fix typo in comment.
1707 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1709 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1710 use plongest to print the array size.
1712 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1714 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1715 * p-valprint.c (pascal_type_print_base): Likewise.
1717 2012-09-22 Yao Qi <yao@codesourcery.com>
1719 * remote.c (remote_get_trace_status): Remove setting default
1720 values of fields of 'ts'.
1722 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1724 Fix internal error on canonicalization of clang types.
1725 * cp-name-parser.y (operator): New comment at make_operator call for
1726 new, delete, new[] and delete[].
1727 (exp): Use "sizeof ". Add new comment at make_operator call.
1729 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 Fix disassemble without parameters in tailcall frame.
1732 * cli/cli-cmds.c (disassemble_current_function): Use
1733 get_frame_address_in_block.
1735 2012-09-21 Tom Tromey <tromey@redhat.com>
1737 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1738 TYPE_CODE_UNION>: Unify, removing a goto.
1740 2012-09-21 Tom Tromey <tromey@redhat.com>
1742 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1744 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1746 * findvar.c (read_frame_register_value): Mark the result value as
1747 optimized out if any of the input registers have been optimized out.
1749 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1751 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1753 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1755 * eval.c (evaluate_subexp_standard): Eliminate single-use
1758 2012-09-21 Yao Qi <yao@codesourcery.com>
1760 * mi/mi-interp.c: Declare mi_record_changed.
1761 (mi_interpreter_init): Call observer_attach_record_changed.
1762 (mi_record_changed): New.
1763 * record.c (record_open): Call observer_notify_record_changed.
1764 (cmd_record_stop): Call observer_notify_record_changed.
1767 2012-09-20 Tom Tromey <tromey@redhat.com>
1770 * python/python.c (finalize_python): New function.
1771 (_initialize_python): Make a final cleanup.
1773 2012-09-19 Doug Evans <dje@google.com>
1775 * buildsym.h (param_symbols): Delete, unused.
1776 (context_stack): Delete member "params", unused.
1777 * buildsym.c (push_context): Update.
1778 * dwarf2read.c (read_func_scope): Update.
1780 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1782 * sh-tdep.c (sh_register_convert_to_virtual)
1783 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1784 all callers. Just do a memcpy if not the little-endian case.
1786 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1787 set_gdbarch_double_format and set_gdbarch_long_double_format.
1788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1789 set_gdbarch_double_format.
1790 * sh-tdep.c (sh_gdbarch_init): Likewise.
1792 * NEWS: Document the removal of SH's 'regs' command.
1793 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1796 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1798 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1801 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1803 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1804 language when iterating over symbols.
1806 2012-09-18 Yao Qi <yao@codesourcery.com>
1808 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1809 (mi_interpreter_init): Call observer_attach_tsv_created and
1810 observer_attach_tsv_deleted.
1811 (mi_tsv_created, mi_tsv_deleted): New.
1812 * tracepoint.c (delete_trace_state_variable): Call
1813 observer_notify_tsv_deleted.
1814 (trace_variable_command): Call observer_notify_tsv_created.
1815 (delete_trace_variable_command): Call
1816 observer_notify_tsv_deleted.
1817 (create_tsv_from_upload): Call observer_notify_tsv_created.
1820 2012-09-18 Yao Qi <yao@codesourcery.com>
1822 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1823 if traceframe changed.
1824 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1826 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1827 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1828 'traceframe_changed'.
1829 (mi_traceframe_changed): New.
1830 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1832 * NEWS: Mention the new MI notification.
1834 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1836 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1838 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1841 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1842 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1843 Extend code also for PaX support. Convert all gdb_assert to warning
1846 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1848 Implement auto-load user conveniences suggested by Doug Evans.
1849 * auto-load.c: Include top.h.
1850 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1851 (_initialize_auto_load): New variable scripts_directory_help. Mention
1852 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1853 scripts-directory. Document in online help one can use also files for
1854 set auto-load safe-path.
1855 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1856 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1858 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1860 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1863 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1865 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1866 ELTLEN and use TYPE_LENGTH directly.
1867 (m2_val_print): Likewise.
1868 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1869 variable LEN and use TYPE_LENGTH directly.
1870 (m68k_svr4_store_return_value): Likewise.
1871 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1872 ARGLEN and use TYPE_LENGTH directly.
1873 (mips_o64_push_dummy_call): Likewise.
1874 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1875 variable LENGTH and use TYPE_LENGTH directly.
1876 (s390_function_arg_float): Likewise.
1877 (s390_function_arg_integer): Likewise.
1878 (s390_push_dummy_call): Likewise.
1879 (s390_return_value_convention): Likewise.
1880 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1881 TYPE_LENGTH directly.
1883 2012-09-17 Yao Qi <yao@codesourcery.com>
1885 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1886 Update comment to add_setshow_integer_cmd.
1887 * cli/cli-setshow.c (do_set_command): Handle case
1888 'var_zuinteger_unlimited'.
1889 (do_show_command): Likewise.
1890 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1891 for command 'remotetimeout'.
1892 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1894 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1895 for command 'set listsize'.
1897 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1899 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1902 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1905 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1906 (frame_pop): Drop also TAILCALL_FRAME frames.
1907 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1909 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1910 Pedro Alves <palves@redhat.com>
1913 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1914 function start if we are already at function start. Both for
1915 reverse-next and for reverse-step into function without line number
1918 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 Code cleanup - rename 'inline' depth to 'artificial' depth.
1921 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1922 frame_id_artificial_p, extend the comment.
1923 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1924 * frame.c (fprint_frame_id): Rename at a user, change debug output
1925 text to "artificial=".
1926 (skip_inlined_frames): Rename to ...
1927 (skip_artificial_frames): ... here. Extend the comment.
1928 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1929 (frame_id_inlined_p): Rename to ...
1930 (frame_id_artificial_p): ... here. Rename at a user.
1931 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1932 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1934 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1936 (frame_id_inlined_p): Rename to ...
1937 (frame_id_artificial_p): ... here.
1938 * inline-frame.c (inline_frame_this_id): Rename at a user.
1940 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1942 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1943 vector variables using vector_size syntax rather than array
1946 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1948 * valarith.c (value_concat): Replace unsafe ALLOCA with
1951 2012-09-14 Pedro Alves <palves@redhat.com>
1953 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1955 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1957 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1958 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1959 data-directory as appropriate.
1961 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1963 * printcmd.c (ui_printf): Eliminate single-use variable
1966 2012-09-14 Yao Qi <yao@codesourcery.com>
1967 Pedro Alves <palves@redhat.com>
1969 * valops.c (value_assign): Move observer_notify_target_changed
1970 below to replace reinit_frame_cache.
1972 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1974 Refactor Python "gdb" module into a proper Python package, by
1975 introducing a new "_gdb" module for code implemented in C, and
1976 using reload/__import__ instead of exec.
1977 * python/lib/gdb/__init__.py: Import * from _gdb.
1978 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1979 prompt_hook, sys.argv): Moved from finish_python_initialization.
1980 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1981 (packages, auto_load_packages): New list and function replacing
1982 module_dict and auto-loading code, using __file__ instead of
1983 gdb.PYTHONDIR and reload/__import__ instead of exec.
1984 (GdbSetPythonDirectory): Replacing function of the same name
1985 from finish_python_initialization, using reload/__import__ instead
1986 of exec, as well as call auto_load_packages.
1987 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1988 gdb_python_module and not gdb_module.
1989 * python/python-internal.h (gdb_python_module): Declare.
1990 * python/python.c (gdb_python_module): New global.
1991 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1992 (_initialize_python): Rename gdb module to _gdb.
1993 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1994 (finish_python_initialization): Move Python code to
1995 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1998 2012-09-13 Pedro Alves <palves@redhat.com>
2000 * Makefile.in (COMMON_OBS): Add registry.o.
2001 * registry.c: New file.
2002 * registry.h (struct registry_container): Declare.
2003 (registry_data_callback): New typedef.
2004 (struct registry_data, struct registry_data_registration, struct
2005 registry_data_registry): New type.
2006 (register_data_with_cleanup, registry_alloc_data)
2007 (registry_callback_adaptor, registry_clear_data)
2008 (registry_container_free_data, registry_set_data, registry_data):
2010 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2011 the new common structures and functions.
2012 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2015 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2017 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2018 there is an error inserting hardware breakpoints and use the
2019 error message from the target.
2021 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2022 Catch this exception and print the error message contained within. Do not
2023 print the default hardware error breakpoint message in this case.
2025 2012-09-12 Doug Evans <dje@google.com>
2027 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2030 2012-09-11 Doug Evans <dje@google.com>
2032 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2033 .gdb_index symbol attributes if there are none.
2035 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2037 * symtab.h (struct minimal_symbol) [has_size]: New field.
2038 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2039 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2040 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2041 minimal symbols if the symbol's size is actually known.
2042 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2043 of msymbol's size field. Add comment.
2044 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2045 SET_MSYMBOL_SIZE to set the minimal symbol size.
2047 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2049 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2050 minimal_symbol struct object, rather than setting some of its
2053 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2055 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2056 passed_a_ptr flag when displaying typedef types.
2058 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2060 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2061 the optimized_out flag is preserved.
2063 2012-09-10 Anthony Green <green@moxielogic.com>
2065 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2066 prologue changes in GCC.
2068 2012-09-10 Keith Seitz <keiths@redhat.com>
2071 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2072 (BOOL_CONVERSION_BADNESS): ... this.
2073 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2074 (rank_one_type): Allow all boolean conversions
2075 permitted by the standard.
2077 2012-09-06 Tom Tromey <tromey@redhat.com>
2079 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2080 Don't decref py_objfile.
2082 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2084 Do not enable -lmcheck by default when Python is enabled with
2086 * configure.ac: (python_has_threads) New variable, by testing
2087 if WITH_THREAD is defined in Python.h.
2088 Move --enable-lmcheck after --with-python.
2089 Do not enable -lmcheck by default if python_has_threads=yes.
2090 Warn if --enable-lmcheck and python_has_threads=yes.
2091 * configure: Regenerate.
2093 2012-08-31 Yao Qi <yao@codesourcery.com>
2095 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2096 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2097 Update some commands.
2098 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2099 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2102 2012-08-31 Yao Qi <yao@codesourcery.com>
2104 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2106 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2108 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2110 2012-08-29 Doug Evans <dje@google.com>
2112 * main.c (print_gdb_help): Remove reference to
2113 --use-deprecated-index-sections.
2115 2012-08-28 Yao Qi <yao@codesourcery.com>
2117 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2118 (init_cmds): Call add_setshow_uinteger_cmd for command
2119 'max-user-call-depth'.
2120 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2121 declaration of 'max_user_call_depth'.
2122 * frame.c (backtrace_limit): Add 'unsigned'.
2123 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2125 * remote.c (remoteaddresssize): Add 'unsigned'.
2126 (remote_address_masked): Change local var 'address_size' to
2128 (_initialize_remote): Call add_setshow_uinteger_cmd for
2129 'remoteaddresssize'.
2130 * top.c (history_size): Add 'unsigned'.
2131 (show_commands): Change local variables to 'unsigned'.
2132 (set_history_size_command): Don't check history_size is negative.
2133 Adjust the condition to call unstifle_history and set history_size
2136 2012-08-28 Pedro Alves <palves@redhat.com>
2140 * infcmd.c (default_print_one_register_info): New, factored out
2141 from default_print_registers_info.
2142 (default_print_registers_info): Use it. Mark value unavailable if
2144 (registers_info): Print user registers with
2145 default_print_one_register_info.
2147 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2150 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2151 is not NULL before referencing it.
2153 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2156 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2159 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2160 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 * auto-load.c (auto_load_objfile_script): Rename to ...
2163 (auto_load_objfile_script_1): ... here, change variable realname to
2164 parameter realname, document it, add return value, add variable retval.
2165 (auto_load_objfile_script): New function.
2167 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2169 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2170 followed by a whitespace.
2172 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2175 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2176 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2177 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2180 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2182 * memattr.c (create_mem_region): Fix memory region overlapping
2185 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2187 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2188 with xmalloc/cleanup.
2189 * mt-tdep.c (mt_push_dummy_call): Likewise.
2190 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2191 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2193 2012-08-24 Yao Qi <yao@codesourcery.com>
2195 * jv-exp.y (push_expression_name): Add "." at the end of error
2198 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2200 Document how to return from "python-interactive" to GDB.
2201 * python/python.c (_initialize_python): Update documentation.
2203 2012-08-23 Pedro Alves <palves@redhat.com>
2205 * infrun.c (_initialize_infrun) <handle command help text>:
2206 Mention that multiple signals are supported.
2208 2012-08-23 Pedro Alves <palves@redhat.com>
2210 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2213 2012-08-23 Yao Qi <yao@codesourcery.com>
2215 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2216 (tfind_1): Don't call registers_changed, set_traceframe_num,
2217 and clear_traceframe_info.
2218 Call set_current_traceframe.
2219 (set_current_traceframe): call set_traceframe_num.
2221 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2223 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2224 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2226 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2228 Enable readline in Python in a GDB-specific way and block the
2229 standard Python readline module to prevent conflicts with GDB.
2230 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2231 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2232 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2233 * python/py-gdb-readline.c: New file.
2234 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2236 * python/python.c (_initialize_python): Call
2237 gdbpy_initialize_gdb_readline.
2239 2012-08-22 Keith Seitz <keiths@redhat.com>
2241 * defs.h: Include build-gnulib/config.h
2243 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2245 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2248 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2250 Add a new "python-interactive" command that starts a standard
2251 Python interactive prompt with "pi" as alias, and add "py" as
2252 an alias to "python".
2253 * NEWS: Mention the new commands.
2254 * python/python.c (eval_python_command): New function.
2255 (python_interactive_command): For "python-interactive" with
2256 arguments, call eval_python_command. For "python-interactive"
2257 without arguments, call PyRun_InteractiveLoop.
2258 (_initialize_python): Add "python-interactive" command with
2259 "pi" as alias, and add "py" as an alias to "python".
2261 2012-08-22 Tom Tromey <tromey@redhat.com>
2263 * defs.h (quit_flag): Don't declare.
2264 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2265 (QUIT): Use new functions.
2266 * event-top.c (command_handler): Use clear_quit_flag.
2267 (handle_sigint): Use set_quit_flag.
2268 (async_request_quit): Use check_quit_flag. Don't check
2270 * exceptions.c (throw_exception): Use clear_quit_flag.
2271 * main.c (captured_main): Use clear_quit_flag.
2272 * python/python.c (clear_quit_flag, set_quit_flag)
2273 (check_quit_flag): New functions.
2274 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2276 * remote.c (remote_wait_as): Use check_quit_flag,
2278 (remote_start_remote): Call QUIT.
2279 * symfile.c (load_progress): Use check_quit_flag.
2280 * top.c (command_loop): Use clear_quit_flag.
2281 (command_line_input): Call QUIT.
2282 * utils.c (quit_flag): Conditionally define.
2283 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2285 (prompt_for_continue): Call QUIT. Use quit, not
2287 * remote-mips.c (mips_expect_timeout): Call QUIT.
2288 * monitor.c (monitor_expect): Call QUIT.
2290 2012-08-22 Tom Tromey <tromey@redhat.com>
2292 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2293 (async_init_signals): Update.
2294 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2295 (SIGWINCH_HANDLER_BODY): Remove.
2297 2012-08-22 Tom Tromey <tromey@redhat.com>
2299 * jit.c (jit_object_close_impl): Don't malloc the objfile
2301 * objfiles.c (allocate_objfile): Don't malloc the objfile
2303 (free_objfile): Don't free the objfile name.
2304 * objfiles.h (struct objfile) <name>: Update comment.
2305 * symfile.c (reread_symbols): Fix reference counting. Don't
2306 malloc objfile name.
2308 2012-08-22 Tom Tromey <tromey@redhat.com>
2310 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2311 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2312 (symfile_bfd_open): Likewise.
2313 (generic_load): Likewise.
2314 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2315 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2317 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2319 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2320 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2321 (pmon_load_fast): Likewise.
2322 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2323 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2324 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2325 (macho_check_dsym): Likewise.
2326 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2327 (m32r_upload_command): Likewise.
2328 * gdb_bfd.h (gdb_bfd_cache): Declare.
2329 * gdb_bfd.c (struct gdb_bfd_data): New.
2330 (gdb_bfd_cache): New global.
2331 (struct gdb_bfd_cache_search): New.
2332 (hash_bfd): New function.
2334 (gdb_bfd_open): Likewise.
2335 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2336 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2338 * exec.c (exec_file_attach): Use gdb_bfd_open.
2339 * dsrec.c (load_srec): Use gdb_bfd_open.
2341 2012-08-22 Tom Tromey <tromey@redhat.com>
2343 * dwarf2read.c (macro_start_file): Update.
2344 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2345 (free_objfile_per_bfd_storage): Destroy macro_cache.
2346 (allocate_objfile, free_objfile): Update.
2347 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2349 (struct objfile) <macro_cache>: Remove.
2350 * symfile.c (reread_symbols): Update.
2351 * symmisc.c (print_symbol_bcache_statistics): Update.
2352 (print_objfile_statistics): Update.
2354 2012-08-22 Tom Tromey <tromey@redhat.com>
2356 * elfread.c (elf_symtab_read): Update.
2357 * objfiles.c (objfiles_bfd_data): New global.
2358 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2359 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2360 (allocate_objfile, free_objfile): Update.
2361 (_initialize_objfiles): Initialize objfiles_bfd_data.
2362 * objfiles.h (struct objfile_per_bfd_storage): New.
2363 (struct objfile) <per_bfd>: New field.
2364 <filename_cache>: Remove.
2365 (set_objfile_per_bfd): Declare.
2366 * symfile.c (reread_symbols): Update. Call
2367 set_objfile_per_bfd.
2368 (allocate_symtab): Update.
2369 * symmisc.c (print_symbol_bcache_statistics): Update.
2370 (print_objfile_statistics): Print the size of the BFD obstack.
2372 2012-08-22 Tom Tromey <tromey@redhat.com>
2374 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2375 * gdb_bfd.c: Use DEFINE_REGISTRY.
2376 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2377 (gdb_bfd_ref): Call bfd_alloc_data.
2378 (gdb_bfd_unref): Call bfd_free_data.
2380 2012-08-22 Tom Tromey <tromey@redhat.com>
2382 * registry.h (struct registry_fields): New.
2383 (REGISTRY_FIELDS): Redefine.
2384 (REGISTRY_ACCESS_FIELD): New macro.
2385 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2388 2012-08-22 Tom Tromey <tromey@redhat.com>
2390 * auto-load.c (_initialize_auto_load): Update.
2391 * solib-svr4.c (_initialize_svr4_solib): Update
2392 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2393 * solib-darwin.c (_initialize_darwin_solib): Update.
2394 * registry.h: New file.
2395 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2396 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2397 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2398 (register_program_space_data_with_cleanup)
2399 (register_program_space_data, program_space_alloc_data)
2400 (clear_program_space_data, set_program_space_data)
2401 (program_space_data): Don't declare.
2402 * progspace.c: Use DEFINE_REGISTRY.
2403 (struct program_space_data, struct
2404 program_space_data_registration, struct
2405 program_space_data_registry, program_space_data_registry)
2406 (register_program_space_data_with_cleanup)
2407 (register_program_space_data, program_space_alloc_data)
2408 (program_space_free_data, clear_program_space_data)
2409 (set_program_space_data, program_space_data): Remove.
2410 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2411 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2412 (register_objfile_data_with_cleanup, register_objfile_data)
2413 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2415 * objfiles.c: Use DEFINE_REGISTRY.
2416 (struct objfile_data, struct objfile_data_registration, struct
2417 objfile_data_registry, objfile_data_registry)
2418 (register_objfile_data_with_cleanup, register_objfile_data)
2419 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2420 (set_objfile_data, objfile_data): Remove.
2421 (_initialize_objfiles): Update.
2422 * jit.c (_initialize_jit): Update.
2423 * inflow.c (_initialize_inflow): Update.
2424 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2425 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2426 (register_inferior_data_with_cleanup, register_inferior_data)
2427 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2429 * inferior.c: Use DEFINE_REGISTRY.
2430 (struct inferior_data, struct inferior_data_registration, struct
2431 inferior_data_registry, inferior_data_registry)
2432 (register_inferior_data_with_cleanup, register_inferior_data)
2433 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2434 (set_inferior_data, inferior_data): Remove.
2435 * auxv.c (_initialize_auxv): Update.
2436 * ada-lang.c (_initialize_ada_language): Update.
2437 * breakpoint.c (_initialize_breakpoint): Update.
2438 * i386-nat.c (i386_use_watchpoints): Update.
2440 2012-08-22 Tom Tromey <tromey@redhat.com>
2442 * exec.c (exec_close, exec_file_attach): Update.
2443 (add_to_section_table): Initialize 'key' field.
2444 (add_target_sections, remove_target_sections): Add 'key' argument.
2445 * exec.h (add_target_sections, remove_target_sections): Add
2447 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2448 (reload_shared_libraries_1): Update.
2449 * target.h (struct target_section) <key>: New field.
2451 2012-08-22 Tom Tromey <tromey@redhat.com>
2453 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2455 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2457 * symfile.c (allocate_symtab): Use host_address_to_string
2458 function instead of cast of pointer to long which is not
2459 compatible with x86_64-w64-mingw32 build.
2461 2012-08-19 Andrew Pinski <apinski@cavium.com>
2463 * mips-tdep.c (is_octeon): New function.
2464 (is_octeon_bbit_op): New function.
2465 (mips32_next_pc): Handle Octeon's bbit instructions.
2466 (mips32_instruction_has_delay_slot): Likewise.
2468 2012-08-19 Andrew Pinski <apinski@cavium.com>
2470 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2471 before the function.
2473 2012-08-19 Andrew Pinski <apinski@cavium.com>
2475 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2477 2012-08-19 Keith Seitz <keiths@redhat.com>
2480 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2481 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2483 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2485 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2486 The typo broke "make TAGS".
2488 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2492 2012-08-17 Keith Seitz <keiths@redhat.com>
2495 * gdbtypes.c (strict_type_checking): New variable.
2496 (show_strict_type_checking): New function.
2497 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2498 if strict type checking is disabled.
2499 (_initialize_gdbtypes): Add "check type" subcommand.
2500 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2502 2012-08-17 Keith Seitz <keiths@redhat.com>
2504 * language.h (type_mode): Remove.
2505 (type_check): Remove.
2506 (struct language_defn): Remove la_type_check.
2507 (STRICT_TYPE): Remove unused macro.
2508 (type_error): Remove.
2509 * language.c (set_type_range_case): Renamed to ...
2510 (set_range_case): ... this. Update all callers.
2511 Remove type_mode/type_check.
2512 (type_mode): Remove.
2513 (type_check): Remove.
2514 (show_type_command): Remove.
2515 (set_type_command): Remove.
2516 (language_info): Remove type checking output.
2517 (type_error): Remove unused function.
2518 (range_error): Update comment.
2519 (unknown_language_defn): Remove la_type_check.
2520 (auto_language_defn): Likewise.
2521 (local_language_defn): Likewise.
2522 (_initialize_language): Remove "check type" subcommand.
2523 * ada-lang.c (ada_language_defn): Remove la_type_check.
2524 * c-lang.c (c_language_defn): Likewise.
2525 (cplus_language_defn): Likewise.
2526 (asm_language_defn): Likewise.
2527 (minimal_language_defn): Likewise.
2528 * d-lang.c (d_language_defn): Likewise.
2529 * f-lang.c (f_language_defn): Likewise.
2530 * go-lang.c (go_language_defn): Likewise.
2531 * jv-lang.c (java_language_defn): Likewise.
2532 * m2-lang.c (m2_language_defn): Likewise.
2533 * objc-lang.c (objc_language_defn): Likewise.
2534 * opencl-lang.c (opencl_language_defn): Likewise.
2535 * p-lang.c (pascal_language_defn): Likewise.
2537 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2539 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2541 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2543 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2545 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2546 using the regache. Use ia64_hpux_get_register_from_save_state_t
2547 to access the bsp and bspstore registers if not.
2549 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2551 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2552 * breakpoint.c (detach_breakpoints): Change pid parameter into
2553 a ptid. Adjust code accordingly.
2554 * infrun.c (handle_inferior_event): Delete variable child_pid.
2555 Update call to detach_breakpoints to pass the child ptid for
2557 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2558 assert that inferior_ptid's lwp is zero.
2559 (linux_handle_extended_wait): Update call to detach_breakpoints.
2560 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2563 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2565 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2566 parent, only call detach_breakpoints if tts.tts_event ==
2569 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2571 * dwarf2-frame.c (dwarf2_frame_cache): Use
2572 get_frame_address_in_block instead of get_frame_pc as
2573 the bound for executing the frame's FDE.
2575 2012-08-16 Yao Qi <yao@codesourcery.com>
2577 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2578 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2579 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2580 (c_type_print_varspec_suffix): Likewise.
2581 * eval.c (evaluate_subexp_standard): Likewise.
2582 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2583 (f_type_print_varspec_suffix): Likewise.
2584 * gdbtypes.c (is_scalar_type): Likewise.
2585 (recursive_dump_type): Likewise.
2586 * infcall.c (value_arg_coerce): Likewise.
2587 * m2-valprint.c (m2_val_print): Likewise.
2588 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2589 (pascal_type_print_varspec_suffix): Likewise.
2590 (pascal_type_print_base): Likewise.
2591 * p-valprint.c (pascal_val_print): Likewise.
2592 (pascal_val_print): Likewise.
2593 * valops.c (value_slice): Likewise.
2594 * valprint.c (scalar_type_p): Likewise.
2595 * valarith.c (value_bitstring_subscript): Remove.
2596 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2597 Remove comment on TYPE_CODE_BITSTRING.
2599 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2600 TYPE_CODE_BITSTRING.
2602 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2605 2012-08-16 Yao Qi <yao@codesourcery.com>
2607 * tracepoint.c (trace_find_none_command): Remove.
2608 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2610 2012-08-16 Yao Qi <yao@codesourcery.com>
2612 * remote.c (handle_notification): Remove parameter 'length'.
2613 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2615 2012-08-15 Keith Seitz <keiths@redhat.com>
2617 * gdbtypes.c (opaque_type_resolution): Make static.
2618 Add missing comment.
2619 (overload_debug): Add missing comment.
2620 (show_opaque_type_resolution): Likewise.
2621 (show_overload_debug): Likewise.
2622 (print_bit_vector): Remove unnecessary forward declaration.
2623 (print_arg_types): Likewise.
2624 (dump_fn_fieldlists): Likewise.
2625 (print_cplus_stuff): Likewise.
2627 2012-08-15 Tom Tromey <tromey@redhat.com>
2629 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2630 (gdb_bfd_ref): Initialize new field.
2631 (gdb_bfd_unref): Unref the archive BFD.
2632 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2635 2012-08-15 Tom Tromey <tromey@redhat.com>
2638 * python/py-bpevent.c (create_breakpoint_event_object): Update
2640 * python/py-event.c (evpy_add_attribute): Update comment.
2641 * python/py-exitedevent.c (create_exited_event_object): Fix
2642 reference counting and error handling.
2643 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2644 Fix reference counting.
2645 * python/py-signalevent.c (create_signal_event_object): Fix
2646 reference counting and error handling.
2647 * python/py-stopevent.c (emit_stop_event): Fix reference
2649 * python/py-threadevent.c (get_event_thread): Return a
2651 * python/py-type.c (convert_field): Fix reference counting.
2653 2012-08-15 Tom Tromey <tromey@redhat.com>
2655 * dwarf2read.c (dwarf_decode_macro_bytes)
2656 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2659 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2661 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2662 stepi, nexti, finish, next, step, jump, and continue commands.
2663 * infrun.c (_initialize_infrun): Update help text for the handle
2666 2012-08-14 Doug Evans <dje@google.com>
2668 * gdbtypes.c (struct extra): Delete, unused.
2670 * gdbtypes.c: Whitespace cleanup.
2671 (address_space_name_to_int): Remove "extern" from definition.
2672 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2674 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2675 TYPE_POINTER_TYPE (type).
2677 2012-08-14 Gary Benson <gbenson@redhat.com>
2679 * solib-svr4.c (svr4_free_library_list): Use free_so.
2681 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2683 * .gitignore: Add go-exp.c.
2685 2012-08-13 Doug Evans <dje@google.com>
2687 * value.c (show_convenience): Tweak comment.
2688 (_initialize_values): Mention convenience functions in the help text
2689 for "show convenience".
2691 2012-08-13 Yao Qi <yao@codesourcery.com>
2693 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2694 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2696 * eval.c (evaluate_subexp_standard): Likewise.
2697 * expprint.c (print_subexp_standard): Likewise.
2698 (dump_subexp_body_standard): Likewise.
2699 * parse.c (operator_length_standard): Likewise.
2701 2012-08-13 Yao Qi <yao@codesourcery.com>
2703 * std-operator.def: Remove OP_BITSTRING.
2704 * breakpoint.c (watchpoint_exp_is_const): Update.
2705 * eval.c (evaluate_subexp_standard): Remove handling to
2707 * expprint.c (print_subexp_standard): Likewise.
2708 (dump_subexp_body_standard): Likewise.
2709 * parse.c (operator_length_standard): Likewise.
2710 * valops.c (value_bitstring): Remove.
2711 * value.h: Remove the declaration of 'value_bitstring'.
2713 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2715 * linespec.c (find_methods): Remove unused variables `i1' and
2717 (decode_line_full): Likewise for `arg_start'.
2719 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2721 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2722 (zlib_decompress_section): Likewise for `section_data'.
2723 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2725 2012-08-10 Doug Evans <dje@google.com>
2727 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2728 * NEWS: Document them.
2729 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2731 * python/py-type.c (typy_array_1): New function.
2732 (typy_array): Call it.
2733 (typy_vector): New function.
2734 (type_object_methods): Add "vector".
2735 * python/lib/gdb/function/__init__.py: New file.
2736 * python/lib/gdb/function/strfns.py: New file.
2738 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2740 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2741 for TYPE_FIELD_BITPOS.
2742 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2744 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2747 * common/vec.h (VEC_merge): Define.
2748 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2749 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2750 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2751 * completer.c: Include gdb_signals.h.
2752 (signal_completer): Define.
2753 * completer.h (signal_completer): Add prototype.
2754 * infcmd.c (_initialize_infcmd): Assign the command
2755 completer for "signal" to handle_completer.
2756 * infrun.c: Include completer.h.
2757 (handle_completer): Define.
2758 (_initialize_infrun): Declare a new local variable c. Store the
2759 result of add_com("handle") to it. Assign the command
2760 completer for "handle" to handle_completer.
2762 2012-08-09 Yao Qi <yao@codesourcery.com>
2764 * cli/cli-decode.c (set_cmd_prefix): New.
2765 (lookup_cmd_for_prefixlist): New.
2766 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2767 of each cmd_list_element in *prefixlist.
2768 (add_setshow_cmd_full): set_cmd_prefix.
2769 (add_alias_cmd): Likewise.
2770 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2771 Declare 'auto_boolean_enums'.
2772 * cli/cli-setshow.c: Include "observer.h".
2773 (notify_command_param_changed_p): New.
2774 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2776 (do_setshow_command): Split it to ...
2777 (do_set_command, do_show_command): ... them. New.
2778 (do_set_command): Call observer_notify_command_param_changed if
2779 notify_command_param_changed_p returns true.
2780 (cmd_show_list): Caller update.
2781 * auto-load.c (set_auto_load_cmd): Likewise.
2782 * remote.c (show_remote_cmd): Likewise.
2783 * cli/cli-setshow.h: Update declarations.
2784 * top.c (execute_command): Call do_set_command and do_show_command.
2786 * NEWS: Mention new MI notification.
2787 * mi/mi-interp.c: Declare mi_command_param_changed.
2788 (mi_interpreter_init): Attach mi_command_param_changed to
2789 observer command_param_changed.
2790 (mi_command_param_changed): New.
2791 Remove mi_suppress_breakpoint_notifications.
2792 Define global variable mi_suppress_notification.
2793 (mi_breakpoint_created): Update.
2794 (mi_breakpoint_deleted): Likewise.
2795 (mi_breakpoint_modified): Likewise.
2796 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2797 'gdb-set' and set mi_suppress_notification.
2798 * mi/mi-main.h: (mi_suppress_notification): New struct.
2800 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2801 Jan Kratochvil <jan.kratochvil@redhat.com>
2803 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2805 2012-08-09 Yao Qi <yao@codesourcery.com>
2807 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2808 (skiplist): Move it to skip.c.
2809 (init_cmd_lists): Remove code setting enablebreaklist and
2811 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2812 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2814 * gdbcmd.h: Likewise.
2815 * skip.c (_initialize_step_skip): Move 'skiplist' from
2818 2012-08-09 Yao Qi <yao@codesourcery.com>
2820 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2821 * gnu-nat.c, symfile.c: Likewise.
2823 2012-08-08 Aaron Gamble <agamble@google.com>
2825 * utils.c (prompt_for_continue_wait_time): New static global.
2826 (make_command_stats_cleanup): Initialize it.
2827 (report_command_stats): Subtract time waiting for user.
2828 (prompt_for_continue): Track time waiting for user.
2829 (defaulted_query): Track time waiting for user.
2831 2012-08-08 Doug Evans <dje@google.com>
2833 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2835 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2836 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2837 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2838 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2839 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2840 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2842 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2843 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2844 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2845 (dump_prefix_expression): Handle OP_TYPE.
2847 2012-08-08 Keith Seitz <keiths@redhat.com>
2849 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2852 2012-08-08 Doug Evans <dje@google.com>
2854 * linux-thread-db.c: #include "gdb_vecs.h".
2855 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2857 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2858 (thread_db_load_search): Use a vector to iterate over path elements.
2859 Handle text appearing after "$pdir".
2861 * gdb_string.h: Moved to ...
2862 * common/gdb_string.h: ... here.
2863 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2864 gdb_string.h and gdb_assert.h.
2866 2012-08-08 Yao Qi <yao@codesourcery.com>
2868 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2869 (tic6x_value_to_register): Likewise.
2870 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2871 and set_gdbarch_value_to_register.
2873 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2874 Jean-Marc Saffroy <saffroy@gmail.com>
2877 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2878 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2879 * gcore.c (gcore_create_callback): New function comment. Add modified
2880 parameter. Only write modified regions. Set SEC_READONLY exactly
2881 according to MODIFIED.
2882 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2883 the passed modified value to FUNC.
2884 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2885 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2886 first. New variables modified and has_anonymous. Parse the lines of
2887 smaps file. Add the passed MODIFIED value to FUNC.
2888 * procfs.c (find_memory_regions_callback): Add the passed modified
2891 2012-08-06 Tom Tromey <tromey@redhat.com>
2893 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2894 (dwarf2_frame_cache): Use it.
2895 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2896 cache initialization constraint.
2898 2012-08-06 Tom Tromey <tromey@redhat.com>
2901 * varobj.c (update_dynamic_varobj_children): Don't call
2904 2012-08-06 Tom Tromey <tromey@redhat.com>
2907 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2909 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2911 * NEWS: New entry for 'cd' default parameters.
2912 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2914 2012-08-03 Tom Tromey <tromey@redhat.com>
2916 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2919 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2921 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2922 to attempting lseek/write.
2923 (inf_child_fileio_pread): Likewise for pread.
2925 2012-08-02 Yao Qi <yao@codesourcery.com>
2927 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2928 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2929 add_setshow_zinteger_cmd.
2930 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2931 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2932 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2933 instead of add_setshow_zinteger_cmd.
2934 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2935 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2936 instead of add_setshow_zinteger_cmd.
2937 * frame.c (frame_debug): Add 'unsigned'.
2938 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2939 add_setshow_zinteger_cmd.
2940 * frame.h: Update the declaration of 'frame_debug'.
2941 * gdbtypes.c (overload_debug): Add 'unsigned'.
2942 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2943 add_setshow_zinteger_cmd.
2944 * inferior.h: Update declaration of 'debug_infrun'.
2945 * infrun.c (debug_infrun): Add 'unsigned'.
2946 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2947 add_setshow_zinteger_cmd.
2948 * jit.c (jit_debug): Add 'unsigned'.
2949 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2950 add_setshow_zinteger_cmd.
2951 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2952 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2953 instead of add_setshow_zinteger_cmd.
2954 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2955 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2956 add_setshow_zinteger_cmd.
2957 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2958 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2959 instead of add_setshow_zinteger_cmd.
2960 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2961 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2962 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2963 intead of add_setshow_zinteger_cmd.
2964 * mips-tdep.c (mips_debug): Add 'unsigned'.
2965 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2966 instead of add_setshow_zinteger_cmd.
2967 * monitor.c (monitor_debug): Add 'unsigned'.
2968 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2969 add_setshow_zinteger_cmd.
2970 * observer.c (observer_debug): Add 'unsigned'.
2971 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2972 add_setshow_zinteger_cmd.
2973 * parse.c (expressiondebug): Add 'unsigned'.
2974 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2975 add_setshow_zinteger_cmd.
2976 * record.c (record_debug): Add 'unsigned'.
2977 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2978 add_setshow_zinteger_cmd.
2979 * record.h: Update the declaration of 'record_debug'.
2980 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2981 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2982 add_setshow_zinteger_cmd.
2983 * serial.c (global_serial_debug_p): Add 'unsigned'.
2984 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2985 add_setshow_zinteger_cmd.
2986 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2987 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2988 add_setshow_zinteger_cmd.
2989 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2990 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2991 add_setshow_zinteger_cmd.
2992 * target.c (targetdebug): Add 'unsigned'.
2993 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2994 add_setshow_zinteger_cmd.
2995 * valops.c (overload_debug): Add 'unsigned'.
2996 * varobj.c (varobjdebug): Add 'unsigned'.
2997 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2998 add_setshow_zinteger_cmd.
2999 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3000 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3001 instead of add_setshow_zinteger_cmd.
3003 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3004 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3005 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3006 instead of add_setshow_zinteger_cmd.
3007 * gdbarch.c, gdbarch.h: Re-generated.
3009 2012-08-02 Yao Qi <yao@codesourcery.com>
3011 * nto-tdep.c: Don't include cli/cli-decode.h and
3013 (_initialize_nto_tdep): Remove.
3014 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3016 Remove macro nto_internal_debugging.
3018 2012-08-01 Richard Henderson <rth@redhat.com>
3020 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3021 (mep-*-*) [gdb_target_obs]: Likewise.
3023 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3025 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3026 linux_get_siginfo_type.
3028 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3030 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3032 (call_function_by_hand) <ON_STACK>: Call write_memory with
3033 gdbarch_breakpoint_from_pc, if possible.
3034 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3037 2012-07-31 Yao Qi <yao@codesourcery.com>
3039 * tracepoint.c: Add 'static' for some variables.
3041 2012-07-31 Yao Qi <yao@codesourcery.com>
3043 * go32-nat.c: Declare _initialize_go32_nat.
3044 * ser-go32.c: Declare _initialize_ser_dos.
3045 * top.c (do_chdir_cleanup): Add 'static'.
3047 2012-07-30 Keith Seitz <keiths@redhat.com>
3049 * linespec.c (linespec_lex_number): A number followed
3050 by quotes is a valid number, too.
3052 2012-07-30 Tom Tromey <tromey@redhat.com>
3054 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3056 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3058 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3059 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3061 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3063 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3064 invalid or reevaluated to prevent prevent references to possibly
3065 delete'd type objects being left in the varobj.
3067 2012-07-27 Tom Tromey <tromey@redhat.com>
3068 Jan Kratochvil <jan.kratochvil@redhat.com>
3070 * copying.awk: Print buffer-read-only and vi ro markers.
3071 * copying.c: Rebuild.
3072 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3073 * gdbarch.c, gdbarch.h: Rebuild.
3074 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3075 buffer-read-only and vi ro markers.
3076 * features/arm-with-iwmmxt.c: Rebuild.
3077 * features/arm-with-m-fpa-layout.c: Rebuild.
3078 * features/arm-with-m-vfp-d16.c: Rebuild.
3079 * features/arm-with-m.c: Rebuild.
3080 * features/arm-with-neon.c: Rebuild.
3081 * features/arm-with-vfpv2.c: Rebuild.
3082 * features/arm-with-vfpv3.c: Rebuild.
3083 * features/i386/amd64-avx-linux.c: Rebuild.
3084 * features/i386/amd64-avx.c: Rebuild.
3085 * features/i386/amd64-linux.c: Rebuild.
3086 * features/i386/amd64.c: Rebuild.
3087 * features/i386/i386-avx-linux.c: Rebuild.
3088 * features/i386/i386-avx.c: Rebuild.
3089 * features/i386/i386-linux.c: Rebuild.
3090 * features/i386/i386-mmx-linux.c: Rebuild.
3091 * features/i386/i386-mmx.c: Rebuild.
3092 * features/i386/i386.c: Rebuild.
3093 * features/i386/x32-avx-linux.c: Rebuild.
3094 * features/i386/x32-avx.c: Rebuild.
3095 * features/i386/x32-linux.c: Rebuild.
3096 * features/i386/x32.c: Rebuild.
3097 * features/mips-dsp-linux.c: Rebuild.
3098 * features/mips-linux.c: Rebuild.
3099 * features/mips64-dsp-linux.c: Rebuild.
3100 * features/mips64-linux.c: Rebuild.
3101 * features/rs6000/powerpc-32.c: Rebuild.
3102 * features/rs6000/powerpc-32l.c: Rebuild.
3103 * features/rs6000/powerpc-403.c: Rebuild.
3104 * features/rs6000/powerpc-403gc.c: Rebuild.
3105 * features/rs6000/powerpc-405.c: Rebuild.
3106 * features/rs6000/powerpc-505.c: Rebuild.
3107 * features/rs6000/powerpc-601.c: Rebuild.
3108 * features/rs6000/powerpc-602.c: Rebuild.
3109 * features/rs6000/powerpc-603.c: Rebuild.
3110 * features/rs6000/powerpc-604.c: Rebuild.
3111 * features/rs6000/powerpc-64.c: Rebuild.
3112 * features/rs6000/powerpc-64l.c: Rebuild.
3113 * features/rs6000/powerpc-7400.c: Rebuild.
3114 * features/rs6000/powerpc-750.c: Rebuild.
3115 * features/rs6000/powerpc-860.c: Rebuild.
3116 * features/rs6000/powerpc-altivec32.c: Rebuild.
3117 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3118 * features/rs6000/powerpc-altivec64.c: Rebuild.
3119 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3120 * features/rs6000/powerpc-cell32l.c: Rebuild.
3121 * features/rs6000/powerpc-cell64l.c: Rebuild.
3122 * features/rs6000/powerpc-e500.c: Rebuild.
3123 * features/rs6000/powerpc-e500l.c: Rebuild.
3124 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3125 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3126 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3127 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3128 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3129 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3130 * features/rs6000/powerpc-vsx32.c: Rebuild.
3131 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3132 * features/rs6000/powerpc-vsx64.c: Rebuild.
3133 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3134 * features/rs6000/rs6000.c: Rebuild.
3135 * features/s390-linux32.c: Rebuild.
3136 * features/s390-linux32v1.c: Rebuild.
3137 * features/s390-linux32v2.c: Rebuild.
3138 * features/s390-linux64.c: Rebuild.
3139 * features/s390-linux64v1.c: Rebuild.
3140 * features/s390-linux64v2.c: Rebuild.
3141 * features/s390x-linux64.c: Rebuild.
3142 * features/s390x-linux64v1.c: Rebuild.
3143 * features/s390x-linux64v2.c: Rebuild.
3144 * features/tic6x-c62x-linux.c: Rebuild.
3145 * features/tic6x-c62x.c: Rebuild.
3146 * features/tic6x-c64x-linux.c: Rebuild.
3147 * features/tic6x-c64x.c: Rebuild.
3148 * features/tic6x-c64xp-linux.c: Rebuild.
3149 * features/tic6x-c64xp.c: Rebuild.
3151 2012-07-27 Tom Tromey <tromey@redhat.com>
3153 * c-exp.y (classify_name): Avoid assignment in condition.
3155 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3157 * amd64-windows-tdep.c: Include "frame.h".
3158 (amd64_windows_skip_trampoline_code): New function.
3159 (amd64_windows_init_abi): Add trampoline registration.
3161 2012-07-27 Yao Qi <yao@codesourcery.com>
3163 * tracepoint.c (cur_traceframe_number): Remove.
3164 (set_tfile_traceframe): Remove.
3165 (tfile_trace_find, tfile_fetch_registers): Update callers.
3166 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3167 (tfile_open, tfile_trace_find): Likewise.
3169 2012-07-27 Yao Qi <yao@codesourcery.com>
3171 * thread.c (switch_to_thread): Don't call registers_changed.
3173 2012-07-26 Tom Tromey <tromey@redhat.com>
3175 * Makefile.in (SFILES): Remove objc-exp.y.
3176 (YYFILES): Remove objc-exp.c.
3177 (YYOBJ): Remove objc-exp.o.
3178 (local-maintainer-clean): Don't mention objc-exp.c.
3179 * c-exp.y: Include objc-lang.h.
3180 (%union) <class>: New field.
3181 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3182 (exp): Clone subscript production for OBJC_LBRAC. Add various
3183 Objective C productions.
3184 (msglist, msgarglist, msgarg): New productions.
3185 (array_mod, func_mod, operator): Clone productions for
3187 (parse_string_or_char): Handle '@' strings.
3188 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3189 (classify_name): Check la_name_of_this. Recognize ObjC class
3191 * objc-exp.y: Remove.
3192 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3193 * objc-lang.h (objc_parse, objc_error): Don't declare.
3195 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3197 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3199 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3204 2012-07-26 Tom Tromey <tromey@redhat.com>
3206 * copying.c: Rebuild.
3207 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3210 2012-07-26 Tom Tromey <tromey@redhat.com>
3212 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3214 (print_objfile_statistics): Likewise.
3215 (maintenance_print_symbols): Likewise.
3216 (maintenance_print_msymbols): Likewise.
3217 (maintenance_print_objfiles): Likewise.
3218 * psymtab.c (print_partial_symbols): Call QUIT.
3219 (maintenance_print_psymbols): Likewise. Don't modify
3221 * copying.c (show_copying_command): Don't modify immediate_quit.
3222 (show_warranty_command): Likewise.
3223 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3225 2012-07-26 Keith Seitz <keiths@redhat.com>
3227 * linespec.c (linespec_lexer_lex_number): The input
3228 is also a valid number if the next character is a comma
3231 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3233 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3236 2012-07-26 Tristan Gingold <gingold@adacore.com>
3238 * machoread.c: Include gdb_bfd.h.
3240 2012-07-26 Tristan Gingold <gingold@adacore.com>
3242 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3245 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3247 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3249 (dwarf2_evaluate_loc_desc): Likewise.
3250 (dwarf2_loc_desc_needs_frame): Likewise.
3251 (locexpr_describe_location_1): Likewise.
3252 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3254 (struct dwarf2_loclist_baton): Likewise.
3255 * dwarf2read.c (struct dwarf_block): Likewise.
3256 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3257 (decode_locdesc): Expand SIZE and I to size_t.
3259 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3261 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3263 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3265 * doublest.c (convert_doublest_to_floatformat): If the exponent
3266 is too small, treat the value as zero. If the exponent is too
3267 large, treat the value as infinity.
3269 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3271 * configure.ac: Add --enable-lmcheck configure option.
3272 * configure: Regenerate.
3274 2012-07-25 Tom Tromey <tromey@redhat.com>
3276 * NEWS: Mention maint info bfds.
3277 * gdb_bfd.c (all_bfds): New global.
3278 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3279 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3282 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3284 * configure.tgt: Add v850*-*-rtems*.
3286 2012-07-25 Tom Tromey <tromey@redhat.com>
3288 * macrotab.c (macro_bcache_str): Remove cast.
3290 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3292 * linespec.c (linespec_lexer_lex_number): Update comments,
3293 change the return and add check to make sure the input is
3294 the decimal numbers.
3295 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3296 false, call linespec_lexer_lex_string.
3298 2012-07-24 Tom Tromey <tromey@redhat.com>
3300 * symfile.c (symbol_file_add): Don't open BFD twice.
3302 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3304 * breakpoint.c (create_breakpoint): Store condition for pending
3307 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3309 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3310 (m68k_return_value): Handle complex types like structures.
3311 (m68k_svr4_return_value): Likewise.
3313 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3315 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3316 parameters to bfd_get_section_name.
3318 2012-07-24 Yao Qi <yao@codesourcery.com>
3320 * cli/cli-setshow.c: Handle case 'var_uinteger'
3321 and 'var_zuninteger' together. Handle case 'var_integer' and
3322 'var_zinteger' together.
3324 2012-07-23 Keith Seitz <keiths@redhat.com>
3326 * linespec.c (convert_linespec_to_sal): Don't add
3327 any symbols to the result vector if symbol_to_sal
3330 2012-07-23 Keith Seitz <keiths@redhat.com>
3332 * linespec.c (decode_objc): Record the function name
3335 2012-07-23 Tom Tromey <tromey@redhat.com>
3337 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3339 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3340 (map_vmap): Acquire a reference to the BFD.
3342 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3344 * p-valprint.c (pascal_object_print_value): Replace potentially
3345 unsafe alloca with xmalloc/xfree.
3346 * valops.c (search_struct_method): Likewise.
3348 2012-07-23 Tom Tromey <tromey@redhat.com>
3350 * solib-svr4.c (enable_break): Update.
3351 * bfd-target.h (target_bfd_reopen): Update documentation.
3353 2012-07-23 Tom Tromey <tromey@redhat.com>
3355 * symfile.c (separate_debug_file_exists): Update.
3356 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3357 (reread_symbols): Update.
3358 * elfread.c (build_id_verify): Update.
3359 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3360 bfd_open_maybe_remote.
3362 2012-07-23 Tom Tromey <tromey@redhat.com>
3364 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3366 2012-07-23 Tom Tromey <tromey@redhat.com>
3368 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3370 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3372 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3373 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3375 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3376 * objfiles.c (allocate_objfile): Acquire a new reference.
3377 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3378 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3379 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3380 a cleanup for 'nbfd'.
3381 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3383 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3384 make a cleanup for 'abfd'.
3385 (symbol_file_add): Make a BFD cleanup.
3387 2012-07-23 Tom Tromey <tromey@redhat.com>
3389 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3390 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3391 * corelow.c (core_open): Use gdb_bfd_fopen.
3392 * dsrec.c (load_srec): Use gdb_bfd_openr.
3393 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3394 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3395 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3396 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3397 (gdb_bfd_fdopenr): New functions.
3398 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3399 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3400 (gdb_bfd_fdopenr): Declare.
3401 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3402 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3403 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3404 gdb_bfd_openr_next_archived_file.
3405 (macho_check_dsym): Use gdb_bfd_openr.
3406 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3407 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3408 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3409 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3411 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3412 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3413 gdb_bfd_openr_next_archived_file.
3414 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3416 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3418 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3419 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3420 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3421 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3422 (symfile_bfd_open): Use gdb_bfd_fopen.
3423 (generic_load): Use gdb_bfd_openr.
3424 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3426 2012-07-23 Tom Tromey <tromey@redhat.com>
3428 * bfd-target.c (target_bfd_reopen): Update.
3429 * cli/cli-dump.c (bfd_openr_with_cleanup)
3430 (bfd_openw_with_cleanup): Update.
3431 * corelow.c (core_open): Update.
3432 * dsrec.c (load_srec): Update.
3433 * exec.c (exec_file_attach): Update.
3434 * gcore.c (create_gcore_bfd): Update.
3435 * gdb_bfd.c (gdb_bfd_ref): Return void.
3436 (gdb_bfd_open): Update.
3437 * gdb_bfd.h (gdb_bfd_ref): Return void.
3439 * jit.c (jit_bfd_try_read_symtab): Update.
3440 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3441 * machoread.c (macho_symfile_read_all_oso): Update.
3442 (macho_check_dsym): Update.
3443 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3444 * remote-m32r-sdi.c (m32r_load): Update.
3445 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3446 * rs6000-nat.c (add_vmap): Update.
3447 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3449 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3450 * solib-spu.c (spu_bfd_open): Update.
3451 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3452 * spu-linux-nat.c (spu_bfd_open): Update.
3453 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3454 (generic_load): Update.
3455 * windows-nat.c (windows_make_so): Update.
3457 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3459 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3461 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3463 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3464 SIGTRAMP_FRAME unwinding.
3466 2012-07-20 Doug Evans <dje@google.com>
3468 * NEWS: Document new options "set/show use-deprecated-index-sections",
3469 and delete reference to --use-deprecated-index-sections.
3470 * symfile.h (use_deprecated_index_sections): Delete.
3471 * dwarf2read.c (use_deprecated_index_sections): Make static.
3472 (read_index_from_section): Update wording of how to load
3473 deprecated index sections.
3474 (_initialize_dwarf2_read): New options
3475 "set/show use-deprecated-index-sections".
3476 * main.c (captured_main): Delete --use-deprecated-index-sections.
3478 2012-07-20 Pedro Alves <palves@redhat.com>
3483 * infrun.c (handle_inferior_event) <new thread>: Don't special
3484 case minus_one_ptid.
3485 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3486 * linux-thread-db.c (thread_get_info_callback): Don't return early
3487 if the thread is zombie.
3488 (thread_from_lwp): Change return type to void. Rewrite stale
3490 (attach_thread): Don't return early if the thread is zombie,
3491 instead set its "dying" flag.
3492 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3493 (find_new_threads_callback): Don't return early if the thread is
3496 2012-07-20 Pedro Alves <palves@redhat.com>
3498 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3499 * target.c (target_wait): Likewise.
3500 (str_comma_list_concat_elem, do_option, target_options_to_string):
3502 * target.h (target_options_to_string): Declare.
3504 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 Tom Tromey <tromey@redhat.com>
3507 * dwarf2read.c (dwarf_decode_macros)
3508 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3509 DW_MACRO_GNU_transparent_include_alt>: New cases.
3510 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3511 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3513 2012-07-20 Tom Tromey <tromey@redhat.com>
3515 * dwarf2read.c (try_open_dwo_file): Don't call
3516 gdb_bfd_stash_filename.
3518 2012-07-20 Pedro Alves <palves@redhat.com>
3520 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3521 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3522 (i386_process_record): Tweak description comments.
3524 2012-07-20 Pedro Alves <palves@redhat.com>
3526 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3527 (i386_process_record): Use record_read_memory.
3528 * record.c (record_read_memory): New function.
3529 (record_arch_list_add_mem, record_exec_insn): Use
3531 * record.h (record_read_memory): Declare.
3533 2012-07-20 Yao Qi <yao@codesourcery.com>
3535 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3538 2012-07-19 Pedro Alves <palves@redhat.com>
3540 * record.c (record_resume): Ask the target beneath to report all
3543 2012-07-19 Doug Evans <dje@google.com>
3545 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3546 there's no section at address zero.
3547 (dwarf2_record_block_ranges): Ditto.
3549 2012-07-19 Yao Qi <yao@codesourcery.com>
3551 * command.h, remote.c: Fix a typo in comment.
3553 2012-07-19 Tom Tromey <tromey@redhat.com>
3556 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3557 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3558 OP_DECLTYPE>: New cases.
3559 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3560 (type_exp): Add new productions.
3561 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3563 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3565 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3566 OP_DECLTYPE>: New case.
3567 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3569 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3570 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3572 2012-07-19 Tom Tromey <tromey@redhat.com>
3574 * c-exp.y (enum token_flags): New.
3575 (struct token) <cxx_only>: Remove.
3577 (tokentab3, tokentab2, ident_tokens): Update.
3578 (lex_one_token): Update. Handle FLAG_SHADOW.
3580 2012-07-19 Tom Tromey <tromey@redhat.com>
3582 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3583 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3584 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3585 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3586 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3587 type_exp production where appropriate.
3588 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3589 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3590 <UNOP_MEMVAL_TYPE>: New case.
3591 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3592 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3593 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3594 <UNOP_MEMVAL_TYPE>: New case.
3595 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3596 UNOP_REINTERPRET_CAST>: Update.
3597 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3598 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3599 UNOP_REINTERPRET_CAST>: Update.
3600 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3601 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3602 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3605 2012-07-19 Yao Qi <yao@codesourcery.com>
3606 Jan Kratochvil <jan.kratochvil@redhat.com>
3608 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3609 and case 'var_optional_filename' together.
3610 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3611 instead of add_setshow_optional_filename_cmd for setshow command
3612 'args'. Set completer for 'set args'.
3614 2012-07-18 Doug Evans <dje@google.com>
3616 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3617 * common/gdb_vecs.c: New file, contents from utils.c.
3618 * common/host-defs.h: New file, contents from defs.h.
3619 * utils.h: New file, contents from defs.h.
3620 * defs.h: Move all declarations of objects defined in utils.c
3621 to utils.h (except QUIT() and related).
3622 #include "utils.h", "host-defs.h".
3623 * probe.h (probe_p): Move here from gdb_vecs.h.
3624 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3625 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3626 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3627 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3628 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3629 (COMMON_OBS): Add gdb_vecs.o.
3630 (gdb_vecs.o): New rule.
3632 2012-07-18 Keith Seitz <keiths@redhat.com>
3634 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3635 parameter. If non-zero, use SYMNAME as the canonical name
3638 (convert_linespec_to_sals): Use add_sal_to_sals for
3640 (decode_line_full): No need to "fill in missing canonical names"
3641 anymore. Simply make cleanups for the allocated names.
3643 2012-07-18 Keith Seitz <keiths@redhat.com>
3645 * linespec.c (struct linespec): Constify expression,
3646 source_filename, function_name, and label_name.
3647 (symbol_not_found_error): Make all parameters const.
3648 (linespec_parser_delete): No need to check for NULL
3649 when using xfree. Cast const char * to char * for xfree.
3651 2012-07-18 Keith Seitz <keiths@redhat.com>
3653 * breakpoint.c (invalid_thread_id_error): New function.
3654 (find_condition_and_thread): Use invalid_thread_id_error.
3655 (watch_command_1): Likewise.
3657 2012-07-18 Tom Tromey <tromey@redhat.com>
3659 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3660 * contrib/cc-with-tweaks.sh: New file.
3662 2012-07-18 Tom Tromey <tromey@redhat.com>
3664 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3665 (locate_dwz_sections): Recognize .gdb_index.
3666 (create_cus_from_index_list): New function.
3667 (create_cus_from_index): Use it. Handle .dwz data.
3668 (read_index_from_section): New function, extracted from
3670 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3673 2012-07-18 Tom Tromey <tromey@redhat.com>
3675 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3676 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3677 <is_dwz>: New field.
3678 (struct dwz_file): New.
3679 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3680 (locate_dwz_sections, dwarf2_get_dwz_file)
3681 (get_abbrev_section_for_cu): New functions.
3682 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3683 (read_and_check_type_unit_head): Add abbrev_section argument.
3684 (create_debug_types_hash_table): Update.
3685 (init_cutu_and_read_dies): Use proper abbrev section.
3686 (init_cutu_and_read_dies_no_follow): Likewise.
3687 (set_partial_user): Do nothing if PST==NULL.
3688 (read_comp_units_from_section): New function.
3689 (create_all_comp_units): Use it.
3690 (scan_partial_symbols, partial_die_parent_scope): Update.
3691 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3692 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3693 (find_partial_die): Add offset_in_dwz argument. Update.
3694 (guess_partial_die_structure_name, fixup_partial_die): Update.
3695 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3696 DW_FORM_GNU_strp_alt.
3697 (read_indirect_string_from_dwz): New function.
3698 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3699 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3700 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3701 (follow_die_offset): Add offset_in_dwz argument.
3702 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3703 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3704 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3705 Handle new macro forms.
3706 (dwarf_decode_macros): Update.
3707 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3708 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3709 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3710 (create_debug_types_hash_table): Use correct abbrev section.
3711 (get_debug_line_section): New function.
3712 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3713 (process_full_comp_unit): Pass 'required' argument to
3714 end_symtab_get_static_block.
3715 * buildsym.h (end_symtab_get_static_block): Update.
3716 * buildsym.c (end_symtab_get_static_block): Add 'required'
3718 (end_symtab, end_expandable_symtab): Update.
3720 2012-07-18 Tom Tromey <tromey@redhat.com>
3722 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3724 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3725 (zlib_decompress_section): Remove.
3726 (dwarf2_read_section): Use gdb_bfd_map_section.
3727 (munmap_section_buffer): Remove.
3728 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3729 munmap_section_buffer.
3730 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3731 (struct gdb_bfd_section_data): New.
3732 (free_one_bfd_section): New function.
3733 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3734 (get_section_descriptor, zlib_decompress_section)
3735 (gdb_bfd_map_section): New functions.
3736 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3738 2012-07-18 Tom Tromey <tromey@redhat.com>
3740 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3742 2012-07-18 Tom Tromey <tromey@redhat.com>
3744 * gdb_bfd.c (struct gdb_bfd_data): New.
3745 (gdb_bfd_cache): New global.
3746 (struct gdb_bfd_cache_search): New.
3747 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3748 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3749 * gdb_bfd.h (gdb_bfd_open): Declare.
3751 2012-07-18 Tom Tromey <tromey@redhat.com>
3753 * utils.c (make_cleanup_bfd_unref): Rename from
3754 make_cleanup_bfd_close.
3755 * defs.h (make_cleanup_bfd_unref): Rename from
3756 make_cleanup_bfd_close.
3757 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3758 (bfd_openw_with_cleanup): Update.
3759 * corelow.c (core_open): Update.
3760 * dsrec.c (load_srec): Update.
3761 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3762 * remote-m32r-sdi.c (m32r_load): Update.
3763 * remote-mips.c (mips_load_srec): Update.
3764 (pmon_load_fast): Update.
3765 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3767 (darwin_bfd_open): Update.
3768 * solib.c (solib_bfd_fopen): Update.
3769 * symfile-mem.c (symbol_file_add_from_memory): Update.
3770 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3771 (symfile_bfd_open): Update.
3772 (generic_load): Update.
3774 2012-07-18 Tom Tromey <tromey@redhat.com>
3776 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3777 (pmon_load_fast): Likewise.
3778 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3779 (m32r_upload_command): Likewise.
3780 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3781 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3782 Use make_cleanup_bfd_close.
3784 2012-07-18 Tom Tromey <tromey@redhat.com>
3786 * symfile.c (symfile_bfd_open): Don't copy name. Call
3787 gdb_bfd_stash_filename.
3788 (load_command): Open the new BFD before freeing the old.
3789 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3790 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3791 Call gdb_bfd_stash_filename.
3792 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3793 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3794 gdb_bfd_stash_filename.
3795 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3796 Free found_pathname.
3797 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3798 gdb_bfd_stash_filename.
3799 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3800 * machoread.c (macho_add_oso_symfile): Call
3801 gdb_bfd_stash_filename.
3802 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3803 gdb_bfd_stash_filename.
3804 (macho_check_dsym): Don't copy filename. Call
3805 gdb_bfd_stash_filename.
3806 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3807 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3808 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3809 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3810 * exec.c (exec_close): Don't free the BFD's filename.
3811 (exec_file_attach): Don't copy the filename. Call
3812 gdb_bfd_stash_filename.
3813 * corelow.c (core_close): Don't free the BFD's filename.
3814 (core_open): Call gdb_bfd_stash_filename.
3815 * corefile.c (reopen_exec_file): Remove #if 0 code.
3816 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3818 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3820 2012-07-18 Tom Tromey <tromey@redhat.com>
3822 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3824 (free_dwo_file): Use gdb_bfd_unref.
3825 * cli/cli-dump.c: Include gdb_bfd.h.
3826 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3827 (bfd_openr_with_cleanup): Likewise.
3828 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3830 * utils.c: Include gdb_bfd.h.
3831 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3832 * symfile.c: Include gdb_bfd.h.
3833 (separate_debug_file_exists): Use gdb_bfd_unref.
3834 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3835 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3836 (generic_load): Use gdb_bfd_ref.
3837 (reread_symbols): Use gdb_bfd_unref.
3838 * symfile-mem.c: Include gdb_bfd.h.
3839 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3840 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3841 * solib.c: Include gdb_bfd.h.
3842 (solib_bfd_fopen): Use gdb_bfd_ref.
3843 (solib_bfd_open): Use gdb_bfd_unref.
3844 (free_so_symbols): Use gdb_bfd_unref.
3845 (reload_shared_libraries_1): Use gdb_bfd_unref.
3846 * solib-spu.c: Include gdb_bfd.h.
3847 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3848 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3850 * solib-frv.c: Include gdb_bfd.h.
3851 (enable_break2): Use gdb_bfd_unref.
3852 * solib-dsbt.c: Include gdb_bfd.h.
3853 (enable_break2): Use gdb_bfd_unref.
3854 * solib-darwin.c: Include gdb_bfd.h.
3855 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3857 (darwin_bfd_open): Use gdb_bfd_unref.
3858 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3859 * remote-mips.c: Include gdb_bfd.h.
3860 (mips_load_srec): Use gdb_bfd_ref.
3861 (pmon_load_fast): Use gdb_bfd_ref.
3862 * remote-m32r-sdi.c: Include gdb_bfd.h.
3863 (m32r_load): Use gdb_bfd_ref.
3864 * record.c: Include gdb_bfd.h.
3865 (record_save_cleanups): Use gdb_bfd_unref.
3866 (cmd_record_save): Use gdb_bfd_unref.
3867 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3869 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3870 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3871 * objfiles.c: Include gdb_bfd.h.
3872 (free_objfile): Use gdb_bfd_unref.
3873 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3875 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3876 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3877 (macho_check_dsym): Likewise.
3878 * m32r-rom.c: Include gdb_bfd.h.
3879 (m32r_load): Use gdb_bfd_ref.
3880 (m32r_upload_command): Use gdb_bfd_ref.
3881 * jit.c: Include gdb_bfd.h.
3882 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3883 * gdb_bfd.h: New file.
3884 * gdb_bfd.c: New file.
3885 * gcore.c: Include gdb_bfd.h.
3886 (create_gcore_bfd): Use gdb_bfd_ref.
3887 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3888 (gcore_command): Use gdb_bfd_unref.
3889 * exec.c: Include gdb_bfd.h.
3890 (exec_close): Use gdb_bfd_unref.
3891 (exec_close_1): Use gdb_bfd_unref.
3892 (exec_file_attach): Use gdb_bfd_ref.
3893 * elfread.c: Include gdb_bfd.h.
3894 (build_id_verify): Use gdb_bfd_unref.
3895 * dsrec.c: Include gdb_bfd.h.
3896 (load_srec): Use gdb_bfd_ref.
3897 * corelow.c: Include gdb_bfd.h.
3898 (core_close): Use gdb_bfd_unref.
3899 (core_open): Use gdb_bfd_ref.
3900 * bfd-target.c: Include gdb_bfd.h.
3901 (target_bfd_xclose): Use gdb_bfd_unref.
3902 (target_bfd_reopen): Use gdb_bfd_ref.
3903 * Makefile.in (SFILES): Add gdb_bfd.c.
3904 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3905 (COMMON_OBS): Add gdb_bfd.o.
3907 2012-07-18 Keith Seitz <keiths@redhat.com>
3909 * breakpoint.c (find_condition_and_thread): Initialize
3911 (create_breakpiont): find_condition_and_thread will now
3912 initialize COND_STRING, THREAD, and REST (and TASK).
3913 (addr_string_to_sals): Likewise.
3915 2012-07-18 Pedro Alves <palves@redhat.com>
3917 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3918 Pull the single step breakpoints out of the target.
3920 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3922 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3923 * stap-probe.c (compile_probe_arg): Likewise.
3925 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3927 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3928 (elf_compile_to_ax): Likewise.
3929 * infrun.c (insert_exception_resume_from_probe): Likewise.
3930 (check_exception_resume): Remove `objfile' variable.
3931 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3932 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3933 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3934 (compare_entries): Rename to...
3935 (compare_probes): ...this. Adjust function to work with
3936 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3938 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3940 (print_ui_out_info): Adjust argument to be `struct probe *'.
3941 (info_probes_for_ops): Adjust internal computations to use
3943 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3944 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3945 gen_info_probes_table_values>: Remove `objfile' argument.
3946 (struct probe) <objfile>: New field.
3947 (find_probe_by_pc): Remove `objfile' argument.
3948 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3949 (stap_get_probe_argument_count): Likewise.
3950 (stap_get_arg): Likewise.
3951 (stap_evaluate_probe_argument): Likewise.
3952 (stap_compile_to_ax): Likewise.
3953 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3954 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3955 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3956 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3957 sym_compile_to_ax>: Likewise.
3959 2012-07-18 Terry Guo <terry.guo@arm.com>
3962 * defs.h (GDB_MI_MSG_WIDTH): New.
3963 * ser_base (ser_base_read_error_fd): New function.
3964 (do_ser_base_readchar): Poll error file descriptor as well as
3966 (generic_readchar): Refactor error handling.
3968 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3970 * NEWS: Create a new section for the next release branch.
3971 Rename the section of the current branch, now that it has
3974 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3976 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3977 * version.in: Bump version to 7.5.50.20120718-cvs.
3979 2012-07-17 Keith Seitz <keiths@redhat.com>
3981 * linespec.c (linespec_parse_line_offset): Make parameter
3984 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3987 * f-valprint.c (info_common_command): New variable frame_id.
3988 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3989 * printcmd.c (print_variable_and_value): Extend function comment.
3990 Add comment for invalidated FRAME.
3991 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3992 FI form FRAME_ID after each print_frame_local_vars.
3993 (struct print_variable_and_value_data): Change frame to frame_id.
3994 (do_print_variable_and_value): New variable frame, initialize it from
3995 p->frame_id. Add comment for invalidated FRAME.
3996 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3997 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3998 for invalidated FRAME.
4000 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4001 Pedro Alves <palves@redhat.com>
4003 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4006 2012-07-16 Tom Tromey <tromey@redhat.com>
4008 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4010 2012-07-15 Doug Evans <dje@google.com>
4012 * dwarf2read.c (stmt_list_hash): New struct.
4013 (type_unit_group): Embed "per_cu" member, remove pointer.
4014 New union member "t", move member "tus" into it, all uses updated.
4015 New member "hash", replaces member "line_offset, all uses updated.
4016 (quick_file_names): Replace member "offset" with "hash", all uses
4018 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4019 (hash_file_name_entry, eq_file_name_entry): Call them.
4020 (hash_type_unit_group, eq_type_unit_group): Ditto.
4021 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4022 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4023 (dw2_get_file_names): Update.
4024 (create_type_unit_group): Replace "per_cu" arg with "cu".
4025 All callers updated. Fix "quick" (.gdb_index) handling.
4026 (get_type_unit_group): Replace "per_cu" arg with "cu".
4027 All callers updated.
4028 (build_type_unit_groups): Don't reset tu_stats.
4030 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4031 "tab_cur_size". Change member "tab" to be a htab_t.
4032 (create_filename_seen_cache): Update.
4033 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4034 (filename_seen): Update.
4036 2012-07-13 Doug Evans <dje@google.com>
4038 * symtab.c (filename_seen): Update comment.
4040 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4041 Doug Evans <dje@google.com>
4043 * buildsym.c (end_symtab_1): Split it to ...
4044 (end_symtab_get_static_block): ... this ...
4045 (end_symtab_from_static_block): ... and this function.
4046 (end_symtab, end_expandable_symtab): Call them.
4047 * buildsym.h (end_symtab_get_static_block)
4048 (end_symtab_from_static_block): New declarations.
4049 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4050 Set its valid CU ranges.
4052 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4054 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4055 DW_OP_GNU_parameter_ref.
4057 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4059 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4060 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4062 2012-07-13 Doug Evans <dje@google.com>
4064 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4065 (filename_seen_cache): New struct.
4066 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4067 (create_filename_seen_cache): New function.
4068 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4069 (filename_seen): Delete arg "first". New arg "cache". All callers
4071 (output_source_filename_data): New struct.
4072 (output_source_filename): Delete arg "first". New arg "data".
4073 All callers updated.
4074 (sources_info): Delete local "first". New locals "data", "cleanups".
4075 Rewrite to use filename_seen_cache.
4076 (add_partial_filename_data): Delete member "first". New member
4077 "filename_seen_cache". All uses updated.
4078 (make_source_files_completion_list): Rewrite to use
4079 filename_seen_cache.
4081 2012-07-12 Doug Evans <dje@google.com>
4083 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4085 2012-07-10 Doug Evans <dje@google.com>
4088 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4089 all_type_unit_groups, type_unit_groups, tu_stats.
4090 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4091 All uses updated. Add type_unit_group to union "s".
4092 (type_unit_group): New struct.
4093 (IS_TYPE_UNIT_GROUP): New macro.
4094 (abbrev_table): Delete unused member "section".
4095 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4096 (dw2_get_cu): Assert not used with type_unit_group.
4097 (dw2_get_primary_cu): New function.
4098 (dw2_build_type_unit_groups_reader): New function.
4099 (dw2_build_type_unit_groups): New function.
4100 (dw2_get_file_names): Assert not called on type units.
4101 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4102 Redo loop to iterate over type unit groups instead of type units.
4103 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4104 (read_abbrev_offset): New function.
4105 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4107 (create_partial_symtab): New function.
4108 (process_psymtab_comp_unit_reader): Assert not used with type units.
4109 Call create_partial_symtab.
4110 (process_psymtab_type_unit): Delete.
4111 (hash_type_unit_group, eq_type_unit_group): New functions.
4112 (allocate_type_unit_groups_table): New function.
4113 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4114 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4115 (create_type_unit_group, get_type_unit_group): New functions.
4116 (tu_abbrev_offset): New struct.
4117 (sort_tu_by_abbrev_offset): New function.
4118 (add_type_unit_group_to_table): New function.
4119 (build_type_unit_groups): New function.
4120 (build_type_psymtabs_reader): New function.
4121 (build_type_psymtab_dependencies): New function.
4122 (build_type_psymtabs): Rewrite.
4123 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4124 is seen in a type unit.
4125 (process_queue): Move symtab expansion debugging printfs here.
4126 Call process_full_type_unit for type units.
4127 (compute_symtab_includes): Assert not called for type units.
4128 (process_cu_includes): Don't call compute_symtab_includes for
4130 (process_full_type_unit): New function.
4131 (process_imported_unit_die): Flag an error if called for type units.
4132 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4133 updated. Assert not called for type units.
4134 (read_file_scope): Call dwarf2_start_symtab.
4135 (setup_type_unit_groups): New function.
4136 (read_type_unit_scope): Rewrite.
4137 (abbrev_table_read_table): Initialize abbrev_table->offset.
4138 (abbrev_table_free_cleanup): New function.
4139 (dwarf2_start_symtab): New function.
4140 (load_full_type_unit): Assert not called for type unit groups.
4141 * buildsym.c (finish_block_internal): New arg "expandable".
4142 All callers updated.
4143 (start_symtab): Move most contents to ...
4144 (restart_symtab): ... here. New function.
4145 (reset_symtab_globals): New function.
4146 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4147 Call reset_symtab_globals.
4148 (end_symtab, end_expandable_symtab): New functions.
4149 (set_missing_symtab, augment_type_symtab): New functions.
4150 * buildsym.h (end_expandable_symtab): Declare.
4151 (augment_type_symtab, restart_symtab): Declare.
4152 * psympriv.h (struct partial_symtab): New member "anonymous".
4153 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4155 (read_psymtabs_with_filename): Ditto.
4156 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4157 (expand_symtabs_matching_via_partial): Ditto.
4158 (dump_psymtab): Update.
4159 * dictionary.c (dict_add_pending): New function.
4160 * dictionary.h (dict_add_pending): Declare.
4162 2012-07-09 Doug Evans <dje@google.com>
4164 * buildsym.c (start_subfile): Remove unnecessary check for
4167 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4169 * dwarf2read.c (load_full_type_unit): Simplify.
4171 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4172 to struct signatured_type **. All uses updated.
4174 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4175 All callers updated.
4177 2012-07-09 Tom Tromey <tromey@redhat.com>
4179 * c-exp.y (check_parameter_typelist): New function.
4180 (parameter_typelist): Call it.
4181 * eval.c (make_params): Handle '(void)' case.
4182 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4185 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 * common/linux-ptrace.c: Include gdb_assert.h.
4188 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4189 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4191 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4193 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4194 * linux-nat.c (linux_child_post_attach)
4195 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4197 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4199 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4200 nptl <2.7 bug workaround for core files.
4202 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4204 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4206 (save_siginfo): Remove.
4207 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4209 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4210 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4211 * linux-nat.h (struct lwp_info): Remove field siginfo.
4213 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 Code cleanup for the next patch.
4216 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4217 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4219 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4220 (ia64_linux_stopped_data_address):
4221 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4223 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4224 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4225 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4228 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4231 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4232 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4234 2012-07-06 Tom Tromey <tromey@redhat.com>
4236 * c-exp.y (DOTDOTDOT): New token.
4237 (func_mod, exp): Use parameter_typelist.
4238 (parameter_typelist): New production.
4239 (tokentab3): Add "..." token.
4240 * eval.c (make_params): Handle varargs.
4241 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4244 2012-07-06 Tom Tromey <tromey@redhat.com>
4247 * c-exp.y (%union) <tvec>: Change type.
4248 (func_mod): Now uses <tvec> type.
4249 (exp): Update for tvec change.
4250 (direct_abs_decl): Push the typelist.
4251 (func_mod): Return a typelist.
4252 (nonempty_typelist): Update for tvec change.
4253 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4254 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4255 * parse.c (pop_type_list): New function.
4256 (push_typelist): New function.
4257 (follow_types): Handle tp_function_with_arguments.
4258 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4259 (enum type_pieces) <tp_function_with_arguments>: New constant.
4260 (union type_stack_elt) <typelist_val>: New field.
4261 (push_typelist): Declare.
4263 2012-07-06 Tom Tromey <tromey@redhat.com>
4265 * c-exp.y (%union) <type_stack>: New field.
4266 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4267 (ptr_operator_ts): New production.
4269 * parse.c (type_stack_reserve): New function.
4270 (check_type_stack_depth): Use it.
4271 (pop_type_stack, append_type_stack, push_type_stack)
4272 (get_type_stack, type_stack_cleanup): New functions.
4273 (follow_types): Handle tp_type_stack.
4274 (_initialize_parse): Simplify initialization.
4275 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4277 (union type_stack_elt) <stack_val>: New field.
4278 (get_type_stack, append_type_stack, push_type_stack)
4279 (type_stack_cleanup): Declare.
4281 2012-07-06 Tom Tromey <tromey@redhat.com>
4283 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4285 (struct type_stack): New.
4286 * parse.c (type_stack, type_stack_size, type_stack_depth):
4288 (type_stack): New global.
4289 (parse_exp_in_context, check_type_stack_depth)
4290 (insert_into_type_stack, insert_type, push_type, push_type_int)
4291 (insert_type_address_space, pop_type, pop_type_int)
4292 (_initialize_parse): Update.
4294 2012-07-06 Tom Tromey <tromey@redhat.com>
4296 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4299 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4301 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4303 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4304 Jan Kratochvil <jan.kratochvil@redhat.com>
4306 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4307 alloca with xmalloc/xfree.
4309 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4311 * MAINTAINERS (Write After Approval): Add myself to the list.
4313 2012-07-05 Doug Evans <dje@google.com>
4315 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4317 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4319 * ax-gdb.c (cli/cli-utils.h): New include.
4320 (linespec.h): Ditto.
4321 (agent_eval_command_one): New function.
4322 (agent_command_1): Ditto.
4323 (agent_command): Call function agent_command_1.
4324 (agent_eval_command): Ditto.
4325 (_initialize_ax_gdb): Change help for "maint agent"
4326 and "maint agent-eval".
4328 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4330 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4331 * cli/cli-utils.c (check_for_argument): New function.
4332 * cli/cli-utils.h (check_for_argument): Ditto.
4334 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4336 * NEWS: Mention x32 ABI support.
4338 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4340 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4341 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4343 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4344 and pc_regnum_from_eax to -1. Update SP regnum from
4345 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4348 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4351 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4353 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4354 * dwarf2expr.h: Include gdbtypes.h.
4355 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4356 these forward declarations.
4357 (cu_offset, sect_offset): Move these ...
4358 * gdbtypes.h: Remove include dwarf2expr.h.
4359 (cu_offset, sect_offset): ... here.
4361 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4363 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4364 (amd64_linux_sigtramp_code): This.
4365 (amd64_x32_linux_sigtramp_code): New.
4366 (LINUX_SIGTRAMP_LEN): Updated.
4367 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4369 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4371 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4373 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4375 * config.in: Regenerate.
4376 * configure: Regenerate.
4377 * configure.ac: Remove check for gnu/libc-version.h.
4378 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4380 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4381 variables libc_version, libc_major and libc_minor. Replace sscanf by
4382 inferior_has_bug. Extend the comment.
4384 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4386 * linux-thread-db.c (inferior_has_bug): New function.
4387 (thread_db_find_new_threads_silently): Return boolean as checked by
4388 inferior_has_bug, describe it in the comments.
4389 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4390 earlier. Abort the initialization if it returned non-zero.
4391 (thread_db_new_objfile): Exclude debug files.
4392 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4395 2012-07-02 Doug Evans <dje@google.com>
4397 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4398 related to queue management.
4400 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4401 instead of "debug dwarf2-die" in debugging printfs.
4402 (create_debug_info_hash_table_reader): Ditto.
4403 (create_debug_info_hash_table): Ditto.
4404 (init_dwo_file): Ditto.
4405 (init_cutu_and_read_dies): Add debugging printf.
4406 (init_cutu_and_read_dies_no_follow): Ditto.
4407 (process_psymtab_comp_unit_reader): Ditto.
4409 2012-07-02 Stan Shebs <stan@codesourcery.com>
4411 Add target-side support for dynamic printf.
4412 * NEWS: Mention the additional style.
4413 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4414 (struct bp_location): New field cmd_bytecode.
4415 * breakpoint.c: Include format.h.
4416 (disconnected_dprintf): New global.
4417 (parse_cmd_to_aexpr): New function.
4418 (build_target_command_list): New function.
4419 (insert_bp_location): Call it.
4420 (remove_breakpoints_pid): Skip dprintf breakpoints.
4421 (print_one_breakpoint_location): Ditto.
4422 (dprintf_style_agent): New global.
4423 (dprintf_style_enums): Add dprintf_style_agent.
4424 (update_dprintf_command_list): Add agent case.
4425 (agent_printf_command): New function.
4426 (_initialize_breakpoint): Add new commands.
4427 * common/ax.def (printf): New bytecode.
4428 * ax.h (ax_string): Declare.
4429 * ax-gdb.h (gen_printf): Declare.
4430 * ax-gdb.c: Include cli-utils.h, format.h.
4431 (gen_printf): New function.
4432 (maint_agent_print_command): New function.
4433 (_initialize_ax_gdb): Add maint agent-printf command.
4434 * ax-general.c (ax_string): New function.
4435 (ax_print): Add printf disassembly.
4436 * Makefile.in (SFILES): Add format.c
4437 (COMMON_OBS): Add format.o.
4438 * common/format.h: New file.
4439 * common/format.c: New file.
4440 * printcmd.c: Include format.h.
4441 (ui_printf): Call parse_format_string.
4442 * remote.c (remote_state): New field breakpoint_commands.
4443 (PACKET_BreakpointCommands): New enum.
4444 (remote_breakpoint_commands_feature): New function.
4445 (remote_protocol_features): Add new BreakpointCommands entry.
4446 (remote_can_run_breakpoint_commands): New function.
4447 (remote_add_target_side_commands): New function.
4448 (remote_insert_breakpoint): Call it.
4449 (remote_insert_hw_breakpoint): Ditto.
4450 (_initialize_remote): Add new packet configuration for
4451 target-side breakpoint commands.
4452 * target.h (struct target_ops): New field
4453 to_can_run_breakpoint_commands.
4454 (target_can_run_breakpoint_commands): New macro.
4455 * target.c (update_current_target): Handle
4456 to_can_run_breakpoint_commands.
4458 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4460 Execute -ix and -iex only after system and user gdbinit files.
4461 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4462 processing down after gdbinit files.
4464 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4466 Add fnmatch-gnu module.
4467 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4468 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4469 * gnulib/aclocal.m4: Regenerate.
4470 * gnulib/config.in: Regenerate.
4471 * gnulib/configure: Regenerate.
4472 * gnulib/import/dummy.c: Remove.
4473 * gnulib/import/Makefile.am: Regenerate.
4474 * gnulib/import/Makefile.in: Likewise.
4475 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4476 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4477 * gnulib/import/alloca.c: New file.
4478 * gnulib/import/alloca.in.h: Likewise.
4479 * gnulib/import/config.charset: Likewise.
4480 * gnulib/import/fnmatch.c: Likewise.
4481 * gnulib/import/fnmatch.in.h: Likewise.
4482 * gnulib/import/fnmatch_loop.c: Likewise.
4483 * gnulib/import/localcharset.c: Likewise.
4484 * gnulib/import/localcharset.h: Likewise.
4485 * gnulib/import/m4/alloca.m4: Likewise.
4486 * gnulib/import/m4/codeset.m4: Likewise.
4487 * gnulib/import/m4/configmake.m4: Likewise.
4488 * gnulib/import/m4/fcntl-o.m4: Likewise.
4489 * gnulib/import/m4/fnmatch.m4: Likewise.
4490 * gnulib/import/m4/glibc21.m4: Likewise.
4491 * gnulib/import/m4/localcharset.m4: Likewise.
4492 * gnulib/import/m4/locale-fr.m4: Likewise.
4493 * gnulib/import/m4/locale-ja.m4: Likewise.
4494 * gnulib/import/m4/locale-zh.m4: Likewise.
4495 * gnulib/import/m4/mbrtowc.m4: Likewise.
4496 * gnulib/import/m4/mbsinit.m4: Likewise.
4497 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4498 * gnulib/import/m4/mbstate_t.m4: Likewise.
4499 * gnulib/import/m4/stdbool.m4: Likewise.
4500 * gnulib/import/m4/wchar_h.m4: Likewise.
4501 * gnulib/import/m4/wctype_h.m4: Likewise.
4502 * gnulib/import/m4/wint_t.m4: Likewise.
4503 * gnulib/import/mbrtowc.c: Likewise.
4504 * gnulib/import/mbsinit.c: Likewise.
4505 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4506 * gnulib/import/mbsrtowcs-state.c: Likewise.
4507 * gnulib/import/mbsrtowcs.c: Likewise.
4508 * gnulib/import/ref-add.sin: Likewise.
4509 * gnulib/import/ref-del.sin: Likewise.
4510 * gnulib/import/stdbool.in.h: Likewise.
4511 * gnulib/import/streq.h: Likewise.
4512 * gnulib/import/strnlen1.c: Likewise.
4513 * gnulib/import/strnlen1.h: Likewise.
4514 * gnulib/import/verify.h: Likewise.
4515 * gnulib/import/wchar.in.h: Likewise.
4516 * gnulib/import/wctype.in.h: Likewise.
4518 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4520 Support shell wildcards for 'set auto-load safe-path'.
4521 * auto-load.c: Include fnmatch.h.
4522 (filename_is_in_dir): Rename to ...
4523 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4524 it. Update function comment. Rename dir_len to pattern_len. New
4525 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4526 messages. Use gdb_filename_fnmatch.
4527 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4529 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4530 * defs.h (gdb_filename_fnmatch): New declaration.
4531 * utils.c: Include fnmatch.h.
4532 (gdb_filename_fnmatch): New function.
4534 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4536 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4537 `-probe' and `-probe-stap' options.
4539 2012-07-01 Yao Qi <yao@codesourcery.com>
4541 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4542 always_inserted_off, and always_inserted_enums.
4543 Change always_inserted_mode's type to 'enum auto_boolean'.
4544 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4546 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4547 of add_setshow_enum_cmd.
4548 * infrun.c: Remove can_use_displaced_stepping_auto,
4549 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4550 can_use_displaced_stepping_enum.
4551 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4552 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4553 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4554 add_setshow_enum_cmd.
4556 2012-06-30 Doug Evans <dje@google.com>
4558 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4559 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4560 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4562 2012-06-29 Doug Evans <dje@google.com>
4564 * linespec.c: #include "stack.h".
4565 (decode_line_with_current_source): Moved here from symtab.c and
4566 renamed from decode_line_spec. All callers updated.
4567 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4568 renamed from decode_line_spec_1. All callers updated.
4569 * linespec.h (decode_line_with_current_source): Move declaration here
4570 from symtab.h and renamed from decode_line_spec.
4571 (decode_line_with_last_displayed): Move declaration here from symtab.h
4572 and renamed from decode_line_spec_1.
4573 * macrocmd.c: #include "linespec.h".
4574 * symtab.c: Remove #include "linespec.h".
4576 2012-06-28 Doug Evans <dje@google.com>
4578 * dwarf2read.c (get_cu_length): New function.
4579 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4580 (create_debug_types_hash_table): Ditto.
4581 (init_cutu_and_read_dies): Ditto.
4582 (init_cutu_and_read_dies_no_follow): Ditto.
4584 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4586 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4587 (struct abbrev_table): Define.
4588 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4590 (init_cutu_and_read_dies): Update.
4591 (abbrev_table_alloc_abbrev): New function. Replaces
4592 dwarf_alloc_abbrev. All callers updated.
4593 (abbrev_table_add_abbrev): New function.
4594 (abbrev_table_lookup_abbrev): New function. Replaces
4595 dwarf2_lookup_abbrev. All callers updated.
4596 (abbrev_table_read_table): New function. Contents moved here from
4597 dwarf2_read_abbrevs.
4598 (dwarf2_read_abbrevs): Call it.
4599 (abbrev_table_free): New function.
4600 (dwarf2_free_abbrev_table): Call it.
4602 2012-06-28 Stan Shebs <stan@codesourcery.com>
4604 * osdata.c (info_osdata_command): Filter out "Title" columns
4606 * common/linux-osdata.c (struct osdata_type): Add title field.
4607 (osdata_table): Add titles to each entry.
4608 (linux_command_xfer_osdata): Add a column for title data.
4610 2012-06-28 Stan Shebs <stan@codesourcery.com>
4612 Make logging work for MI.
4614 * interps.h (interp_set_logging_ftype): New typedef.
4615 (struct interp_procs): New field set_logging_proc.
4616 (current_interp_set_logging): Declare.
4617 * interps.c (current_interp_set_logging): New function.
4618 * cli/cli-logging.c: Include interps.h.
4619 (set_logging_redirect): Call current_interp_set_logging.
4620 (pop_output_files): Ditto.
4621 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4622 * mi/mi-console.h (mi_console_set_raw): Declare.
4623 * mi/mi-console.c (mi_console_set_raw): New function.
4624 * mi/mi-interp.c (saved_raw_stdout): New global.
4625 (mi_set_logging): New function.
4626 (_initialize_mi_interp): Add it to interp procs.
4628 2012-06-28 Doug Evans <dje@google.com>
4630 * symtab.c (lookup_symbol_aux_objfile): Use
4631 ALL_OBJFILE_PRIMARY_SYMTABS.
4633 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4635 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4637 * common/buffer.c: Include inttypes.h and stdint.h.
4638 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4640 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4641 Pedro Alves <palves@redhat.com>
4643 * gdbthread.h (ALL_THREADS): New macro.
4644 (thread_list): Declare.
4645 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4646 going, but instead fall through to the stepping handling.
4647 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4648 the passed in signal. Adjust debug output.
4649 (resume_callback): Rename to ...
4650 (linux_nat_resume_callback): ... this. Pass the thread's last
4651 stop signal, if in "pass" state.
4652 (linux_nat_resume): Adjust to rename.
4653 (stop_wait_callback): New assertion. Don't respawn signals;
4654 instead let the LWP remain with SIGNALLED set.
4655 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4656 * remote.c (append_pending_thread_resumptions): New.
4657 (remote_vcont_resume): Call it.
4658 * target.h (target_resume): Extend comment.
4660 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4662 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4664 2012-06-27 Doug Evans <dje@google.com>
4666 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4667 Delete have_addr_base, unused. All uses updated.
4668 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4669 (dwarf2_get_pc_bounds): Add ranges_base.
4670 (dwarf2_record_block_ranges): Ditto.
4672 2012-06-27 Tom Tromey <tromey@redhat.com>
4675 * varobj.c (varobj_create): Update.
4676 (varobj_set_value): Update.
4677 * tracepoint.c (validate_actionline): Update.
4678 (encode_actions_1): Update.
4679 * parse.c (parse_exp_1): Add 'pc' argument.
4680 (parse_exp_in_context): Add 'pc' argument. Change how
4681 expression_context_pc is set.
4682 (parse_expression): Update.
4683 (parse_field_expression): Update.
4684 * expression.h (parse_exp_1): Update.
4685 * eval.c (parse_to_comma_and_eval): Update.
4686 * breakpoint.c (set_breakpoint_condition): Update.
4687 (update_watchpoint): Update.
4688 (init_breakpoint_sal): Update
4689 (find_condition_and_thread): Update.
4690 (watch_command_1): Update.
4691 (update_breakpoint_locations): Update.
4692 * ada-lang.c (ada_read_renaming_var_value): Update.
4693 (create_excep_cond_exprs): Update.
4695 2012-06-27 Doug Evans <dje@google.com>
4697 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4700 2012-06-26 Doug Evans <dje@google.com>
4702 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4704 (error_check_comp_unit_head): New arg abbrev_section. All callers
4706 (read_and_check_comp_unit_head): Ditto.
4707 (read_and_check_type_unit_head): Ditto.
4709 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4711 New attribute 'last' for gdb.Symtab_and_line.
4712 * NEWS (Python Scripting): Add entry about the new attribute.
4713 * python/py-symtab.c (salpy_get_last): New function which
4714 implements the get method for the 'last' attribute of
4715 gdb.Symtab_and_line.
4716 (sal_object_getset): Add entry for the 'last' attribute.
4718 2012-06-26 Doug Evans <dje@google.com>
4720 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4721 (dwo_sections): Add macinfo, macro.
4722 (dwarf2_locate_dwo_sections): Watch for macro sections.
4723 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4724 All callers updated. Handle DWO files.
4726 * NEWS: Mention new options "set debug dwarf2-read" and
4727 "set debug symtab-create".
4728 * dwarf2read.c (dwarf2_read_debug): New static global.
4729 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4730 (process_queue): Ditto.
4731 (process_full_comp_unit): Ditto.
4732 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4733 * elfread.c (elf_symfile_read): Add debugging printf.
4734 * minsyms.c (install_minimal_symbols): Ditto.
4735 * psymtab.c (allocate_psymtab): Ditto.
4736 * symfile.c (allocate_symtab): Ditto.
4737 * symtab.c (symtab_create_debug): New global.
4738 (_initialize_symtab): Add new option "set debug symtab-create".
4739 * symtab.h (symtab_create_debug): Declare.
4741 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4742 (lookup_dwo_type_unit): Ditto.
4744 2012-06-26 Roland McGrath <roland@hack.frob.com>
4745 H.J. Lu <hongjiu.lu@intel.com>
4747 * amd64-linux-nat.c: Include <sys/user.h>.
4748 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4749 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4750 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4752 * configure.ac: Check if the fs_base and gs_base members of
4753 `struct user_regs_struct' exist.
4754 * config.in: Regenerated.
4755 * configure: Likewise.
4757 2012-06-25 Michael Eager <eager@eagercon.com>
4760 * python/python.c (gdbpy_write): Check for interrupted output.
4762 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4764 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4765 register as a stack alignment in ARM mode.
4767 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4769 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4770 * gnulib/config.in: Regenerate.
4771 * gnulib/configure: Likewise.
4772 * gnulib/import/m4/extensions.m4: Update it.
4773 * gnulib/import/m4/gnulib-common.m4: Likewise.
4774 * gnulib/import/m4/memmem.m4: Likewise.
4775 * gnulib/import/m4/mmap-anon.m4: Likewise.
4776 * gnulib/import/m4/multiarch.m4: Likewise.
4777 * gnulib/import/stdint.in.h: Likewise.
4779 2012-06-24 Yao Qi <yao@codesourcery.com>
4781 * corefile.c (write_memory_with_notification): New.
4782 * gdbcore.h: Declare write_memory_with_notification.
4783 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4784 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4785 * valops.c (value_assign): Likewise.
4786 * python/py-inferior.c (infpy_write_memory): Call
4787 'write_memory_with_notification'.
4789 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 * cc-with-index.sh: Use also -ex "set auto-load no".
4793 2012-06-23 Doug Evans <dje@google.com>
4796 * NEWS: Document additions to .gdb_index.
4797 * dwarf2read.c: #include "gdb/gdb-index.h".
4798 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4799 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4800 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4801 (dwarf2_read_index): Recognize version 7.
4802 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4803 block_kind, domain): All callers updated.
4804 (dw2_find_symbol_file): Handle new index CU values.
4805 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4806 (add_index_entry): New args is_static, kind. All callers updated.
4807 (offset_type_compare, uniquify_cu_indices): New functions
4808 (symbol_kind): New function.
4809 (write_psymtabs_to_index): Remove duplicate CU values.
4810 (write_psymtabs_to_index): Write .gdb_index version 7.
4812 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4814 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4815 * configure: Regenerate.
4817 2012-06-20 Yao Qi <yao@codesourcery.com>
4819 * python/py-inferior.c: Update comments of infpy_read_memory
4820 and infpy_write_memory.
4822 2012-06-19 Tom Tromey <tromey@redhat.com>
4825 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4826 (push_type_address_space): Remove.
4827 * parse.c (insert_into_type_stack): New function.
4828 (insert_type): Likewise.
4829 (insert_type_address_space): Rename from push_type_address_space.
4830 Insert tp_space_identifier.
4831 * c-exp.y (ptr_operator): New production.
4832 (abs_decl): Use ptr_operator.
4833 (space_identifier): Call insert_type_address_space.
4834 (ptype): Don't use const_or_volatile_or_space_identifier.
4835 (const_or_volatile_noopt): Call insert_type.
4836 (conversion_type_id, conversion_declarator): New productions.
4837 (operator): Use conversion_type_id.
4839 2012-06-18 Doug Evans <dje@google.com>
4841 * symtab.h (minimal_symbol): New member created_by_gdb.
4842 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4844 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4845 (search_symbols): Call it instead of lookup_symbol.
4846 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4848 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4849 Adjust address for DW_OP_GNU_addr_index.
4850 * dwarf2expr.h (dwarf_expr_context): Update comment.
4851 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4852 all callers updated. Handle TLS vars described with
4853 DW_OP_GNU_const_index.
4854 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4855 and DW_OP_GNU_const_index.
4856 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4858 * block.c (find_block_in_blockvector): Make explicit the fact that we
4859 ignore GLOBAL_BLOCK.
4861 2012-06-18 Tom Tromey <tromey@redhat.com>
4863 * c-exp.y (operator): Remove trailing space after "delete" and
4866 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4867 Jan Kratochvil <jan.kratochvil@redhat.com>
4869 Switch i386 and derived targets to ON_STACK.
4870 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4871 (amd64_dicos_init_abi): Remove its installment.
4872 * dicos-tdep.c (dicos_init_abi): Remove the
4873 set_gdbarch_call_dummy_location call. Update the comment here.
4874 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4875 (i386_dicos_init_abi): Remove its installment.
4876 * i386-tdep.c (i386_push_dummy_code): New function.
4877 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4878 i386_push_dummy_code.
4880 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4882 Remove stale dummy frames.
4883 * breakpoint.c: Include dummy-frame.h.
4884 (longjmp_breakpoint_ops): New variable.
4885 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4886 bp_longjmp_call_dummy.
4887 (bpstat_what, bptype_string, print_one_breakpoint_location)
4888 (init_bp_location): Support bp_longjmp_call_dummy.
4889 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4890 (set_longjmp_breakpoint_for_call_dummy)
4891 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4893 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4894 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4895 FIXME comment and extend the other comment for bp_call_dummy.
4896 (set_longjmp_breakpoint_for_call_dummy)
4897 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4898 * dummy-frame.c: Include gdbthread.h.
4899 (pop_dummy_frame_bpt): New function.
4900 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4901 (dummy_frame_discard): New function.
4902 (cleanup_dummy_frames): Update the comment about longjmps.
4903 * dummy-frame.h (dummy_frame_discard): New declaration.
4904 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4905 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4906 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4907 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4908 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4909 keep_going if IS_LONGJMP and there is no other reason to stop.
4911 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4913 * remote-sim.c (sim_command_completer): Initialize
4916 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4919 * dwarf2loc.c (call_site_parameter_matches): Support
4920 CALL_SITE_PARAMETER_PARAM_OFFSET.
4921 (needs_dwarf_reg_entry_value): Push stub value.
4922 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4923 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4924 * gdbtypes.h (enum call_site_parameter_kind): New item
4925 CALL_SITE_PARAMETER_PARAM_OFFSET.
4926 (struct call_site.parameter.u): New field param_offset.
4928 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4930 Code cleanup: Generalize call_site.parameter key.
4931 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4932 variable dwarf_reg. New variable kind_u. Update parameters to
4933 push_dwarf_reg_entry_value.
4934 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4935 * dwarf2expr.h (enum call_site_parameter_kind)
4936 (union call_site_parameter_u): Forward declarations.
4937 (struct dwarf_expr_context_funcs): Update parameters and their
4938 description for push_dwarf_reg_entry_value.
4939 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4940 * dwarf2loc.c (call_site_parameter_matches): New function.
4941 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4942 description. Use call_site_parameter_matches.
4943 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4944 Update parameters and their description.
4945 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4946 New variable kind_u. Adjust the caller for updated parameters.
4947 (needs_dwarf_reg_entry_value): Update parameters.
4948 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4949 instead of attr. Update for the changed fields of struct
4950 call_site_parameter.
4951 * gdbtypes.h: Include dwarf2expr.h.
4952 (enum call_site_parameter_kind): New.
4953 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4954 fb_offset into new union u.
4956 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4958 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4959 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4962 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4964 * amd64-linux-nat.c (compat_x32_clock_t): New.
4965 (compat_x32_siginfo_t): Likewise.
4966 (compat_x32_siginfo_from_siginfo): Likewise.
4967 (siginfo_from_compat_x32_siginfo): Likewise.
4968 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4969 and siginfo_from_compat_x32_siginfo for x32.
4971 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4973 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4975 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4977 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4978 instead of gdbarch_ptr_bit.
4979 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4980 (amd64_supply_native_gregset): Likewise.
4981 (amd64_collect_native_gregset): Likewise.
4982 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4983 (amd64_supply_xsave): Likewise.
4984 (amd64_collect_fxsave): Likewise.
4985 (amd64_collect_xsave): Likewise.
4987 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4989 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4990 (amd64_linux_read_description): Check DS segment register for
4993 2012-06-15 Tom Tromey <tromey@redhat.com>
4995 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4996 init_cutu_and_read_dies.
4998 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5000 * MAINTAINERS (Write After Approval): Add myself to the list.
5002 2012-06-15 Tom Tromey <tromey@redhat.com>
5004 * valops.c (value_find_oload_method_list): Now static.
5005 * value.h (value_find_oload_method_list): Don't declare.
5007 2012-06-15 Tom Tromey <tromey@redhat.com>
5009 * valops.c (find_overload_match): Use value_ind.
5011 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5013 * infrun.c (handle_inferior_event): Correct indentation.
5015 2012-06-14 Doug Evans <dje@google.com>
5017 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5018 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5020 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5021 updated. Handle DEBUG_LOC_START_LENGTH.
5022 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5023 (loclist_describe_location): Ditto.
5025 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5028 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5029 after hiding inline functions.
5031 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5033 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5034 _initialize_inf_ttrace.
5036 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5038 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5039 _initialize_hppa_hpux_nat.
5041 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5043 * remote-sim.c (sim_command_completer): Change type of return
5044 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5046 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5047 Jan Kratochvil <jan.kratochvil@redhat.com>
5050 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5051 stack on a 16-byte boundary.
5053 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5055 * jit.c (finalize_symtab): Set function's return type to 'void' by
5058 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5059 H.J. Lu <hongjiu.lu@intel.com>
5061 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5062 Move bits common to both the classic LP64 and the new x32 ILP32
5064 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5065 (amd64_x32_linux_init_abi): New function.
5066 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5069 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5070 * i386-tdep.c (i386_pseudo_register_name): Make public.
5071 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5072 * amd64-tdep.c (amd64_dword_names): Add "eip".
5073 (amd64_x32_pseudo_register_type): New function
5074 (amd64_x32_init_abi): New function.
5076 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 * inferior.h (struct inferior_suspend_state): Comment out.
5080 (struct inferior): Comment out the field suspend.
5081 * infrun.c (struct infcall_suspend_state): Comment out the field
5083 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5086 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5088 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5089 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5090 function comment. Return ERROR for unresolved cases. Implement
5091 returning proper NAME.
5092 (yylex): Accept also NAME from classify_inner_name.
5093 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5094 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5096 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5098 2012-06-13 Tom Tromey <tromey@redhat.com>
5100 * breakpoint.c (condition_completer): New function.
5101 (_initialize_breakpoint): Use it.
5102 * value.c (complete_internalvar): New function.
5103 * value.h (complete_internalvar): Declare.
5105 2012-06-13 Tom Tromey <tromey@redhat.com>
5107 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5108 * breakpoint.c (catch_syscall_completer): Return a VEC.
5109 * cli/cli-cmds.c (complete_command): Update.
5110 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5111 (complete_on_enum): Likewise.
5112 * command.h: Include gdb_vecs.h.
5113 (completer_ftype): Change return type.
5114 (complete_on_cmdlist, complete_on_enum): Likewise.
5115 * completer.c (noop_completer, filename_completer)
5116 (location_completer): Return a VEC.
5117 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5119 (expression_completer, complete_line_internal, complete_line)
5120 (command_completer): Return a VEC.
5121 (gdb_completion_word_break_characters, line_completion_function):
5123 * completer.h: Include gdb_vecs.h.
5124 (complete_line, noop_completer, filename_completer)
5125 (expression_completer, location_completer, command_completer):
5127 * f-lang.c (f_word_break_characters): Return a VEC.
5128 * interps.c (interpreter_completer): Return a VEC.
5129 * language.h (struct language_defn)
5130 <la_make_symbol_completion_list>: Return a VEC.
5131 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5132 * symtab.c (free_completion_list): Take a VEC.
5133 (return_val_size, return_val_index): Remove.
5134 (return_val): Now a VEC.
5135 (completion_list_add_name): Update.
5136 (default_make_symbol_completion_list_break_on)
5137 (default_make_symbol_completion_list, make_symbol_completion_list)
5138 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5140 (add_filename_to_list): Update.
5141 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5143 (maybe_add_partial_symtab_filename): Update.
5144 (make_source_files_completion_list): Return a VEC.
5145 * symtab.h (default_make_symbol_completion_list_break_on)
5146 (default_make_symbol_completion_list, make_symbol_completion_list)
5147 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5148 (make_source_files_completion_list): Update.
5150 2012-06-13 Tom Tromey <tromey@redhat.com>
5152 * breakpoint.c (add_catch_command): Use completer_ftype.
5153 * breakpoint.h: Include command.h.
5154 (add_catch_command): Use completer_ftype.
5155 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5156 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5157 Use completer_ftype.
5158 * command.h (completer_ftype): New typedef.
5159 (set_cmd_completer): Use it.
5160 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5163 2012-06-13 Pedro Alves <palves@redhat.com>
5165 Partial revert of previous change.
5167 * serial.c (scb_base): New global.
5168 (serial_for_fd): New.
5169 (serial_open, serial_fdopen_ops): Link new serial in open serials
5171 (do_serial_close): Unlink serial from the open serials chain.
5173 2012-06-12 Pedro Alves <palves@redhat.com>
5175 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5177 (prepare_for_detach): No longer context switch here in non-stop
5179 (fetch_inferior_event): Ditto.
5180 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5181 to the event thread before removing breakpoints. Switch to the
5182 event thread before inserting breakpoints and resuming.
5183 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5184 event thread before resuming.
5185 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5186 Switch to the event thread before removing breakpoints.
5188 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5190 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5191 special characters correctly for the Windows shells. See
5192 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5194 [!__MINGW32__]: Remove extra double quote character from special
5197 2012-06-11 Stan Shebs <stan@codesourcery.com>
5199 * ui-out.h: Remove #if 0 declarations.
5200 * ui-out.c: Remove #if 0 functions.
5202 2012-06-11 Pedro Alves <palves@redhat.com>
5204 * ser-base.c (run_async_handler_and_reschedule): New.
5205 (fd_event, push_event): Use it.
5206 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5207 reference count to 1.
5208 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5210 (serial_is_open, serial_ref, serial_unref): New.
5211 * serial.h (serial_open): Adjust comment.
5212 (serial_is_open): Declare.
5213 (serial_close): Adjust comment.
5214 (serial_ref, serial_unref) Declare.
5215 (struct serial): New field 'refcnt'.
5217 2012-06-11 Pedro Alves <palves@redhat.com>
5219 Remove #if 0'd "connect" command, and unnecessary associated
5220 refcounting and serial reuse bits.
5222 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5223 * serial.c (last_serial_opened): Delete.
5225 (serial_open): Adjust.
5226 (serial_for_fd): Delete.
5227 (serial_fdopen_ops, do_serial_close): Adjust.
5228 (serial_fdopen_ops): Adjust.
5230 2012-06-11 Pedro Alves <palves@redhat.com>
5232 * serial.c (do_serial_close): Remove early return when SCB is
5235 2012-06-11 Tom Tromey <tromey@redhat.com>
5237 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5239 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 Fix regression by the "ambiguous linespec" series.
5242 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5243 get_last_displayed_symtab and get_last_displayed_line and depending
5246 2012-06-11 Tom Tromey <tromey@redhat.com>
5248 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5249 (dw2_find_symbol_file): Use it.
5251 2012-06-11 Michael Eager <eager@eagercon.com>
5253 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5254 * mips-linux-tdep.h (mips_signals): New
5256 2012-06-11 Tom Tromey <tromey@redhat.com>
5258 * infrun.c (handle_inferior_event)
5259 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5261 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5262 exception logic in all cases. Update comments.
5263 (insert_longjmp_resume_breakpoint): Set the exception resume
5266 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5268 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5270 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5272 * valarith.c (binop_types_user_defined_p): Fix a typo.
5274 2012-06-08 Yao Qi <yao@codesourcery.com>
5275 Chung-Lin Tang <cltang@codesourcery.com>
5277 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5278 * arch-utils.h: Declare.
5279 * gdbarch.sh: Add return_in_first_hidden_param_p.
5280 * gdbarch.c, gdbarch.h: Regenerated.
5281 * infcall.c (call_function_by_hand): Call
5282 gdbarch_return_in_first_hidden_param_p instead of
5283 language_pass_by_reference.
5285 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5286 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5287 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5288 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5289 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5290 `cplus_return_struct_by_reference'.
5291 (tic6x_return_value): Handle language cplusplus.
5292 (tic6x_return_in_first_hidden_param_p): New.
5293 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5295 2012-06-07 Doug Evans <dje@google.com>
5297 * dwarf2read.c (dwarf2_cu): Add comment.
5299 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5301 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5303 (mips_eabi_push_dummy_call): Likewise.
5304 (mips_n32n64_push_dummy_call): Likewise.
5305 (mips_o32_push_dummy_call): Likewise.
5306 (mips_o64_push_dummy_call): Likewise.
5308 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5310 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5312 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5314 * mips-tdep.c (mips_pseudo_register_type): Use
5315 mips_float_register_p.
5317 2012-06-06 Pedro Alves <palves@redhat.com>
5319 * infrun.c (handle_inferior_event): Remove calls to
5320 reinit_frame_cache that follow a context_switch call.
5322 2012-06-06 Pedro Alves <palves@redhat.com>
5324 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5325 context_switch and remove stale comment.
5327 2012-06-06 Pedro Alves <palves@redhat.com>
5329 * infrun.c (struct execution_control_state): Remove
5330 `new_thread_event' field.
5331 (handle_inferior_event): Simplify new threads handling; don't
5332 resume the inferior if we find a new thread.
5334 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5336 * NEWS: Document the deprecation of SH's 'regs' command.
5337 * inferior.h (all_registers_info): Add function declaration.
5338 * sh-tdep.c (sh_show_regs): Remove variable.
5339 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5340 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5341 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5342 (sh_show_regs_command): Remove functions.
5343 (sh_gdbarch_init): Don't set sh_show_regs.
5344 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5345 'info all-registers'.
5346 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5347 (sh64_show_regs): Remove functions.
5348 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5350 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5352 * configure.ac: Move development=true below AC_INIT.
5353 * configure: Regenerate.
5355 2012-06-05 Stan Shebs <stan@codesourcery.com>
5357 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5360 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5362 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5363 argument as ssize_t.
5364 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5365 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5366 * target.c (target_read_stack, target_write_memory)
5367 (target_write_raw_memory): Likewise.
5368 * target.h (target_read_stack, target_write_memory)
5369 (target_write_raw_memory): Likewise.
5371 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5373 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5374 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5375 * target.c (target_read_memory): Change LEN to ssize_t.
5376 * target.h (target_read_memory): Change LEN to ssize_t.
5378 2012-06-05 Pedro Alves <palves@redhat.com>
5382 * breakpoint.c (until_break_command): Only fetch the selected
5383 frame after decode_line_1.
5385 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5387 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5388 event breakpoint at _start, __start or main if a program
5389 interpreter is not found.
5391 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5393 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5395 * windows-tdep.c: #include "objfiles.h".
5396 (windows_iterate_over_objfiles_in_search_order): New function.
5397 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5398 iterate_over_objfiles_in_search_order gdbarch method to
5399 windows_iterate_over_objfiles_in_search_order.
5400 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5402 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5404 * gdbarch.sh: Add generation of
5405 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5406 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5407 (iterate_over_objfiles_in_search_order): New gdbarch method.
5408 * gdbarch.h, gdbarch.c: Regenerate.
5409 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5411 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5413 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5414 out of lookup_symbol_aux_symtabs.
5415 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5416 call to lookup_symbol_aux_objfile.
5417 (struct global_sym_lookup_data): New type.
5418 (lookup_symbol_global_iterator_cb): New function.
5419 (lookup_symbol_global): Search for symbol using
5420 gdbarch_iterate_over_objfiles_in_search_order and
5421 lookup_symbol_global_iterator_cb.
5422 * findvar.c (struct minsym_lookup_data): New type.
5423 (minsym_lookup_iterator_cb): New function.
5424 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5425 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5426 and minsym_lookup_iterator_cb.
5428 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5430 Revert the following patch:
5431 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5432 try locating the symbol in the symbol's own objfile first, before
5433 extending the search to all objfiles.
5434 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5435 out of lookup_symbol_aux_symtabs.
5436 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5437 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5438 Do not search EXCLUDE_OBJFILE.
5439 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5440 (lookup_symbol_global): Search for matches in the block's objfile
5441 first, before searching all other objfiles.
5443 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5445 * breakpoint.c (find_condition_and_thread): Stop parsing
5446 as soon as the first invalid keyword is found.
5448 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5450 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5452 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5454 * config/djgpp/djcheck.sh: Add copyright header.
5456 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5458 * copyright.py (update_files, main): Fix path to update-copyright
5461 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5463 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5464 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5465 for which a reminder to update by hand is printed.
5467 2012-06-04 Doug Evans <dje@google.com>
5469 * buildsym.c (make_blockvector): Add comment.
5471 2012-06-04 Pedro Alves <palves@redhat.com>
5473 * arch-utils.c (default_gdb_signal_from_target): Delete.
5474 * arch-utils.h (default_gdb_signal_from_target): Delete.
5475 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5476 gdbarch_gdb_signal_from_target_p.
5477 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5479 * gdbarch.h: Regenerate.
5480 * gdbarch.c: Regenerate.
5482 2012-06-04 Pedro Alves <palves@redhat.com>
5484 * gdbarch.sh (gdb_signal_from_target): Mention that the
5485 implementation of the method must be host independent.
5486 * gdbarch.h: Regenerate.
5488 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5492 (target_read_memory_bfd): New function.
5493 (symbol_file_add_from_memory): Use it.
5495 2012-06-03 Doug Evans <dje@google.com>
5497 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5499 (basic_lookup_transparent_type): Ditto.
5501 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5502 (ALL_PRIMARY_SYMTABS): Use it.
5503 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5504 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5505 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5506 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5507 (basic_lookup_transparent_type): Ditto.
5509 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5511 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5512 it to optimize resolution of demangled name.
5514 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5516 * configure.ac (development): Define new variable.
5517 Call AC_CHECK_LIB for mcheck if $development.
5518 (ERROR_ON_WARNING): Enable it by default only if $development.
5519 * config.in: Regenerate.
5520 * configure: Regenerate.
5522 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5524 * target.c (target_read_memory): Make LEN argument as size_t.
5525 * target.h (target_read_memory): Likewise.
5527 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5529 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5531 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5533 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5534 BookE interface for PowerPC server processors if not available
5535 in the Linux Kernel.
5537 2012-05-31 Keith Seitz <keiths@redhat.com>
5539 * linespec.c (decode_objc): Add cleanup to free
5541 (find_linespec_symbols): Add cleanup to free CLASSES.
5542 * symfile.c (find_separate_debug_file_by_debuglink): Add
5543 cleanup to free DEBUGLINK.
5544 * ui-out.c (clear_header_list): No need to check if
5545 HEADER_NEXT.COLHDR is NULL.
5546 Free HEADER_NEXT.COL_NAME.
5548 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5550 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5553 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5555 * configure.host (gdb_host_cpu): Handle tilegx*.
5556 (gdb_host): Handle tilegx-*-linux*.
5557 * tilegx-linux-nat.c: New file.
5558 * config/tilegx/linux.mh: New file.
5560 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5562 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5563 tilegx-linux-tdep.o.
5564 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5565 tilegx-linux-tdep.c.
5566 * configure.tgt: Handle tilegx-*-linux*.
5567 * tilegx-tdep.h: New file.
5568 * tilegx-tdep.c: New file.
5569 * tilegx-linux-tdep.c: New file.
5570 * regformats/reg-tilegx.dat: New file.
5572 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5574 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5575 accounting of hw watchpoints on ppc.
5577 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5579 * source.c (openp): Expand tilde in path entries.
5581 2012-05-29 Doug Evans <dje@google.com>
5583 * buildsym.c (block_compar): Fix comment.
5584 (end_symtab): Fix and clarify some comments.
5586 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5587 cleanup_undefined_types.
5588 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5589 All callers updated.
5591 2012-05-29 Tom Tromey <tromey@redhat.com>
5593 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5595 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5596 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5598 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5601 2012-05-29 Tristan Gingold <gingold@adacore.com>
5603 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5604 (struct darwin_info): ... New struct.
5605 (solib_darwin_pspace_data): New variable.
5606 (darwin_pspace_data_cleanup): New function.
5607 (get_darwin_info): Likewise.
5608 (darwin_dyld_version_ok, darwin_load_image_infos)
5609 (darwin_solib_get_all_image_info_addr_at_init)
5610 (darwin_solib_read_all_image_info_addr): Add info argument.
5612 (darwin_current_sos): Use per pspace structure.
5613 (darwin_solib_create_inferior_hook): Likewise.
5614 (darwin_clear_solib): Likewise.
5615 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5617 2012-05-28 Pedro Alves <palves@redhat.com>
5619 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5620 block that uses them. Clear ecss before handling each event.
5622 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5624 * solib-svr4.c (svr4_current_sos): New comment on
5625 svr4_current_sos_via_xfer_libraries fall back.
5627 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5629 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5630 it as a fallback for TYPE_IS_OPAQUE.
5631 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5632 symbols for lookup_symbol.
5634 2012-05-24 John Steele Scott <toojays@toojays.net>
5636 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5637 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5638 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5639 (check_producer): ... this new function, which also checks for ICC
5640 and caches the result.
5641 (producer_is_icc): New function.
5642 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5645 2012-05-24 Pedro Alves <palves@redhat.com>
5649 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5650 (default_gdb_signal_to_target): ... this. Add comment.
5651 (default_gdb_signal_from_host): Rename to ...
5652 (default_gdb_signal_from_target): ... this. Add comment.
5653 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5654 (default_gdb_signal_to_target): ... this.
5655 (default_gdb_signal_from_host): Rename to ...
5656 (default_gdb_signal_from_target): ... this.
5657 * corelow.c (core_open): Adjust to naming change. Replace comment.
5658 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5659 (gdb_signal_from_target): ... this. Adjust to
5660 default_gdb_signal_from_host naming change. Extend comment.
5661 (gdb_signal_to_host): Rename to ...
5662 (gdb_signal_to_target): ... this. Adjust to
5663 default_gdb_signal_to_host naming change.
5664 * gdbarch.h, gdbarch.c: Renegerate.
5666 2012-05-24 Pedro Alves <palves@redhat.com>
5670 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5672 2012-05-24 Pedro Alves <palves@redhat.com>
5676 Replace target_signal with gdb_signal throughout.
5678 2012-05-24 Pedro Alves <palves@redhat.com>
5682 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5683 string, instead of reusing the va_list argument.
5685 2012-05-24 Tom Tromey <tromey@redhat.com>
5687 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5690 2012-05-23 Doug Evans <dje@google.com>
5692 * symtab.c (search_symbols): Formatting fixes.
5693 (print_symbol_info): Formatting fixes.
5695 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5696 int64_t change to leb128 API.
5697 (read_encoded_value, decode_frame_entry_1): Ditto.
5698 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5699 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5700 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5701 (execute_stack_op): Ditto.
5702 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5703 (safe_read_uleb128, safe_read_sleb128): Ditto.
5704 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5705 (dwarf2_compile_expr_to_ax): Ditto.
5706 (locexpr_describe_location_piece): Ditto.
5707 (disassemble_dwarf_expression): Ditto.
5708 (locexpr_describe_location_1): Ditto.
5710 2012-05-23 Stan Shebs <stan@codesourcery.com>
5711 Kwok Cheung Yeung <kcy@codesourcery.com>
5713 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5714 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5715 (mi-cmd-info.o): New rule.
5716 * osdata.h (info_osdata_command): New declaration.
5717 * osdata.c (info_osdata_command): Change to non-static.
5718 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5719 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5720 * mi/mi-cmd-info.c: New file.
5722 2012-05-23 Doug Evans <dje@google.com>
5724 * symtab.c (search_symbols): Pass NULL for file_matcher to
5725 expand_symtabs_matching if there are no files to match.
5727 * gdbtypes.c (lookup_typename): Simplify.
5729 2012-05-23 Pedro Alves <palves@redhat.com>
5731 * arch-utils.h (default_target_signal_to_host): Delete.
5732 * arch-utils.c (default_target_signal_to_host): Delete.
5733 * gdbarch.sh (target_signal_to_host): Remove.
5734 * gdbarch.h, gdbarch.c: Regenerate.
5736 2012-05-22 Doug Evans <dje@google.com>
5738 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5740 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5741 (execute_cfa_program): Update to match API of leb128 functions.
5742 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5744 (read_unsigned_leb128, read_signed_leb128): Delete.
5745 (read_initial_length): Change type of buf argument to
5747 (read_encoded_value): Update to match API of leb128 functions.
5748 (decode_frame_entry): Change result to "const gdb_byte *", and
5749 similarly for "start" parameter.
5750 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5751 (dwarf2_build_frame_info): Change local frame_ptr to
5753 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5754 read_uleb128, read_sleb128. All callers updated.
5755 (safe_skip_leb128): New function.
5756 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5757 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5758 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5759 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5760 read_uleb128, read_sleb128.
5761 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5762 (execute_stack_op): Update to match API of leb128 functions.
5763 * dwarf2expr.h: #include "leb128.h".
5764 (read_uleb128, read_sleb128): Delete.
5765 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5766 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5767 * dwarf2loc.c (debug_loc_kind): New enum.
5768 (decode_debug_loc_addresses): New function.
5769 (decode_debug_loc_dwo_addresses): New function.
5770 (dwarf2_find_location_expression): Rewrite.
5771 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5772 (locexpr_describe_location_piece): Ditto.
5773 (disassemble_dwarf_expression): Ditto.
5774 (locexpr_describe_location_1): Ditto.
5775 (loclist_describe_location): Rewrite.
5776 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5777 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5778 (dwarf2_section_buffer_overflow_complaint): Renamed from
5779 dwarf2_macros_too_long_complaint. All callers updated.
5780 (skip_leb128): Delete.
5781 (init_cu_die_reader): Initialize reader->buffer_end.
5782 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5783 (skip_form_bytes): New arg buffer_end. All callers updated.
5784 Replace call to skip_leb128 with gdb_skip_leb128.
5785 (skip_unknown_opcode): New arg mac_end. All callers updated.
5786 (fill_in_loclist_baton): Initialize baton->from_dwo.
5788 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5790 * mips-linux-nat.c (mips_linux_read_description): Use a more
5791 verbose error message.
5793 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5795 * NEWS: Add MIPS/Linux DSP support.
5796 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5797 (SIGCONTEXT_DSPCTL): New macro.
5798 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5799 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5800 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5801 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5802 (N64_SIGCONTEXT_HI3): Likewise.
5803 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5804 (N64_SIGCONTEXT_LO3): Likewise.
5805 (N64_SIGCONTEXT_DSPCTL): Likewise.
5806 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5807 (mips_linux_o32_sigframe_init): Handle DSP registers.
5808 (mips_linux_n32n64_sigframe_init): Likewise.
5810 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5812 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5815 2012-05-22 Pedro Alves <palves@redhat.com>
5817 * target.h (store_waitstatus): Move declaration ...
5818 * inf-child.h (store_waitstatus): ... here.
5819 * target.c: Move inclusion of gdb_wait.h, and ...
5820 (store_waitstatus): ... this ...
5821 * inf-child.c: ... here.
5822 * linux-nat.c: Include inf-child.h.
5823 * rs6000-nat.c: Include inf-child.h.
5824 * spu-linux-nat.c: Include inf-child.h.
5826 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5828 * tracepoint.c (start_tracing): Add missing i18n markup.
5829 (stop_tracing, set_trace_user): Ditto.
5830 (set_trace_notes, set_trace_stop_notes): Ditto.
5832 2012-05-21 Tom Tromey <tromey@redhat.com>
5835 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5837 * value.h (value_cast_pointers): Update.
5838 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5839 (value_cast): Update.
5840 (update_search_result): New function.
5841 (do_search_struct_field): New, from search_struct_field. Check
5842 for ambiguous results.
5843 (search_struct_field): Rewrite.
5844 * infcall.c (value_arg_coerce): Update.
5845 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5846 value_cast_pointers.
5847 * ada-lang.c (ada_convert_actual): Update.
5849 2012-05-21 Tom Tromey <tromey@redhat.com>
5851 * macroexp.c (macro_stringify): Terminate the string.
5853 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5855 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5857 * auto-load.c (auto_load_expand_dir_vars): New function.
5858 (auto_load_safe_path_vec_update): Use it, remove the
5859 substitute_path_component call thanks to it.
5860 (auto_load_objfile_script): Remove the debug_file_directory processing.
5861 Use auto_load_expand_dir_vars, remove the substitute_path_component
5863 * configure: Regenerate.
5864 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5865 path. Escape $ also for $debugdir.
5866 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5867 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5869 2012-05-20 Doug Evans <dje@google.com>
5871 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5872 before use. Check for symtab->includes == NULL before scanning it.
5874 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5876 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5878 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5880 * NEWS: Add microMIPS support and "set mips compression",
5881 "show mips compression" commands.
5882 * mips-tdep.h (mips_isa): New enum.
5883 (gdbarch_tdep): Add mips_isa.
5884 (mips_pc_is_mips16): Update prototype.
5885 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5886 * mips-tdep.c (mips_compression_mips16): New variable.
5887 (mips_compression_micromips): Likewise.
5888 (mips_compression_strings): Likewise.
5889 (mips_compression_string): Likewise.
5890 (is_mips16_isa, is_micromips_isa): New functions.
5891 (is_mips16_addr): Rename to...
5892 (is_compact_addr): ... this.
5893 (unmake_mips16_addr): Likewise to...
5894 (unmake_compact_addr): ... this.
5895 (make_mips16_addr): Likewise to...
5896 (make_compact_addr): ... this.
5897 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5899 (mips_elf_make_msymbol_special): Handle microMIPS code.
5900 (msymbol_is_special): Rename to...
5901 (msymbol_is_mips16): ... this.
5902 (mips_make_symbol_special, mips_pc_is_mips16): Update
5904 (msymbol_is_mips, msymbol_is_micromips): New functions.
5905 (mips16_to_32_reg): Rename to...
5906 (mips_reg3_to_reg): ... this.
5907 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5908 (mips_pc_isa): Likewise.
5909 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5911 (mips_fetch_instruction): Pass return status instead of printing
5912 an error message if requested. Handle microMIPS code. Bail out
5914 (micromips_op): New macro.
5915 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5916 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5917 (b6s4_op, b7s3_reg): Likewise.
5918 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5919 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5920 (mips_insn_size): New function.
5921 (mips32_next_pc): Update mips_fetch_instruction call.
5922 (micromips_relative_offset7): New function.
5923 (micromips_relative_offset10): Likewise.
5924 (micromips_relative_offset16): Likewise.
5925 (micromips_pc_insn_size): Likewise.
5926 (micromips_bc1_pc): Likewise.
5927 (micromips_next_pc): Likewise.
5928 (unpack_mips16): Update mips_fetch_instruction call.
5929 (extended_mips16_next_pc): Update according to change to
5931 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5933 (mips16_scan_prologue): Update mips_fetch_instruction call.
5934 Update according to change to mips16_to_32_reg.
5935 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5936 (mips_insn16_frame_base_sniffer): Likewise.
5937 (micromips_decode_imm9): New function.
5938 (micromips_scan_prologue): Likewise.
5939 (mips_micro_frame_cache): Likewise.
5940 (mips_micro_frame_this_id): Likewise.
5941 (mips_micro_frame_prev_register): Likewise.
5942 (mips_micro_frame_sniffer): Likewise.
5943 (mips_micro_frame_unwind): New variable.
5944 (mips_micro_frame_base_address): New function.
5945 (mips_micro_frame_base): New variable.
5946 (mips_micro_frame_base_sniffer): New function.
5947 (mips32_scan_prologue): Update mips_fetch_instruction call.
5948 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5949 rather than for MIPS16.
5950 (mips_insn32_frame_base_sniffer): Likewise.
5951 (mips_addr_bits_remove): Handle microMIPS code.
5952 (deal_with_atomic_sequence): Rename to...
5953 (mips_deal_with_atomic_sequence): ... this. Update the type
5954 of the variable used to hold an instruction. Remove the ISA bit
5955 check. Update mips_fetch_instruction call.
5956 (micromips_deal_with_atomic_sequence): New function.
5957 (deal_with_atomic_sequence): Likewise.
5958 (mips_about_to_return): Handle microMIPS code. Update
5959 mips_fetch_instruction call.
5960 (heuristic_proc_start): Check for the standard MIPS ISA rather
5961 than for MIPS16. Update mips_pc_is_mips16 and
5962 mips_fetch_instruction calls. Handle microMIPS code.
5963 (mips_push_dummy_code): Handle microMIPS code.
5964 (mips_eabi_push_dummy_call): Likewise.
5965 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5966 (mips_o64_push_dummy_call): Handle microMIPS code.
5967 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5968 (is_delayed): Remove function.
5969 (mips_single_step_through_delay): Replace the call to is_delayed
5970 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5971 Handle microMIPS code.
5972 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5974 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5976 (micromips_in_function_epilogue_p): New function.
5977 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5979 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5981 (gdb_print_insn_mips): Likewise.
5982 (mips_breakpoint_from_pc): Likewise.
5983 (mips_remote_breakpoint_from_pc): New function.
5984 (mips32_instruction_has_delay_slot): Simplify making use of the
5985 updated mips_fetch_instruction interface.
5986 (micromips_instruction_has_delay_slot): New function.
5987 (mips16_instruction_has_delay_slot): Simplify making use of the
5988 updated mips_fetch_instruction interface.
5989 (mips_adjust_breakpoint_address): Check for the standard MIPS
5990 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5991 calls. Handle microMIPS code.
5992 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5993 (mips_skip_trampoline_code): Handle microMIPS code.
5994 (global_mips_compression): New function.
5995 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5996 file flags. Register the microMIPS remote breakpoint handler
5997 and heuristic frame unwinder.
5998 (show_mips_compression): New function.
5999 (_initialize_mips_tdep): Add the "set mips compression" and
6000 "show mips compression" commands.
6002 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6007 * amd64-darwin-tdep.c:
6008 * arm-symbian-tdep.c:
6012 * bfin-linux-tdep.c:
6019 * dwarf2-frame-tailcall.c:
6048 * microblaze-tdep.c:
6049 * mips-linux-tdep.c:
6057 * python/py-finishbreakpoint.c:
6058 * python/py-inferior.c:
6059 * python/py-infthread.c:
6063 * remote-m32r-sdi.c:
6067 * rs6000-aix-tdep.c:
6093 * amd64-darwin-tdep.c:
6094 * arm-symbian-tdep.c:
6095 * arm-tdep.c: Delete unused variables.
6097 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6099 Rename $ddir to $datadir.
6100 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6101 * auto-load.c (auto_load_safe_path_vec_update)
6102 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6103 * configure: Regenerate.
6104 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6105 Likewise. Remove the 'use $ddir' help string.
6107 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6109 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6110 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6112 2012-05-18 Tom Tromey <tromey@redhat.com>
6115 * valprint.h (struct value_print_options) <symbol_print>: New
6117 * valprint.c (user_print_options): Add default for symbol_print.
6118 (show_symbol_print): New function.
6119 (generic_val_print): Respect symbol_print.
6120 (_initialize_valprint): Add "print symbol" setting.
6121 * f-valprint.c (f_val_print): Respect symbol_print.
6122 * c-valprint.c (c_val_print): Respect symbol_print.
6124 * printcmd.c (print_address_symbolic): Return int. Ignore some
6126 (print_address_demangle): Return int.
6127 * defs.h: (print_address_symbolic): Return int.
6128 * value.h (print_address_demangle): Return int.
6130 2012-05-18 Tom Tromey <tromey@redhat.com>
6132 * valprint.c (val_print_string): Don't print leading space.
6133 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6134 print space before string or vtbl.
6135 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6137 * jv-valprint.c (java_value_print): Print space before string.
6138 * go-valprint.c (print_go_string): Print space before string.
6139 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6140 space before string.
6141 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6142 space before string or vtbl.
6143 * auxv.c (fprint_target_auxv): Print space after address.
6145 2012-05-18 Tom Tromey <tromey@redhat.com>
6147 * printcmd.c (print_address_demangle): Remove special case for 0.
6149 2012-05-18 Tom Tromey <tromey@redhat.com>
6151 * printcmd.c (print_address_demangle): Add 'opts' argument.
6152 * p-valprint.c (pascal_val_print): Update.
6153 * jv-valprint.c (java_val_print): Update.
6155 * valprint.c (generic_val_print): Update.
6156 (print_function_pointer_address): Add 'options' argument. Remove
6157 'addressprint' argument. Update.
6158 * m2-valprint.c (print_unpacked_pointer): Update.
6159 * gnu-v3-abi.c (print_one_vtable): Update.
6160 (gnuv3_print_method_ptr): Update.
6161 * f-valprint.c (f_val_print): Update.
6162 * cp-valprint.c (cp_print_value_fields): Update.
6163 * valprint.h (print_function_pointer_address): Update.
6164 * c-valprint.c (c_val_print): Update.
6166 2012-05-18 Tom Tromey <tromey@redhat.com>
6168 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6169 directly corresponding to the found psymtab.
6170 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6171 (dw2_find_pc_sect_symtab): Use it.
6172 * block.h (blockvector_contains_pc): Declare.
6173 * block.c (find_block_in_blockvector): New function.
6174 (blockvector_for_pc_sect): Use it.
6175 (blockvector_contains_pc): New function.
6177 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6179 * mips-tdep.h (mips_write_pc): New prototype.
6180 * mips-tdep.c (mips_write_pc): Make external, add description.
6181 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6184 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6186 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6188 (mips_unwind_pc, mips_write_pc): Likewise.
6189 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6192 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6194 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6195 proc_warn, proc_error, proc_get_status, proc_flags,
6196 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6197 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6198 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6199 proc_stop_process, proc_wait_for_stop, proc_run_process,
6200 proc_set_traced_signals, proc_set_traced_faults,
6201 proc_set_traced_sysentry, proc_set_traced_sysexit,
6202 proc_set_held_signals, proc_get_held_signals,
6203 proc_get_traced_signals, proc_get_traced_faults,
6204 proc_get_traced_sysentry, proc_get_traced_sysexit,
6205 proc_clear_current_fault, proc_set_current_signal,
6206 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6207 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6208 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6209 proc_get_current_thread, proc_get_current_thread,
6210 proc_get_current_thread, proc_update_threads,
6211 proc_update_threads, proc_update_threads, proc_update_threads,
6212 proc_iterate_over_threads, procfs_find_new_threads,
6213 procfs_pid_to_str): Make static. Remove advance declaration.
6214 (proc_cursig): Make static. Conditionalized defintion on
6215 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6216 (proc_syscall, proc_set_kill_on_last_close,
6217 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6218 proc_get_pending_signals, proc_get_signal_actions,
6219 proc_trace_signal, proc_ignore_signal): Delete.
6221 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6223 * coffread.c (cs_section_address): Passing proper argument for
6224 `bfd_get_section_vma'.
6225 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6226 `bfd_get_section_flags'.
6227 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6228 `bfd_get_section_vma'.
6230 2012-05-16 Tom Tromey <tromey@redhat.com>
6233 * macrotab.h: (macro_define_special): Declare.
6234 (enum macro_special_kind): New.
6235 (struct macro_definition) <argc, replacement>: Update comments.
6236 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6237 (macro_define_object_internal): New function.
6238 (macro_define_object): Use it.
6239 (macro_define_special): New function.
6240 (fixup_definition): New function.
6241 (macro_lookup_definition, foreach_macro_in_scope)
6242 (foreach_macro): Use fixup_definition.
6243 * macroexp.h (macro_stringify): Declare.
6244 * macroexp.c (free_buffer_return_text): New function.
6245 (stringify): Constify "arg".
6246 (macro_stringify): New function.
6247 * dwarf2read.c (macro_start_file): Call macro_define_special.
6249 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6250 Maciej W. Rozycki <macro@mips.com>
6252 * breakpoint.h (bp_location): Add related_address member.
6253 * inferior.h (get_return_value): Take a pointer to struct value
6254 instead of struct type for the function requested.
6255 * value.h (using_struct_return): Likewise.
6256 * gdbarch.sh (return_value): Take a pointer to struct value
6257 instead of struct type for the function requested.
6258 * breakpoint.c (set_breakpoint_location_function): Initialize
6259 related_address for bp_gnu_ifunc_resolver breakpoints.
6260 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6261 requested function's address to gdbarch_return_value.
6262 * eval.c (evaluate_subexp_standard): Pass the requested
6263 function's address to using_struct_return.
6264 * infcall.c (call_function_by_hand): Pass the requested
6265 function's address to using_struct_return and
6266 gdbarch_return_value.
6267 * infcmd.c (get_return_value): Take a pointer to struct value
6268 instead of struct type for the function requested.
6269 (print_return_value): Update accordingly.
6270 (finish_command_continuation): Likewise.
6271 * stack.c (return_command): Pass the requested function's
6272 address to using_struct_return and gdbarch_return_value.
6273 * value.c (using_struct_return): Take a pointer to struct value
6274 instead of struct type for the function requested. Pass the
6275 requested function's address to gdbarch_return_value.
6276 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6277 New function_value member, replacing function_type.
6278 (bpfinishpy_dealloc): Update accordingly.
6279 (bpfinishpy_pre_stop_hook): Likewise.
6280 (bpfinishpy_init): Likewise. Record the requested function's
6282 * mips-tdep.c (mips_fval_reg): New enum.
6283 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6284 words put in GP registers.
6285 (mips_o64_push_dummy_call): Update a comment.
6286 (mips_o32_return_value): Take a pointer to struct value instead
6287 of struct type for the function requested and use it to check if
6288 using the MIPS16 calling convention. Return the designated
6289 general purpose registers for floating-point values returned in
6291 (mips_o64_return_value): Likewise.
6292 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6293 (ppc_sysv_abi_broken_return_value): Likewise.
6294 (ppc64_sysv_abi_return_value): Likewise.
6295 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6296 value instead of struct type for the function requested.
6297 * amd64-tdep.c (amd64_return_value): Likewise.
6298 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6299 * arm-tdep.c (arm_return_value): Likewise.
6300 * avr-tdep.c (avr_return_value): Likewise.
6301 * bfin-tdep.c (bfin_return_value): Likewise.
6302 * cris-tdep.c (cris_return_value): Likewise.
6303 * frv-tdep.c (frv_return_value): Likewise.
6304 * h8300-tdep.c (h8300_return_value): Likewise.
6305 (h8300h_return_value): Likewise.
6306 * hppa-tdep.c (hppa32_return_value): Likewise.
6307 (hppa64_return_value): Likewise.
6308 * i386-tdep.c (i386_return_value): Likewise.
6309 * ia64-tdep.c (ia64_return_value): Likewise.
6310 * iq2000-tdep.c (iq2000_return_value): Likewise.
6311 * lm32-tdep.c (lm32_return_value): Likewise.
6312 * m32c-tdep.c (m32c_return_value): Likewise.
6313 * m32r-tdep.c (m32r_return_value): Likewise.
6314 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6315 * m68k-tdep.c (m68k_return_value): Likewise.
6316 (m68k_svr4_return_value): Likewise.
6317 * m88k-tdep.c (m88k_return_value): Likewise.
6318 * mep-tdep.c (mep_return_value): Likewise.
6319 * microblaze-tdep.c (microblaze_return_value): Likewise.
6320 * mn10300-tdep.c (mn10300_return_value): Likewise.
6321 * moxie-tdep.c (moxie_return_value): Likewise.
6322 * mt-tdep.c (mt_return_value): Likewise.
6323 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6324 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6325 (ppc_sysv_abi_broken_return_value): Likewise.
6326 (ppc64_sysv_abi_return_value): Likewise.
6327 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6328 * rl78-tdep.c (rl78_return_value): Likewise.
6329 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6330 * rx-tdep.c (rx_return_value): Likewise.
6331 * s390-tdep.c (s390_return_value): Likewise.
6332 * score-tdep.c (score_return_value): Likewise.
6333 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6334 (sh_return_value_fpu): Likewise.
6335 * sh64-tdep.c (sh64_return_value): Likewise.
6336 * sparc-tdep.c (sparc32_return_value): Likewise.
6337 * sparc64-tdep.c (sparc64_return_value): Likewise.
6338 * spu-tdep.c (spu_return_value): Likewise.
6339 * tic6x-tdep.c (tic6x_return_value): Likewise.
6340 * v850-tdep.c (v850_return_value): Likewise.
6341 * vax-tdep.c (vax_return_value): Likewise.
6342 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6343 * xtensa-tdep.c (xtensa_return_value): Likewise.
6344 * gdbarch.c: Regenerate.
6345 * gdbarch.h: Regenerate.
6347 2012-05-15 Tom Tromey <tromey@redhat.com>
6349 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6351 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6353 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6354 of command in two error message.
6356 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6358 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6360 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6362 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6364 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6366 * NEWS (show auto-load scripts-directory): Add forgotten command.
6368 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6370 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6373 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6375 * amd64-tdep.c: Include features/i386/x32.c and
6376 features/i386/x32-avx.c.
6377 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6378 initialize_tdesc_x32_avx.
6380 2012-05-14 Stan Shebs <stan@codesourcery.com>
6383 * breakpoint.h (enum bptype): New type bp_dprintf.
6384 (struct breakpoint): New field extra_string.
6385 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6386 (create_breakpoint): Add extra_string arg.
6387 * breakpoint.c (dprintf_breakpoint_ops): New.
6388 (is_breakpoint): Add bp_dprintf.
6389 (bpstat_what): Add dprintf case.
6390 (bptype_string): Ditto.
6391 (print_one_breakpoint_location): Ditto.
6392 (init_bp_location): Ditto.
6393 (bkpt_print_mention): Ditto.
6394 (dprintf_style_enums): New array.
6395 (dprintf_style): New global.
6396 (dprintf_function): New global.
6397 (dprintf_channel): New global.
6398 (update_dprintf_command_list): New function.
6399 (update_dprintf_commands): New function.
6400 (init_breakpoint_sal): Add extra_string argument, handle it.
6401 (create_breakpoint_sal): Add extra_string argument.
6402 (create_breakpoints_sal): Add extra_string argument, update callers.
6403 (find_condition_and_thread): Add extra argument.
6404 (create_breakpoint): Add extra_string argument, record it.
6405 (dprintf_command): New function.
6406 (break_command_1): Add arg to create_breakpoint call.
6407 (handle_gnu_v3_exceptions): Ditto.
6408 (trace_command): Ditto.
6409 (ftrace_command): Ditto.
6410 (strace_command): Ditto.
6411 (bkpt_print_mention): Add dprintf case.
6412 (create_breakpoint_sal_default): Add extra_string argument.
6413 (_initialize_breakpoint): Add new commands.
6414 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6415 * python/py-breakpoint.c (bppy_init): Ditto.
6416 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6418 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6420 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6422 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6424 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6427 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6429 Add a new function gdb.find_pc_line to the Python API.
6430 * NEWS (Python Scripting): Add entry about the new function.
6431 * python/python.c (gdbpy_find_pc_line): New function which
6432 implements gdb.find_pc_line.
6433 (GdbMethods): Add entry for the new function.
6435 2012-05-12 Pedro Alves <palves@redhat.com>
6437 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6438 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6440 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6442 * inferior.c: Include completer.h
6443 (initialize_inferiors): Set completer of add-inferior to
6446 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6448 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6449 gdbarch_ptr_bit for x32 core dump.
6451 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6453 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6454 and features/i386/x32-avx-linux.c.
6456 2012-05-11 Stan Shebs <stan@codesourcery.com>
6457 Kwok Cheung Yeung <kcy@codesourcery.com>
6459 * NEWS: Describe new info os commands.
6460 * common/linux-osdata.c (PID_T, TIME_T): Define.
6461 (MAX_PID_T_STRLEN): New.
6462 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6464 (command_from_pid): Add comment. Change to use PID_T.
6465 (commandline_from_pid): Change to use PID_T.
6466 (user_from_pid): Add comment.
6467 (get_process_owner): Add comment. Change to use PID_T and
6469 (get_number_of_cpu_cores): Add comment.
6470 (get_cores_used_by_process): Add comment. Change to use PID_T and
6472 (linux_xfer_osdata_processes): Change to use PID_T and
6474 (compare_processes): New function.
6475 (linux_xfer_osdata_processgroups): New function.
6476 (linux_xfer_osdata_threads): Change to use PID_T.
6477 (linux_xfer_osdata_fds): New function.
6478 (format_socket_state, print_sockets): New functions.
6479 (union socket_addr): New union.
6480 (linux_xfer_osdata_isockets): New function.
6481 (time_from_time_t, group_from_gid): New functions.
6482 (linux_xfer_osdata_shm): New function.
6483 (linux_xfer_osdata_sem): New function.
6484 (linux_xfer_osdata_msg): New function.
6485 (linux_xfer_osdata_modules): New function.
6486 (osdata_table): Add new entries.
6487 * common/buffer.c (buffer_xml_printf): Add support for long and
6488 long long format specifiers.
6490 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6492 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6493 (tdesc_x32_avx_linux): Likewise.
6495 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6497 Implement multi-component --with-auto-load-dir.
6498 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6500 (--with-auto-load-safe-path): Update the default value description.
6501 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6503 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6504 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6505 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6506 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6507 "set auto-load scripts-directory".
6508 * config.in: Regenerate.
6509 * configure: Regenerate.
6510 * configure.ac (--with-auto-load-dir): New configure option.
6511 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6513 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6515 Provide $ddir substitution for --with-auto-load-safe-path.
6516 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6518 * auto-load.c: Include observer.h.
6519 (auto_load_safe_path_vec_update): Call substitute_path_component for
6520 each component. New variable ddir_subst.
6521 (auto_load_gdb_datadir_changed): New function.
6522 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6523 AUTO_LOAD_SAFE_PATH. New comment.
6524 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6525 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6526 * config.in: Regenerate.
6527 * configure: Regenerate.
6528 * configure.ac (--auto-load-safe-path): Rename
6529 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6530 GDB_DATADIR/auto-load.
6531 * defs.h (substitute_path_component): New declaration.
6532 * top.c: Include observer.h.
6533 (set_gdb_datadir): New function.
6534 (init_main): Install it for "set data-directory".
6535 * utils.c (substitute_path_component): New function.
6537 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6539 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6540 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6541 DEBUG_FILE_DIRECTORY. Handle multiple components of
6542 DEBUG_FILE_DIRECTORY.
6544 2012-05-10 Tom Tromey <tromey@redhat.com>
6546 * dwarf2read.c (recursively_write_psymbols): New function.
6547 (write_psymtabs_to_index): Use it.
6549 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6551 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6552 (load_partial_comp_unit): Update.
6553 (queue_comp_unit): Add argument 'pretend_language'.
6554 (process_queue): Update.
6555 (psymtab_to_symtab_1): Skip dependencies that have a user.
6556 (load_partial_comp_unit_reader): Give meaning to the 'data'
6558 (load_full_comp_unit): Add 'pretend_language' argument.
6559 (process_full_comp_unit): Add 'pretend_language' argument. Set
6561 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6563 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6564 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6566 (prepare_one_comp_unit): Add 'pretend_language' argument.
6568 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6569 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6570 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6571 (dw2_do_instantiate_symtab): Check whether symtab was read in
6573 (dw2_instantiate_symtab): Add assertion. Call
6574 process_cu_includes.
6575 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6576 (partial_symtab_p): New typedef.
6577 (set_partial_user): New function.
6578 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6579 (scan_partial_symbols): Add imported CU to imported_symtabs.
6580 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6581 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6582 (get_symtab, recursively_compute_inclusions)
6583 (compute_symtab_includes, process_cu_includes)
6584 (process_imported_unit_die): New functions.
6585 (process_die) <DW_TAG_imported_unit>: New case.
6586 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6588 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6590 (struct partial_die_info) <locdesc>: Remove.
6592 (process_psymtab_comp_unit): Add 'read_partial' argument.
6594 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6595 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6596 (add_partial_symbol): Update.
6597 (process_die): Handle DW_TAG_partial_unit.
6598 (read_file_scope): Update comment.
6599 (load_partial_dies): Handle DW_TAG_imported_unit.
6600 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6601 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6603 2012-05-10 Tom Tromey <tromey@redhat.com>
6605 * cc-with-dwz.sh: New file.
6607 2012-05-10 Tom Tromey <tromey@redhat.com>
6609 * symtab.h (struct symtab) <includes, user>: New fields.
6610 * block.h (struct block_iterator) <d, idx, which>: New fields.
6611 * block.c (initialize_block_iterator, find_iterator_symtab)
6612 (block_iterator_step, block_iter_name_step)
6613 (block_iter_match_step): New functions.
6614 (block_iterator_first, block_iterator_next)
6615 (block_iter_name_first, block_iter_name_next)
6616 (block_iter_match_first, block_iter_match_next): Rewrite.
6617 (get_block_symtab): New function.
6619 2012-05-10 Tom Tromey <tromey@redhat.com>
6621 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6623 * jit.c (finalize_symtab): Use allocate_global_block,
6625 * buildsym.c (finish_block_internal): New function, from old
6627 (finish_block): Rewrite.
6628 (end_symtab): Use finish_block_internal, set_block_symtab.
6629 * block.h (struct global_block): New.
6630 (allocate_global_block, set_block_symtab): Declare.
6631 * block.c (allocate_global_block, set_block_symtab): New
6634 2012-05-10 Tom Tromey <tromey@redhat.com>
6636 * psymtab.c (partial_map_expand_apply): Add assertion.
6637 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6638 (psymtab_to_symtab): Find unshared psymtab.
6639 (dump_psymtab): Print including psymtabs.
6640 (recursively_search_psymtabs): New function.
6641 (expand_symtabs_matching_via_partial): Use it.
6642 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6644 (enum psymtab_search_status): New.
6646 2012-05-10 Tom Tromey <tromey@redhat.com>
6648 * tracepoint.c (scope_info): Update.
6649 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6650 (find_pc_sect_symtab, search_symbols)
6651 (default_make_symbol_completion_list_break_on)
6652 (make_file_symbol_completion_list): Update.
6653 * symmisc.c (dump_symtab_1): Update.
6654 * stack.c (print_frame_args, iterate_over_block_locals)
6655 (print_frame_labels, iterate_over_block_arg_vars): Update.
6656 * python/py-block.c (block_object) <dict>: Remove.
6658 <iter>: Change type.
6659 (blpy_iter): Update.
6660 (blpy_block_syms_iternext): Update.
6661 * psymtab.c (map_block): Use block iterators.
6662 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6663 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6664 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6665 * infrun.c (check_exception_resume): Update.
6666 * cp-support.c (make_symbol_overload_list_block): Update.
6667 * coffread.c (patch_opaque_types): Update.
6668 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6669 * block.h (struct block_iterator): New.
6670 (block_iterator_first, block_iterator_next, block_iter_name_first)
6671 (block_iter_name_next, block_iter_match_first)
6672 (block_iter_match_next): Declare.
6673 (ALL_BLOCK_SYMBOLS): Redefine.
6674 * block.c (block_iterator_first, block_iterator_next)
6675 (block_iter_name_first, block_iter_name_next)
6676 (block_iter_match_first, block_iter_match_next): New functions.
6677 * ada-lang.c (ada_add_block_symbols)
6678 (ada_make_symbol_completion_list): Use block iterator.
6680 2012-05-10 Tom Tromey <tromey@redhat.com>
6682 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6683 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6684 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6685 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6686 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6689 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6691 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6692 print-file-var-lib2.c, print-file-var-main.c and
6693 print-file-var.exp (located in gdb/testsuite/gdb.base).
6695 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6697 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6698 try locating the symbol in the symbol's own objfile first, before
6699 extending the search to all objfiles.
6700 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6701 out of lookup_symbol_aux_symtabs.
6702 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6703 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6704 Do not search EXCLUDE_OBJFILE.
6705 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6706 (lookup_symbol_global): Search for matches in the block's objfile
6707 first, before searching all other objfiles.
6709 2012-05-10 Tristan Gingold <gingold@adacore.com>
6711 * printcmd.c (set_command): Add pre/post inc/dec.
6713 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6715 * gdb.1: Document -ex option.
6717 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6719 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6720 * inferior.h (AT_SYMBOL): Delete.
6722 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6724 * mips-tdep.c (mips_push_dummy_code): New function.
6725 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6726 ON_STACK and install mips_push_dummy_code as our gdbarch
6727 push_dummy_code routine.
6729 2012-05-09 Pedro Alves <palves@redhat.com>
6731 * target.c (set_maintenance_target_async_permitted): Rename to ...
6732 (set_target_async_command): ... this.
6733 (show_maintenance_target_async_permitted): Rename to ...
6734 (show_target_async_command): ... this.
6735 (initialize_targets): Adjust.
6737 2012-05-08 Doug Evans <dje@google.com>
6739 * go-exp.y (classify_name): Add missing assignment of fields of
6742 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6744 Display the ">" prompt in interactive mode while reading canned
6745 commands, even when the current interpreter is MI.
6747 * interps.c (interp_set_temp): New function.
6749 * interps.h (interp_set_temp): Add prototype.
6751 * cli/cli-script.c (restore_interp): New cleanup function.
6752 (read_command_lines): Temporarily override the current interpreter
6753 with CLI and arrange for restoring the original one.
6755 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6757 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6759 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6761 * probe.c (parse_probes): Move conditional to check for
6762 debuginfo files from here...
6763 * stap-probe.c (stap_get_probes): ... to here.
6765 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6766 H.J. Lu <hongjiu.lu@intel.com>
6768 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6769 `movl %esp, %ebp' for the X32 ABI.
6771 2012-05-07 Tom Tromey <tromey@redhat.com>
6773 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6775 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6776 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6777 (dwarf_stack_op_name): Remove.
6778 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6779 (decode_locdesc): Use get_DW_OP_name.
6780 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6781 (dwarf2_compile_expr_to_ax): Likewise.
6782 (disassemble_dwarf_expression): Likewise.
6783 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6785 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6787 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6788 (sh_linux_sigtramp_cache): New function.
6789 (sh_linux_sigreturn_init): New function.
6790 (sh_linux_rt_sigreturn_init): New function.
6791 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6793 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6795 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6796 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6797 (sh_linux_init_abi): Add init calls to register new tramp_frame
6798 definitions under 32-bit SH, update comments.
6800 2012-05-07 Pedro Alves <palves@redhat.com>
6804 * amd64-linux-tdep.c: Include glibc-tdep.h.
6805 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6806 gdbarch_skip_solib_resolver callback.
6808 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6810 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6811 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6812 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6813 (add_auto_load_safe_path): Change the error message.
6814 (_initialize_auto_load): Change the "safe-path" help text.
6815 * configure: Regenerate
6816 * configure.ac (--without-auto-load-safe-path): Set
6817 WITH_AUTO_LOAD_SAFE_PATH to /.
6819 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6821 * stap-probe.h: Do not include unecessary `probe.h'.
6823 2012-05-05 Alan Modra <amodra@gmail.com>
6825 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6826 bfd_und_section_ptr.
6827 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6828 and bfd_com_section_ptr.
6830 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6832 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6834 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6836 * windows-nat.h (segment_register_p_ftype): New typedef.
6837 (windows_set_segment_register_p): Add declaration.
6838 * windows-nat.c (segment_register_p): New static global.
6839 (windows_set_segment_register_p): New function.
6840 (do_windows_fetch_inferior_registers): Add special handling
6841 for segment registers.
6842 * amd64-windows-nat.c: #include "amd64-tdep.h".
6843 (amd64_windows_segment_register_p): New function.
6844 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6845 * i386-windows-nat.c: #include "i386-tdep.h".
6846 (i386_windows_segment_register_p): New function.
6847 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6849 2012-05-04 Tristan Gingold <gingold@adacore.com>
6851 * printcmd.c (set_command): Emit a warning if the expression is not
6854 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6856 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6859 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6861 * stap-probe.c (stap_is_operator): Change declaration.
6862 (stap_get_opcode): Change return value.
6863 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6864 `stap_parse_argument_1'.
6866 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6868 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6871 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6873 Add two new methods global_block and static_block to gdb.Symtab
6875 * NEWS (Python scripting): Add entry about the new methods.
6876 * python/py-symtab.c (stpy_global_block): New function which
6877 implements the gdb.Symtab.global_block() method.
6878 (stpy_static_block): New function which implements the
6879 gdb.Symtab.static_block() method.
6880 (symtab_object_methods): Add entries for the two new methods.
6882 2012-05-03 Doug Evans <dje@google.com>
6884 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6887 2012-05-03 Yao Qi <yao@codesourcery.com>
6889 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6891 (i386_process_record): Ditto.
6893 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6895 * infcall.c (unwind_on_signal_p): Make static.
6897 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6899 * sol-thread.c (solaris_pid_to_str): Make static.
6900 (_initialize_sol_thread): Add prototype.
6902 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6904 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6906 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6908 * MAINTAINERS: Remove myself.
6910 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6912 Fix --without-auto-load-safe-path for MS-Windows host platform.
6913 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6915 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6917 * gdb_curses.h: Undefine KEY_EVENT before including curses
6918 headers. Move "#undef MOUSE_MOVED" before any curses header
6921 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6923 * features/i386/i386-mmx-linux.c: Regenerate.
6924 * features/rs6000/powerpc-32.c: Likewise.
6925 * features/rs6000/powerpc-32l.c: Likewise.
6926 * features/rs6000/powerpc-403.c: Likewise.
6927 * features/rs6000/powerpc-403gc.c: Likewise.
6928 * features/rs6000/powerpc-405.c: Likewise.
6929 * features/rs6000/powerpc-505.c: Likewise.
6930 * features/rs6000/powerpc-601.c: Likewise.
6931 * features/rs6000/powerpc-602.c: Likewise.
6932 * features/rs6000/powerpc-603.c: Likewise.
6933 * features/rs6000/powerpc-604.c: Likewise.
6934 * features/rs6000/powerpc-64.c: Likewise.
6935 * features/rs6000/powerpc-64l.c: Likewise.
6936 * features/rs6000/powerpc-750.c: Likewise.
6937 * features/rs6000/powerpc-860.c: Likewise.
6938 * features/rs6000/powerpc-e500.c: Likewise.
6939 * features/rs6000/powerpc-e500l.c: Likewise.
6940 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6941 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6942 * features/rs6000/rs6000.c: Likewise.
6944 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6946 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6948 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6949 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6950 (stap_parse_argument) <e>: Likewise.
6951 (handle_stap_probe) <byte_order>: Likewise.
6953 2012-04-30 Doug Evans <dje@google.com>
6955 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6956 init_and_read_dies_worker. All callers updated.
6957 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6958 replaced with init_cutu_and_read_dies.
6959 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6960 (find_partial_die): Remove FIXME. Don't free current CU.
6962 2012-04-30 Sterling Augustine <saugustine@google.com>
6964 * contrib: New directory.
6965 * contrib/test_pubnames_and_indexes.py: New file.
6967 2012-04-30 Doug Evans <dje@google.com>
6969 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6970 All callers updated.
6971 (init_cu_die_reader): Verify the section is non-empty.
6972 (dwarf_decode_line_header): Don't dereference section->asection
6973 until we know the section is present.
6975 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6977 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6980 2012-04-29 Yao Qi <yao@codesourcery.com>
6982 * gdb-code-style.el: New hook gdb-markup-hook
6983 and gdb-comment-hook.
6985 2012-04-28 Doug Evans <dje@google.com>
6987 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6988 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6990 * symfile.h (dwarf2_debug_sections): New member addr.
6991 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6992 (ctx_no_get_addr_index): New function.
6993 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6994 (ctx_no_get_addr_index): Declare.
6995 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6996 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6997 (dwarf_expr_ctx_funcs): Update.
6998 (needs_get_addr_index): New function.
6999 (needs_frame_ctx_funcs): Update.
7000 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7001 * dwarf2read.c: #include "gdbcore.h".
7002 (dwarf2_per_objfile): New members addr, dwo_files.
7003 (dwarf2_elf_names): Add entry for addr.
7004 (struct dwo_section_names): New type.
7005 (dwo_section_names): New static global.
7006 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7007 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7008 old debug_types_section member updated to use this.
7009 Rename member debug_types_section to info_or_types_section,
7011 (signatured_type): Rename member type_offset to type_offset_in_tu,
7012 all uses updated. New member type_offset_in_section.
7013 (struct dwo_sections): New type.
7014 (struct dwo_unit): New type.
7015 (struct dwo_file): New type.
7016 (die_reader_specs): New member dwo_file.
7017 (dwarf2_locate_sections): Watch for .debug_addr.
7018 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7019 (dwarf2_read_section): Get bfd of section from bfd's asection,
7021 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7022 (create_signatured_type_table_from_index): Initialize
7023 sig_type->info_or_types_section.
7024 (dw2_get_file_names): Statement lists for type units with DWO files
7025 live in the DWO file.
7026 (create_debug_types_hash_table): New function.
7027 (create_all_type_units): Rewrite.
7028 (init_cu_die_reader): New arg dwo_file, all callers updated.
7029 (init_and_read_dies_worker): Get section from
7030 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7031 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7032 continue reading the CU/TU from there.
7033 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7034 updated. Get section from this_cu->info_or_types_section.
7035 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7036 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7037 DW_FORM_GNU_str_index.
7038 (hash_dwo_file, eq_dwo_file): New functions.
7039 (allocate_dwo_file_hash_table): New function.
7040 (hash_dwo_unit, eq_dwo_unit): New functions.
7041 (allocate_dwo_unit_table): New function.
7042 (dwarf2_locate_dwo_sections): New function.
7043 (struct create_dwo_info_table_data): New type.
7044 (create_debug_info_hash_table_reader): New function.
7045 (create_debug_info_hash_table): New function.
7046 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7047 (lookup_dwo_file): New function.
7048 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7049 (free_dwo_file, free_dwo_file_cleanup): New functions.
7050 (free_dwo_file_from_slot, free_dwo_files): New functions.
7051 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7052 (dwarf2_record_block_ranges): Ditto.
7053 (read_partial_die): Ditto.
7054 (process_enumeration_scope): Update to use type_offset_in_section.
7055 (read_full_die_1): New function.
7056 (read_full_die): Rewrite.
7057 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7058 DW_FORM_GNU_str_index.
7059 (read_addr_index_1, read_addr_index): New functions.
7060 (read_addr_index_from_leb128): New function.
7061 (struct dwarf2_read_addr_index_data): New type.
7062 (dwarf2_read_addr_index_reader): New function.
7063 (dwarf2_read_addr_index): New function.
7064 (read_str_index): New function.
7065 (leb128_size): New function.
7066 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7067 If processing a type unit from a DWO file, get the line section
7069 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7070 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7071 DW_FORM_GNU_str_index.
7072 (lookup_die_type): Check whether section offset of type's die is
7073 known before looking it up. Remove assert. Condition can
7074 legimately happen for inter-cu type references.
7075 (dwarf_attr_name): Handle Fission attributes.
7076 (dwarf_form_name): Handle Fission forms.
7077 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7078 DW_FORM_GNU_str_index.
7079 (follow_die_sig): Update to use type_offset_in_section.
7080 (decode_locdesc): New case DW_OP_GNU_addr_index.
7081 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7082 DW_FORM_GNU_str_index.
7083 (cu_debug_loc_section): New function.
7084 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7085 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7086 Free DWO files if present.
7087 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7089 Refactor DIE reading.
7090 * dwarf2read.c (dwarf2_per_objfile): Replace members
7091 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7092 (die_reader_specs): New member "die_section". Temporarily make
7093 member "buffer" non-const, pending constifying all info_ptr uses.
7094 (die_reader_func_ftype): New typedef.
7095 (dw2_get_file_names_reader): New function.
7096 (dw2_get_file_names): Rewrite.
7097 (read_and_check_type_unit_head): Rename arg type_offset to
7099 (create_all_type_units): Improve debugging message.
7100 Improve dummy type unit check.
7101 (init_cu_die_reader): New arg "section". All callers updated.
7102 (init_and_read_dies_worker): New function.
7103 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7104 (init_cutu_and_read_dies_no_follow): New function.
7105 (init_cutu_and_read_dies_simple): New function.
7106 (process_psymtab_comp_unit_reader): New function.
7107 (process_psymtab_comp_unit): Delete args section,
7108 is_debug_types_section. Rewrite. All callers updated.
7109 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7110 All callers updated. Rewrite.
7111 (load_partial_comp_unit_reader): New function.
7112 (load_partial_comp_unit): Rewrite.
7113 (skip_children): New arg reader. Delete args buffer, cu.
7114 All callers updated.
7115 (skip_one_die): New arg reader. Delete args buffer, cu.
7116 All callers updated.
7117 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7118 All callers updated.
7119 (load_full_comp_unit_reader): New function.
7120 (load_full_comp_unit): Rewrite.
7121 (read_comp_unit): Delete.
7122 (read_die_and_children_1): Delete, contents moved ...
7123 (read_die_and_children): ... here.
7124 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7125 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7126 All callers updated.
7127 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7128 All callers updated.
7129 (find_partial_die): Rewrite load_all_dies support.
7130 (read_attribute_value): New arg reader. Delete args abfd, cu.
7131 All callers updated.
7132 (read_attribute): New arg reader. Delete args abfd, cu.
7133 All callers updated.
7134 (load_full_type_unit): Add assert.
7135 (read_signatured_type_reader): New function.
7136 (read_signatured_type): Rewrite.
7137 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7138 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7139 All callers updated. Set per_cu->cu = NULL after freeing it.
7140 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7141 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7142 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7143 (set_die_type): Update.
7144 (get_die_type_at_offset): Update.
7145 (read_file_scope): Call prepare_one_comp_unit.
7146 (read_type_unit_scope): Ditto.
7147 (prepare_one_comp_unit): Set producer if present.
7149 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7151 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7152 gettext function on `error'.
7154 2012-04-27 Doug Evans <dje@google.com>
7156 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7159 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7160 Tom Tromey <tromey@redhat.com>
7162 * breakpoint.c (struct breakpoint_objfile_data)
7163 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7164 <exception_probes>: New fields.
7165 (free_breakpoint_probes): New function.
7166 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7167 `_Unwind_DebugHook'.
7168 (create_exception_master_breakpoint): Likewise.
7169 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7170 * infrun.c: Including necessary header files for handling SystemTap
7172 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7173 via SystemTap probes.
7174 (check_exception_resume): Remove `func' argument. Handle exception
7175 unwinding breakpoint set via a SystemTap probe.
7176 (insert_exception_resume_from_probe): New function.
7178 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7179 Tom Tromey <tromey@redhat.com>
7180 Jan Kratochvil <jan.kratochvil@redhat.com>
7182 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7183 (COMMON_OBS): Likewise.
7184 (HFILES_NO_SRCDIR): Add `probe'.
7185 * NEWS: Mention support for static and SystemTap probes.
7186 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7187 SystemTap probes' arguments parser.
7188 * arm-linux-tdep.c: Including headers needed to perform the parsing
7189 of SystemTap probes' arguments.
7190 (arm_stap_is_single_operand): New function.
7191 (arm_stap_parse_special_token): Likewise.
7192 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7193 probes' arguments parser.
7194 * ax-gdb.c (require_rvalue): Removing static declaration.
7195 (gen_expr): Likewise.
7196 * ax-gdb.h (gen_expr): Declaring function.
7197 (require_rvalue): Likewise.
7198 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7199 (bkpt_probe_breakpoint_ops): New variable.
7200 (momentary_breakpoint_from_master): Set the `probe' value.
7201 (add_location_to_breakpoint): Likewise.
7202 (break_command_1): Using proper breakpoint_ops according to the
7203 argument passed by the user in the command line.
7204 (bkpt_probe_insert_location): New function.
7205 (bkpt_probe_remove_location): Likewise.
7206 (bkpt_probe_create_sals_from_address): Likewise.
7207 (bkpt_probe_decode_linespec): Likewise.
7208 (tracepoint_probe_create_sals_from_address): Likewise.
7209 (tracepoint_probe_decode_linespec): Likewise.
7210 (tracepoint_probe_breakpoint_ops): New variable.
7211 (trace_command): Using proper breakpoint_ops according to the
7212 argument passed by the user in the command line.
7213 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7214 static probes on breakpoints and tracepoints.
7215 * breakpoint.h (struct bp_location) <probe>: New field.
7216 * cli-utils.c (skip_spaces_const): New function.
7217 (extract_arg): Likewise.
7218 * cli-utils.h (skip_spaces_const): Likewise.
7219 (extract_arg): Likewise.
7220 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7221 * configure.ac: Append `stap-probe.o' to be generated when ELF
7223 * configure: Regenerate.
7224 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7225 * elfread.c: Include `probe.h' and `arch-utils.h'.
7226 (probe_key): New variable.
7227 (elf_get_probes): New function.
7228 (elf_get_probe_argument_count): Likewise.
7229 (elf_evaluate_probe_argument): Likewise.
7230 (elf_compile_to_ax): Likewise.
7231 (elf_symfile_relocate_probe): Likewise.
7232 (stap_probe_key_free): Likewise.
7233 (elf_probe_fns): New variable.
7234 (elf_sym_fns): Add `sym_probe_fns' value.
7235 (elf_sym_fns_lazy_psyms): Likewise.
7236 (elf_sym_fns_gdb_index): Likewise.
7237 (_initialize_elfread): Initialize objfile cache for static
7239 * gdb_vecs.h (struct probe): New forward declaration.
7240 (probe_p): New VEC declaration.
7241 * gdbarch.c: Regenerate.
7242 * gdbarch.h: Regenerate.
7243 * gdbarch.sh (stap_integer_prefix): New variable.
7244 (stap_integer_suffix): Likewise.
7245 (stap_register_prefix): Likewise.
7246 (stap_register_suffix): Likewise.
7247 (stap_register_indirection_prefix): Likewise.
7248 (stap_register_indirection_suffix): Likewise.
7249 (stap_gdb_register_prefix): Likewise.
7250 (stap_gdb_register_suffix): Likewise.
7251 (stap_is_single_operand): New function.
7252 (stap_parse_special_token): Likewise.
7253 (struct stap_parse_info): Forward declaration.
7254 * i386-tdep.c: Including headers needed to perform the parsing
7255 of SystemTap probes' arguments.
7256 (i386_stap_is_single_operand): New function.
7257 (i386_stap_parse_special_token): Likewise.
7258 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7259 probes' arguments parser.
7260 * i386-tdep.h (i386_stap_is_single_operand): New function.
7261 (i386_stap_parse_special_token): Likewise.
7262 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7263 * mipsread.c (ecoff_sym_fns): Likewise.
7264 * objfiles.c (objfile_relocate1): Support relocation for static
7266 * parse.c (prefixify_expression): Remove static declaration.
7267 (initialize_expout): Likewise.
7268 (reallocate_expout): Likewise.
7269 * parser-defs.h (initialize_expout): Declare function.
7270 (reallocate_expout): Likewise.
7271 (prefixify_expression): Likewise.
7272 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7273 of SystemTap probes' arguments.
7274 (ppc_stap_is_single_operand): New function.
7275 (ppc_stap_parse_special_token): Likewise.
7276 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7277 probes' arguments parser.
7278 * probe.c: New file, for generic statically defined probe support.
7279 * probe.h: Likewise.
7280 * s390-tdep.c: Including headers needed to perform the parsing of
7281 SystemTap probes' arguments.
7282 (s390_stap_is_single_operand): New function.
7283 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7284 probes' arguments parser.
7285 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7286 * stap-probe.c: New file, for SystemTap probe support.
7287 * stap-probe.h: Likewise.
7288 * symfile.h: Include `gdb_vecs.h'.
7289 (struct sym_probe_fns): New struct.
7290 (struct sym_fns) <sym_probe_fns>: New field.
7291 * symtab.c (init_sal): Initialize `probe' field.
7292 * symtab.h (struct probe): Forward declaration.
7293 (struct symtab_and_line) <probe>: New field.
7294 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7296 (stop_tracing): Likewise.
7297 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7299 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7300 Tom Tromey <tromey@redhat.com>
7302 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7303 and to compile agent expressions.
7304 * infrun.c (siginfo_make_value): New argument `ignore'.
7305 (siginfo_funcs): New struct.
7306 (_initialize_infrun): New argument when calling
7307 `create_internalvar_type_lazy'.
7308 * thread.c (thread_id_make_value): New argument `ignore'.
7309 (thread_funcs): New struct.
7310 (_initialize_thread): New argument when calling
7311 `create_internalvar_type_lazy'.
7312 * tracepoint.c (sdata_make_value): New argument `ignore'.
7313 (sdata_funcs): New struct.
7314 (_initialize_tracepoint): New argument when calling
7315 `create_internalvar_type_lazy'.
7316 * value.c (make_value): New struct.
7317 (create_internalvar_type_lazy): New argument `data'.
7318 (compile_internalvar_to_ax): New function.
7319 (value_of_internalvar): Properly handling `make_value' case.
7320 (clear_internalvar): Likewise.
7321 (show_convenience): Adding `TRY_CATCH' block.
7322 * value.h (internalvar_make_value): Delete, replace by...
7323 (struct internalvar_funcs): ... this.
7324 (create_internalvar_type_lazy) <fun>: Delete argument.
7325 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7326 (compile_internalvar_to_ax): New function.
7327 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7328 (tlb_funcs): New struct.
7329 (_initialize_windows_tdep): New argument when calling
7330 `create_internalvar_type_lazy'.
7332 2012-04-27 Mark Wielaard <mjw@redhat.com>
7334 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7335 see whether it is an address or a constant offset from DW_AT_low_pc.
7336 (dwarf2_record_block_ranges): Likewise.
7337 (read_partial_die): Likewise.
7339 2012-04-26 Mark Wielaard <mjw@redhat.com>
7341 * MAINTAINERS (Write After Approval): Add myself to the list.
7343 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7345 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7346 (proc_prettyprint_signal): Likewise.
7347 (proc_prettyprint_faultset): Likewise.
7348 (proc_prettyprint_fault): Likewise.
7349 (proc_prettyprint_actionset): Likewise.
7350 (proc_prettyprint_flags): Move to new proc-flags.c section.
7351 (proc_prettyfprint_flags): New prototype.
7352 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7353 (proc_syscall, proc_cursig): Likewise.
7354 (proc_set_kill_on_last_close): Likewise.
7355 (proc_unset_kill_on_last_close): Likewise.
7356 (proc_set_watchpoint): Make static.
7357 (proc_delete_dead_threads): Likewise.
7358 (procfs_set_watchpoint): Likewise.
7359 (_initialize_procfs): Add prototype.
7360 * proc-events.c: Include proc-utils.h.
7361 (init_syscall_table): Make static.
7362 * proc-api.c (_initialize_proc_api): Add prototype.
7363 * proc-flags.c: Include proc-utils.h.
7365 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7367 * configure.ac: Add AC_ARG_PROGRAM.
7368 * configure: Regenerate.
7370 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 Fix DW_AT_lower_bound defaults for DWARF-4+.
7373 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7374 high. New variable low_default_is_valid. Implement DWARF-4+
7375 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7376 no default by the DWARF standard.
7378 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7379 Maciej W. Rozycki <macro@codesourcery.com>
7381 * infrun.c (handle_inferior_event): Move the check for return
7382 trampolines ahead of the check for function trampolines.
7383 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7384 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7385 (mips_str_mips16_ret_stub): Likewise.
7386 (mips_str_call_fp_stub): Likewise.
7387 (mips_str_call_stub): Likewise.
7388 (mips_str_fn_stub): Likewise.
7389 (mips_str_pic): Likewise.
7390 (mips_in_frame_stub): New function.
7391 (mips_unwind_pc): Return the return address rather than the PC
7392 if the PC of an intermediate frame is inside a call thunk.
7393 (mips_is_stub_suffix): New function.
7394 (mips_is_stub_mode): Likewise.
7395 (mips_get_mips16_fn_stub_pc): Likewise.
7396 (mips_skip_mips16_trampoline_code): Update to handle all the
7397 currently generated stub types. Don't recurse into __fn_stub
7398 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7399 Use cooked register accesses.
7400 (mips_in_return_stub): Reintroduce function.
7401 (mips_skip_trampoline_code): Traverse trampolines recursively.
7402 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7404 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7408 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7410 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7411 * features/arm-with-m-vfp-d16.xml: New file. Describes
7412 Cortex-M with VFPv4-sp-d16 FPU register layout.
7413 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7414 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7415 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7416 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7417 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7419 2012-04-25 Doug Evans <dje@google.com>
7421 * cli/cli-decode.c (print_doc_line): Use stream instead of
7424 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7426 * features/arm-with-iwmmxt.c: Regenerate.
7427 * features/arm-with-m-fpa-layout.c: Likewise.
7428 * features/arm-with-m.c: Likewise.
7429 * features/arm-with-neon.c: Likewise.
7430 * features/arm-with-vfpv2.c: Likewise.
7431 * features/arm-with-vfpv3.c: Likewise.
7432 * features/mips-dsp-linux.c: Likewise.
7433 * features/mips-linux.c: Likewise.
7434 * features/mips64-dsp-linux.c: Likewise.
7435 * features/mips64-linux.c: Likewise.
7436 * features/s390-linux32.c: Likewise.
7437 * features/s390-linux32v1.c: Likewise.
7438 * features/s390-linux32v2.c: Likewise.
7439 * features/s390-linux64.c: Likewise.
7440 * features/s390-linux64v1.c: Likewise.
7441 * features/s390-linux64v2.c: Likewise.
7442 * features/s390x-linux64.c: Likewise.
7443 * features/s390x-linux64v1.c: Likewise.
7444 * features/s390x-linux64v2.c: Likewise.
7445 * features/tic6x-c62x-linux.c: Likewise.
7446 * features/tic6x-c62x.c: Likewise.
7447 * features/tic6x-c64x-linux.c: Likewise.
7448 * features/tic6x-c64x.c: Likewise.
7449 * features/tic6x-c64xp-linux.c: Likewise.
7450 * features/tic6x-c64xp.c: Likewise.
7451 * target-descriptions.c: Only generate `field_type' and `type'
7452 variables when needed.
7454 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7456 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7458 2012-04-25 Doug Evans <dje@google.com>
7460 Initial pass at Go language support.
7462 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7464 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7465 (YYFILES): Add go-exp.c.
7466 (YYOBJ): Add go-exp.o.
7467 (local-maintainer-clean): Delete go-exp.c.
7468 * defs.h (enum language): Add language_go.
7469 * dwarf2read.c: #include "go-lang.h".
7470 (fixup_go_packaging): New function.
7471 (process_full_comp_unit): Call it when processing Go CUs.
7472 (dwarf2_physname): Add Go support.
7473 (read_file_scope): Handle missing language spec for GNU Go.
7474 (set_cu_language): Handle DW_LANG_Go.
7475 * go-exp.y: New file.
7476 * go-lang.h: New file.
7477 * go-lang.c: New file.
7478 * go-typeprint.c: New file.
7479 * go-valprint.c: New file.
7480 * symtab.c: #include "go-lang.h".
7481 (symbol_set_language): Handle language_go.
7482 (symbol_find_demangled_name, symbol_set_names): Ditto.
7483 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7485 2012-04-24 Jim Meyering <meyering@redhat.com>
7487 avoid a few strncpy-induced buffer overruns
7488 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7489 fname and psargs before trying to concatenate.
7490 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7491 "name" before applying strchr.
7493 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7495 * CONTRIBUTE: Use unified diff instead of context diff when
7498 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7500 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7501 code. Handle JR.HB correctly.
7503 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7506 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7507 with the other MIPS16 helpers.
7509 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7511 * observer.sh: Conditionally declare `args', thus cleaning up
7512 unused instances of this variable.
7514 2012-04-24 Yao Qi <yao@codesourcery.com>
7516 Revert this patch to allow breakpoint always-inserted
7518 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7519 * breakpoint.c: Include record.h.
7520 (breakpoints_always_inserted_mode): Return false when the record
7523 * breakpoint.c (iterate_over_bp_locations): New.
7524 * breakpoint.h: Declare.
7525 New typedef walk_bp_location_callback.
7526 * record.c (record_open): Call record_init_record_breakpoints.
7527 (record_sync_record_breakpoints): New.
7528 (record_init_record_breakpoints): New.
7529 * NEWS: Mention supporting breakpoint always-inserted mode in
7532 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7534 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7537 2012-04-24 Yao Qi <yao@codesourcery.com>
7539 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7540 (is_catchpoint): ... it.
7541 (print_one_breakpoint_location): Caller update.
7542 * breakpoint.h: Update declaration.
7544 2012-04-23 David S. Miller <davem@davemloft.net>
7546 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7548 2012-04-23 Tom Tromey <tromey@redhat.com>
7550 * buildsym.c (add_free_pendings): Remove.
7551 * buildsym.h (add_free_pendings): Remove.
7553 2012-04-23 Doug Evans <dje@google.com>
7555 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7556 attr.u.unsnd instead of attr.u.addr.
7557 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7558 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7560 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7561 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7563 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7565 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7567 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7568 (mips_o32_return_value): Likewise.
7569 (mips_o64_return_value): Likewise.
7571 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7573 * ada-lang.c (ada_evaluate_subexp): Add cases for
7574 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7575 their treatment in eval.c.
7577 2012-04-21 David S. Miller <davem@davemloft.net>
7579 * sparc-tdep.c (X_DISP10): Define.
7580 (sparc_analyze_control_transfer): Handle compare-and-branch.
7582 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7584 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7585 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7587 2012-04-20 Nigel Stephens <nigel@mips.com>
7588 Maciej W. Rozycki <macro@codesourcery.com>
7590 * mips-tdep.c (mips_float_register_p): New function.
7591 (mips_convert_register_float_case_p): Use mips_float_register_p.
7592 (mips_register_type): Likewise.
7593 (mips_print_register): Likewise.
7594 (print_gp_register_row): Likewise.
7595 (mips_print_registers_info): Likewise.
7597 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7599 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7602 2012-04-20 Andrew Pinski <apinski@cavium.com>
7604 * MAINTAINERS (Write After Approval): Add myself to the list.
7606 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7608 * MAINTAINERS: Update my e-mail address.
7610 2012-04-20 Pedro Alves <palves@redhat.com>
7612 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7614 * configure: Regenerate.
7616 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7618 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7620 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7622 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 Fix compilation compatibility with python-2.4
7625 * python/py-type.c (convert_field): Cast ADDRSTRING for
7626 PyObject_SetAttrString as non-const. New comment.
7628 2012-04-19 Tom Tromey <tromey@redhat.com>
7630 * top.c (quit_target): Use all_cleanups.
7631 * main.c (captured_command_loop): Use all_cleanups.
7632 * exceptions.c (throw_exception): Use all_cleanups.
7634 2012-04-19 Pedro Alves <palves@redhat.com>
7636 * Makefile.in (GNULIB_BUILDDIR): New.
7637 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7638 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7639 (CLEANDIRS). Remove gnulib/import.
7640 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7642 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7643 (gnulib/import/Makefile): Replace gnulib/import with
7644 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7645 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7646 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7647 acx_configure_dir.m4.
7648 * acinclude.m4: Include acx_configure_dir.m4.
7649 * acx_configure_dir.m4: New file.
7650 * aclocal.m4: Regenerate.
7651 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7652 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7653 (GNULIB): New variable.
7654 (GNULIB_STDINT_H): Adjust.
7655 (AC_OUTPUT): Don't output gnulib/Makefile.
7656 * gdb/defs.h: Include build-gnulib/config.h.
7657 * aclocal.m4: Regenerate.
7658 * config.in: Regenerate.
7659 * configure: Regenerate.
7661 * gnulib/Makefile.in: New file.
7662 * gnulib/configure.ac: New file.
7663 * gnulib/aclocal.m4: New file.
7664 * gnulib/config.in: New file.
7665 * gnulib/configure: New file.
7666 * gnulib/: Re-run gnulib-tool to adjust.
7668 2012-04-19 Doug Evans <dje@google.com>
7670 * cleanups.h (struct cleanup): Move to cleanups.c.
7671 (make_cleanup_dtor_ftype): New typedef.
7672 (make_cleanup_dtor): Use it.
7673 (ALL_CLEANUPS): Replace with ...
7674 (all_cleanups): ... this. Declare. All uses updated.
7675 * cleanups.c: #include "gdb_assert.h".
7676 (sentinel_cleanup): New static global.
7677 (SENTINEL_CLEANUP): Define.
7678 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7679 (make_my_cleanup2): Assert result is non-NULL.
7680 (all_cleanups): New function.
7681 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7684 2012-04-19 Pedro Alves <palves@redhat.com>
7686 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7687 Adjust paths to gnulib imported files.
7689 2012-04-19 Pedro Alves <palves@redhat.com>
7691 * gnulib/: Move whole directory ...
7692 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7693 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7694 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7695 (aclocal_m4_deps): Adjust.
7696 * aclocal.m4: Regenerate.
7697 * configure: Regenerate.
7698 * configure.ac: Adjust AC_OUTPUT output.
7700 2012-04-19 Yao Qi <yao@codesourcery.com>
7702 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7704 * vec.c: Move it ...
7705 * common/vec.c: ... here.
7706 * vec.h: Move it ...
7707 * common/vec.h: ... here.
7709 2012-04-19 Yao Qi <yao@codesourcery.com>
7711 * gdb-code-style.el: New.
7713 2012-04-18 Pedro Alves <palves@redhat.com>
7715 Update gnulib from latest git.
7716 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7718 * gnulib/Makefile.am: Update.
7719 * gnulib/dummy.c: Update.
7720 * gnulib/extra/arg-nonnull.h: Update.
7721 * gnulib/extra/c++defs.h: Update.
7722 * gnulib/extra/update-copyright: Update.
7723 * gnulib/extra/warn-on-use.h: Update.
7724 * gnulib/inttypes.in.h: Update.
7725 * gnulib/m4/00gnulib.m4: Update.
7726 * gnulib/m4/extensions.m4: Update.
7727 * gnulib/m4/gnulib-cache.m4: Update.
7728 * gnulib/m4/gnulib-common.m4: Update.
7729 * gnulib/m4/gnulib-comp.m4: Update.
7730 * gnulib/m4/gnulib-tool.m4: Update.
7731 * gnulib/m4/include_next.m4: Update.
7732 * gnulib/m4/inttypes-pri.m4: Update.
7733 * gnulib/m4/inttypes.m4: Update.
7734 * gnulib/m4/longlong.m4: Update.
7735 * gnulib/m4/memchr.m4: Update.
7736 * gnulib/m4/memmem.m4: Update.
7737 * gnulib/m4/mmap-anon.m4: Update.
7738 * gnulib/m4/multiarch.m4: Update.
7739 * gnulib/m4/onceonly.m4: Update.
7740 * gnulib/m4/stddef_h.m4: Update.
7741 * gnulib/m4/stdint.m4: Update.
7742 * gnulib/m4/string_h.m4: Update.
7743 * gnulib/m4/warn-on-use.m4: Update.
7744 * gnulib/m4/wchar_h.m4: Update.
7745 * gnulib/m4/wchar_t.m4: Update.
7746 * gnulib/m4/wint_t.m4: Update.
7747 * gnulib/memchr.c: Update.
7748 * gnulib/memmem.c: Update.
7749 * gnulib/stddef.in.h: Update.
7750 * gnulib/stdint.in.h: Update.
7751 * gnulib/str-two-way.h: Update.
7752 * gnulib/string.in.h: Update.
7753 * gnulib/wchar.in.h: Update.
7755 * gnulib/extra/arg-nonnull.h: Delete.
7756 * gnulib/extra/c++defs.h: Delete.
7757 * gnulib/extra/warn-on-use.h: Delete.
7758 * gnulib/m4/wchar_h.m4: Delete.
7759 * gnulib/m4/wint_t.m4: Delete.
7760 * gnulib/wchar.in.h: Delete.
7762 * gnulib/extra/snippets/arg-nonnull.h: New.
7763 * gnulib/extra/snippets/c++defs.h: New.
7764 * gnulib/extra/snippets/warn-on-use.h: New.
7766 * aclocal.m4: Regenerate.
7767 * config.in: Regenerate.
7768 * configure: Regenerate.
7769 * gnulib/Makefile.in: Regenerate.
7771 2012-04-18 Pedro Alves <palves@redhat.com>
7773 Reimport the update-copyright module from gnulib
7774 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7776 * configure: Regenerate.
7777 * gnulib/Makefile.am: Update.
7778 * gnulib/Makefile.in: Regenerate.
7779 * gnulib/extra/update-copyright: Update.
7780 * gnulib/m4/gnulib-cache.m4: Update.
7781 * gnulib/m4/gnulib-comp.m4: Update.
7783 2012-04-18 Tristan Gingold <gingold@adacore.com>
7785 * configure.ac (aix): Put -lpthread into libs.
7786 * configure: Regenerate.
7788 2012-04-18 Tom Tromey <tromey@redhat.com>
7790 * linespec.c (convert_linespec_to_sals): Don't use
7792 (compare_msymbols): Arguments are minsym_and_objfile, not
7793 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7795 2012-04-18 Pedro Alves <palves@redhat.com>
7797 Revert gnulib/ part of:
7798 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7799 Copyright year update in most files (performed by copyright.sh).
7801 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7803 Fix 64-bit constants on 32-bit hosts.
7804 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7805 from unsigned long to ULONGEST.
7806 (read_signed_leb128): Change declaration return type from long to
7808 (dwarf2_const_value_attr): Change declaration parameter value from long
7810 (dwarf2_compute_name): Change variable value from long to LONGEST.
7811 (read_unsigned_leb128): Change return type, variable result and some
7812 casts from unsigned long to ULONGEST.
7813 (read_signed_leb128): Change return type, variable result and some
7814 casts from long to LONGEST.
7815 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7816 value from long to LONGEST.
7817 (dwarf2_const_value): Change variable value from long to LONGEST.
7818 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7819 plongest and hex_string.
7820 * symtab.h (struct general_symbol_info): Change ivalue from long to
7821 LONGEST, remove the comment.
7822 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7823 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7825 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7828 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7829 * ada-lang.c (ada_discrete_type_high_bound)
7830 (ada_discrete_type_low_bound): Fix function comment. Use
7831 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7832 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7833 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7834 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7835 Use TYPE_FIELD_ENUMVAL.
7836 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7837 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7838 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7839 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7841 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7842 * dwarf2read.c (process_enumeration_scope): Likewise.
7843 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7845 (class StructMainTypePrettyPrinter): Support also
7846 FIELD_LOC_KIND_ENUMVAL.
7847 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7849 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7850 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7851 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7852 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7854 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7855 accommodate enumval.
7856 (struct call_site): Adjust loc_kind to accommodate enumval.
7857 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7858 (TYPE_FIELD_ENUMVAL): New macros.
7859 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7860 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7862 * p-typeprint.c (pascal_type_print_base): Likewise.
7863 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7865 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7866 * python/py-type.c (convert_field): New variable addrstring. Use
7867 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7868 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7869 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7870 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7872 * valprint.c (generic_val_print): Likewise.
7874 2012-04-17 Doug Evans <dje@google.com>
7876 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7878 * dwarf2read.c: Whitespace fixes.
7879 (lookup_signatured_type): Tweak comment.
7880 (get_die_type_at_offset): Fix comment.
7882 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7884 * xcoffread.c (xcoff_secnum_to_sections): New function.
7885 (secnum_to_section, secnum_to_bfd_section): Reimplement
7886 using xcoff_secnum_to_sections. Rename "secnum" parameter
7888 (RECORD_MINIMAL_SYMBOL): Delete.
7889 (record_minimal_symbol): New function.
7890 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7891 by call to record_minimal_symbol and set misc_func_recorded
7892 to 1. Set last_csect_sec to the XCOFF section index instead
7893 of GDB's section_offset index. Update calls to
7894 prim_record_minimal_symbol_and_info to pass the BFD section
7897 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7899 * xcoffread.c (read_xcoff_symtab): Delete variables
7900 last_csect_val and last_csect_sec and associated code.
7902 2012-04-17 Doug Evans <dje@google.com>
7904 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7905 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7906 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7907 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7909 * cleanups.h: New file.
7910 * cleanups.c: New file.
7911 * Makefile.in (SFILES): Add cleanups.c.
7912 (HFILES_NO_SRCDIR): Add cleanups.h.
7913 (COMMON_OBS): Add cleanups.o.
7914 * defs.h (struct cleanup): Moved to cleanups.h.
7915 (do_cleanups,do_final_cleanups): Ditto.
7916 (discard_cleanups,discard_final_cleanups): Ditto
7917 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7918 (save_cleanups,save_final_cleanups): Ditto.
7919 (restore_cleanups,restore_final_cleanups): Ditto.
7920 (null_cleanup): Ditto.
7921 (make_my_cleanup,make_my_cleanup2): Ditto.
7922 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7923 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7924 (do_cleanups,do_final_cleanups): Ditto.
7925 (discard_cleanups,discard_final_cleanups): Ditto
7926 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7927 (save_cleanups,save_final_cleanups): Ditto.
7928 (restore_cleanups,restore_final_cleanups): Ditto.
7929 (null_cleanup): Ditto.
7930 (make_my_cleanup,make_my_cleanup2): Ditto.
7931 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7933 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7935 (make_cleanup_dyn_string_delete): Ditto.
7936 (make_cleanup_ui_file_delete): Ditto.
7937 (make_cleanup_ui_out_redirect_pop): Ditto.
7938 (make_cleanup_free_section_addr_info): Ditto.
7939 (make_cleanup_restore_integer): Ditto.
7940 (make_cleanup_unpush_target): Ditto.
7941 (make_cleanup_value_free_to_mark): Ditto.
7942 (make_cleanup_value_free): Ditto.
7943 (make_cleanup_free_so): Ditto.
7945 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7947 New option "set debug auto-load".
7948 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7949 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7950 (auto_load_safe_path_vec_update)
7951 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7953 (file_is_auto_load_safe): New parameters debug_fmt and ....
7954 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7955 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7956 caller by explanatory string.
7957 (_initialize_auto_load): Register "set debug auto-load".
7958 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7960 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7961 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7962 by explanatory string.
7963 * main.c (captured_main): Likewise.
7964 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7965 (source_section_scripts): Likewise.
7967 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7969 New option "set auto-load safe-path".
7970 * NEWS: New commands "set auto-load safe-path"
7971 and "show auto-load safe-path".
7972 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7973 (auto_load_safe_path, auto_load_safe_path_vec)
7974 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7975 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7976 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7977 (source_gdb_script_for_objfile): New variable is_safe. Call
7978 file_is_auto_load_safe. Return if it is not.
7979 (struct loaded_script): New field loaded.
7980 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7981 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7982 output "Missing" to "No".
7983 (_initialize_auto_load): New variable cmd. Initialize
7984 auto_load_safe_path. Register "set auto-load safe-path",
7985 "show auto-load safe-path" and "add-auto-load-safe-path".
7986 * auto-load.h (maybe_add_script): Add parameter loaded.
7987 (file_is_auto_load_safe): New declaration.
7988 * config.in: Regenerate.
7989 * configure: Regenerate.
7990 * configure.ac: New parameters --with-auto-load-safe-path
7991 and --without-auto-load-safe-path.
7992 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7993 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7994 * main.c (captured_main): Check file_is_auto_load_safe for
7996 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7997 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7998 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8001 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8003 auto-load: Implementation.
8004 * NEWS: New descriptions for "info auto-load",
8005 "info auto-load gdb-scripts", "info auto-load python-scripts",
8006 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8007 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8008 and "show auto-load-scripts". New description for "set auto-load",
8009 "show auto-load", "set auto-load gdb-scripts",
8010 "show auto-load gdb-scripts", "set auto-load python-scripts",
8011 "show auto-load python-scripts", "set auto-load local-gdbinit",
8012 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8013 "show auto-load libthread-db".
8014 * auto-load.c: Remove include python/python-internal.h. Add includes
8015 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8017 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8018 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8019 (gdbpy_global_auto_load): Rename to ...
8020 (global_auto_load): ... here.
8021 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8022 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8023 (script_language_gdb, source_gdb_script_for_objfile): New.
8024 (struct loaded_script): New field language.
8025 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8027 (maybe_add_script): Add parameter language. Drop redundant
8028 entry.full_path initialization. Initialize entry.language and
8030 (auto_load_objfile_script): Change parameter suffix to language.
8031 Remove the call of maybe_add_script.
8032 Call language->source_script_for_objfile.
8033 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8035 (collect_matching_scripts): Adjust it for
8036 struct collect_matching_scripts_data.
8037 (auto_load_info_scripts_pattern_nl): New variable.
8038 (info_auto_load_scripts): Rename to ...
8039 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8040 for struct collect_matching_scripts_data.
8041 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8042 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8043 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8044 (auto_load_info_cmdlist_get): New.
8045 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8046 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8047 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8048 "info auto-load local-gdbinit".
8049 * auto-load.h (struct script_language): New.
8050 (gdbpy_global_auto_load): Rename to ...
8051 (global_auto_load): ... here.
8052 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8053 (auto_load_local_gdbinit_loaded): New declarations.
8054 (maybe_add_script): New parameter language.
8055 (auto_load_objfile_script): Change parameter suffix to language.
8056 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8057 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8058 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8060 * linux-thread-db.c: Include auto-load.h and ctype.h.
8061 (auto_load_thread_db, show_auto_load_thread_db): New.
8062 (struct thread_db_info): New field filename.
8063 (delete_thread_db_info): Call xfree for FILENAME.
8064 (try_thread_db_load): Initialize FILENAME.
8065 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8066 if !AUTO_LOAD_THREAD_DB.
8067 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8068 (_initialize_thread_db): Install auto_load_thread_db
8069 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8070 as "info auto-load libthread-db".
8071 * main.c (captured_main): Rename gdbpy_global_auto_load to
8072 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8073 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8074 (print_gdb_help): Extend the help for 'local init file'.
8075 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8076 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8077 (auto_load_scripts): Rename to ...
8078 (auto_load_python_scripts): ... here, update the comment.
8079 (gdbpy_load_auto_script_for_objfile): New declaration.
8080 (show_auto_load_python_scripts, script_language_python)
8081 (gdbpy_load_auto_script_for_objfile): New.
8082 (source_section_scripts): Refactor the code.
8083 (load_auto_scripts_for_objfile): Rename to ...
8084 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8085 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8086 (info_auto_load_python_scripts): New.
8087 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8088 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8089 Register "set auto-load-scripts" as its deprecated alias. Register
8090 "info auto-load python-scripts". Register "info auto-load-scripts" as
8091 its deprecated alias.
8092 (load_auto_scripts_for_objfile): Rename to ...
8093 (gdbpy_load_auto_scripts_for_objfile): ... here.
8094 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8095 (gdbpy_load_auto_scripts_for_objfile): ... here.
8097 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8099 auto-load: Move files.
8100 * Makefile.in (SFILES): Add auto-load.c.
8101 (HFILES_NO_SRCDIR): Add auto-load.h.
8102 (COMMON_OBS): Add auto-load.o.
8103 (distclean): Change .gdbinit for gdb-gdb.gdb.
8104 * auto-load.c: New file, with parts from python/py-auto-load.c.
8105 * auto-load.h: New file, with parts from python/python.h.
8106 * configure: Regenerate.
8107 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8108 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8109 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8110 * main.c: Include auto-load.h.
8111 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8112 command.h, observer.h and progspace.h to auto-load.c. Add include
8114 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8115 (struct loaded_script, auto_load_pspace_data)
8116 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8117 (hash_loaded_script_entry, eq_loaded_script_entry)
8118 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8119 (maybe_add_script): Move to auto-load.c.
8120 (source_section_scripts): Change maybe_add_script parameters passing,
8121 use script_not_found_warning_print.
8122 (clear_section_scripts, auto_load_objfile_script)
8123 (auto_load_new_objfile, loaded_script_ptr)
8124 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8125 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8126 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8127 auto_load_new_objfile and info_auto_load_scripts initizations to
8129 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8131 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8134 * charset.c (find_charset_names): Remove variables ix and elt.
8135 Use free_char_ptr_vec.
8136 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8137 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8138 debugdir_end. New variable debugdir_len.
8139 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8140 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8142 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8143 and elt. Use free_char_ptr_vec.
8144 * source.c (add_path): Remove variables argv, arg and argv_index.
8145 New variables dir_vec, back_to, ix and name.
8146 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8147 make_cleanup_freeargv. Remove variable separator. Simplify the code
8148 no longer expecting DIRNAME_SEPARATOR.
8149 (openp): Remove variable p, p1 and len. New variables dir_vec,
8150 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8151 no longer expecting DIRNAME_SEPARATOR.
8152 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8153 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8155 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8156 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8157 (dirnames_to_char_ptr_vec): New functions.
8159 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8162 * source.c (add_path): Remove always true conditional 'p == 0' and
8163 unindent its code block.
8165 2012-04-17 Pedro Alves <palves@redhat.com>
8167 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8168 (FIELD_BITPOS_LVAL): ... this.
8169 (FIELD_BITPOS): New.
8170 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8171 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8172 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8174 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8176 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8177 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8178 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8181 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8183 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8184 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8185 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8186 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8187 * jv-lang.c (java_link_class_type): Likewise, once.
8188 * stabsread.c (read_enum_type): Likewise.
8190 2012-04-16 Yao Qi <yao@codesourcery.com>
8192 * common/agent.c (agent_run_command): Add one more parameter `len'.
8194 * common/agent.h: Update declaration.
8195 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8197 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8199 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8202 * value.c (value_actual_type): New function.
8203 * value.h (value_actual_type): New declaration.
8204 * varobj.c (update_type_if_necessary): New function.
8205 (varobj_create): Call value_actual_type instead of
8207 (install_dynamic_child): distinct changed and type changed MI variable
8209 (update_dynamic_varobj_children): Updated for install_dynamic_child
8210 change. All callers updated.
8211 (varobj_update): Support for MI variable object type change if
8212 the value changed and RTTI is used to determine the type.
8213 (create_child_with_value): Call value_actual_type instead of
8215 (adjust_value_for_child_access): Extended with a new parameter which
8216 specify whether the given value should be casted to enclosing type.
8217 All callers updated.
8219 2012-04-14 Yao Qi <yao@codesourcery.com>
8221 Import gnulib module inttypes from git
8222 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8223 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8224 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8225 gnulib/m4/inttypes-pri.m4
8226 * aclocal.m4, config.in, configure: Regenerated.
8227 * gnulib/Makefile.am: Update.
8228 * gnulib/Makefile.in: Update.
8229 * gnulib/m4/gnulib-cache.m4: Update.
8230 * gnulib/m4/gnulib-comp.m4: Update.
8231 * gnulib/inttypes.in.h: New.
8232 * gnulib/m4/inttypes-pri.m4: New.
8233 * gnulib/m4/inttypes.m4: New.
8235 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8237 * infrun.c (resume): Update PC address to the real PC after
8238 preparing to do displaced stepping.
8240 2012-04-12 Doug Evans <dje@google.com>
8242 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8243 All callers updated.
8245 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8247 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8249 2012-04-12 Doug Evans <dje@google.com>
8251 * dwarf2read.c (create_all_type_units): Renamed from
8252 create_debug_types_hash_table. All callers updated.
8254 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8255 local type_sig to sig_type, type_offset to type_offset_in_tu.
8256 (hash_signatured_type): Renamed from hash_type_signature,
8257 all callers updated.
8258 (eq_signatured_type): Renamed from eq_type_signature,
8259 all callers updated.
8260 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8261 (process_enumeration_scope): Ditto.
8262 (lookup_signatured_type_at_offset): Ditto.
8263 (load_full_type_unit, read_signatured_type): Ditto.
8265 2012-04-12 Yao Qi <yao@codesourcery.com>
8267 * remote.c (async_remote_interrupt): Correct function name in
8269 (async_remote_interrupt_twice): Ditto.
8271 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8273 * source.c (find_and_open_source): Consistently pass resulting
8274 full path through xfullpath.
8276 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8278 Provide more specific displaced-stepping memory error message.
8279 * infrun.c (displaced_step_prepare): New variable status. Call
8280 target_read_memory instead of read_memory, provide more specific
8283 2012-04-11 Tristan Gingold <gingold@adacore.com>
8286 * darwin-nat.c (darwin_execvp): Revert previous patch.
8288 2012-04-11 Tristan Gingold <gingold@adacore.com>
8291 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8294 2012-04-11 Tristan Gingold <gingold@adacore.com>
8296 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8299 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8301 New command 'explore' which helps explore values and types in
8303 * NEWS: Add an entry about the new 'explore' command.
8304 * data-directory/Makefile.in: Add gdb/command/explore.py
8305 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8306 command using the GDB Python API.
8308 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8310 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8311 extension in jump target calculation.
8313 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8315 * mips-tdep.c (mips32_next_pc): Handle JALX.
8317 2012-04-10 Yao Qi <yao@codesourcery.com>
8319 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8321 2012-04-10 Yao Qi <yao@codesourcery.com>
8323 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8324 and gnulib/m4/gnulib-tool.m4.
8326 2012-04-10 Doug Evans <dje@google.com>
8328 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8329 (load_partial_dies): Clarify comment.
8330 (find_partial_die): Support rereading type units.
8331 Clarify CU handling, if we know offset is in CU, don't search for the
8332 containing CU. Add comment regarding memory waste.
8334 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8336 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8337 i386/x32-avx and i386/x32-avx-linux.
8338 (i386/x32-expedite): New.
8339 (i386/x32-linux-expedite): Likewise.
8340 (i386/x32-avx-expedite): Likewise.
8341 (i386/x32-avx-linux-expedite): Likewise.
8342 ($(outdir)/i386/x32.dat): Likewise.
8343 ($(outdir)/i386/x32-linux.dat): Likewise.
8344 ($(outdir)/i386/x32-avx.dat): Likewise.
8345 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8347 * features/i386/x32-avx-linux.xml: New file.
8348 * features/i386/x32-avx.xml: Likewise.
8349 * features/i386/x32-core.xml: Likewise.
8350 * features/i386/x32-linux.xml: Likewise.
8351 * features/i386/x32.xml: Likewise.
8353 * features/i386/x32-avx-linux.c: New. Generated.
8354 * features/i386/x32-avx.c: Likewise.
8355 * features/i386/x32-linux.c: Likewise.
8356 * features/i386/x32.c: Likewise.
8357 * regformats/i386/x32-avx-linux.dat: Likewise.
8358 * regformats/i386/x32-avx.dat: Likewise.
8359 * regformats/i386/x32-linux.dat: Likewise.
8360 * regformats/i386/x32.dat: Likewise.
8362 2012-04-10 Tristan Gingold <gingold@adacore.com>
8364 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8365 code to kill the inferior.
8367 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8369 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8371 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8373 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8374 (yyvsp): New defines.
8375 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8377 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8379 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8381 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8383 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8386 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8388 * sparc64-tdep.c (sparc64_store_arguments)
8389 (sparc64_store_arguments): Fix coding style.
8391 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8393 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8394 complex floats, adjust some related comments and tighten a related
8396 (sparc64_extract_return_value): Handle complex floats.
8398 2012-04-07 Doug Evans <dje@google.com>
8400 * dwarf2read.c (load_partial_dies): Change condition to assert.
8402 2012-04-06 Doug Evans <dje@google.com>
8404 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8407 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8409 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8411 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8412 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8415 2012-04-05 Keith Seitz <keiths@redhat.com>
8417 * linespec.c (decode_compound): Remove.
8418 (enum offset_relative_sign): New enum.
8419 (struct line_offset): New struct.
8420 (struct linespec): New struct.
8421 (struct linespec_state): Move file_symtabs,
8422 user_filename, and user_function into struct linespec.
8423 Make result an anonymous struct holding vectors of
8424 symbolp and minsym_and_objfile_d.
8425 Add language member.
8426 (enum ls_token_type): New enum.
8427 (linespec_keywords): New array.
8428 (struct ls_token): New struct.
8429 (struct ls_parser): New struct.
8430 (linespec_lexer_lex_number): New function.
8431 (linespec_lexer_lex_keyword): New function.
8432 (is_ada_operator): New function.
8433 (skip_quote_char): New function.
8434 (copy_token_string): New function.
8435 (is_closing_quote_enclosed): New function.
8436 (find_parameter_list_end): New function.
8437 (linespec_lexer_lex_string): New function.
8438 (linespec_lexer_lex_one): New function.
8439 (linespec_lexer_consume_token): New function.
8440 (linespec_lexer_peek_token): New function.
8441 (cplusplus_error): Remove unused function.
8442 (find_methods): Update comment.
8443 (find_toplevel_char): Return const.
8444 (is_objc_method_format): Remove unused function.
8445 (find_toplevel_string): New function.
8446 (is_linespec_boundary): Remove.
8447 (symbol_not_found_error): New function.
8448 (find_method_overload_end): Remove function.
8449 (unexpected_linespec_error): New function.
8450 (keep_name_info): Remove.
8451 (linespec_parse_line_offset): New function.
8452 (linespec_parse_basic): New function.
8453 (canonicalize_linespec): New function.
8454 (decode_line_internal): Remove.
8455 (create_sals_line_offset): New function adapted from
8457 (convert_linespec_to_sals): New function.
8458 (parse_linespec): New function.
8459 (linespec_parser_new): New function.
8460 (linespec_state_destructor): Change parameter type to
8461 struct linespec_state *.
8462 Add language parameter.
8463 Remove freeing of moved members.
8464 (linespec_parser_delete): New function.
8465 (decode_line_full): Use parse_linespec and linespec_parser_new.
8466 (decode_line_1): Likewise.
8467 (decode_indirect): Rename to ...
8468 (linespec_expression_to_pc): ... this and rewrite
8469 to simply find CORE_ADDR, storing this result for later
8471 (locate_first_half): Remove.
8472 (deocde_objc): Add parameter LS.
8473 Initialize new struct collect_info members.
8474 Handle minimal symbols, too.
8475 (decode_compound): Delete.
8476 (lookup_prefix_sym): Rewrite.
8477 (compare_msymbols): New function.
8478 (find_method): Rewrite.
8479 Do not call cplusplus_error.
8480 (symtabs_from_filename): Rewrite.
8481 (collect_function_symbols): Delete.
8482 (find_function_symbols): Rewrite without ARGPTR-style
8484 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8485 (decode_dollar): Adapted and renamed to ...
8486 (linespec_parse_variable): ... this.
8487 (find_linespec_symbols): New function.
8488 (decode_label): Adapted and renamed to ...
8489 (find_label_symbols): ... this.
8490 (decode_digits_list_mode): Add and use LS argument.
8491 (decode_digits_ordinary): Likewise.
8492 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8493 If in list mode, allow any symbol class. Otherwise, only
8494 permit LOC_BLOCK symbols.
8495 (minsym_found): Update comments.
8496 (search_minsyms_for_name): Do not convert the matching symbol
8497 into a SAL. Simply push the symbol and objfile into the
8499 (decode_variable): Delete. Contents adapted into
8500 find_linespec_symbols.
8502 * cp-support.c (SKIP_SPACE): Remove.
8503 (operator_tokens): Remove unused global.
8504 (cp_validate_operator): Remove.
8505 * cp-support.h (cp_validate_operator): Remove declaration.
8507 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8509 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8510 for TYPE_VPTR_FIELDNO.
8511 * valprint.c (valprint_check_validity): Make it global, move the
8512 function comment ...
8513 * value.h (valprint_check_validity): ... to this new declaration.
8515 2012-04-02 Tristan Gingold <gingold@adacore.com>
8517 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8518 the STATE32 api for i386 state.
8519 (i386_darwin_store_inferior_registers): Likewise.
8521 2012-04-02 Tristan Gingold <gingold@adacore.com>
8523 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8525 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8528 2012-04-02 Tristan Gingold <gingold@adacore.com>
8531 * darwin-nat.c (darwin_execvp): Set binary preference.
8533 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8535 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8537 2012-03-30 Tom Tromey <tromey@redhat.com>
8539 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8540 of TRY_CATCH. Fix error handling.
8541 * python/py-value.c (convert_value_from_python): Move 'old'
8542 declaration to innermost scope.
8544 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8545 Andrey Smirnov <andrew.smirnov@gmail.com>
8547 -Wshadow warning fix.
8548 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8549 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8550 Adjust code accordingly.
8552 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8554 * ada-lang.c (symbol_completion_add): Rename parameter
8555 "encoded" into "encoded_p". Ajust code and documentation
8558 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8559 Andrey Smirnov <andrew.smirnov@gmail.com>
8561 -Wshadow warning fix.
8562 * ada-lang.c (symbol_completion_add): Rename parameter
8563 "wild_match" into wild_match_p. Update code and documentation
8566 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8568 * ada-lang.c (symbol_completion_match): Rename parameter
8569 "encoded" into "encoded_p". Ajust code and documentation
8572 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8573 Andrey Smirnov <andrew.smirnov@gmail.com>
8575 -Wshadow warning fix.
8576 * ada-lang.c (symbol_completion_match): Rename parameter
8577 "wild_match" into "wild_match_p". Adjust code and function
8578 documentation accordingly.
8580 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8581 Andrey Smirnov <andrew.smirnov@gmail.com>
8583 -Wshadow warning fix.
8584 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8585 "symbol_info" into "info". Adjust code accordingly.
8586 (ada_lookup_symbol): Likewise.
8588 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8590 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8591 of this function's documentation.
8593 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8594 Andrey Smirnov <andrew.smirnov@gmail.com>
8596 -Wshadow warning fix.
8597 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8598 variable into "wild_match_p". Adjust code accordingly.
8600 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8601 Andrey Smirnov <andrew.smirnov@gmail.com>
8603 -Wshadow warning fix.
8604 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8605 parameter into "wild_match_p". Adjust code accordingly.
8606 Document this parameter in the function description.
8608 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8609 Andrey Smirnov <andrew.smirnov@gmail.com>
8611 -Wshadow warning fix.
8612 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8613 "wild_match" parameter to "wild_match_p" (-Wshadow).
8615 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8617 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8618 in function documentation.
8620 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8621 Andrey Smirnov <andrew.smirnov@gmail.com>
8623 -Wshadow warning fix.
8624 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8625 variable into wild_match_p. Adjust code accordingly.
8627 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8628 Andrey Smirnov <andrew.smirnov@gmail.com>
8630 * ada-valprint.c (ada_val_print_1): Move the code handling
8631 TYPE_CODE_ENUM inside its own lexical block. Declare
8632 variables len and val there, instead of in the function's
8633 top level block. Avoid declaring deref_val again in a way
8634 that shadows another variable of the same name declared
8635 in one of the up-level blocks. Just re-use the up-level
8638 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8640 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8641 Replace block_found argument by symbol_info. Adjust
8642 implementation accordingly. Add function documentation.
8643 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8645 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8646 * ada-exp.y (write_object_renaming): Adjust to new
8647 ada_lookup_encoded_symbol API.
8649 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8651 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8654 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8656 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8657 (v850_register_name): Add the mpu and fpu register names.
8658 (v850e_register_name): Add the mpu and fpu register names.
8659 (v850e2_register_name): New function.
8660 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8663 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8665 * NEWS: Add entry for Ada varobj support.
8667 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8669 * varobj.c (default_value_is_changeable_p): New function,
8670 extracted from varobj_value_is_changeable_p. Add declaration.
8671 (ada_value_is_changeable_p): New function, extracted from
8672 varobj_value_is_changeable_p. Add declaration.
8673 (struct language_specific): New field "value_is_changeable_p".
8674 (languages): Add entries for new field.
8675 (varobj_create): Set language before calling install_new_value.
8676 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8677 "value_is_changeable_p" language callback.
8679 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8681 * ada-varobj.h, ada-varobj.c: New files.
8682 * Makefile.in (SFILES): Add ada-varobj.c.
8683 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8684 (COMMON_OBS): Add ada-varobj.o.
8686 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8688 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8689 (struct language_specific): New field "value_has_mutated".
8690 (languages): Set field "value_has_mutated" in each entry of array.
8691 (varobj_value_has_mutated): New function.
8692 (varobj_udpdate): Add handling of type mutation.
8693 (value_of_root): Add handling of type mutation.
8694 (ada_value_has_mutated): New function.
8696 2012-03-28 Pedro Alves <palves@redhat.com>
8698 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8699 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8701 2012-03-28 Tom Tromey <tromey@redhat.com>
8703 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8704 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8707 2012-03-28 Tom Tromey <tromey@redhat.com>
8709 * .dir-locals.el: New file.
8711 2012-03-28 Pedro Alves <palves@redhat.com>
8713 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8715 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8717 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8720 2012-03-27 Pedro Alves <palves@redhat.com>
8722 Eliminate struct ui_stream.
8724 * ui-out.h (struct ui_stream): Delete.
8725 (ui_out_field_stream): Adjust prototype.
8726 (ui_out_stream_new, ui_out_stream_delete)
8727 (make_cleanup_ui_out_stream_delete): Delete declarations.
8728 * ui-out.c (ui_out_field_stream): Change prototype to take a
8729 ui_file instead of a ui_stream. Adjust.
8730 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8731 (make_cleanup_ui_out_stream_delete): Delete.
8732 * breakpoint.c (print_breakpoint_location)
8733 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8734 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8735 * disasm.c (dump_insns): Ditto.
8736 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8738 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8739 ui_stream/ui_out_stream_new.
8740 * infcmd.c (print_return_value): Ditto.
8741 * osdata.c (info_osdata_command): Don't allocate a local
8743 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8744 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8745 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8746 allocate a local ui_stream.
8747 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8748 instead of ui_stream/ui_out_stream_new.
8749 (list_args_or_locals): Don't allocate a local ui_stream.
8750 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8751 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8752 ui_stream/ui_out_stream_new.
8753 * cli/cli-setshow.c (do_setshow_command): Ditto.
8755 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8757 * arm-linux-tdep.c (arm_linux_init_abi): Call
8758 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8759 * arm-tdep.c (arm_process_record): New function.
8760 (deallocate_reg_mem): New function.
8761 (decode_insn): New function.
8762 (thumb_record_branch): New function.
8763 (thumb_record_ldm_stm_swi(): New function.
8764 (thumb_record_misc): New function.
8765 (thumb_record_ld_st_stack): New function.
8766 (thumb_record_ld_st_imm_offset): New function.
8767 (thumb_record_ld_st_reg_offset(): New function.
8768 (thumb_record_add_sub_cmp_mov): New function.
8769 (thumb_record_shift_add_sub): New function.
8770 (arm_record_coproc_data_proc): New function.
8771 (arm_record_coproc): New function.
8772 (arm_record_b_bl): New function.
8773 (arm_record_ld_st_multiple): New function.
8774 (arm_record_ld_st_reg_offset): New function.
8775 (arm_record_ld_st_imm_offset): New function.
8776 (arm_record_data_proc_imm): New function.
8777 (arm_record_data_proc_misc_ld_str): New function.
8778 (arm_record_extension_space): New function.
8779 (arm_record_strx): New function.
8780 (sbo_sbz): New function.
8781 (struct insn_decode_record): New structure for arm insn record.
8782 (REG_ALLOC): New macro for reg allocations.
8783 (MEM_ALLOC): New macro for memory allocations.
8784 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8786 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8788 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8789 (store_register): Likewise.
8791 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8793 * MAINTAINERS (Write After Approval): Add myself to the list.
8795 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8797 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8798 Describe also the option "auto".
8800 2012-03-22 Richard Henderson <rth@redhat.com>
8802 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8803 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8805 2012-03-22 Richard Henderson <rth@redhat.com>
8807 * jit.c (jit_read_code_entry): Compute alignment and offset of
8808 int64_t member before computing entry_size.
8810 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8812 Python scripting: Add new method Value.referenced_value to
8813 gdb.Value which can dereference pointer as well as reference
8815 * NEWS: Add entry under 'Python scripting' about the new method
8816 Value.referenced_value on gdb.Value objects.
8817 * python/py-value.c (valpy_referenced_value): New function
8818 defining a new method on gdb.Value objects which can dereference
8819 pointer and reference values.
8821 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8823 * MAINTAINERS (Write After Approval): Add myself to the list.
8825 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8827 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8828 in addition to "main".
8830 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8832 * expression.h (op_name): Add declaration.
8833 * expprint.c (op_name): Remove declaration. Make non-static.
8834 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8836 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8838 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8840 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8841 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8842 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8843 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8844 (linux_nat_get_siginfo): Likewise.
8845 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8846 (linux_nat_get_siginfo): Likewise.
8847 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8848 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8849 * procfs.c (gdb_siginfo_t): Likewise.
8851 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8853 * .gitignore: Ignore more files.
8855 2012-03-20 Pedro Alves <palves@redhat.com>
8857 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8860 2012-03-20 Yao Qi <yao@codesourcery.com>
8862 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8865 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8867 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8868 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8869 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8871 * dwarf2expr.h (cu_offset, sect_offset): New types.
8872 (struct dwarf_expr_context_funcs) <dwarf_call>
8873 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8875 (struct dwarf_expr_context) <len>: Improve the comment.
8876 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8877 cu_offset and sect_offset.
8878 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8879 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8880 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8881 * dwarf2loc.h: Include dwarf2expr.h.
8882 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8884 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8885 Improve the comment.
8886 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8887 (struct signatured_type, struct line_header, struct partial_die_info)
8888 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8889 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8890 (get_die_type_at_offset, create_cus_from_index)
8891 (create_signatured_type_table_from_index, dw2_get_file_names)
8892 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8893 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8894 (create_debug_types_hash_table, process_psymtab_comp_unit)
8895 (load_partial_comp_unit, create_all_comp_units)
8896 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8897 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8898 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8899 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8900 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8901 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8902 (find_partial_die, read_attribute_value, lookup_die_type)
8903 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8904 (is_ref_attr): New function comment.
8905 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8906 Use cu_offset and sect_offset.
8907 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8908 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8909 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8910 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8911 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8912 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8913 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8916 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8919 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8920 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8922 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8924 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8926 * NEWS: Describe new options --init-command=FILE, -ix and
8927 --init-eval-command=COMMAND, -iex.
8928 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8929 CMDARG_INIT_COMMAND.
8930 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8931 "init-command", "init-eval-command", "ix" and "iex" to the variable
8932 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8933 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8934 (print_gdb_help): Describe --init-command=FILE, -ix and
8935 --init-eval-command=COMMAND, -iex.
8937 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 * main.c (struct cmdarg): Move it here from main. Add more comments.
8941 (cmdarg_s, VEC (cmdarg_s)): New.
8942 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8943 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8944 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8945 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8948 2012-03-19 Tom Tromey <tromey@redhat.com>
8950 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8952 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8955 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8958 2012-03-16 Chris January <chris.january@allinea.com>
8960 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8963 2012-03-16 Chris January <chris.january@allinea.com>
8965 * source.c (add_path): Use memmove instead of strcpy because the
8968 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8970 * value.h (set_value_parent): Add declaration.
8971 * value.c (set_value_parent): New function.
8972 (value_address): If VALUE->PARENT is not NULL, then use it as
8973 the base address instead of VALUE->LOCATION.address.
8974 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8975 the same as OBJ's address. Adjust V's offset accordingly.
8978 2012-03-16 Gary Benson <gbenson@redhat.com>
8980 PR breakpoints/10738
8981 * dwarf2read.c (use_deprecated_index_sections): New global.
8982 (struct partial_die_info): New member may_be_inlined.
8983 (read_partial_die): Set may_be_inlined where appropriate.
8984 (add_partial_subprogram): Add partial symbols for partial
8985 DIEs that may be inlined.
8986 (new_symbol_full): Add inlined subroutines to the current
8988 (write_psymtabs_to_index): Bump version number.
8989 (dwarf2_read_index): Read only version 6 indices unless
8990 use_deprecated_index_sections is set.
8991 * linespec.c (symbol_and_data_callback): New structure.
8992 (iterate_inline_only): New function.
8993 (iterate_over_all_matching_symtabs): New argument
8994 "include_inline". If nonzero, also call the callback for
8995 symbols representing inlined subroutines.
8996 (lookup_prefix_sym): Pass extra argument to the above.
8997 (find_function_symbols): Likewise.
8998 (add_matching_symbols_to_info): Likewise.
8999 * NEWS: Mention that GDB can now set breakpoints on inlined
9002 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9004 * p-typeprint.c (pascal_type_print_method_args):
9005 Fix display of parameter of methods.
9007 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9009 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9010 Add missing prototype.
9012 2012-03-16 Yao Qi <yao@codesourcery.com>
9013 Jan Kratochvil <jan.kratochvil@redhat.com>
9015 Fix false compilation warning.
9016 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9018 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9019 Pedro Alves <pedro@codesourcery.com>
9021 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9022 (arm_register_g_packet_guesses): New function.
9023 (arm_gdbarch_init): Don't force a target description with
9024 registers when the executable is detected as M-profile. Instead
9025 set gdbarch->tdep->is_m. Register `g' packet guesses.
9026 (_initialize_arm_tdep): Initialize the new target description.
9027 * features/arm-with-m-fpa-layout.xml: New description.
9028 * features/arm-with-m-fpa-layout.c: New, generated.
9030 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9032 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9033 Update function description.
9034 (insert_bp_location): Do not wipe bl->target_info out.
9035 * mem-break.c: #include "gdb_string.h".
9036 (default_memory_insert_breakpoint): Do not call target_read_memory
9037 with a pointer to the breakpoint's shadow_contents buffer. Use
9038 a local buffer instead.
9039 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9041 2012-03-15 Tom Tromey <tromey@redhat.com>
9043 * NEWS: Mention "info vtbl", not "info vtable".
9044 * cp-support.c (info_vtbl_command): Fix comment.
9045 (_initialize_cp_support): Fix text.
9047 2012-03-15 Tom Tromey <tromey@redhat.com>
9049 * cp-valprint.c (cp_print_value_fields): Use
9050 print_function_pointer_address for vtable slot.
9052 2012-03-15 Tom Tromey <tromey@redhat.com>
9054 * gnu-v3-abi.c (struct value_and_voffset): New.
9055 (hash_value_and_voffset, eq_value_and_voffset)
9056 (compare_value_and_voffset, compute_vtable_size)
9057 (print_one_vtable, gnuv3_print_vtable): New functions.
9058 (init_gnuv3_ops): Initialize 'print_vtable' field.
9059 * cp-support.c (info_vtbl_command): New function.
9060 (_initialize_cp_support): Add "info vtbl".
9061 * cp-abi.h (cplus_print_vtable): Declare.
9062 (struct cp_abi_ops) <print_vtable>: New field.
9063 * cp-abi.c (cplus_print_vtable): New function.
9066 2012-03-15 Tom Tromey <tromey@redhat.com>
9068 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9069 iterate_over_symbols.
9071 2012-03-14 Doug Evans <dje@google.com>
9073 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9074 DW_OP_GNU_parameter_ref.
9076 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9078 Fix double prompt of 'interpreter-exec mi'.
9079 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9080 (mi_interpreter_resume): use it.
9081 (mi_execute_command_input_handler): New function.
9082 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9083 mi_execute_command_input_handler.
9085 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9087 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9089 (darwin_debug_port_info): Make static.
9090 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9091 * machoread.c (_initialize_machoread): Add prototype.
9092 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9093 (i386_darwin_set_control, i386_darwin_get_control)
9094 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9095 i386_darwin_get_status, i386_darwin_get_control):
9096 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9098 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9100 * ax-gdb.c (gen_usual_unary): Remove special handling of
9101 enum and bool types.
9103 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9105 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9107 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9109 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9111 2012-03-13 Chris January <chris.january@allinea.com>
9113 * aix-thread.c (fill_sprs): Store the floating point registers
9114 at the correct offsets into vals.
9116 2012-03-13 Doug Evans <dje@google.com>
9118 * NEWS: Mention symbol-reloading has been deleted.
9119 * symfile.c (symbol_reloading): Delete.
9120 (show_symbol_reloading): Delete.
9121 (_initialize_symfile): Delete set/show symbol-reloading.
9123 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9124 read_in_chain until we have successfully read it in.
9125 (load_full_comp_unit): Ditto.
9126 (read_signatured_type): Add comment.
9128 2012-03-13 Chris January <chris.january@allinea.com>
9130 * stabsread.c (fix_common_block): Change type of valu argument
9133 2012-03-13 Chris January <chris.january@allinea.com>
9135 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9138 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9140 * common/linux-procfs.c (linux_proc_get_int): New, from
9141 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9143 (linux_proc_get_tgid): Only call linux_proc_get_int.
9144 (linux_proc_get_tracerpid): New.
9145 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9146 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9147 linux_proc_pid_has_state.
9148 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9149 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9150 (linux_ptrace_attach_warnings): New.
9151 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9153 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9154 (linux_nat_attach): New variables ex, buffer, message and message_s.
9155 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9157 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9159 * Makefile.in (linux-ptrace.o): New.
9160 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9162 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9163 * common/linux-ptrace.c: New file.
9164 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9165 * config/arm/linux.mh: Likewise.
9166 * config/i386/linux.mh: Likewise.
9167 * config/i386/linux64.mh: Likewise.
9168 * config/ia64/linux.mh: Likewise.
9169 * config/m32r/linux.mh: Likewise.
9170 * config/m68k/linux.mh: Likewise.
9171 * config/mips/linux.mh: Likewise.
9172 * config/pa/linux.mh: Likewise.
9173 * config/powerpc/linux.mh: Likewise.
9174 * config/powerpc/ppc64-linux.mh: Likewise.
9175 * config/powerpc/spu-linux.mh: Likewise.
9176 * config/s390/s390.mh: Likewise.
9177 * config/sparc/linux.mh: Likewise.
9178 * config/sparc/linux64.mh: Likewise.
9179 * config/xtensa/linux.mh: Likewise.
9180 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9181 common/linux-procfs.c.
9182 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9184 2012-03-13 Hui Zhu <teawater@gmail.com>
9185 Pedro Alves <palves@redhat.com>
9187 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9188 CREATE_BREAKPOINT_FLAGS_INSERTED.
9189 (create_breakpoint_sal, create_breakpoints_sal)
9190 (base_breakpoint_create_breakpoints_sal)
9191 (tracepoint_create_breakpoints_sal)
9192 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9194 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9195 (ftrace_command, strace_command): Adjust.
9196 (create_tracepoint_from_upload): Pass
9197 CREATE_BREAKPOINT_FLAGS_INSERTED.
9198 * breakpoint.h (enum breakpoint_create_flags): New.
9199 (create_breakpoint): New flags parameter.
9200 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9201 * python/py-breakpoint.c (bppy_init): Adjust.
9202 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9203 * spu-tdep.c (spu_catch_start): Adjust.
9205 2012-03-13 Pedro Alves <palves@redhat.com>
9206 Hui Zhu <teawater@gmail.com>
9207 Yao Qi <yao@codesourcery.com>
9209 * remote.c (struct remote_state): New field `starting_up'.
9210 (remote_start_remote): Set and clear it.
9211 (remote_can_download_tracepoint): If starting up, return false.
9213 2012-03-13 Yao Qi <yao@codesourcery.com>
9215 * inferior.h (struct inferior): Remove fields any_syscall_count,
9216 syscalls_counts and total_syscalls_count. Move them to new
9217 struct catch_syscall_inferior_data in breakpoint.c.
9218 * breakpoint.c: Call DEF_VEC_I(int).
9219 (struct catch_syscall_inferior_data): New.
9220 (get_catch_syscall_inferior_data): New.
9221 (catch_syscall_inferior_data_cleanup): New.
9222 (insert_catch_syscall): Update to access data in
9223 struct catch_syscall_inferior_data.
9224 (insert_catch_syscall): Likewise.
9225 (remove_catch_syscall): Likewise.
9226 (remove_catch_syscall): Likewise.
9227 (is_syscall_catchpoint_enabled): Likewise.
9228 (add_catch_command): Likewise.
9229 (_initialize_breakpoint): Register cleanup.
9230 * breakpoint.h: Removed DEF_VEC_I(int).
9231 * dwarf2loc.c: Call DEF_VEC_I(int).
9232 * mi/mi-main.c: Likewise.
9234 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9236 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9238 2012-03-12 Chris January <chris.january@allinea.com>
9240 * aix-thread.c (_initialize_aix_thread): Add prototype.
9241 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9242 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9244 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9246 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9247 include of "amd64-nat.h".
9249 2012-03-12 Tom Tromey <tromey@redhat.com>
9251 * buildsym.c (record_pending_block): Now static.
9252 * buildsym.h: (record_pending_block): Remove.
9254 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9256 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9258 2012-03-09 Tom Tromey <tromey@redhat.com>
9260 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9261 producer_is_gxx_lt_4_6>: New fields.
9262 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9264 2012-03-09 Tom Tromey <tromey@redhat.com>
9266 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9268 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9270 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9273 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9275 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9277 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9279 Fix -Wmissing-prototypes build.
9280 * arm-linux-nat.c (get_thread_id): Make it static.
9281 * xtensa-linux-nat.c (get_thread_id): Likewise.
9283 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9285 * server.c (process_point_options): If a conditional expression
9286 is found, only print a message if remote_debug is nonzero.
9288 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9290 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9291 of internal error for unknown/unsupported types.
9293 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9295 Fix CU relative vs. absolute DIE offsets.
9296 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9297 offset to offset_in_cu.
9298 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9300 (dwarf2_fetch_die_location_block): Rename parameter offset to
9301 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9303 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 * libunwind-frame.c: Rename to ...
9306 * ia64-libunwind-tdep.c: ... here.
9307 * libunwind-frame.h: Rename to ...
9308 * ia64-libunwind-tdep.h: ... here.
9309 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9310 ia64-libunwind-tdep.h.
9311 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9312 * README (--with-libunwind): Rename to ...
9313 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9314 * config.in: Regenerate.
9315 * configure: Regenerate.
9316 * configure.ac: New option --with-libunwind-ia64, make the
9317 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9318 Remove AC_DEFINE for HAVE_LIBUNWIND.
9319 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9320 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9321 Rename libunwind-frame in the general comment.
9322 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9323 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9324 Move forward declarations inside #ifndef. Rename libunwind-frame in
9325 the general comment.
9326 * ia64-tdep.c: Rename libunwind-frame.h #include to
9327 ia64-libunwind-tdep.h.
9328 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9329 (ia64_libunwind_descr): Rename libunwind-frame to
9330 ia64-libunwind-tdep in these function comments.
9331 * ia64-tdep.h: Rename libunwind-frame.h #include to
9332 ia64-libunwind-tdep.h.
9333 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9334 ia64-libunwind-tdep in that data comment.
9336 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9338 * libunwind-frame.h (struct frame_unwind): New declaration.
9340 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9342 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9343 "set breakpoint condition-evaluation" command.
9345 2012-03-08 Tristan Gingold <gingold@adacore.com>
9347 * sparc-stub.c: Move to stubs/
9348 * sh-stub.c: Likewise.
9349 * m68k-stub.c: Likewise.
9350 * m32r-stub.c: Likewise.
9351 * i386-stub.c: Likewise.
9353 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9355 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9356 linux_get_siginfo_type.
9358 * m68klinux-nat.c: Include "gdb_proc_service.h".
9359 (PTRACE_GET_THREAD_AREA): Define.
9360 (ps_get_thread_area): New function.
9362 2012-03-08 Yao Qi <yao@codesourcery.com>
9364 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9366 (remote_query_attached): Likewise.
9367 (remote_static_tracepoint_marker_at): Likewise.
9368 (remote_set_permissions): Likewise.
9369 (remote_detach_1, extended_remote_attach_1): Likewise.
9370 (send_g_packet, remote_vkill): Likewise.
9371 (extended_remote_disable_randomization): Likewise.
9372 (remote_add_target_side_condition): Likewise.
9373 (remote_insert_breakpoint): Likewise.
9374 (remote_remove_breakpoint): Likewise.
9375 (remote_insert_watchpoint): Likewise.
9376 (remote_remove_watchpoint): Likewise.
9377 (remote_insert_hw_breakpoint): Likewise.
9378 (remote_insert_hw_breakpoint): Likewise.
9379 (remote_remove_hw_breakpoint): Likewise.
9380 (remote_download_command_source): Likewise.
9381 (remote_download_tracepoint): Likewise.
9382 (remote_download_trace_state_variable): Likewise.
9383 (remote_disable_tracepoint): Likewise.
9384 (remote_trace_set_readonly_regions): Likewise.
9385 (remote_get_tracepoint_status): Likewise.
9386 (remote_trace_find): Likewise.
9387 (remote_get_trace_state_variable_value): Likewise.
9388 (remote_set_disconnected_tracing): Likewise.
9389 (remote_set_circular_trace_buffer): Likewise.
9390 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9391 (remote_use_agent): Likewise.
9392 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9395 2012-03-07 Pedro Alves <palves@redhat.com>
9397 * NEWS: Mention QProgramSignals.
9398 * inferior.h (update_signals_program_target): Declare.
9399 * infrun.c: (update_signals_program_target): New.
9400 (handle_command): Update the target of the new program signals
9402 * remote.c (PACKET_QProgramSignals): New enum.
9403 (last_program_signals_packet): New global.
9404 (remote_program_signals): New.
9405 (remote_start_remote): Update the target with the program signals
9407 (remote_protocol_features): Add entry for QPassSignals.
9408 (remote_open_1): Free anc clear last_program_signals_packet.
9409 (init_remote_ops): Install remote_program_signals.
9410 * target.c (update_current_target): Adjust.
9411 (target_program_signals): New.
9412 * target.h (struct target_ops) <to_program_signals>: New field.
9413 (target_program_signals): Declare.
9415 2012-03-07 Pedro Alves <palves@redhat.com>
9417 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9420 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9422 * m68klinux-nat.c (getregs_supplies): Make static.
9423 (getfpregs_supplies): Likewise.
9424 (have_ptrace_getregs): Likewise.
9426 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9428 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9429 in call to get_die_type_at_offset.
9431 2012-03-06 Stan Shebs <stan@codesourcery.com>
9433 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9434 * mi/mi-cmd-disas.c: Ditto.
9435 * mi/mi-cmd-env.c: Ditto.
9436 * mi/mi-cmd-file.c: Ditto.
9437 * mi/mi-cmd-stack.c: Ditto.
9438 * mi/mi-cmd-target.c: Ditto.
9439 * mi/mi-cmd-var.c: Ditto.
9440 * mi/mi-cmds.c: Ditto.
9441 * mi/mi-cmds.h: Ditto.
9442 * mi/mi-console.c: Ditto.
9443 * mi/mi-getopt.c: Ditto.
9444 * mi/mi-getopt.h: Ditto.
9445 * mi/mi-interp.c: Ditto.
9446 * mi/mi-main.c: Ditto.
9447 * mi/mi-out.c: Ditto.
9448 * mi/mi-parse.c: Ditto.
9449 * mi/mi-parse.h: Ditto.
9450 * mi/mi-symbol-cmds.c: Ditto.
9452 * mi/mi-getopt.h: Move mi_opt struct up.
9453 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9455 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9457 2012-03-06 Tom Tromey <tromey@redhat.com>
9459 * proc-service.c (ps_pglobal_lookup): Set the current program
9462 2012-03-06 Pedro Alves <palves@redhat.com>
9464 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9466 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9468 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9470 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9473 * common/linux-osdata.c (linux_common_core_of_thread): New function
9475 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9476 call by linux_common_core_of_thread.
9477 (linux_nat_core_of_thread_1): Remove.
9478 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9479 * linux-thread-db.c: Include linux-osdata.h.
9480 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9481 linux_common_core_of_thread.
9483 2012-03-05 Tom Tromey <tromey@redhat.com>
9485 * value.c (value_primitive_field): Don't fetch contents for
9488 2012-03-05 Tom Tromey <tromey@redhat.com>
9490 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9492 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9494 * s390-nat.c: Include "gregset.h".
9496 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9498 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9499 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9500 (libunwind_load): New variable so_error, use it for dlerror. Try to
9501 load also LIBUNWIND_SO_7.
9503 2012-03-05 Pedro Alves <palves@redhat.com>
9505 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9506 is not NULL, and remove resulting dead code.
9508 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9510 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9511 prologue to sh_analyze_prologue.
9512 (sh_analyze_prologue): Make better use of such an upper limit, and
9513 generally be more cautious about accessing memory.
9515 2012-03-05 Tom Tromey <tromey@redhat.com>
9517 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9518 _initialize_ia64_hpux_tdep.
9520 2012-03-05 Pedro Alves <palves@redhat.com>
9524 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9525 the register state is clear, supply explicit zero, instead of
9526 marking the register unavailable.
9528 2012-03-05 Tristan Gingold <gingold@adacore.com>
9530 * NEWS: Mention OpenVMS ia64 new target.
9532 2012-03-05 Tristan Gingold <gingold@adacore.com>
9534 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9535 (ia64_unw_accessors, ia64_unw_rse_accessors)
9536 (ia64_libunwind_descr): Declare.
9537 * ia64-vms-tdep.c: New file.
9538 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9539 (ia64_libunwind_descr): Make them public.
9540 * configure.tgt: Add ia64-*-*vms*.
9541 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9542 (ALLDEPFILES): Add ia64-vms-tdep.c
9544 2012-03-05 Tristan Gingold <gingold@adacore.com>
9546 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9547 * remote.c (PACKET_qXfer_uib): New enum value.
9548 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9549 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9550 (_initialize_remote): Call add_packet_config_cmd for
9553 2012-03-05 Tristan Gingold <gingold@adacore.com>
9555 * osabi.c (gdb_osabi_names): Add OpenVMS.
9556 (generic_elf_osabi_sniffer): Likewise.
9557 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9559 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9561 Removed unused code.
9562 * libunwind-frame.c (libunwind_frame_unwind)
9563 (libunwind_frame_base_address): Remove.
9564 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9566 2012-03-04 Yao Qi <yao@codesourcery.com>
9568 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9569 remove trailing new line.
9570 (agent_run_command, agent_run_command): Add _ markup.
9571 (agent_capability_check): Likewise.
9573 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9575 * breakpoint.c (set_condition_evaluation_mode): Set
9576 CONDITION_EVALUATION_MODE unconditionally.
9578 2012-03-03 Yao Qi <yao@codesourcery.com>
9580 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9581 * common/agent.h: Update declaration.
9582 * inf-child.c (inf_child_use_agent): New.
9583 (inf_child_can_use_agent): New.
9584 (inf_child_target): Initialize fields `to_use_agent'
9585 and `to_can_use_agent'.
9586 * agent.c (agent_new_objfile): New.
9587 (_initialize_agent): Add agent_new_objfile to new_objfile
9590 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9592 (linux_target_install_ops): Initialize field
9593 `to_static_tracepoint_markers_by_strid'.
9594 * remote.c (free_current_marker): Move it to ...
9595 * tracepoint.c (free_current_marker): ... here. New.
9596 (cleanup_target_stop): New.
9597 * tracepoint.h: Declare free_current_marker.
9598 * NEWS: Add one entry about `info static-tracepoint-marker'.
9600 2012-03-03 Yao Qi <yao@codesourcery.com>
9602 * common/agent.c (agent_loaded_p): New.
9603 (agent_look_up_symbols): New global.
9604 * common/agent.h: Declare agent_loaded_p.
9606 2012-03-03 Yao Qi <yao@codesourcery.com>
9608 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9609 (agent_capability_check, agent_capability_invalidate): New.
9610 (symbol_list): New array element.
9611 * common/agent.h (enum agent_capa): New.
9612 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9614 2012-03-03 Yao Qi <yao@codesourcery.com>
9616 * target.h (struct target_ops) <to_use_agent>: New field.
9617 (struct target_ops) <to_can_use_agent>: New field.
9618 (target_use_agent, target_can_use_agent): New macro.
9619 * target.c (update_current_target): Update.
9620 * remote.c: New enum `PACKET_QAgent'.
9621 (remote_protocol_features): Add a new element.
9622 (remote_use_agent, remote_can_use_agent): New.
9623 (init_remote_ops): Initialize field `can_use_agent' with
9624 remote_can_use_agent. Intiailize field `use_agent' with
9626 * common/agent.c (use_agent): New global.
9627 * common/agent.h: Declare it.
9628 * tracepoint.c (info_static_tracepoint_markers_command): Add
9630 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9631 (COMMON_OBS): Add common/agent.o and agent.o
9632 (common-agent.o): New rule.
9635 2012-03-03 Yao Qi <yao@codesourcery.com>
9637 * common/agent.c: New.
9638 * common/agent.h: New.
9639 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9641 * configure, configh.in: Regenerated.
9643 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9645 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9646 unless it exists for this architecture.
9648 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9650 * language.h (struct language_defn): New "method" la_read_var_value.
9651 * findvar.c: #include "language.h".
9652 (default_read_var_value): Renames read_var_value. Rewrite
9653 function description.
9654 (read_var_value): New function.
9655 * value.h (default_read_var_value): Add prototype.
9656 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9658 (ada_language_defn): Add entry for la_read_var_value.
9659 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9660 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9661 language_defn structures to add entry for new la_read_var_value
9664 2012-03-02 Tom Tromey <tromey@redhat.com>
9665 Pedro Alves <palves@redhat.com>
9667 PR breakpoints/13776:
9668 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9670 (delete_longjmp_breakpoint_at_next_stop): New.
9671 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9672 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9673 before deleting the inferior. Add comments.
9674 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9675 breakpoints immediately, but only on next stop. Move that code
9676 next to where we mark other breakpoints for deletion.
9678 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9680 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9682 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9685 2012-03-02 Pedro Alves <palves@redhat.com>
9687 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9689 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9691 Fix -Wmissing-prototypes build.
9692 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9693 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9694 (gdbsim_has_memory): Likewise.
9696 2012-03-02 Yao Qi <yao@codesourcery.com>
9698 Fix -Wmissing-prototypes build.
9699 * charset.c (phony_iconv_open): Make static.
9700 (phony_iconv_close, phony_iconv): Likewise.
9701 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9702 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9704 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9705 * ser-mingw.c (create_select_thread): Make static.
9706 * windows-termcap.c (tgetent): New prototype.
9707 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9709 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9711 Fix -Wmissing-prototypes build.
9712 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9713 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9714 (_initialize_loadable): New prototypes.
9716 2012-03-02 Doug Evans <dje@google.com>
9718 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9719 abbrev table, read_comp_unit will do it.
9721 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9723 Fix -Wmissing-prototypes build.
9724 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9725 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9726 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9727 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9728 (_initialize_arm_symbian_tdep): New prototype.
9729 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9730 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9731 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9733 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9734 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9736 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9737 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9738 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9740 * moxie-tdep.c (moxie_process_record): Likewise.
9741 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9742 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9743 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9744 (_initialize_rl78_tdep): New prototype.
9745 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9746 (_initialize_rx_tdep): New prototype.
9747 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9748 (_initialize_darwin_solib): New prototype.
9749 * solib-spu.c: Include solib-spu.h.
9750 (_initialize_spu_solib): New prototype.
9751 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9752 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9753 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9754 (tic6x_software_single_step): Make it static.
9755 (_initialize_tic6x_tdep): New prototype.
9757 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9759 Fix -Wmissing-prototypes build.
9760 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9761 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9763 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9765 Fix -Wmissing-prototypes build.
9766 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9767 (frv_have_stopped_data_address): Remove.
9769 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9771 Fix -Wmissing-prototypes build.
9772 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9773 * sh-tdep.c: Include sh64-tdep.h.
9774 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9775 * sh64-tdep.c: Include sh64-tdep.h.
9776 * sh64-tdep.h: New file.
9778 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9780 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9782 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9784 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9785 sp_regnum once the gdbarch_init_osabi hook has been called.
9787 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9789 * mips-tdep.c (mips32_bc1_pc): New function.
9790 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9791 BPOSGE32 and BPOSGE64 instructions.
9792 (deal_with_atomic_sequence): Likewise.
9793 (mips32_instruction_has_delay_slot): Likewise.
9795 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9796 Chris Dearman <chris@mips.com>
9797 Maciej W. Rozycki <macro@codesourcery.com>
9798 Joseph Myers <joseph@codesourcery.com>
9800 * features/mips-dsp.xml: New file.
9801 * features/mips64-dsp.xml: New file.
9802 * features/mips-dsp-linux.xml: New file.
9803 * features/mips64-dsp-linux.xml: New file.
9804 * features/Makefile (WHICH): Add mips-dsp-linux and
9806 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9807 * features/mips-dsp-linux.c: New file.
9808 * features/mips64-dsp-linux.c: New file.
9809 * regformats/mips-dsp-linux.dat: New file.
9810 * regformats/mips64-dsp-linux.dat: New file.
9811 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9813 (mips64_linux_register_addr): Likewise.
9814 (mips64_linux_regsets_fetch_registers): Likewise.
9815 (mips64_linux_regsets_store_registers): Likewise.
9816 (mips64_linux_fetch_registers): Update call to
9817 mips64_linux_regsets_fetch_registers.
9818 (mips64_linux_store_registers): Update call to
9819 mips64_linux_regsets_store_registers.
9820 (mips_linux_read_description): Probe for DSP registers.
9821 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9822 and initialize_tdesc_mips64_dsp_linux.
9823 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9824 Remove padding of no longer used embedded register slots.
9825 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9826 (MIPS_RESTART_REGNUM): Redefine enum value.
9827 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9829 (mips_tx39_reg_names): Likewise.
9830 (mips_linux_reg_names): New array of register names for Linux
9832 (mips_register_name): Check for a null pointer in
9833 mips_processor_reg_names and return an empty string.
9834 (mips_register_type): Exclude embedded registers for the IRIX
9836 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9837 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9839 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9840 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9841 (mips_gdbarch_init): Likewise. Initialize internal register
9842 indices for the Linux ABI. Use dynamic numbers to refer to
9843 registers, as applicable, while parsing the target description.
9844 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9846 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9848 * frame.h (read_frame_register_unsigned): Fix typo in function
9851 2012-03-01 Pedro Alves <palves@redhat.com>
9853 * jit-reader.in [!__cplusplus]
9854 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9856 2012-03-01 Pedro Alves <palves@redhat.com>
9858 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9859 * configure: Regenerate.
9861 2012-03-01 Pedro Alves <palves@redhat.com>
9863 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9864 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9865 (ftrace_command, strace_command): Make static.
9866 * d-lang.c (_initialize_d_language): Declare.
9867 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9868 * dwarf2loc.c (_initialize_dwarf2loc):
9869 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9870 * exec.c (exec_get_section_table): Make static.
9871 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9872 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9873 * inferior.c (remove_inferior_command, add_inferior_command)
9874 (clone_inferior_command): Make static.
9875 * linux-nat.c (linux_nat_thread_address_space)
9876 (linux_nat_core_of_thread): Make static.
9877 * linux-tdep.c (_initialize_linux_tdep): Declare.
9878 * objc-lang.c (_initialize_objc_lang): Declare.
9879 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9881 (_initialize_opencl_language): Declare.
9882 * record.c (_initialize_record): Declare.
9883 * remote.c (demand_private_info, remote_get_tib_address)
9884 (remote_supports_cond_tracepoints)
9885 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9887 * skip.c (_initialize_step_skip): Declare.
9888 * symtab.c (skip_prologue_using_lineinfo): Make static.
9889 * tracepoint.c (delete_trace_state_variable)
9890 (trace_variable_command, delete_trace_variable_command)
9891 (get_uploaded_tsv, find_matching_tracepoint_location)
9892 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9894 * value.c (pack_unsigned_long): Make static.
9895 * varobj.c (varobj_ensure_python_env): Make static.
9896 * windows-tdep.c (_initialize_windows_tdep): Declare.
9897 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9899 2012-03-01 Pedro Alves <palves@redhat.com>
9901 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9903 (linux_init_abi): Install it as has_shared_address_space gdbarch
9906 2012-03-01 Pedro Alves <palves@redhat.com>
9908 * observer.c (observer_test_first_notification_function)
9909 (observer_test_second_notification_function)
9910 (observer_test_third_notification_function): Add declarations.
9912 2012-03-01 Pedro Alves <palves@redhat.com>
9914 * common/signals.c (default_target_signal_to_host)
9915 (default_target_signal_from_host): Move ...
9916 * arch-utils.c: ... here.
9917 * arch-utils.h (default_target_signal_to_host)
9918 (default_target_signal_from_host): Declare.
9920 * common/signals.c (target_signal_from_command): Move ...
9921 * infrun.c: ... here.
9922 * inferior.h (target_signal_from_command): Declare.
9923 * target.h (target_signal_from_command)
9924 (default_target_signal_from_host, default_target_signal_to_host):
9925 Delete declarations.
9927 * common/signals.c (_initialize_signals): Delete.
9929 2012-03-01 Pedro Alves <palves@redhat.com>
9931 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9932 both __cplusplus and !__cplusplus.
9934 2012-03-01 Pedro Alves <palves@redhat.com>
9936 * psymtab.c (find_and_open_source): Delete declaration.
9937 * source.c (find_and_open_source): Move comment ...
9938 * source.h (find_and_open_source): ... to this new declaration.
9940 2012-03-01 Pedro Alves <palves@redhat.com>
9942 * inline-frame.c: Include inline-frame.h.
9944 2012-03-01 Pedro Alves <palves@redhat.com>
9946 * tui/tui-data.c (set_gen_win_origin): Delete.
9947 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9948 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9950 2012-03-01 Pedro Alves <palves@redhat.com>
9952 * remote.c (encode_actions): Delete declaration.
9953 * tracepoint.c (encode_actions): Make extern.
9954 * tracepoint.h (encode_actions): Declare.
9956 2012-03-01 Pedro Alves <palves@redhat.com>
9958 * python/py-breakpoint.c: Include python.h.
9959 * python/py-continueevent.c (create_continue_event_object): Make
9961 * python/py-lazy-string.c (stpy_get_type): Make static.
9962 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9964 * python/py-utils.c (unicode_to_target_python_string): Make
9966 * python/py-value.c: Include python.h.
9968 2012-03-01 Pedro Alves <palves@redhat.com>
9970 * inferior.c (delete_threads_of_inferior): Delete.
9972 2012-03-01 Pedro Alves <palves@redhat.com>
9974 Import fallback definitions from glibc.
9976 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9977 ps_prochandle): Forward declare.
9978 (ps_err_e): Use glibc's comments.
9979 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9980 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9981 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9982 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9983 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9984 (struct ps_prochandle): Adjust comment.
9986 2012-03-01 Pedro Alves <palves@redhat.com>
9988 * ada-lang.c (ada_modulus_from_name): Delete.
9989 * ada-lex.l (lexer_init): Make static.
9991 2012-03-01 Pedro Alves <palves@redhat.com>
9995 * frame.c (read_frame_register_unsigned): New.
9996 * frame.h (read_frame_register_unsigned): Declare.
9997 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9999 (print_i387_control_word): New parameter `control_p'. Handle it.
10000 (i387_print_float_info): Handle unavailable float registers.
10002 2012-03-01 Keith Seitz <keiths@redhat.com>
10004 * linespec.c (decode_line_2): Sort the list of methods
10005 alphabetically before presenting the user with a selection
10008 2012-03-01 Doug Evans <dje@google.com>
10010 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10011 has_namespace_info.
10012 (dwarf2_read_abbrevs): Remove corresponding initialization.
10014 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10016 * NEWS: Mention new python command class gdb.COMMAND_USER.
10017 * cli/cli-cmds.c (show_user): Print error when used on a python
10019 (init_cli_cmds): Update documentation strings for "show user" and
10020 "set/show max-user-call-depth" to clarify that it does not apply to
10022 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10024 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10026 * top.c (execute_command): Only execute a user-defined command as a
10027 legacy macro if c->user_commands is set.
10029 2012-03-01 Tom Tromey <tromey@redhat.com>
10031 * valprint.h (struct generic_val_print_decorations): New.
10032 (generic_val_print): Declare.
10033 * valprint.c (generic_val_print): New function.
10034 * p-valprint.c (p_decorations): New global.
10035 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10036 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10037 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10038 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10039 * m2-valprint.c (m2_decorations): New global.
10040 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10041 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10042 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10043 TYPE_CODE_ERROR>: Call generic_val_print.
10044 * f-valprint.c (f_decorations): New global.
10045 (f_val_print): Use print_function_pointer_address.
10046 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10047 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10048 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10050 * c-valprint.c (c_decorations): New global.
10051 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10052 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10053 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10054 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10055 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10056 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10059 2012-03-01 Tom Tromey <tromey@redhat.com>
10061 * valprint.c (val_print): Update.
10062 * p-valprint (pascal_val_print): Return void.
10063 * p-lang.h (pascal_val_print): Return void.
10064 * m2-valprint.c (m2_val_print): Return void.
10065 * m2-lang.h (m2_val_print): Return void.
10066 * language.h (struct language_defn) <la_val_print>: Return void.
10067 * language.c (unk_lang_val_print): Return void.
10068 * jv-valprint.c (java_val_print): Return void.
10069 * jv-lang.h (java_val_print): Return void.
10070 * f-valprint.c (f_val_print): Return void.
10071 * f-lang.h (f_val_print): Return void.
10072 * d-valprint.c (d_val_print): Return void.
10073 (dynamic_array_type): Update.
10074 * d-lang.h (d_val_print): Return void.
10075 * c-valprint.c (c_val_print): Return void.
10076 * c-lang.h (c_val_print): Return void.
10077 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10079 * ada-lang.h (ada_val_print): Return void.
10081 2012-03-01 Tom Tromey <tromey@redhat.com>
10083 * value.h (val_print): Return void.
10084 * valprint.c (val_print): Return void.
10086 2012-03-01 Tom Tromey <tromey@redhat.com>
10088 * value.h (common_val_print): Return void.
10089 * valprint.c (common_val_print): Return void.
10091 2012-03-01 Tom Tromey <tromey@redhat.com>
10093 * value.h (value_print): Return void.
10094 * valprint.c (value_print): Return void.
10095 * p-valprint.c (pascal_value_print): Return void.
10096 * p-lang.h (pascal_value_print): Return void.
10097 * language.h (struct language_defn) <la_value_print>: Return
10099 * language.c (unk_lang_value_print): Return void.
10100 * jv-valprint.c (java_value_print): Return void.
10101 * jv-lang.h (java_value_print): Return void.
10102 * f-valprint.c (c_value_print): Don't declare.
10104 * c-valprint.c (c_value_print): Return void.
10105 * c-lang.h (c_value_print): Return void.
10106 * ada-valprint.c (ada_value_print): Return void.
10107 * ada-lang.h (ada_value_print): Return void.
10109 2012-03-01 Tom Tromey <tromey@redhat.com>
10111 * value.c (value_primitive_field): Handle virtual base classes.
10113 2012-03-01 Tom Tromey <tromey@redhat.com>
10115 * gdbtypes.h (struct vbase): Remove.
10117 2012-03-01 Tom Tromey <tromey@redhat.com>
10119 * c-valprint.c (print_function_pointer_address): Move...
10120 * valprint.c: ... here. Make non-static.
10121 * m2-valprint.c (print_function_pointer_address): Remove.
10122 * valprint.h (print_function_pointer_address): Declare.
10124 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10126 * NEWS: Document the fact that one can provide a condition when
10127 creating an Ada exception catchpoint.
10129 2012-03-01 Tom Tromey <tromey@redhat.com>
10131 * valprint.c (val_print_type_code_flags): Fix placement of
10134 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10136 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10137 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10138 environment variable before calling update-copyright.
10140 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10142 * gnulib/extra/update-copyright: Update to the latest from
10143 gnulib's git repository.
10144 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10145 variable to 2 instead of 1.
10147 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10149 * varobj.c (c_value_of_variable): Remove dead code.
10151 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10153 * ada-lex.p (processId): Do not modify already encoded IDs.
10154 Update function documentation.
10156 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10158 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10159 "name" with "struct symbol *name_sym".
10160 * ada-exp.y (write_var_or_type): Update call to
10161 ada_find_renaming_symbol.
10162 "name" with "struct symbol *name_sym". Adjust Implementation
10163 accordingly. Adjust the function documentation.
10165 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10167 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10168 * ada-lang.c (ada_find_any_type): Add advance declaration.
10169 Make static. Replace ada_find_any_symbol by
10170 ada_find_any_type_symbol.
10171 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10172 Improve function description. Make static.
10173 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10174 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10176 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10178 * ada-lang.c (struct tag_args): Delete.
10179 (ada_get_tsd_type): Function body moved up in source file.
10180 (ada_tag_name_1, ada_tag_name_2): Delete.
10181 (ada_get_tsd_from_tag): New function.
10182 (ada_tag_name_from_tsd): New function.
10183 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10184 to determine the tag name.
10186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10188 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10190 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10193 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10195 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10197 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10199 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10202 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10204 * ada-lang.c (constrained_packed_array_type): If there is a
10205 parallel XA type, use it to determine the array index type.
10207 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10209 * ada-valprint.c (ada_val_print_1): If our value is a reference
10210 to an array descriptor, dereference it before converting it
10213 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10215 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10216 creating fixed value.
10217 (ada_value_ind, ada_coerce_ref, assign_component)
10218 (ada_evaluate_subexp): Remove call to unwrap_value before
10219 call to ada_to_fixed_value.
10221 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10223 * ada-lang.c (to_fixed_array_type): Set result's type name.
10225 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10227 * ada-lang.c (catch_ada_exception_command_split): Add new
10228 argument cond_string. Add support for condition at end of
10229 "catch exception" commands.
10230 (ada_decode_exception_location): Add new argument cond_string.
10231 Update call to catch_ada_exception_command_split.
10232 (create_ada_exception_catchpoint): Add new argument cond_string.
10233 Set the breakpoint condition if needed.
10234 (catch_ada_exception_command): Update call to
10235 ada_decode_exception_location.
10236 (ada_decode_assert_location): Add function documentation.
10237 Add support for condition at end of "catch assert" command.
10238 (catch_assert_command): Update calls to ada_decode_assert_location
10239 and create_ada_exception_catchpoint.
10241 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10243 Fix disp-step-syscall.exp: fork: single step over fork.
10244 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10245 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10246 comment, change parameters gdbarch and ptid to regcache. Remove
10247 parameter regcache, initialize gdbarch from regcache here.
10248 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10250 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10252 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10253 'syscall'. Make the 'int' check more strict.
10255 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10257 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10258 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10259 (i386_linux_intx80_sysenter_syscall_record): ... here.
10260 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10261 Use the renamed function name.
10263 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10265 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10266 * breakpoint.c (until_break_command): Likewise.
10267 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10268 * infcall.c (call_function_by_hand): Likewise.
10269 * infcmd.c (finish_forward): Likewise.
10270 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10272 2012-02-28 Tristan Gingold <gingold@adacore.com>
10274 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10275 avoid variable assignments inside condition.
10277 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10279 Fix static analysis issue found by cppcheck.
10280 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10281 uninitialized BUF for size 2.
10283 2012-02-27 Chris Dearman <chris@mips.com>
10284 Nathan Froyd <froydnj@codesourcery.com>
10285 Maciej W. Rozycki <macro@codesourcery.com>
10287 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10288 (mips16_instruction_has_delay_slot): Likewise.
10289 (mips_segment_boundary): Likewise.
10290 (mips_adjust_breakpoint_address): Likewise.
10291 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10293 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10294 Maciej W. Rozycki <macro@codesourcery.com>
10296 * infrun.c (handle_inferior_event): Don't proceed through
10297 shared library trampolines if stepping at the machine
10300 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10302 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10305 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10307 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10308 (sh_stub_unwind_sniffer): New functions.
10309 (sh_stub_unwind): New variable.
10310 (sh_gdbarch_init): Wire everything.
10312 2012-02-27 Pedro Alves <palves@redhat.com>
10314 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10315 (linux_nat_post_attach_wait): Adjust to use
10316 linux_proc_pid_is_stopped.
10317 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10318 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10319 based on pid_is_stopped from both linux-nat.c and
10320 gdbserver/linux-low.c, and renamed.
10322 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10324 * remote.c (remote_watchpoint_addr_within_range): New function.
10325 (init_remote_ops): Use it.
10327 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10329 * target.h (target_watchpoint_addr_within_range): Document macro.
10331 2012-02-24 Pedro Alves <palves@redhat.com>
10333 * stack.c (set_last_displayed_sal): Issue internal_error instead
10334 of warning, and issue it after clearing the last displayed sal.
10336 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10337 Pedro Alves <palves@redhat.com>
10339 * breakpoint.c (until_break_command): Install breakpoints after
10340 all frame manipulations.
10342 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10344 * remote.c (remote_supports_cond_breakpoints): New forward
10346 (remote_add_target_side_condition): New function.
10347 (remote_insert_breakpoint): Add target-side breakpoint
10348 conditional if supported.
10349 (remote_insert_hw_breakpoint): Likewise.
10350 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10353 * target.c (update_current_target): Inherit
10354 to_supports_evaluation_of_breakpoint_conditions.
10355 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10357 * target.h (struct target_ops)
10358 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10359 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10361 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10362 (condition_evaluation_both, condition_evaluation_auto,
10363 condition_evaluation_host, condition_evaluation_target,
10364 condition_evaluation_enums, condition_evaluation_mode_1,
10365 condition_evaluation_mode): New static globals.
10366 (translate_condition_evaluation_mode): New function.
10367 (breakpoint_condition_evaluation_mode): New function.
10368 (gdb_evaluates_breakpoint_condition_p): New function.
10369 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10370 (mark_breakpoint_modified): New function.
10371 (mark_breakpoint_location_modified): New function.
10372 (set_condition_evaluation_mode): New function.
10373 (show_condition_evaluation_mode): New function.
10374 (bp_location_compare_addrs): New function.
10375 (get_first_location_gte_addr): New helper function.
10376 (set_breakpoint_condition): Free condition bytecode if locations
10377 has become unconditional. Call mark_breakpoint_modified (...).
10378 (condition_command): Call update_global_location_list (1) for
10380 (breakpoint_xfer_memory): Use is_breakpoint (...).
10381 (is_breakpoint): New function.
10382 (parse_cond_to_aexpr): New function.
10383 (build_target_condition_list): New function.
10384 (insert_bp_location): Handle target-side conditional
10385 breakpoints and call build_target_condition_list (...).
10386 (update_inserted_breakpoint_locations): New function.
10387 (insert_breakpoint_locations): Handle target-side conditional
10389 (bpstat_check_breakpoint_conditions): Add comment.
10390 (bp_condition_evaluator): New function.
10391 (bp_location_condition_evaluator): New function.
10392 (print_breakpoint_location): Print information on where the condition
10394 (print_one_breakpoint_location): Likewise.
10395 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10396 breakpoint location.
10397 (force_breakpoint_reinsertion): New functions.
10398 (update_global_location_list): Handle target-side breakpoint
10400 Reinsert locations that are already inserted if conditions have
10402 (bp_location_dtor): Free agent expression bytecode.
10403 (disable_breakpoint): Call mark_breakpoint_modified (...).
10404 Call update_global_location_list (...) with parameter 1 for breakpoints.
10405 (disable_command): Call mark_breakpoint_location_modified (...).
10406 Call update_global_location_list (...) with parameter 1 for breakpoints.
10407 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10408 (enable_command): mark_breakpoint_location_modified (...).
10409 (_initialize_breakpoint): Update documentation and add
10410 condition-evaluation breakpoint subcommand.
10412 * breakpoint.h: Include ax.h.
10413 (condition_list): New data structure.
10414 (condition_status): New enum.
10415 (bp_target_info) <cond_list>: New field.
10416 (bp_location) <condition_changed, cond_bytecode>: New fields.
10417 (is_breakpoint): New prototype.
10419 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10421 * remote.c (remote_state) <cond_breakpoints>: New field.
10422 (PACKET_ConditionalBreakpoints): New enum.
10423 (remote_cond_breakpoint_feature): New function.
10424 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10425 (remote_supports_cond_breakpoints): New function.
10426 (_initialize_remote): Add new packet configuration for
10427 target-side conditional breakpoints.
10429 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10431 * NEWS: Mention target-side conditional breakpoint support,
10432 new condition-evaluation breakpoint subcommand and remote
10435 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10437 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10440 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10442 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10443 (after_prologue): Remove.
10445 2012-02-23 Tom Tromey <tromey@redhat.com>
10447 * jv-valprint.c (java_val_print): Remove dead code.
10449 2012-02-23 Tristan Gingold <gingold@adacore.com>
10451 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10452 known_tasks_element and known_tasks_length fields.
10453 (read_known_tasks_array): Change argument type. Use pointer type
10454 and number of elements from DATA. Adjust.
10455 (read_known_tasks_list): Likewise.
10456 (get_known_tasks_addr): Remove.
10457 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10458 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10459 type and array length. Merge former get_known_tasks_addr code.
10461 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10464 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10465 it after set_momentary_breakpoint.
10467 2012-02-22 Sterling Augustine <saugustine@google.com>
10470 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10472 2012-02-22 Gary Benson <gbenson@redhat.com>
10474 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10475 (find_slot_in_mapped_hash): Likewise.
10477 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10480 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10481 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10482 * configure: Regenerate.
10484 2012-02-21 Tristan Gingold <gingold@adacore.com>
10485 Pedro Alves <palves@redhat.com>
10487 * ia64-tdep.c: Do not include libunwind-ia64.h.
10488 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10489 Include libunwind-ia64.h instead of libunwind.h.
10490 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10491 for libunwind.h existence.
10492 * configure, config.in: Regenerate.
10494 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10496 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10497 instead of value_rtti_target_type.
10498 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10499 instead of value_rtti_target_type.
10500 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10501 value_rtti_target_type.
10502 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10503 (value_rtti_target_type): Rename to ...
10504 (value_rtti_indirect_type): ... here and make it indirect. Update
10506 * value.c (readjust_indirect_value_type): New function.
10507 (coerce_ref): Support for enclosing type setting for references
10508 with readjust_indirect_value_type.
10509 * value.h (readjust_value_type): New declaration.
10510 (value_rtti_target_type): Rename to ...
10511 (value_rtti_indirect_type): ... here.
10513 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10515 * MAINTAINERS (Write After Approval): Add myself to the list.
10517 2012-02-20 Doug Evans <dje@google.com>
10519 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10520 Rename objfile_p_char parameter to objfilep.
10521 (build_objfile_section_table): Result is now void. All callers
10523 * objfiles.h (struct objfile): Tweak comments, whitespace.
10524 (build_objfile_section_table): Update.
10526 * elfread.c (elf_symfile_segments): Fix warning text.
10528 2012-02-20 Tom Tromey <tromey@redhat.com>
10531 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10532 particular set of file names once.
10533 (dw2_map_symbol_filenames): Likewise.
10535 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10538 * main.c (write_files): Remove the declaration.
10539 (external_editor_command): Move the declaration ...
10540 [GDBTK] (external_editor_command): ... here. Fix the comment.
10542 2012-02-20 Tom Tromey <tromey@redhat.com>
10544 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10547 2012-02-20 Tristan Gingold <gingold@adacore.com>
10549 * darwin-nat.h (enum darwin_msg_state): Add comments.
10551 2012-02-20 Tristan Gingold <gingold@adacore.com>
10553 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10556 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10558 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10559 between function description and implementation.
10561 2012-02-17 Tom Tromey <tromey@redhat.com>
10564 * python/py-event.c (event_object_getset): New global.
10565 (event_object_type): Reference it.
10566 * python/py-type.c (field_object_getset): New global.
10567 (field_object_type): Reference it.
10568 * python/python-internal.h (gdb_py_generic_dict): Declare.
10569 * python/py-utils.c (gdb_py_generic_dict): New function.
10571 2012-02-17 Tristan Gingold <gingold@adacore.com>
10573 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10575 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10577 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10578 TYPE_CALLING_CONVENTION annotation.
10580 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10582 * MAINTAINERS: Add rx to target ISA section.
10583 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10584 (ALLDEPFILES): Add rx-tdep.c.
10586 2012-02-16 Tom Tromey <tromey@redhat.com>
10588 * symfile.c (symbol_file_add_main_1): Use inferior's
10590 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10591 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10593 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10595 (follow_exec): Use inferior's symfile_flags.
10596 * inferior.h (struct inferior) <symfile_flags>: New field.
10598 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10601 * remote-sim.c (gdbsim_create_inferior): Call error() when
10602 sim_create_inferior() fails.
10604 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10606 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10608 2012-02-16 Tom Tromey <tromey@redhat.com>
10611 * thread.c (struct current_thread_cleanup) <was_removable>: New
10613 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10614 (make_cleanup_restore_current_thread): Initialize new field.
10616 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10618 * MAINTAINERS: Add rl78 to target ISA section.
10619 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10620 (ALLDEPFILES): Add rl78-tdep.c.
10621 * NEWS: Mention rl78 as a new target.
10623 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10625 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10627 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10629 2012-02-15 Tom Tromey <tromey@redhat.com>
10632 * infcmd.c (registers_info): Print just the current register's
10635 2012-02-15 Tom Tromey <tromey@redhat.com>
10637 * python/py-symbol.c (sympy_value): Use _().
10639 2012-02-15 Pedro Alves <palves@redhat.com>
10641 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10642 output to be like native targets'.
10643 (remote_pid_to_str): Special case the null ptid.
10645 2012-02-14 Stan Shebs <stan@codesourcery.com>
10647 * NEWS: Mention enable count command.
10648 * breakpoint.h (struct breakpoint): New field enable_count.
10649 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10650 (enable_breakpoint): Add arg to call.
10651 (struct disp_data): New struct.
10652 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10653 (do_map_enable_once_breakpoint): Create a struct and pass it.
10654 (do_map_enable_delete_breakpoint): Ditto.
10655 (do_map_enable_count_breakpoint): New function.
10656 (enable_count_command): New function.
10657 (bpstat_stop_status): Decrement enable_count.
10658 (print_one_breakpoint_location): Report enable count.
10659 (_initialize_breakpoint): Add enable count command.
10661 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10663 * rl78-tdep.c (reggroups.h): Include.
10664 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10665 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10666 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10667 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10668 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10669 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10670 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10671 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10672 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10673 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10674 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10675 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10676 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10677 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10678 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10679 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10680 beginning of register list.
10681 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10682 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10683 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10684 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10685 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10686 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10687 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10688 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10689 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10690 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10691 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10692 the pseudo registers. Rearrange other pseudo registers too so
10693 that the bank registers appear at the end.
10694 (rl78_register_type): Account for the fact that the byte sized
10695 bank registers are now pseudo-registers.
10696 (rl78_register_name): Rearrange the register name array. Make
10697 initial set of raw banked registers inaccessible.
10698 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10699 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10700 case for copying bytes back and forth between raw and pseudo
10701 versions of the banked registers. Update other cases to reflect
10703 (rl78_return_value): Update to account for changed names of
10705 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10706 rl78_register_sim_regno().
10708 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10710 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10711 the name parameter being passed to find_pc_partial_function().
10713 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10715 * MAINTAINERS: Step down from being ia64 target maintainer.
10717 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10719 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10720 compilation warning.
10722 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10724 Fix crash on loaded shlibs without loaded exec_bfd.
10725 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10726 (set_section_command): Replace exec_bfd by p->bfd.
10728 2012-02-10 Tom Tromey <tromey@redhat.com>
10730 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10731 when we have a C++ qualified name.
10733 2012-02-10 Pedro Alves <palves@redhat.com>
10735 * inferior.c (inferior_pid_to_str): New.
10736 (print_inferior, inferior_command): Use it.
10738 2012-02-10 Pedro Alves <palves@redhat.com>
10740 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10742 * configure: Regenerate.
10744 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10746 * linespec.c (decode_line_internal): Fix comment correctness.
10748 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10751 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10752 * amd64bsd-nat.c: Add support for debug registers (adapted from
10754 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10755 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10756 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10757 (amd64bsd_dr_get_control): New functions.
10758 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10759 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10760 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10761 watchpoints initialization.
10762 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10764 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10766 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10768 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10770 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10774 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10776 * language.h (symbol_name_cmp_ftype): Renames
10777 symbol_name_match_p_ftype.
10778 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10779 la_get_symbol_name_match_p.
10780 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10781 ada_get_symbol_name_match_p. Update comment.
10782 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10783 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10784 Renames symbol_name_match_p. Update field type.
10785 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10786 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10787 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10788 "la_get_symbol_name_cmp" in comments.
10789 * language.c: Likewise.
10791 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10793 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10795 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10796 (amd64_sol2_gregset32_reg_offs): Likewise.
10798 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10800 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10801 of the returned BFD is allocated by GDB.
10803 2012-02-07 Tom Tromey <tromey@redhat.com>
10806 * python/python-internal.h (frame_object_type): Declare.
10807 * python/py-symbol.c (sympy_needs_frame): New function.
10808 (sympy_value): New function.
10809 (symbol_object_getset): Add "needs_frame".
10810 (symbol_object_methods): Add "value".
10811 * python/py-frame.c (frame_object_type): No longer static.
10813 2012-02-07 Tom Tromey <tromey@redhat.com>
10816 * python/py-symbol.c (sympy_line): New function.
10817 (symbol_object_getset): Add "line".
10819 2012-02-07 Tom Tromey <tromey@redhat.com>
10821 * charset.c (find_charset_names): Check 'in' against NULL.
10823 2012-02-06 Doug Evans <dje@google.com>
10825 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10826 and fields.name members from char * to const char *. All uses updated.
10827 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10828 from char * to const char *. All uses updated.
10829 (type_name_no_tag): Update.
10830 (lookup_unsigned_typename, lookup_signed_typename): Update.
10831 * gdbtypes.c (type_name_no_tag): Change result type
10832 from char * to const char *. All callers updated.
10833 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10834 name parameter from char * to const char *.
10835 * symtab.h (struct cplus_specific): Change type of demangled_name
10836 member from char * to const char *. All uses updated.
10837 (struct general_symbol_info): Change type of name and
10838 mangled_lang.demangled_name members from char * to const char *.
10840 (symbol_get_demangled_name, symbol_natural_name): Update.
10841 (symbol_demangled_name, symbol_search_name): Update.
10842 * symtab.c (symbol_get_demangled_name): Change result type
10843 from char * to const char *. All callers updated.
10844 (symbol_natural_name, symbol_demangled_name): Ditto.
10845 (symbol_search_name): Ditto.
10846 (completion_list_add_name): Change type of symname,sym_text,
10847 text,word parameters from char * to const char *.
10848 (completion_list_objc_symbol): Change type of sym_text,
10849 text,word parameters from char * to const char *.
10850 * ada-lang.c (find_struct_field): Change type of name parameter
10851 from char * to const char *.
10852 (encoded_ordered_before): Similarly for N0,N1 parameters.
10853 (old_renaming_is_invisible): Similarly for function_name parameter.
10854 (ada_type_name): Change result type from char * to const char *.
10855 All callers updated.
10856 * ada-lang.h (ada_type_name): Update.
10857 * buildsym.c (hashname): Change type of name parameter
10858 from char * to const char *.
10859 * buildsym.h (hashname): Update.
10860 * dbxread.c (end_psymtab): Change type of include_list parameter
10861 from char ** to const char **.
10862 * dwarf2read.c (determine_prefix): Change result type
10863 from char * to const char *. All callers updated.
10864 * f-lang.c (find_common_for_function): Change type of name, funcname
10865 parameters from char * to const char *.
10866 * f-lang.c (find_common_for_function): Update.
10867 * f-valprint.c (list_all_visible_commons): Change type of funcname
10868 parameters from char * to const char *.
10869 * gdbarch.sh (static_transform_name): Change type of name parameter
10870 and result from char * to const char *.
10871 * gdbarch.c: Regenerate.
10872 * gdbarch.h: Regenerate.
10873 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10874 of name parameter from char * to const char *.
10875 * jv-lang.c (java_primitive_type_from_name): Ditto.
10876 (java_demangled_signature_length): Similarly for signature parameter.
10877 (java_demangled_signature_copy): Ditto.
10878 (java_demangle_type_signature): Ditto.
10879 * jv-lang.h (java_primitive_type_from_name): Update.
10880 (java_demangle_type_signature): Update.
10881 * objc-lang.c (specialcmp): Change type of a,b parameters
10882 from char * to const char *.
10883 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10884 from char * to const char *. All callers updated.
10885 * p-lang.h (is_pascal_string_type): Update.
10886 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10887 of name parameter from char * to const char *.
10888 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10889 * utils.c (fprintf_symbol_filtered): Ditto.
10890 * defs.h (fprintf_symbol_filtered): Update.
10891 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10892 * stabsread.h (end_psymtab): Update.
10893 * stack.c (find_frame_funname): Change type of funname parameter
10894 from char ** to const char **.
10895 * stack.h (find_frame_funname): Update.
10896 * typeprint.c (type_print): Change type of varstring parameter
10897 from char * to const char *.
10898 * value.h (type_print): Update.
10899 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10900 from char * to const char *. All callers updated.
10901 (xcoff_end_psymtab): Change type of include_list parameter
10902 from char ** to const char **. All callers updated.
10903 (swap_sym): Similarly for name parameter. All callers updated.
10904 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10906 (process_coff_symbol): Use xstrdup.
10907 * stabsread.c (stabs_method_name_from_physname): Renamed from
10908 update_method_name_from_physname. Change result type from void
10909 to char *. All callers updated.
10910 (read_member_functions): In has_destructor case, store name in objfile
10911 obstack instead of malloc space. In !has_stub case, fix mem leak.
10913 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10915 * configure: Rebuild.
10916 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10919 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10921 * configure.tgt (rl78-*-elf): New target.
10922 * rl78-tdep.c: New file.
10924 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10926 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10927 and continue the loop. Add QUIT statement.
10929 2012-02-03 Tom Tromey <tromey@redhat.com>
10932 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10933 bfd_lookup_symbol_from_symtab.
10934 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10935 gdb_bfd_lookup_symbol_from_symtab.
10937 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10939 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10940 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10941 symbol. Add assertion that sym2 is never NULL.
10943 2012-02-02 Doug Evans <dje@google.com>
10945 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10946 "name" parameter to const char ** from char **. All callers updated.
10947 (find_pc_partial_function): Ditto.
10948 (cache_pc_function_name): Change type to const char * from char *.
10949 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10950 (find_pc_partial_function): Update.
10951 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10952 type of "name" parameter to const char * from char *.
10954 * arch-utils.c (generic_in_solib_return_trampoline): Change
10955 type of "name" parameter to const char * from char *.
10956 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10957 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10958 type of "name" parameter to const char * from char *.
10959 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10960 * gdbarch.c: Regenerate.
10961 * gdbarch.h: Regenerate.
10962 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10963 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10964 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10965 type of "name" parameter to const char * from char *.
10966 * skip.c (skip_function_pc): Ditto.
10967 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10968 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10969 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10970 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10971 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10972 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10973 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10974 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10975 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10977 2012-02-02 Pedro Alves <palves@redhat.com>
10979 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10980 the current inferior has no execution. Make sure the current
10981 remote process matches gdb's current inferior.
10983 2012-02-02 Tom Tromey <tromey@redhat.com>
10986 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10989 2012-02-02 Tom Tromey <tromey@redhat.com>
10992 * symtab.c (lookup_language_this): Set block_found.
10994 2012-02-01 Tom Tromey <tromey@redhat.com>
10997 * jit.c (struct jit_inferior_data): Rewrite.
10998 (struct jit_objfile_data): New.
10999 (get_jit_objfile_data): New function.
11000 (add_objfile_entry): Update.
11001 (jit_read_descriptor): Return int. Replace descriptor_addr
11002 argument with inf_data. Update. Don't call error.
11003 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11005 (jit_inferior_init): Don't look up descriptor. Don't call error.
11006 (jit_reset_inferior_data_and_breakpoints)
11007 (jit_inferior_created_observer): Remove.
11008 (jit_inferior_exit_hook): Update.
11009 (jit_executable_changed_observer): Remove.
11010 (jit_event_handler): Update.
11011 (free_objfile_data): Reset inferior data if needed.
11012 (_initialize_jit): Update.
11014 2012-02-01 Tom Tromey <tromey@redhat.com>
11016 * jit.c (bfd_open_from_target_memory): Move higher in file.
11018 2012-02-01 Tristan Gingold <gingold@adacore.com>
11020 * libunwind-frame.c (libunwind_load): Display message if dlopen
11023 2012-02-01 Gary Benson <gbenson@redhat.com>
11025 * symtab.h (symbol_found_callback_ftype): New typedef.
11026 (iterate_over_symbols): Use the above.
11027 * symtab.c (iterate_over_symbols): Likewise.
11028 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11029 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11030 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11031 (iterate_name_matcher): Document return values.
11032 (collect_one_symbol): Likewise.
11033 (collect_function_symbols): Likewise.
11034 (collect_symbols): Likewise.
11036 2012-02-01 Tom Tromey <tromey@redhat.com>
11038 * ada-lang.c (resolve_subexp): Update.
11039 (ada_lookup_symbol_list): Add 'full_search' argument.
11040 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11041 ada_lookup_symbol_list.
11042 (ada_lookup_encoded_symbol): Update.
11043 (get_var_value): Update.
11044 * ada-exp.y (block_lookup): Update.
11045 (write_var_or_type): Update.
11046 (write_name_assoc): Update.
11047 * ada-lang.h (ada_lookup_symbol_list): Update.
11049 2012-01-31 Tom Tromey <tromey@redhat.com>
11051 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11054 2012-01-31 Doug Evans <dje@google.com>
11056 * symtab.h: Remove outdated comment.
11057 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11059 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11061 Fix build error in Darwin port.
11062 * i386-darwin-nat.c: Include i386-nat.h.
11064 2012-01-30 Tom Tromey <tromey@redhat.com>
11066 PR breakpoints/13568:
11067 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11068 argument. Check for recursive includes.
11069 (dwarf_decode_macros): Create an include hash.
11071 2012-01-30 Michael Eager <eager@eagercon.com>
11073 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11074 * ppc-linux-tdep.c: Include glibc-tdep.h.
11075 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11076 (powerpc_linux_in_plt_stub): New function.
11077 (powerpc_linux_in_dynsym_resolve_code): New function.
11078 (ppc_skip_trampoline_code): New function.
11079 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11080 Use glibc_skip_solib_resolver.
11082 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11084 Code cleanup: Make 1440 bytes of data segment read-only.
11085 * arch-utils.c (endian_enum): Make it const char *const [].
11086 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11088 * breakpoint.c (always_inserted_enums): Likewise.
11089 * cli/cli-cmds.c (script_ext_enums): Likewise.
11090 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11091 enumlist parameter const char *const *.
11092 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11093 const char *const *.
11094 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11095 parameter const char *const *.
11096 * cris-tdep.c (cris_modes): Make it const char *const [].
11097 * filesystem.c (target_file_system_kinds): Likewise.
11098 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11099 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11100 (can_use_displaced_stepping_enum, scheduler_enums)
11101 (exec_direction_names): Likewise.
11102 * language.c (_initialize_language): Make the type_or_range_names and
11103 case_sensitive_names variables const char *const [].
11104 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11105 * python/python.c (python_excp_enums): Likewise.
11106 * remote.c (interrupt_sequence_modes): Likewise.
11107 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11108 * serial.c (logbase_enums): Likewise.
11109 * sh-tdep.c (sh_cc_enum): Likewise.
11110 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11112 * symtab.c (multiple_symbols_modes): Likewise.
11113 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11115 * utils.c (internal_problem_modes): Likewise.
11117 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11119 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11120 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11123 2012-01-27 Doug Evans <dje@google.com>
11125 * configure.ac (with_python): Fix absolute path handling for win32.
11126 * configure: Regenerate.
11128 2012-01-26 Doug Evans <dje@google.com>
11130 * symtab.c: Whitespace cleanup, no code changes.
11132 * symtab.c (lookup_symbol_in_language): Improve comment.
11133 (lookup_symbol_aux): Fix comment.
11135 * psymtab.c (add_psymbol_to_list): Result is now "void".
11136 * psympriv.h (add_psymbol_to_list): Update.
11138 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11140 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11142 Do not open script filenames twice.
11143 * cli/cli-cmds.c (source_script_from_stream): Pass to
11144 source_python_script also STREAM.
11145 * python/py-auto-load.c (source_section_scripts): Pass to
11146 source_python_script_for_objfile also STREAM.
11147 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11149 * python/python-internal.h (source_python_script_for_objfile): New
11150 parameter file, rename parameter file to filename.
11151 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11152 instead if !_WIN32. Update the function comment.
11153 (source_python_script, source_python_script_for_objfile)
11154 (source_python_script): New parameter file, rename parameter file to
11155 filename. Pass FILENAME to python_run_simple_file.
11156 * python/python.h (source_python_script): New parameter file, rename
11157 parameter file to filename.
11159 2012-01-26 Pedro Alves <palves@redhat.com>
11161 * corelow.c (core_has_fake_pid): Delete.
11162 (core_close): Delete references to `core_has_fake_pid'.
11163 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11164 (core_open): Delete references to `core_has_fake_pid'.
11165 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11166 the removed global.
11168 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11170 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11171 Remove language parameter from name_matcher. Adjust the comment.
11172 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11173 Remove language parameter.
11174 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11175 * linespec.c (iterate_name_matcher): Likewise.
11176 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11177 name_matcher. Adjust call accordingly.
11178 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11179 (maintenance_check_symtabs): Adjust type of parameter "fun".
11180 * psymtab.h (maintenance_check_symtabs): Likewise.
11182 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11184 * language.h (symbol_name_match_p_ftype): New typedef.
11185 (struct language_defn): Replace field la_symbol_name_compare
11186 by la_get_symbol_name_match_p.
11187 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11188 (ada_language_defn): Use it.
11189 * linespec.c (struct symbol_matcher_data): New type.
11190 (iterate_name_matcher): Rewrite.
11191 (iterate_over_all_matching_symtabs): Pass a pointer to
11192 a symbol_matcher_data struct to expand_symtabs_matching
11193 instead of just the lookup name.
11194 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11195 opencl-lang.c, p-lang.c, language.c: Delete field
11196 la_symbol_name_compare, and replace by NULL for new field
11197 la_get_symbol_name_match_p.
11198 * symfile.h (struct quick_symbol_functions): Update comment.
11200 2012-01-25 Tom Tromey <tromey@redhat.com>
11202 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11205 2012-01-24 Tom Tromey <tromey@redhat.com>
11208 * solib.c (update_solib_list): Update the program space's
11209 added_solibs and deleted_solibs fields.
11210 * progspace.h (struct program_space) <added_solibs,
11211 deleted_solibs>: New fields.
11212 (clear_program_space_solib_cache): Declare.
11213 * progspace.c (release_program_space): Call
11214 clear_program_space_solib_cache.
11215 (clear_program_space_solib_cache): New function.
11216 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11217 bpstat_stop_status. Use handle_solib_event.
11218 * breakpoint.c: Include gdb_regex.h.
11219 (print_solib_event): New function.
11220 (bpstat_print): Use print_solib_event.
11221 (bpstat_stop_status): Add special case for bp_shlib_event.
11222 (handle_solib_event): New function.
11223 (bpstat_what): Use handle_solib_event.
11224 (struct solib_catchpoint): New.
11225 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11226 (breakpoint_hit_catch_solib, check_status_catch_solib)
11227 (print_it_catch_solib, print_one_catch_solib)
11228 (print_mention_catch_solib, print_recreate_catch_solib): New
11230 (catch_solib_breakpoint_ops): New global.
11231 (catch_load_or_unload, catch_load_command_1)
11232 (catch_unload_command_1): New functions.
11233 (internal_bkpt_check_status): Add special case for
11235 (internal_bkpt_print_it): Use print_solib_event.
11236 (initialize_breakpoint_ops): Initialize
11237 catch_solib_breakpoint_ops.
11238 (_initialize_breakpoint): Register "catch load" and "catch
11240 * breakpoint.h (handle_solib_event): Declare.
11241 * NEWS: Add entry for "catch load" and "catch unload".
11243 2012-01-24 Tom Tromey <tromey@redhat.com>
11245 * ada-lang.c: Include gdb_vecs.h.
11246 * charset.c: Include gdb_vecs.h.
11247 * tracepoint.h: Include gdb_vecs.h.
11248 * gdb_vecs.h: New file.
11250 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11252 * breakpoint.c (breakpoint_hit_catch_fork)
11253 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11254 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11255 * infrun.c (inferior_has_forked, inferior_has_vforked)
11256 (inferior_has_execd, inferior_has_called_syscall): Delete.
11257 (handle_syscall_event): Get syscall_number from the execution
11258 control state's wait status.
11259 (wait_for_inferior): Don't clear syscall_number.
11261 2012-01-24 Pedro Alves <palves@redhat.com>
11263 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11264 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11265 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11266 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11268 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11269 false for events other than TARGET_SIGNAL_TRAP.
11270 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11271 Add `ws' parameter.
11272 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11273 events other than TARGET_SIGNAL_TRAP.
11274 (tracepoint_breakpoint_hit): Add `ws' parameter.
11275 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11277 (bpstat_stop_status): Same.
11278 (pc_at_non_inline_function): Same.
11279 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11280 to pass the current event's waitstatus to bpstat_stop_status
11281 and pc_at_non_inline_function.
11283 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11286 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11287 Update the function comment for it.
11288 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11289 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11292 2012-01-24 Pedro Alves <palves@redhat.com>
11294 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11295 outside `bs->stop' block.
11296 (bpstat_what): Rework bp_shlib_event handling.
11297 (internal_bkpt_check_status): If the breakpoint is a
11298 bp_shlib_event, then set bs->stop and bs->print if
11299 stop_on_solib_events is set.
11301 2012-01-24 Gary Benson <gbenson@redhat.com>
11303 Delete #if 0'd out code.
11304 * stack.c (print_frame_label_vars): Remove.
11305 (catch_info): Likewise.
11306 (_initialize_stack): Remove "info catch" command.
11307 * NEWS: Mention the above.
11309 2012-01-24 Pedro Alves <palves@redhat.com>
11311 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11313 (remote_notice_new_inferior): If the remote end doesn't support
11314 the multiprocess extensions, then the PID is fake.
11315 (add_current_inferior_and_thread): New.
11316 (remote_start_remote): Use it.
11317 (extended_remote_attach_1): Adjust.
11318 (extended_remote_create_inferior_1): Use
11319 add_current_inferior_and_thread.
11321 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11323 Fix watchpoints to be specific for each inferior.
11324 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11325 current_program_space.
11326 * i386-nat.c (i386_inferior_data_cleanup): New.
11327 (i386_inferior_data_get): Replace variable inf_data_local by an
11328 inferior_data call.
11329 (i386_use_watchpoints): Initialize i386_inferior_data.
11330 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11331 specific iterate_over_lwps.
11333 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11335 Fix watchpoints across inferior fork.
11336 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11337 comment for linux_nat_iterate_watchpoint_lwps.
11338 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11339 linux_nat_iterate_watchpoint_lwps.
11340 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11341 * i386-linux-nat.c (update_debug_registers_callback): Update the
11342 comment for linux_nat_iterate_watchpoint_lwps.
11343 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11344 linux_nat_iterate_watchpoint_lwps.
11345 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11346 * i386-nat.c: Include inferior.h.
11347 (dr_mirror): Remove.
11348 (i386_inferior_data, struct i386_inferior_data)
11349 (i386_inferior_data_get): New.
11350 (i386_debug_reg_state): Use i386_inferior_data_get.
11351 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11352 (i386_insert_watchpoint, i386_remove_watchpoint)
11353 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11354 (i386_remove_hw_breakpoint): New variable state, use
11355 i386_debug_reg_state instead of DR_MIRROR.
11356 * linux-nat.c (delete_lwp): New declaration.
11357 (num_lwps): Move here from downwards.
11358 (delete_lwp_cleanup): New.
11359 (linux_child_follow_fork): Create new child_lp, call
11360 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11362 (num_lwps): Move upwards.
11363 (linux_nat_iterate_watchpoint_lwps): New.
11364 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11365 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11367 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11371 2012-01-23 Pedro Alves <palves@redhat.com>
11373 * top.c (caution): Rename to ...
11374 (confirm): ... this.
11375 (show_caution): Rename to ...
11376 (show_confirm): ... this.
11377 (quit_cover): Adjust.
11378 (init_main): Adjust.
11379 * top.h (caution): Rename to ...
11380 (confirm): ... this.
11381 * utils.c (internal_vproblem, defaulted_query): Adjust.
11383 2012-01-23 Pedro Alves <palves@redhat.com>
11385 * top.c (caution): Update comment.
11386 (execute_command): Don't consider the current value of `caution'.
11388 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11390 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11392 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11394 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11395 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11396 * target.c (target_fileio_pwrite): Remove buffer address from
11398 (target_fileio_pread): Likewise.
11400 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11402 * NEWS: Document remote "info proc" and "generate-core-file".
11404 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11406 * gdbarch.sh (find_memory_regions): New callback.
11407 * gdbarch.c, gdbarch.h: Regenerate.
11409 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11410 callback before falling back to target method.
11412 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11413 (linux_target_install_ops): No longer install it.
11415 * linux-tdep.c (linux_find_memory_regions): New function.
11416 (linux_init_abi): Install it.
11418 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11420 * gdbarch.sh (make_corefile_notes): New architecture callback.
11421 * gdbarch.c: Regenerate.
11422 * gdbarch.h: Likewise.
11424 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11425 before target_make_corefile_notes. If NULL is returned, the
11426 target does not support core file generation.
11428 * linux-nat.c: Include "linux-tdep.h".
11429 (find_signalled_thread, find_stop_signal): Remove.
11430 (linux_nat_do_thread_registers): Likewise.
11431 (struct linux_nat_corefile_thread_data): Likewise.
11432 (linux_nat_corefile_thread_callback): Likewise.
11433 (iterate_over_spus): Likewise.
11434 (struct linux_spu_corefile_data): Likewise.
11435 (linux_spu_corefile_callback): Likewise.
11436 (linux_spu_make_corefile_notes): Likewise.
11437 (linux_nat_collect_thread_registers): New function.
11438 (linux_nat_make_corefile_notes): Replace contents by call to
11439 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11440 as native-only callback.
11442 * linux-tdep.h: Include "bfd.h".
11443 (struct regcache): Add forward declaration.
11444 (linux_collect_thread_registers_ftype): New typedef.
11445 (linux_make_corefile_notes): Add prototype.
11446 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11447 "regset.h", and "elf-bfd.h".
11448 (find_signalled_thread, find_stop_signal): New functions.
11449 (linux_spu_make_corefile_notes): Likewise.
11450 (linux_collect_thread_registers): Likewise.
11451 (struct linux_corefile_thread_data): New data structure.
11452 (linux_corefile_thread_callback): New funcion.
11453 (linux_make_corefile_notes): Likewise.
11454 (linux_make_corefile_notes_1): Likewise.
11455 (linux_init_abi): Install it.
11457 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11459 * gdbarch.sh (info_proc): New callback.
11460 * gdbarch.c, gdbarch.h: Regenerate.
11462 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11463 before falling back to the target info_proc callback.
11465 * linux-nat.c: Do not include "cli/cli-utils.h".
11466 (linux_nat_info_proc): Remove.
11467 (linux_target_install_ops): No longer install it.
11469 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11470 (read_mapping): New function.
11471 (linux_info_proc): Likewise.
11472 (linux_init_abi): Install it.
11474 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11476 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11477 * infcmd.c: (info_proc_cmd_1): New function.
11478 (info_proc_cmd): New function, moved here from equivalent routine
11479 orignally in linux-nat.c.
11480 (info_proc_cmd_mappings): Likewise.
11481 (info_proc_cmd_stat): Likewise.
11482 (info_proc_cmd_status): Likewise.
11483 (info_proc_cmd_cwd): Likewise.
11484 (info_proc_cmd_cmdline): Likewise.
11485 (info_proc_cmd_exe): Likewise.
11486 (info_proc_cmd_all): Likewise.
11487 (_initialize_infcmd): Install "info proc" command and subcommands.
11489 * target.h (struct target_ops): Add to_info_proc.
11490 (target_info_proc): Add prototype.
11491 * target.c (target_info_proc): New function.
11493 * procfs.c (procfs_info_proc): Add prototype.
11494 (info_proc_cmd): Rename into ...
11495 (procfs_info_proc): ... this. Update argument types as appropriate
11496 for a to_info_proc implementation. Handle "what" argument.
11497 (procfs_target): Install procfs_info_proc.
11498 (_initialize_procfs): No longer install "info proc" command.
11500 * linux-nat.c: (enum info_proc_what): Remove.
11501 (linux_nat_info_proc_cmd_1): Rename into ...
11502 (linux_nat_info_proc): ... this. Update argument types as appropriate
11503 for a to_info_proc implementation.
11504 (linux_nat_info_proc_cmd): Remove.
11505 (linux_nat_info_proc_cmd_mappings): Likewise.
11506 (linux_nat_info_proc_cmd_stat): Likewise.
11507 (linux_nat_info_proc_cmd_status): Likewise.
11508 (linux_nat_info_proc_cmd_cwd): Likewise.
11509 (linux_nat_info_proc_cmd_cmdline): Likewise.
11510 (linux_nat_info_proc_cmd_exe): Likewise.
11511 (linux_nat_info_proc_cmd_all): Likewise.
11512 (linux_target_install_ops): Install linux_nat_info_proc.
11513 (_initialize_linux_nat): No longer install "info proc" command
11516 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11518 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11519 * config.in, configure: Regenerate.
11521 * target.h (struct target_ops): Add to_fileio_readlink.
11522 (target_fileio_readlink): Add prototype.
11523 * target.c (target_fileio_readlink): New function.
11525 * inf-child.c: Conditionally include <sys/param.h>.
11526 (inf_child_fileio_readlink): New function.
11527 (inf_child_target): Install it.
11529 * remote.c (PACKET_vFile_readlink): New enum value.
11530 (remote_hostio_readlink): New function.
11531 (init_remote_ops): Install it.
11532 (_initialize_remote): Handle vFile:readlink packet type.
11534 2012-01-20 Pedro Alves <palves@redhat.com>
11535 Ulrich Weigand <ulrich.weigand@linaro.org>
11537 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11538 * config.in, configure: Regenerate.
11540 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11541 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11542 (target_fileio_open): Add prototype.
11543 (target_fileio_pwrite): Likewise.
11544 (target_fileio_pread): Likewise.
11545 (target_fileio_close): Likewise.
11546 (target_fileio_unlink): Likewise.
11547 (target_fileio_read_alloc): Likewise.
11548 (target_fileio_read_stralloc): Likewise.
11550 * target.c: Include "gdb/fileio.h".
11551 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11552 (default_fileio_target): New function.
11553 (target_fileio_open): Likewise.
11554 (target_fileio_pwrite): Likewise.
11555 (target_fileio_pread): Likewise.
11556 (target_fileio_close): Likewise.
11557 (target_fileio_unlink): Likewise.
11558 (target_fileio_close_cleanup): Likewise.
11559 (target_fileio_read_alloc_1): Likewise.
11560 (target_fileio_read_alloc): Likewise.
11561 (target_fileio_read_stralloc): Likewise.
11563 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11564 <fcntl.h>, and <unistd.h>.
11565 (inf_child_fileio_open_flags_to_host): New function.
11566 (inf_child_errno_to_fileio_error): Likewise.
11567 (inf_child_fileio_open): Likewise.
11568 (inf_child_fileio_pwrite): Likewise.
11569 (inf_child_fileio_pread): Likewise.
11570 (inf_child_fileio_close): Likewise.
11571 (inf_child_fileio_unlink): Likewise.
11572 (inf_child_target): Install to_fileio routines.
11574 * remote.c (init_remote_ops): Install to_fileio routines.
11576 2012-01-20 Pedro Alves <palves@redhat.com>
11577 Ulrich Weigand <ulrich.weigand@linaro.org>
11579 * remote.c (remote_multi_process_p): Only check for multi-process
11580 protocol feature, do not check for extended protocol.
11581 (remote_supports_multi_process): Check for extended protocol here.
11582 (set_general_process): Likewise.
11583 (extended_remote_kill): Likewise.
11584 (remote_pid_to_str): Likewise.
11585 (remote_query_supported): Always query multiprocess mode.
11587 2012-01-20 Pedro Alves <palves@redhat.com>
11588 Ulrich Weigand <ulrich.weigand@linaro.org>
11590 * inferior.h (struct inferior): Add fake_pid_p.
11591 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11592 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11593 magic_null_ptid since the remote side doesn't provide a real PID.
11595 2012-01-19 Tom Tromey <tromey@redhat.com>
11597 * NEWS: Combine the two Python sections.
11599 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11601 * target.h (target_close): Update comment on the target's unpush state.
11603 2012-01-19 Pedro Alves <palves@redhat.com>
11605 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11606 linux_nat_async directly instead of going through the target
11608 * target.c (unpush_target): Close target after unpushing it, not
11611 2012-01-19 Gary Benson <gbenson@redhat.com>
11613 * mdebugread.c (sort_blocks): Replace integer constants with ones
11614 derived from FIRST_LOCAL_BLOCK.
11616 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11617 Jan Kratochvil <jan.kratochvil@redhat.com>
11620 * symfile.c (find_separate_debug_file): New function.
11621 (terminate_after_last_dir_separator): Likewise.
11622 (find_separate_debug_file_by_debuglink): Also try realpath.
11623 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11624 * configure: Regenerate.
11625 * config.in: Regenerate.
11627 2012-01-18 Doug Evans <dje@google.com>
11629 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11630 (main.o): Remove rule.
11631 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11632 (--with-sysroot): Rewrite.
11633 * configure: Regenerate.
11634 * config.in: Regenerate.
11636 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11638 * parse.c (initialize_expout): New function.
11639 (reallocate_expout): Likewise.
11640 (parse_exp_in_context): Use `initialize_expout' and
11641 `reallocate_expout' when appropriate.
11643 2012-01-18 Pedro Alves <palves@redhat.com>
11645 * record.c (struct record_breakpoint, record_breakpoint_p)
11646 (record_breakpoints): New.
11647 (record_insert_breakpoint, record_remove_breakpoint): Manage
11648 record breakpoints list. Only remove breakpoints from the
11649 inferior if they had been inserted there in the first place.
11651 2012-01-17 Doug Evans <dje@google.com>
11653 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11654 if we know we don't have a file name to look for.
11656 2012-01-17 Pedro Alves <palves@redhat.com>
11658 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11659 the frame's stop reason is UNWIND_UNAVAILABLE.
11661 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11663 Fix compilation error.
11664 * m2-exp.y (yyerror): Use ANSI C prototype.
11666 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11668 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11669 (growbuf_by_size): Likewise.
11670 (yyerror): Likewise.
11671 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11672 (modblock): Remove variable (was #if 0'ed).
11673 (parse_number): Convert prototype from K&R to ANSI C.
11674 (yyerror): Likewise.
11675 * objc-exp.y (parse_number): Likewise.
11676 (yyerror): Likewise.
11677 (yylex): Remove #if 0'ed code.
11678 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11679 (yyerror): Likewise.
11681 2012-01-16 Tom Tromey <tromey@redhat.com>
11684 * symtab.h (compare_filenames_for_search): Declare.
11685 * symtab.c (compare_filenames_for_search): New function.
11686 (iterate_over_some_symtabs): Use it.
11687 * symfile.h (struct quick_symbol_functions)
11688 <map_symtabs_matching_filename>: Change spec.
11689 * psymtab.c (partial_map_symtabs_matching_filename): Use
11690 compare_filenames_for_search. Update for new spec.
11691 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11692 compare_filenames_for_search. Update for new spec.
11693 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11695 2012-01-16 Tom Tromey <tromey@redhat.com>
11698 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11699 (struct main_type) <flag_flag_enum>: New field.
11700 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11701 * NEWS: Add entries.
11702 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11704 * python/lib/gdb/printing.py (_EnumInstance): New class.
11705 (FlagEnumerationPrinter): Likewise.
11707 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11709 * breakpoint.c (create_sals_from_address_default): New function.
11710 (create_breakpoints_sal_default): Likewise.
11711 (decode_linespec_default): Likewise.
11712 (is_marker_spec): Removed.
11713 (strace_marker_p): New function.
11714 (init_breakpoint_sal): Using `strace_marker_p' instead of
11716 (create_breakpoint): Call method `create_sals_from_address' from
11717 breakpoint_ops, replacing code that created SALs conditionally
11718 on the type of the breakpoint. Call method `create_breakpoints_sal',
11719 replacing code that created breakpoints conditionally on the type
11721 (base_breakpoint_create_sals_from_address): New function.
11722 (base_breakpoint_create_breakpoints_sal): Likewise.
11723 (base_breakpoint_decode_linespec): Likewise.
11724 (base_breakpoint_ops): Add methods
11725 `base_breakpoint_create_sals_from_address',
11726 `base_breakpoint_create_breakpoints_sal' and
11727 `base_breakpoint_decode_linespec'.
11728 (bkpt_create_sals_from_address): New function.
11729 (bkpt_create_breakpoints_sal): Likewise.
11730 (bkpt_decode_linespec): Likewise.
11731 (tracepoint_create_sals_from_address): Likewise.
11732 (tracepoint_create_breakpoints_sal): Likewise.
11733 (tracepoint_decode_linespec): Likewise.
11734 (strace_marker_create_sals_from_address): Likewise.
11735 (strace_marker_create_breakpoints_sal): Likewise.
11736 (strace_marker_decode_linespec): Likewise.
11737 (strace_marker_breakpoint_ops): New variable.
11738 (addr_string_to_sals): Remove `marker_spec'. Call method
11739 `decode_linespec' from breakpoint_ops, replacing code that decoded
11740 an address string into a SAL. Use `strace_marker_p' instead of
11742 (strace_command): Decide whether we are dealing with a static
11743 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11744 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11745 * breakpoint.h (linespec_result, linespec_sals): New forward
11747 (breakpoint_ops) <create_sals_from_address>,
11748 <create_breakpoints_sal>, <decode_linespec>: New methods.
11750 2012-01-14 Doug Evans <dje@google.com>
11752 * NEWS: Update text for "maint set python print-stack".
11753 It is deprecated in gdb 7.4 and deleted in 7.5.
11755 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11757 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11758 including curses.h.
11760 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11762 * configure: Regenerate.
11763 * config.in: Regenerate.
11765 2012-01-12 Keith Seitz <keiths@redhat.com>
11768 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11769 (ANONYMOUS_UNION_NAME): Define.
11770 (is_path_expr_parent): New function.
11771 (get_path_expr_parent): New function.
11772 (is_anonymous_child): New function.
11773 (create_child_with_value): If the child is anonymous and without
11774 a name, assign an object name to it.
11775 (c_describe_child): Use get_path_expr_parent to determine
11776 the parent expression.
11777 If there field represents an anonymous struct or union and
11778 has no name, set an appropriate display name and expression.
11779 (cplus_describe_child): Likewise.
11781 2012-01-12 Pedro Alves <palves@redhat.com>
11783 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11784 available when %ebp is found to be zero (outermost).
11786 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11788 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11789 an internal gdb_static_assert.
11790 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11792 2012-01-11 Tom Tromey <tromey@redhat.com>
11795 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11796 catch" and "catch throw".
11798 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11800 * blockframe.c (block_innermost_frame): Start search from selected
11801 frame, if present, or otherwise the current frame.
11803 * c-exp.y (variable): Update innermost_block for
11804 'block COLONCOLON NAME' clause.
11805 * m2-exp.y (variable): Ditto.
11806 * objc-exp.y (variable): Ditto.
11808 2012-01-10 Tom Tromey <tromey@redhat.com>
11811 * python/python.c (finish_python_initialization): Set sys.argv.
11813 2012-01-10 Doug Evans <dje@google.com>
11815 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11816 "want_line_info". All callers updated.
11817 (dwarf_decode_lines_1): New function.
11818 (handle_DW_AT_stmt_list): Add function comment.
11819 New arg "want_line_info". All callers updated.
11820 (read_file_scope,read_type_unit_scope): Move comment from
11821 handle_DW_AT_stmt_list to here.
11823 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11825 Fix regression after libiberty/ update for GCC PR 6057 and others.
11826 * c-exp.y (operator) <OPERATOR DELETE>
11827 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11828 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11829 (make_builtin_type, make_name): New variable i, add gdb_assert.
11830 (operator) <OPERATOR NEW>: Update ARGS to 3.
11831 (operator) <OPERATOR DELETE>: Add trailing space.
11832 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11833 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11834 * cp-support.c (cp_canonicalize_string): Check NULL from
11835 cp_comp_to_string, call warning and return.
11837 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11839 Fix duplicate .o files after omitting libbfd.a.
11840 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11841 (SFILES): Add corelow.c.
11842 (COMMON_OBS): Add corelow.o.
11843 (ALLDEPFILES): Remove corelow.c.
11844 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11845 * config/alpha/alpha-osf3.mh: Likewise.
11846 * config/alpha/fbsd.mh: Likewise.
11847 * config/arm/nbsdaout.mh: Likewise.
11848 * config/arm/nbsdelf.mh: Likewise.
11849 * config/i386/i386gnu.mh: Likewise.
11850 * config/ia64/hpux.mh: Likewise.
11851 * config/ia64/linux.mh: Likewise.
11852 * config/m32r/linux.mh: Likewise.
11853 * config/m68k/linux.mh: Likewise.
11854 * config/mips/irix5.mh: Likewise.
11855 * config/mips/irix6.mh: Likewise.
11856 * config/pa/hpux.mh: Likewise.
11857 * config/pa/linux.mh: Likewise.
11858 * config/powerpc/aix.mh: Likewise.
11859 * config/sparc/linux.mh: Likewise.
11860 * config/sparc/linux64.mh: Likewise.
11861 * config/sparc/sol2.mh: Likewise.
11862 * config/vax/vax.mh: Likewise.
11863 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11864 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11865 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11866 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11867 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11868 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11869 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11870 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11871 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11872 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11873 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11874 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11875 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11876 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11877 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11878 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11879 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11880 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11881 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11882 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11883 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11884 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11885 corelow.o from gdb_target_obs.
11886 * corefile.c (core_target): Update the comment on NULL value.
11887 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11888 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11889 MATCHES. Drop YUMMY set on NULL.
11890 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11891 reclaim CORE_DATA if it is already NULL.
11893 2012-01-09 Doug Evans <dje@google.com>
11895 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11896 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11898 2012-01-09 Keith Seitz <keiths@redhat.com>
11900 * breakpoint.c (wrapper.h): Don't include.
11902 2012-01-09 Keith Seitz <keiths@redhat.com>
11904 * Makefile.in (SFILES): Remove wrapper.c.
11905 (HFILES_NO_SRCDIR): Remove wrapper.h.
11906 (COMMON_OBS): Remove wrapper.o.
11907 * cli/cli-interp.c: Don't inlude wrapper.h.
11908 * corelow.c: Likewise.
11909 (core_open): Replace gdb_target_find_new_threads with
11910 TRY_CATCH around target_find_new_threads.
11911 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11912 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11913 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11914 evaluate_expression.
11915 (varobj_set_value): Likewise for evaluate_expression and
11917 (install_new_variable): Likewise for value_fetch_lazy.
11918 (adjust_value_for_child_access): Likewise for value_ind.
11919 (c_describe_child): Likewise for value_subscript and
11921 (c_value_of_root): Likewise for evaluate_expression.
11922 * wrapper.c: Remove.
11923 * wrapper.h: Remove.
11925 2012-01-09 Doug Evans <dje@google.com>
11927 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11928 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11929 "abfd" args with "section". All callers updated.
11930 Error checking code moved ...
11931 (error_check_comp_unit_head): ... here. New function.
11932 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11933 Delete arg "abfd". New arg "type_offset". All callers updated.
11934 (create_debug_types_hash_table): Simplify by using
11935 read_and_check_type_unit_head.
11937 * parser-defs.h (namecopy): Delete.
11938 * parse.c (namecopy, namecopy_size): Move into copy_name.
11940 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11942 Partially fix duplicate .o files after omitting libbfd.a.
11943 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11944 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11945 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11946 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11947 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11948 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11949 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11951 2012-01-09 Pedro Alves <palves@redhat.com>
11953 * MAINTAINERS: Update my email address.
11955 2012-01-08 Doug Evans <dje@google.com>
11957 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11958 n_type_units. Rename type_comp_units to all_type_units.
11960 (add_signatured_type_cu_to_table): Renamed from
11961 add_signatured_type_cu_to_list. All callers updated.
11963 * gdbtypes.h (struct cplus_struct_type): Delete member
11964 nfn_fields_total. All uses removed.
11966 2012-01-06 Doug Evans <dje@google.com>
11968 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11970 (dwarf2_find_comp_unit): Delete.
11971 (process_psymtab_comp_unit): Make result "void".
11972 Delete args buffer, info_ptr, buffer_size, and replace with
11973 "section". All callers updated.
11974 (dwarf2_build_psymtabs_hard): Simplify.
11976 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11977 Thiago Jung Bauermann <bauerman@br.ibm.com>
11979 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11980 before `struct gdb_exception'.
11981 * breakpoint.c (update_global_location_list_nothrow)
11982 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11983 * cp-abi.c (value_rtti_type): Likewise.
11984 * cp-support.c (cp_validate_operator): Likewise.
11985 * infrun.c (insert_exception_resume_breakpoint)
11986 (check_exception_resume, keep_going): Likewise.
11987 * mi-interp.c (mi_breakpoint_created)
11988 (mi_breakpoint_modified): Likewise.
11989 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11990 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11991 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11993 2012-01-05 Doug Evans <dje@google.com>
11995 * dwarf2read.c (statement_prologue): Delete, unused.
11997 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11998 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12000 * dwarf2read.c (comp_unit_header): Delete, unused.
12002 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12004 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12005 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12007 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12009 * infrun.c (normal_stop): Don't skip calling the normal_stop
12010 observers if the thread was doing a multi-step, but stopped for
12011 some reason other than stepping.
12013 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12015 * cli/cli-decode.h: Add comments.
12016 (CMD_LIST_AMBIGUOUS): Moved to command.h
12017 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12018 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12019 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12020 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12021 (add_com, add_com_alias, add_info, add_info_alias)
12022 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12024 * command.h: Add and adjust comments.
12025 (CMD_LIST_AMBIGUOUS): Moved here.
12026 (help_cmd, help_cmd_list): Delete declarations.
12028 2012-01-04 Doug Evans <dje@google.com>
12030 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12031 All callers updated.
12032 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12033 Replace all arguments with "per_cu". All callers updated.
12035 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12037 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12038 New arg "per_cu". All callers updated.
12040 Delete #if 0'd out code.
12041 * language.c (binop_result_type): Delete.
12042 (simple_type, ordered_type, same_type, integral_type): Delete.
12043 (numeric_type, character_type, string_type, boolean_type): Delete.
12044 (float_type, structured_type): Delete.
12045 * language.h: Update.
12047 2012-01-04 Tom Tromey <tromey@redhat.com>
12049 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12051 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12053 * corefile.c (close_exec_file): Delete.
12054 (reopen_exec_file): Remove commented out code that seems related
12055 to close_exec_file, which is being deleted here.
12056 * inferior.h (close_exec_file): Delete.
12057 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12059 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12061 * ada-lang.c: #include "cli/cli-utils.h".
12062 (get_selections): Use skip_spaces.
12063 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12064 (catch_ada_exception_command_split): Use skip_spaces.
12065 (ada_decode_assert_location): Likewise.
12067 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12069 * linespec.c (decode_line_internal): Check for C++ or Java
12070 compound constructs only if the current language is C, C++
12073 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12076 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12077 Joel Brobecker <brobecker@adacore.com>
12078 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12079 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12081 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12082 fall through into AT_ENTRY_POINT.
12083 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12084 DUMMY_ADDR with it.
12085 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12086 PPC_INSN_SIZE skip to 3 times.
12088 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12090 * linespec.c (add_minsym): Preserve function descriptors.
12092 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12094 * breakpoint.c (all_locations_are_pending): Consider locations
12095 in program spaces executing during startup pending as well.
12097 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12099 Copyright year update in most files of the GDB Project.
12101 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12103 * copyright.sh: Delete.
12104 * copyright.py: Rewrite.
12106 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12108 * gnulib/extra/update-copyright: New file, imported from gnulib.
12110 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12112 * README (Copyright and License Notices): New section.
12114 2012-01-03 Tom Tromey <tromey@redhat.com>
12117 * python/py-value.c (valpy_dereference, valpy_get_address
12118 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12119 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12120 (valpy_absolute, valpy_richcompare): Free intermediate values.
12122 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12124 * ada-lang.c: Reformat the copyright notice.
12126 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12128 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12129 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12130 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12131 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12132 Revert this part of:
12133 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12134 Build gdb directly from *.o files not using libgdb.a.
12135 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12137 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12139 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12140 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12141 Reformat the copyright header.
12143 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12145 Revert this part of:
12146 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12147 Remove the gdbtui binary.
12148 * gdb.c (main): Remove args.interpreter_p initialization.
12149 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12150 * main.h (struct captured_main_args): Remove interpreter_p.
12152 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12154 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12156 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12158 * top.c (print_gdb_version): Update copyright year.
12160 2012-01-02 Yao Qi <yao@codesourcery.com>
12162 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12164 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12165 Joel Brobecker <brobecker@adacore.com>
12167 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12168 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12170 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12171 fall through into AT_ENTRY_POINT.
12172 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12173 DUMMY_ADDR with it.
12174 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12175 PPC_INSN_SIZE skip to 3 times.
12177 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12179 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12181 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12183 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12185 Build gdb directly from *.o files not using libgdb.a.
12186 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12187 (COMMON_OBS): Remove solib-target.o.
12188 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12189 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12190 (LIBGDB_OBS, libgdb.a): Move it above.
12191 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12192 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12193 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12194 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12195 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12196 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12197 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12198 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12199 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12200 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12201 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12202 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12203 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12204 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12205 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12206 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12207 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12208 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12209 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12210 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12211 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12212 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12213 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12214 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12215 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12216 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12217 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12219 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12221 Remove the gdbtui binary.
12222 * .gitignore (/gdbtui): Remove.
12223 * Makefile.in (TUI): Remove.
12224 (SUBDIR_TUI_OBS): Remove tui-main.o.
12225 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12226 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12227 (tui-main.o): Remove.
12228 (all_object_files): Remove tui-main.o.
12229 * NEWS: New note for the gdbtui removal.
12230 * configure: Rebuilt.
12231 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12232 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12233 CONFIG_UNINSTALL respectively.
12234 * gdb.c (main): Remove args.interpreter_p initialization.
12235 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12236 * main.h (struct captured_main_args): Remove interpreter_p.
12237 * tui/tui-main.c: Remove.
12239 2012-01-01 Doug Evans <dje@google.com>
12241 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12242 (dwarf2_physname, read_import_statement): Ditto.
12243 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12244 (process_structure_scope read_subroutine_type): Ditto.
12245 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12246 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12247 (dwarf2_fetch_die_location_block): Ditto.
12248 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12250 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12251 All callers updated.
12252 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12253 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12254 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12256 * dwarf2read.c (load_cu): Move assert to more useful location.
12258 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12259 All callers updated.
12261 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12262 (dwarf2_elf_names): Minor reformat.
12263 (dwarf2_per_cu_data): Tweak comment.
12264 (dwarf2_read_section): Fix comment.
12265 (create_all_comp_units): Fix comment.
12266 (load_full_comp_unit): Fix comment.
12267 (process_full_comp_unit): Fix comment.
12268 (read_signatured_type): Fix comment.
12270 For older changes see ChangeLog-2011.
12276 version-control: never