1 2012-12-07 Tom Tromey <tromey@redhat.com>
3 * expression.h (parse_expression_for_completion): Rename
4 from parse_field_expression.
5 (parse_completion): Rename from in_parse_field.
6 * c-exp.y (lex_one_token): Update.
7 * completer.c (expression_completer): Update.
8 * go-exp.y (lex_one_token): Update.
9 * p-exp.y (yylex): Update.
10 * parse.c (parse_completion): Rename from in_parse_field.
11 (parse_exp_in_context): Update.
12 (parse_expression_for_completion): Rename from
13 parse_field_expression. Update.
15 2012-12-07 Tom Tromey <tromey@redhat.com>
17 * typeprint.c (_initialize_typeprint): Set completer
18 for "whatis" and "ptype".
20 2012-12-07 Joel Brobecker <brobecker@adacore.com>
22 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
23 "sim/common/cgen-fpu.h". Remove invalid entries
24 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
25 which actually have an FSF copyright header.
27 2012-12-07 Joel Brobecker <brobecker@adacore.com>
29 * osf-share/AT386/cma_thread_io.h: Delete.
30 * osf-share/HP800/cma_thread_io.h: Delete.
31 * osf-share/README: Delete.
32 * osf-share/RIOS/cma_thread_io.h: Delete.
33 * osf-share/cma_attr.h: Delete.
34 * osf-share/cma_deb_core.h: Delete.
35 * osf-share/cma_debug_client.h: Delete.
36 * osf-share/cma_errors.h: Delete.
37 * osf-share/cma_handle.h: Delete.
38 * osf-share/cma_init.h: Delete.
39 * osf-share/cma_list.h: Delete.
40 * osf-share/cma_mutex.h: Delete.
41 * osf-share/cma_sched.h: Delete.
42 * osf-share/cma_semaphore_defs.h: Delete.
43 * osf-share/cma_sequence.h: Delete.
44 * osf-share/cma_stack.h: Delete.
45 * osf-share/cma_stack_int.h: Delete.
46 * osf-share/cma_tcb_defs.h: Delete.
47 * osf-share/cma_util.h: Delete.
48 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
50 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
51 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
52 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
54 2012-12-06 Pedro Alves <palves@redhat.com>
55 Tom Tromey <tromey@redhat.com>
57 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
59 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
62 * mi/mi-cmd-var.c (varobj_update_one): Take value of
63 attribute "dynamic" and "displayhint" from printed child,
64 not the root variable.
66 2012-12-06 Joel Brobecker <brobecker@adacore.com>
68 * aix-thread.c (getthrds): Fix type of 4th parameter.
69 (get_signaled_thread): Change type of variable ktid to tid_t.
71 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
73 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
74 value of get_frame_block.
76 2012-12-05 Pierre Muller <muller@sourceware.org>
78 Avoid memory leaks on struct cmd_list_element.doc field.
79 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
80 if flags contains DOC_ALLOCATED.
81 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
83 (delete_cmd): Handle DOC_ALLOCATED flag.
84 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
85 in flags filed of struct cmd_list_element.
86 (struct cmd_list_element): Document new flag item.
88 2012-12-04 Doug Evans <dje@google.com>
90 * symmisc.c: Whitespace fixes.
92 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
94 * i386-tdep.c (i386_skip_prologue): Using symbol table
95 to find the end of prologue for clang compiled binaries.
96 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
97 to find the end of prologue for clang compiled binaries.
99 2012-12-03 Doug Evans <dje@google.com>
101 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
102 (dw2_find_symbol_file): Delete unused local file_data.
104 2012-12-03 Tom Tromey <tromey@redhat.com>
106 * ada-exp.y (write_object_renaming, write_var_or_type)
107 (write_ambiguous_var, write_var_from_sym): Make blocks const.
108 * ada-lang.c (replace_operator_with_call)
109 (find_old_style_renaming_symbol): Make blocks const.
110 * ada-lang.h (ada_find_renaming_symbol): Update.
111 (struct ada_symbol_info) <block>: Now const.
112 * breakpoint.c (watch_command_1): Update.
113 * breakpoint.h (struct watchpoint) <exp_valid_block,
114 cond_exp_valid_block>: Now const.
115 * c-exp.y (classify_inner_name, classify_name): Make block
117 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
119 * expression.h (innermost_block, parse_exp_1): Update.
120 (union exp_element) <block>: Now const.
121 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
122 (lookup_struct): Make block argument const.
123 * gdbtypes.h (lookup_template_type): Update.
124 * go-exp.y (classify_name, classify_packaged_name)
125 (package_name_p): Make block argument const.
126 * objc-lang.c (lookup_struct_typedef): Make block argument const.
127 * objc-lang.h (lookup_struct_typedef): Update.
128 * parse.c (parse_exp_in_context, parse_exp_1)
129 (write_exp_elt_block): Make block arguments const.
130 (expression_context_block, innermost_block): Now const.
131 * parser-defs.h (write_exp_elt_block): Update.
132 (expression_context_block, innermost_block, block_found): Now
134 * printcmd.c (struct display) <block>: Now const.
135 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
136 * valops.c (address_of_variable): Make block argument const.
137 * value.h (value_of_variable): Update.
138 * varobj.c (struct varobj_root) <valid_block>: Now const.
140 2012-11-30 Yao Qi <yao@codesourcery.com>
142 * breakpoint.c (print_one_breakpoint_location): Indent code.
144 2012-11-30 Yao Qi <yao@codesourcery.com>
146 * breakpoint.c (print_one_breakpoint_location): Combine two
147 blocks handling 'hit count' together.
149 2012-11-30 Yao Qi <yao@codesourcery.com>
151 * infrun.c (error_is_running, ensure_not_running): Move them
153 * infcmd.c (error_is_running, ensure_not_running): ... here.
155 * inferior.h: Remove declarations of error_is_running and
158 2012-11-30 Yao Qi <yao@codesourcery.com>
160 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
163 2012-11-30 Yao Qi <yao@codesourcery.com>
165 * infrun.c: Make the declaration of 'init_infwait_state'
167 (init_infwait_state): Make it 'static'.
169 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
171 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
172 return value to void to avoid compiler warning.
174 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
176 * opencl-lang.c (opencl_print_type): New function.
177 (opencl_language_arch_info): Install it.
179 2012-11-29 Tom Tromey <tromey@redhat.com>
181 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
183 * common/common-utils.c (xasprintf, xvasprintf): Remove.
184 * common/common-utils.h (xasprintf, xvasprintf): Remove.
186 2012-11-29 Jerome Guitton <guitton@adacore.com>
188 * ada-lang.c (ada_is_interface_tag): New function.
189 (ada_is_ignored_field): Add interface tags to the list
192 2012-11-29 Jerome Guitton <guitton@adacore.com>
194 * ada-lang.h (ada_tag_value_at_base_address): New function
196 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
198 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
199 relocate the class-wide value if need be.
200 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
201 Let ada_tag_value_at_base_address relocate the class-wide access/ref
202 before dereferencing it.
203 * ada-valprint.c (ada_val_print_1): Relocate to base address
204 before displaying the content of an interface-wide ref.
206 2012-11-29 Jerome Guitton <guitton@adacore.com>
208 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
210 2012-11-29 Joel Brobecker <brobecker@adacore.com>
214 2012-11-29 Yao Qi <yao@codesourcery.com>
215 Tom Tromey <tromey@redhat.com>
217 * eval.c (evaluate_subexp_standard): Get the correct pointer
218 type for TYPE_CODE_MEMBERPTR.
220 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
222 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
223 since now it is being done by binutils' powerpc_init_dialect().
225 2012-11-28 Tom Tromey <tromey@redhat.com>
228 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
229 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
231 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
232 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
233 (gdb_bfd_openr_next_archived_file): Use it.
235 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
237 * configure.ac: Check for linux/perf_event.h.
238 * config.in: Regenerated.
239 * configure: Regenerated.
241 2012-11-28 Yao Qi <yao@codesourcery.com>
243 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
244 abbreviate 'delete tracepoints' to 'delete tr'.
245 * corefile.c (_initialize_core): Call add_alias_cmd to
246 abbreviate 'set gnutarget' to 'set g'.
247 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
248 'show convenience' to 'show conv'.
250 2012-11-27 Joel Brobecker <brobecker@adacore.com>
252 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
253 call to sparc_supply_fpregset.
254 (fill_fpregset): Fix first parameter in call to
255 sparc_collect_fpregset.
257 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
258 Kazu Hirata <kazu@codesourcery.com>
259 Yao Qi <yao@codesourcery.com>
261 * objfiles.c (init_entry_point_info): Call
262 gdbarch_convert_from_func_ptr_addr and
263 gdbarch_addr_bits_remove here ...
264 (entry_point_address_query): ... instead of here.
265 * solib-svr4.c (exec_entry_point): Call
266 gdbarch_addr_bits_remove.
267 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
270 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
271 Yao Qi <yao@codesourcery.com>
273 * eval.c (evaluate_subexp_standard): Add handling of
274 TYPE_CODE_MEMBERPTR when calling functions. Correct the
275 result of ptype for calling a TYPE_CODE_METHODPTR.
277 2012-11-27 Yao Qi <yao@codesourcery.com>
279 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
283 2012-11-26 Alexander Larsson <alexl@redhat.com>
284 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Tom Tromey <tromey@redhat.com>
287 * NEWS: Mention mini debuginfo feature.
288 * minidebug.c: New file.
289 * configure.ac: Check for lzma.
290 * configure, config.in: Rebuild.
291 * Makefile.in (LIBLZMA): New variable.
292 (CLIBS): Include LIBLZMA.
293 (SFILES): Mention minidebug.c.
294 (COMMON_OBS): Mention minidebug.o.
295 * symfile.c (read_symbols): New function.
296 (syms_from_objfile, reread_symbols): Call it.
297 * symfile.h (find_separate_debug_file_in_section): Declare.
299 2012-11-26 Keith Seitz <keiths@redhat.com>
301 * exec.c (exec_file_attach): Move cleanup after verifying that
302 memory has in fact been allocated.
304 2012-11-26 Tom Tromey <tromey@redhat.com>
306 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
307 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
309 * skip.c (skip_info): Use SYMBOL_SYMTAB.
311 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
312 Pedro Alves <palves@redhat.com>
314 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
315 size parameter passed to readlink by one byte.
316 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
317 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
318 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
319 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
322 2012-11-26 Yao Qi <yao@codesourcery.com>
324 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
325 extraneous parentheses.
327 2012-11-26 Yao Qi <yao@codesourcery.com>
329 * remote.c (remote_start_remote): Typo fix.
331 2012-11-23 David S. Miller <davem@davemloft.net>
333 * sparc-tdep.h (struct sparc_fpregset): New data structure.
334 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
335 sparc32_sol2_fpregset): Declare new globals.
336 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
338 * sparc64-tdep.h (sparc64_supply_fpregset,
339 sparc64_collect_fpregset): Likewise.
340 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
342 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
343 (sparc_fpregset): Declare new global.
344 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
346 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
348 (fill_fpregset): Likewise.
349 (_initialize_sparc_linux_nat): Set sparc_fpregset to
350 sparc32_bsd_fpregset.
351 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
352 sparc32_bsd_fpregset down into handler.
353 (sparc32_linux_collect_core_fpregset): Likewise.
354 * sparc-nat.c (sparc_fpregset): Define.
355 (sparc_supply_fpregset): Add 'fpregset' argument.
356 (sparc_collect_fpregset): Likewise.
357 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
358 into fpregset handler.
359 (sparc_store_inferior_registers): Likewise.
360 (_initialize_sparc_nat): Set sparc_fpregset to
361 sparc32_sunos4_fpregset if NULL.
362 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
364 (fill_fpregset): Likewise.
365 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
366 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
367 use it to compute offsets.
368 (sparc32_collect_fpregset): Likewise.
369 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
370 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
372 (fill_fpregset): Likewise.
373 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
375 (sparc64_linux_collect_core_fpregset): Likewise.
376 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
377 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
378 use it to compute offsets.
379 (sparc64_collect_fpregset): Likewise.
380 (sparc64_bsd_fpregset): Define.
381 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
382 sparc64_bsd_fpregset down into handler.
383 (sparc64fbsd_collect_fpregset): Likewise.
384 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
385 and pass sparc{32,64}_bsd_fpregset down into handler.
386 (sparc64nbsd_collect_fpregset): Likewise.
387 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
388 sparc64_bsd_fpregset down into handler.
389 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
390 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
391 to sparc32_bsd_fpregset.
392 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
393 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
394 (sparc32nbsd_supply_fpregset): Likewise.
396 2012-11-21 Tom Tromey <tromey@redhat.com>
398 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
400 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
402 * c-typeprint.c (c_type_print_base): Update.
404 2012-11-21 Yao Qi <yao@codesourcery.com>
407 * gdbarch.sh (smash_text_address): Remove.
408 * gdbarch.c, gdbarch.h: Regenerate.
409 * arm-tdep.c (arm_smash_text_address): Remove.
410 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
411 * hppa-tdep.c (hppa_smash_text_address): Remove.
412 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
413 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
415 * coffread.c (coff_symtab_read): Caller update.
416 * dbxread.c (process_one_symbol): Likewise.
417 * elfread.c (record_minimal_symbol): Likewise.
418 * somread.c (som_symtab_read): Likewise.
420 2012-11-20 Pierre Muller <muller@sourceware.org>
422 ARI fixes: sprintf rule.
423 Replace sprintf function calls for char arrays by
424 calls to xsnprintf calls.
425 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
426 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
427 (arm_neon_quad_read, arm_pseudo_read): Ditto.
428 (arm_neon_quad_write, arm_pseudo_write): Ditto.
429 * breakpoint.c (condition_completer): Ditto.
430 (create_tracepoint_from_upload): Ditto.
431 * dwarf2read.c (file_full_name): Ditto.
432 * gcore.c (gcore_command): Ditto.
433 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
434 * go32-nat.c (go32_sysinfo): Ditto.
435 * interps.c (interp_set): Ditto.
436 * m32c-tdep.c (make_types): Ditto.
437 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
438 * remote-m32r-sdi.c (m32r_open): Ditto.
439 * sol-thread.c (td_err_string): Ditto.
440 (td_state_string, solaris_pid_to_str): Ditto.
441 * symtab.c (gdb_mangle_name): Ditto.
442 * cli/cli-script.c (execute_control_command): Ditto.
443 (define_command, document_command): Ditto.
444 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
445 * tui/tui-stack.c (tui_make_status_line): Ditto.
446 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
448 2012-11-20 Mike Frysinger <vapier@gentoo.org>
450 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
451 it when looking at ptr->func.
452 * command.h (complete_on_cmdlist): Add a fourth arg.
453 * completer.c (complete_line_internal): Add local ignore_help_classes,
454 and set it to 1 when reason is not handle_help. Pass this down to
455 lookup_cmd_1 and complete_on_cmdlist.
457 2012-11-20 Tom Tromey <tromey@redhat.com>
459 * completer.c (count_struct_fields): Remove.
460 (expression_completer): Don't call count_struct_fields.
462 2012-11-20 Pedro Alves <palves@redhat.com>
464 * annotate.c (breakpoints_changed): Rename to ...
465 (annotate_breakpoints_changed): ... this.
466 (annotate_stopped, breakpoint_changed): Adjust caller.
467 * annotate.h (breakpoints_changed): Rename to ...
468 (annotate_breakpoints_changed): ... this.
469 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
470 (do_map_commands_command, init_raw_breakpoint, clear_command)
471 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
473 2012-11-20 David S. Miller <davem@davemloft.net>
475 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
476 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
478 (get_cores_used_by_process): Update comment.
480 2012-11-20 Yao Qi <yao@codesourcery.com>
482 * objfiles.c (init_entry_point_info): Remove trailing spaces.
484 2012-11-20 Yao Qi <yao@codesourcery.com>
486 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
487 to deprecated_context_hook.
489 2012-11-19 Yao Qi <yao@codesourcery.com>
491 * infrun.c (infwait_state): Add static.
493 2012-11-16 Keith Seitz <keiths@redhat.com>
496 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
497 parameter and pass it to lookup_symbol_file.
498 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
499 to search base classes.
500 (cp_lookup_symbol_namespace): Likewise.
501 (lookup_namespace_scope): Likewise.
502 (lookup_symbol_file): Add SEARCH parameter.
503 If SEARCH is non-zero and no symbol is found, lookup the class
504 and call cp_lookup_nested_symbol.
505 (find_symbol_in_baseclass): New function.
506 (cp_lookup_nested_symbol): Do not let
507 cp_lookup_symbol_in_namespace search through base classes.
508 Do that later when there is no global symbol match.
510 2012-11-16 Doug Evans <dje@google.com>
512 * main.c (gdb_datadir_provided): New static global.
513 (get_init_files): If --data-directory is provided,
514 and SYSTEM_GDBINIT lives in data-directory, look for it there.
517 2012-11-15 Pierre Muller <muller@sourceware.org>
519 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
520 * gdb_stat.h: Delete. Moved to common directory.
521 * common/gdb_stat.h: New file.
522 * gdb_wait.h: Delete. Moved to common directory.
523 * common/gdb_wait.h: New file.
524 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
526 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
528 (stat.h rule): Adapt to new gdb_stat.h location.
529 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
531 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
534 2012-11-15 Pierre Muller <muller@sourceware.org>
536 * configure.ac (AC_HEADER_STAT): Remove.
537 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
538 and corresponding code.
539 * configure: Regenerate.
540 * config.in: Regenerate.
542 2012-11-15 Pierre Muller <muller@sourceware.org>
544 ARI xasprintf rule fixes.
545 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
546 instead of xasprintf.
547 (open_and_init_dwp_file): Ditto.
549 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
551 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
554 2012-11-14 Tom Tromey <tromey@redhat.com>
556 * configure, config.in: Rebuild.
557 * configure.ac: Don't check for ctype.h, time.h.
558 * expprint.c: Don't use HAVE_CTYPE_H.
560 2012-11-13 Tom Tromey <tromey@redhat.com>
562 * gdbarch.h, gdbarch.c: Rebuild.
563 * gdbarch.sh (set_target_gdbarch): Rename from
564 deprecated_target_gdbarch_select_hack.
565 * arch-utils.c (gdbarch_update_p): Update.
566 (set_gdbarch_from_file): Update.
568 2012-11-14 Pierre Muller <muller@sourceware.org>
570 * MAINTAINERS (Responsible Maintainers/misc): Add myself
571 as responsible of contrib/ari directory.
573 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
574 Yao Qi <yao@codesourcery.com>
576 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
578 (arm_m_exception_cache, arm_m_exception_this_id)
579 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
580 (arm_m_exception_unwind): New.
581 (arm_gdbarch_init): Register arm_m_exception_unwind.
583 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
585 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
586 parameter COUNT, for pattern filling of memory regions.
589 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
591 * disasm.h (DISASSEMBLY_FILENAME): New macro.
592 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
593 to print_source_lines ().
594 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
596 * source.c (print_source_lines_base): Prefix source line with
597 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
599 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
601 * symtab.h (print_source_lines_flags): New enum.
602 * source.c (print_source_lines_base): Change noerror to flags.
603 (print_source_lines): Change noerror to flags.
605 2012-11-13 Pierre Muller <muller@sourceware.org>
607 ARI fixes: Avoid sprintf function use rule.
608 * charset.c (convert_between_encodings): Use xsnprintf.
609 * cli-out.c (cli_field_int): Likewise.
610 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
611 * expprint.c (op_name_standard): Likewise.
612 * frv-tdep.c (set_variant_num_gprs): Likewise.
613 (set_variant_num_fprs): Likewise.
614 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
615 * nto-tdep.c (nto_find_and_open_solib): Likewise.
616 (nto_init_solib_absolute_prefix): Likewise.
617 * source.c (init_source_path): Likewise.
618 (print_source_lines_base): Likewise.
619 * valprint.c (print_wchar): Likewise.
620 * mi/mi-out.c (mi_field_int): Likewise.
621 windows-nat.c (windows_pid_to_exec_file): Likewise.
622 (windows_create_inferior): Likewise.
623 (_initialize_check_for_gdb_ini): Likewise.
625 2012-11-12 Joel Brobecker <brobecker@adacore.com>
627 * frame.h (deprecated_frame_register_read): Renames
629 * frame.c (deprecated_frame_register_read): Renames
630 frame_register_read. Update all callers.
631 * i386-tdep.c: Update all callers of frame_register_read.
632 * infcmd.c: Likewise.
634 * mips-tdep.c: Likewise.
635 * mt-tdep.c: Likewise.
636 * sh64-tdep.c: Likewise.
638 2012-11-12 Joel Brobecker <brobecker@adacore.com>
640 * frame.h (frame_register_read): Remove FIXME comment.
641 * frame.c (frame_register_read): Add suggestion explaining
642 which function to use in place of this one.
644 2012-11-12 Tom Tromey <tromey@redhat.com>
646 * python/python.c (start_type_printers): Initialize 'result_obj'.
648 2012-11-12 Tom Tromey <tromey@redhat.com>
651 * data-directory/Makefile.in (PYTHON_FILES): Add
653 * python/lib/gdb/command/type_printers.py: New file.
654 * python/lib/gdb/command/types.py (TypePrinter): New class.
655 (_get_some_type_recognizers, get_type_recognizers,
656 apply_type_recognizers, register_type_printer): New
658 * python/py-objfile.c (objfile_object) <type_printers>: New
660 (objfpy_dealloc): Decref new field.
661 (objfpy_new): Set new field.
662 (objfpy_get_type_printers, objfpy_set_type_printers): New
664 (objfile_to_objfile_object): Set new field.
665 (objfile_getset): Add "type_printers".
666 * python/py-progspace.c (pspace_object) <type_printers>: New
668 (pspy_dealloc): Decref new field.
669 (pspy_new): Set new field.
670 (pspy_get_type_printers, pspy_set_type_printers): New functions.
671 (pspace_to_pspace_object): Set new field.
672 (pspace_getset): Add "type_printers".
673 * python/python.c (start_type_printers, apply_type_printers,
674 free_type_printers): New functions.
675 (_initialize_python): Set gdb.type_printers.
676 * python/python.h (start_type_printers, apply_type_printers,
677 free_type_printers): Declare.
678 * typeprint.c (type_print_raw_options, default_ptype_flags):
679 Update for new fields.
680 (do_free_global_table, create_global_typedef_table,
681 find_global_typedef): New functions.
682 (find_typedef_in_hash): Use find_global_typedef.
683 (whatis_exp): Use create_global_typedef_table. Change cleanup
685 * typeprint.h (struct type_print_options) <global_typedefs,
686 global_printers>: New fields.
688 2012-11-12 Tom Tromey <tromey@redhat.com>
690 * c-typeprint.c (find_typedef_for_canonicalize,
691 print_name_maybe_canonical): New functions.
692 (c_print_type): Look up type name.
693 (cp_type_print_derivation_info): Add flags argument. Use
694 print_name_maybe_canonical.
695 (cp_type_print_method_args): Add wrapping.
696 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
697 (c_type_print_template_args): New function.
698 (c_type_print_base): Change wrapping. Use
699 print_name_maybe_canonical.
700 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
702 * gdbtypes.c (types_equal): No longer static.
703 * gdbtypes.h (types_equal): Declare.
704 * typeprint.c (type_print_raw_options, default_ptype_flags):
706 (struct typedef_hash_table): New.
707 (hash_typedef_field, eq_typedef_field,
708 recursively_update_typedef_hash, add_template_parameters,
709 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
710 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
711 copy_typedef_hash, find_typedef_in_hash): New functions.
712 * typeprint.h (struct type_print_options) <local_typedefs>:
714 (recursively_update_typedef_hash, add_template_parameters,
715 create_typedef_hash, free_typedef_hash,
716 make_cleanup_free_typedef_hash, copy_typedef_hash,
717 find_typedef_in_hash): Declare.
719 2012-11-12 Tom Tromey <tromey@redhat.com>
721 * cp-support.c (inspect_type,
722 replace_typedefs_qualified_name, replace_typedefs): Add
723 finder, data arguments. Call as needed.
724 (cp_canonicalize_string_full): New function.
725 (cp_canonicalize_string_no_typedefs): Rewrite.
726 * cp-support.h (canonicalization_ftype): New typedef.
727 (cp_canonicalize_string_full): Declare.
729 2012-11-12 Tom Tromey <tromey@redhat.com>
732 * c-typeprint.c (c_type_print_base): Handle print_method and
733 print_typedefs flags.
734 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
735 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
737 * typeprint.c (type_print_raw_options, default_ptype_flags):
738 Update for new field.s
739 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
740 (setprinttypelist, showprinttypelist, print_methods,
741 print_typedefs): New globals.
742 (set_print_type, show_print_type, set_print_type_methods,
743 show_print_type_methods, set_print_type_typedefs,
744 show_print_type_typedefs): New functions.
745 (_initialize_typeprint): Update documentation. Add "print
746 type methods" and "print type typedefs" parameters.
747 * typeprint.h (struct type_print_options) <print_methods,
748 print_typedefs>: New fields.
750 2012-11-12 Tom Tromey <tromey@redhat.com>
752 * c-typeprint.c (cp_type_print_method_args): Add flags
753 argument. Call c_print_type, not type_print.
754 (c_type_print_base): Call c_print_type, not type_print.
757 2012-11-12 Tom Tromey <tromey@redhat.com>
759 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
760 to type-printing functions.
761 * ada-lang.h (ada_print_type): Add argument.
762 * ada-typeprint.c (print_array_type, print_variant_clauses,
763 print_variant_part, print_selected_record_field_types,
764 print_record_field_types, print_unchecked_union_type,
765 print_func_type, ada_print_type): Add flags argument.
766 (ada_print_typedef): Update.
767 * c-exp.y (OPERATOR conversion_type_id): Update.
768 * c-lang.h (c_print_type, c_type_print_base): Update.
769 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
770 c_type_print_modifier, c_type_print_args,
771 c_type_print_varspec_suffix, c_type_print_base): Add flags
773 * cp-valprint.c (cp_print_class_member): Update.
774 * dwarf2read.c (dwarf2_compute_name): Update.
775 * f-lang.h (f_print_type): Add argument.
776 * f-typeprint.c (f_print_type): Add flags argument.
777 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
778 * go-lang.h (go_print_type): Add argument.
779 * go-typeprint.c (go_print_type): Add flags argument.
780 * jv-lang.h (java_print_type): Add argument.
781 * jv-typeprint.c (java_type_print_base, java_print_type): Add
783 * language.c (unk_lang_print_type): Add flags argument.
784 * language.h (struct language_defn) <la_print_type>: Add flags
786 (LA_PRINT_TYPE): Likewise.
787 * m2-lang.h (m2_print_type): Add argument.
788 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
789 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
790 m2_unbounded_array, m2_record_fields): Add flags argument.
791 * p-lang.h (pascal_print_type, pascal_type_print_base,
792 pascal_type_print_varspec_prefix): Add argument.
793 * p-typeprint.c (pascal_print_type,
794 pascal_type_print_varspec_prefix, pascal_print_func_args,
795 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
797 * symmisc.c (print_symbol): Update.
798 * typeprint.c (type_print_raw_options, default_ptype_flags):
800 (type_print): Update.
801 * typeprint.h (struct type_print_options): New.
802 (type_print_raw_options): Declare.
803 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
805 2012-11-10 Keith Seitz <keiths@redhat.com>
807 * breakpoint.c (clear_command): Add cleanup for
808 sals.sals if an argument is given.
810 * linespec.c (parse_linespec): Do cleanups after
811 parsing a convenience variable.
813 2012-11-10 Keith Seitz <keiths@redhat.com>
816 * c-valprint.c (c_val_print): For character arrays
817 with "print null" option on, print ellipses if
818 the output is truncated and the next character is not \000.
819 * valprint.c (MAX_WCHARS): Define.
820 (WCHAR_BUFLEN): Likewise.
821 (WCHAR_BUFLEN_MAX): Likewise.
822 (struct converted_character): New structure.
823 (count_next_character): New function.
824 (print_converted_chars_to_obstack): New function.
825 (generic_printstr): Rewrite using count_next_character
826 and print_converted_chars_to_obstack.
828 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
830 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
831 while executing the gdb command.
832 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
833 are called from prompt_for_continue.
834 * tui/tui-io.c (tui_redisplay_readline): Likewise.
836 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
840 * tui/tui.c (tui_rl_command_key): Do not call execute_command
841 but insert the command to execute in readline's buffer.
843 2012-11-09 Tom Tromey <tromey@redhat.com>
845 * gdbarch.sh (target_gdbarch): Remove macro.
846 (get_target_gdbarch): Rename to target_gdbarch.
847 * gdbarch.c, gdbarch.h: Rebuild.
848 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
849 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
850 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
851 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
852 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
853 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
854 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
855 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
856 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
857 procfs.c, progspace.c, ravenscar-thread.c, record.c,
858 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
859 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
860 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
861 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
862 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
863 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
864 target-descriptions.c, target.c, target.h, tracepoint.c,
865 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
866 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
867 python/py-inferior.c, python/python.c: Update.
869 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
871 * source.c (print_source_lines_base): Add fullname field giving
872 full path to file in mi output.
873 * NEWS: Mention the new fullname field.
875 2012-11-09 Yao Qi <yao@codesourcery.com>
877 * NEWS: Mention the fix to the ambiguity of 'fo' command.
879 2012-11-09 Pedro Alves <palves@redhat.com>
883 * infrun.c: Include target-descriptions.h.
884 (follow_exec): Fetch new target description.
886 2012-11-09 Yao Qi <yao@codesourcery.com>
888 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
891 2012-11-09 Yao Qi <yao@codesourcery.com>
893 * breakpoint.c: Declare set_tracepoint_count.
894 (install_breakpoint): Call set_tracepoint_count if B is a
896 (trace_command): Don't call set_tracepoint_count. Re-indent.
897 (strace_command, ftrace_command):
898 (create_tracepoint_from_upload): Likewise.
900 2012-11-09 Pedro Alves <palves@redhat.com>
902 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
903 (get_target_gdbarch) <gdbarch.h>: New function.
904 (startup_gdbarch) <gdbarch.h>: Declare.
905 <gdbarch.c> (target_gdbarch): Delete.
906 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
907 current inferior's gdbarch.
908 <gdbarch.c> (get_target_gdbarch): New function.
909 * inferior.c: Include target-descriptions.h.
910 (free_inferior): Free target description info.
911 (add_inferior_with_spaces): Set the inferior's initial
913 (clone_inferior_command): Copy the original inferior's target
914 description if it was user specified.
915 (initialize_inferiors): Add comment.
916 * inferior.h (struct target_desc_info): Forward declare.
917 (struct inferior) <gdbarch>: New field.
918 * linux-nat.c: Include target-descriptions.h.
919 (linux_child_follow_fork): Copy the parent's architecture and
920 target description to the child.
921 * target-descriptions.c: Include inferior.h.
922 (struct target_desc_info): New structure, holding the equivalents
924 (target_desc_fetched, current_target_desc)
925 (target_description_filename): ... these removed globals.
926 (get_tdesc_info, target_desc_info_from_user_p)
927 (copy_inferior_target_desc_info, target_desc_info_free): New.
928 (target_desc_fetched, current_target_desc)
929 (target_description_filename): Reimplemented as convenience
931 (tdesc_filename_cmd_string): New global.
932 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
933 tdescs filename ..." commands to the per-inferior equivalent.
934 (show_tdesc_filename_cmd): Get the value to show from the
935 per-inferior description filename.
936 (_initilize_target_descriptions): Change the "set/show tdesc
937 filename" commands' variable.
938 * target-descriptions.h (struct target_desc, struct target_desc_info)
939 (struct inferior): Forward declare.
940 (target_find_description, target_clear_description)
941 (target_current_description): Adjust comments.
942 (copy_inferior_target_desc_info, target_desc_info_free)
943 (target_desc_info_from_user_p). Declare.
945 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
947 * tui/tui-hooks.c (tui_about_to_proceed): New function.
948 (tui_target_wait_hook): Remove.
949 (tui_install_hooks): Install the about_to_proceed observer.
950 (tui_remove_hooks): And remove it here.
952 2012-11-08 Tom Tromey <tromey@redhat.com>
954 * linux-tdep.c (linux_make_siginfo_note): New function.
955 (linux_make_corefile_notes): Use it.
956 * corelow.c (get_core_siginfo): New function.
957 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
959 2012-11-08 Tom Tromey <tromey@redhat.com>
962 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
963 (zlib_decompress_section): Remove.
964 (gdb_bfd_map_section): Only check for compressed section
965 in mmap case. Use bfd_get_full_section_contents.
966 * osabi.c (check_note): Add 'sectsize' argument. Read
968 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
969 section data. Update for check_note change.
970 * xcoffread.c (xcoff_initial_scan): Use
971 bfd_get_full_section_contents.
972 * py-auto-load.c (auto_load_section_scripts): Use
973 bfd_get_full_section_contents.
974 * contrib/cc-with-tweaks.sh: Add -Z option.
976 2012-11-08 Tom Tromey <tromey@redhat.com>
978 * python/py-bpevent.c: Include defs.h.
979 * python/py-continueevent.c: Include defs.h.
980 * python/py-event.c: Include defs.h.
981 * python/py-event.h: Don't include defs.h.
982 * python/py-events.h: Don't include defs.h.
983 * python/py-evts.c: Include defs.h.
984 * python/py-exitedevent.c: Include defs.h.
985 * python/py-newobjfileevent.c: Include defs.h.
986 * python/py-signalevent.c: Include defs.h.
987 * python/py-stopevent.c: Include defs.h.
988 * python/py-threadevent.c: Include defs.h.
990 2012-11-08 Pierre Muller <muller@sourceware.org>
992 * update-web-ari.sh (print_heading): Add number of files
994 (nb_files): New variable counting the number of sources
995 files found by gdb_find.sh script.
996 (debug_awk): New variable to allow extra debug output.
997 (indexes): Add more information if DEBUG_AWK is set.
999 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1001 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1002 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1003 following the change in PLT call stubs on linker.
1005 2012-11-08 Pierre Muller <muller@sourceware.org>
1007 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1008 as default language.
1009 (AWK): Use = instead of == for sh test to avoid warning.
1010 (Linux rule): Correct [:digit] into [[:digit:]].
1011 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1012 (vasprintf rule): Adapt to common subdirectory moves.
1013 (xasprintf rule): Idem.
1014 (xvasprintf rule): Idem.
1015 (var_boolean rule): Accept occurence in == or != test.
1017 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1019 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1021 * tui/tui-hooks.c (tui_inferior_exit): New function.
1022 (tui_detach_hook): Remove.
1023 (tui_install_hooks): Install the inferior exit observer.
1024 (tui_remove_hooks): Remove it.
1026 2012-11-08 Yao Qi <yao@codesourcery.com>
1029 * source.c (_initialize_source): Call add_com_alias to abbreviate
1030 'forward-search' as 'fo'.
1032 2012-11-07 Pedro Alves <palves@redhat.com>
1034 * arm-tdep.c: Make defs.h be the first include.
1035 * coff-pe-read.c: Ditto.
1037 * go32-nat.c: Ditto.
1038 * i386-nat.c: Ditto.
1039 * ppcnbsd-nat.c: Ditto.
1040 * ada-varobj.h: Don't include defs.h.
1041 * i386-darwin-tdep.h: Ditto.
1042 * i386-nat.h: Ditto.
1044 2012-11-07 Pedro Alves <palves@redhat.com>
1046 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1049 2012-11-07 Pierre Muller <muller@sourceware.org>
1051 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1052 File already uses "gdb_dirent.h" header.
1054 2012-11-07 Yao Qi <yao@codesourcery.com>
1056 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1059 2012-11-06 Tom Tromey <tromey@redhat.com>
1061 * target.h (inferior_has_forked, inferior_has_vforked)
1062 (inferior_has_execd, inferior_has_called_syscall): Remove
1065 2012-11-06 Pierre Muller <muller@sourceware.org>
1067 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1068 add missing internalization markup.
1070 2012-11-06 Pedro Alves <palves@redhat.com>
1074 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1076 2012-11-06 Pierre Muller <muller@sourceware.org>
1078 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1081 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1083 * gnulib/update-gnulib.sh: New script.
1085 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1087 * MAINTAINERS: Update my email address.
1089 2012-11-05 Tom Tromey <tromey@redhat.com>
1091 * frame.c (put_frame_register): Don't use temporary buffer.
1093 2012-11-05 Pedro Alves <palves@redhat.com>
1095 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1096 child. Clear 'pending_detach'.
1097 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1098 'pending_detach' in the vfork parent.
1100 2012-11-05 Doug Evans <dje@google.com>
1102 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1103 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1104 * dwarf2read.c: #include "elf-bfd.h".
1105 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1106 (dwop_section_names): Renamed from dwo_section names. All uses
1107 updated. Add entries for .debug_cu_index, .debug_tu_index.
1108 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1110 (struct dwp_sections): New type.
1111 (struct virtual_dwo_sections): New type.
1112 (struct dwp_hash_table): New type.
1113 (struct dwp_file): New type.
1114 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1115 read in. Handle DWOs coming from DWP files.
1116 (lookup_dwo_file_slot): New function.
1117 (dwarf2_locate_dwo_sections): Move definition closer to use.
1118 (create_dwo_debug_info_hash_table_reader): Renamed from
1119 create_debug_info_hash_table_reader. All callers updated.
1120 (create_dwo_debug_info_hash_table): Renamed from
1121 create_debug_info_hash_table. All callers updated.
1122 (create_dwp_hash_table): New function.
1123 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1124 (lookup_dwo_in_dwp): New function.
1125 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1126 is_dwp. All callers updated.
1127 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1128 (open_and_init_dwo_file): Renamed from init_dwo_file.
1129 All callers updated.
1130 (lookup_dwo_file): Delete.
1131 (dwarf2_locate_dwp_sections): New function.
1132 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1133 (allocate_dwp_loaded_cutus_table): New function.
1134 (open_and_init_dwp_file): New function.
1135 (lookup_dwo_cutu): New function.
1136 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1138 2012-11-03 Yao Qi <yao@codesourcery.com>
1141 * breakpoint.c (trace_pass_set_count): Call
1142 observer_notify_breakpoint_modified instead of
1143 observer_notify_tracepoint_modified.
1144 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1146 2012-11-02 Tom Tromey <tromey@redhat.com>
1148 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1149 argument to complete_on_enum.
1151 2012-11-02 Tom Tromey <tromey@redhat.com>
1153 * configure: Rebuild.
1154 * configure.ac (build_warnings): Add -Wempty-body.
1155 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1156 * remote.c (handle_notification): Use braces for empty 'else' body.
1157 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1159 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1161 * solib-som.c (som_relocate_section_addresses): Use braces
1162 for empty 'else' body.
1163 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1164 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1166 2012-11-02 Pedro Alves <palves@redhat.com>
1170 * infrun.c (handle_inferior_event)
1171 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1172 null_ptid before handling a vfork child exec or exit. Switch to
1173 the event ptid afterwards.
1175 2012-11-02 Yao Qi <yao@codesourcery.com>
1177 * std-operator.def: Remove OP_LABELED.
1178 * eval.c: Remove the declaration of 'get_label'.
1179 (get_label): Remove.
1180 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1182 Remove local variable 'variantno' and related code.
1183 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1185 * expprint.c (print_subexp_standard): Likewise.
1186 (dump_subexp_body_standard): Likewise.
1187 * parse.c (operator_length_standard): Likewise.
1189 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1191 Incorporate ARI web page generator into GDB sources.
1192 * contrib/ari/create-web-ari-in-src.sh: New file.
1193 * contrib/ari/gdb_ari.sh: New file.
1194 * contrib/ari/gdb_find.sh: New file.
1195 * contrib/ari/update-web-ari.sh: New file.
1197 2012-10-31 Tom Tromey <tromey@redhat.com>
1199 * gdbarch.c: Rebuild.
1200 * gdbarch.sh: Remove references to gdbarch_swap.
1201 * corelow.c (core_open): Remove obsolete comment.
1203 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1206 * c-typeprint.c (c_print_type): Don't print a space for vector
1207 types, this is handled within the suffix.
1208 (c_type_print_varspec_suffix): Add a space to vector suffix.
1210 2012-10-26 Pedro Alves <palves@redhat.com>
1212 * amd64-tdep.c (amd64_relocate_instruction): Use
1213 store_unsigned_integer instead of memcpy.
1214 * i386-tdep.c (i386_relocate_instruction): Ditto.
1216 2012-10-26 Pedro Alves <palves@redhat.com>
1218 * infrun.c (handle_inferior_event): Merge handling of
1219 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1222 2012-10-26 Pedro Alves <palves@redhat.com>
1224 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1227 2012-10-26 Pedro Alves <palves@redhat.com>
1229 * target.c (target_waitstatus_to_string): Handle
1230 TARGET_WAITKIND_VFORK_DONE.
1232 2012-10-26 Pedro Alves <palves@redhat.com>
1234 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1235 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1237 2012-10-24 Tristan Gingold <gingold@adacore.com>
1239 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1242 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1244 * ravenscar-thread.c (ravenscar_wait): Only update the list
1245 of threads and inferior_ptid if the inferior is still alive.
1247 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1249 * ada-lang.c (is_known_support_routine): Use lbasename when
1250 matching the symtab's filename against
1251 known_runtime_file_name_patterns.
1253 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1255 * ada-lang.c (ada_same_array_size_p): New function.
1256 (ada_promote_array_of_integrals): New function.
1257 (coerce_for_assign): Add handling of arrays where the elements
1258 are integrals of a smaller size than the size of the target
1261 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1263 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1264 against maximum exponent value.
1266 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1268 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1271 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1273 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1274 strip typedef layer when computing the fixed type's field type,
1275 only when computing its size.
1277 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1280 * i386-tdep.c (i386_return_value): Handle complex double and long
1283 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1285 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1286 New local variable args_len.
1287 Quote the name of the executable when computing the command line.
1289 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1294 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1296 * amd64-tdep.c (amd64_classify): Classify complex types.
1297 (amd64_return_value): Handle the COMPLEX_X87 class.
1299 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1301 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1302 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1304 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1306 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1308 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1309 to amd64_windows_auto_wide_charset.
1311 2012-10-23 Yao Qi <yao@codesourcery.com>
1313 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1314 * event-top.h: Remove its declaration.
1315 (async_request_quit): Call mark_async_signal_handler instead of
1316 mark_async_signal_handler_wrapper.
1317 (async_do_nothing, async_disconnect): Likewise.
1318 (async_stop_sig): Likewise.
1319 * remote.c (handle_remote_sigint): Likewise.
1320 (handle_remote_sigint_twice): Likewise.
1322 2012-10-23 Yao Qi <yao@codesourcery.com>
1324 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1325 with 'static struct async_signal_handler *'.
1326 (sighup_token, sigquit_token, sigstp_token): Likewise.
1328 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1330 * gdbarch.sh (function_list): Use 'pstring' when printing
1331 a variable which could return NULL.
1332 * gdbarch.c: Regenerate.
1334 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1335 Tom Tromey <tromey@redhat.com>
1337 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1338 inneffective if condition by gdb assertion. Add function
1339 description comment.
1341 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1343 * parser-defs.h (struct exp_descriptor): Document constraint
1344 on return value for "op_name" callbacks.
1346 2012-10-18 Tom Tromey <tromey@redhat.com>
1348 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1349 * symtab.c (iterate_over_some_symtabs): Constify.
1350 * source.h (symtab_to_fullname): Return 'const char *'.
1351 * source.c (symtab_to_fullname): Return 'const char *'.
1352 * python/py-symtab.c (stpy_fullname): Constify.
1353 * cli/cli-cmds.c (edit_command): Constify.
1354 * breakpoint.c (print_breakpoint_location)
1355 (update_static_tracepoint): Constify.
1357 2012-10-18 Tom Tromey <tromey@redhat.com>
1359 * breakpoint.c (compare_breakpoints): Fix comparison.
1361 2012-10-18 Tom Tromey <tromey@redhat.com>
1363 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1364 gdb_wchar_t to convert_between_encodings.
1366 2012-10-17 Yao Qi <yao@codesourcery.com>
1368 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1369 more parameter 'inferior'.
1370 * corefile.c (write_memory_with_notification): Caller update.
1372 * mi/mi-cmd-var.c: Include "mi-main.h".
1373 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1374 to 1 and restore it later.
1375 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1376 and "data-write-memory-bytes.
1377 * mi/mi-interp.c: Include objfiles.h.
1378 (mi_interpreter_init): Call observer_attach_memory_changed.
1379 (mi_memory_changed): New.
1380 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1383 * NEWS: Mention new MI notification "memory-changed".
1385 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1387 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1389 2012-10-15 Doug Evans <dje@google.com>
1391 New option -nh: inhibit loading of ~/.gdbinit.
1392 * NEWS: Mention -nh.
1393 * main.c (captured_main): Recognize and process -nh.
1394 (print_gdb_help): Mention -nh.
1395 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1397 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1401 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1403 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1404 nor pc_regnum_from_eax.
1405 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1406 nor pc_regnum_from_eax.
1408 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 Fix entry values resolving in inlined frames.
1411 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1412 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1415 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1417 * configure.ac: Build with -DMS_WIN64 if building with Python
1418 enabled using GCC on amd64-windows.
1419 * configure: Regenerate.
1421 2012-10-15 Tom Tromey <tromey@redhat.com>
1424 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1427 2012-10-15 Tom Tromey <tromey@redhat.com>
1430 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1432 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1434 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1435 reset thread numbering back to 1.
1437 2012-10-11 Doug Evans <dje@google.com>
1439 PR breakpoints/14643.
1440 * linespec.c (struct ls_parser): New member keyword_ok.
1441 (linespec_lexer_lex_string): Add comment.
1442 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1444 (parse_linespec): Set keyword_ok.
1446 2012-10-10 Doug Evans <dje@google.com>
1448 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1449 "0x" prefix on address in log message.
1451 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1452 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1453 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1454 (lookup_dwo_file): Add const to dwo_name parameter.
1455 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1457 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1459 Fix crash during stepping on ppc32.
1460 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1463 2012-10-03 Doug Evans <dje@google.com>
1466 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1468 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1470 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1471 output and use uint32_t not long to ensure 4 byte size.
1473 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1475 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1478 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1480 * target.c (simple_search_memory): Include access length in
1483 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1484 Edjunior Machado <emachado@linux.vnet.ibm.com>
1487 * solib.c (solib_find): Prevent GDB from loading native libraries when
1488 debugging a cross-target corefile.
1490 2012-09-28 selven <pcthegreat@gmail.com>
1492 Make definition match declaration.
1494 * regcache.c (regcache_register_status): Change return type to
1495 enum register_status.
1497 2012-09-28 Yao Qi <yao@codesourcery.com>
1499 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1500 write_memory_with_notification instead of write_memory.
1501 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1502 instead of target_write_memory.
1504 2012-09-28 Yao Qi <yao@codesourcery.com>
1506 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1507 when the length of content is not an even number.
1509 2012-09-27 Tom Tromey <tromey@redhat.com>
1511 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1512 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1514 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1516 * sol-thread.c (sol_thread_fetch_registers)
1517 (sol_thread_store_registers): Delete commented out code.
1519 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1521 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1522 Move these functions to sparc-sol-thread.c.
1523 * sparc-sol-thread.c: New file.
1524 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1525 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1527 * configure: Regenerate.
1529 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1531 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1532 Remove commented-out code.
1534 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1536 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1537 Enable this code for sparc hosts only.
1539 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1541 * procfs.h (procfs_find_LDT_entry): Add declaration.
1542 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1543 function procfs_find_LDT_entry.
1545 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1547 * procfs.c (proc_get_LDT_entry): Make static.
1549 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1551 * procfs.c (proc_find_memory_regions): Fix declaration.
1553 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1555 * amd64-tdep.c (amd64_return_value): Revert previous change
1556 that used TYPE_LENGTH directly.
1557 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1558 (bfin_store_return_value): Likewise.
1559 * cris-tdep.c (cris_store_return_value): Likewise.
1560 (cris_extract_return_value): Likewise.
1561 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1562 * hppa-tdep.c (hppa64_return_value): Likewise.
1563 * lm32-tdep.c (lm32_store_return_value): Likewise.
1564 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1565 * spu-tdep.c (spu_value_from_register): Likewise.
1566 * vax-tdep.c (vax_return_value): Likewise.
1568 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1570 * gdbtypes.c (lookup_array_range_type): Expand parameters
1571 LOW_BOUND and HIGH_BOUND to LONGEST.
1572 (lookup_string_range_type): Likewise.
1573 * gdbtypes.h (lookup_array_range_type): Likewise.
1574 (lookup_string_range_type): Likewise.
1575 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1576 Expand HIGHBOUND to ssize_t.
1577 (value_string): Likewise.
1578 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1579 (value_string): Likewise.
1581 2012-09-27 Yao Qi <yao@codesourcery.com>
1583 PR breakpoints/13898
1584 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1585 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1586 per breakpoint type.
1588 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1590 * procfs.c: Add gdb_bfd header.
1591 * rs6000-nat.c: Likewise.
1592 * solib-pa64.c: Likewise.
1593 * spu-linux-nat.c: Likewise.
1594 * windows-nat.c: Likewise.
1596 2012-09-26 Tom Tromey <tromey@redhat.com>
1598 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1600 2012-09-26 Tom Tromey <tromey@redhat.com>
1602 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1603 (read_common_block): Handle child DIEs with
1604 DW_AT_data_member_location.
1605 (new_symbol_full): Add special case for common blocks.
1607 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 Tom Tromey <tromey@redhat.com>
1610 * dwarf2read.c (read_common_block): Rewrite.
1611 (new_symbol_full): Handle DW_TAG_common_block.
1612 * f-lang.c (head_common_list, find_common_for_function):
1614 * f-lang.h (struct common_entry, struct saved_f77_common,
1615 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1616 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1617 BLANK_COMMON_NAME_LOCAL): Remove.
1618 (struct common_block): New.
1619 * f-valprint.c (list_all_visible_commons): Remove.
1620 (info_common_command_for_block): New function.
1621 (info_common_command): Use it.
1622 * stack.c (iterate_over_block_locals): Special case for
1623 COMMON_BLOCK_DOMAIN.
1624 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1626 (struct general_symbol_info) <value.common_block>: New field.
1627 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1629 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1630 Tom Tromey <tromey@redhat.com>
1632 * f-lang.c (allocate_saved_bf_node,
1633 allocate_saved_function_node, allocate_saved_f77_common_node,
1634 allocate_common_entry_node, tail_common_list, current_common,
1635 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1636 tmp_bf_ptr, add_common_block, add_common_entry,
1637 find_first_common_named, patch_common_entries,
1638 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1639 global_remote_debug, get_bf_for_fcn, saved_function_list,
1640 saved_function_list_end, clear_function_list, struct saved_fcn,
1641 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1642 SAVED_BF, SAVED_BF_PTR): Remove.
1643 * f-lang.h (tail_common_list, current_common,
1644 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1645 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1646 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1647 real_main_c_value): Remove.
1648 * f-valprint.c (there_is_a_visible_common_named): Remove.
1650 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1652 * breakpoint.c (update_global_location_list): Ignore previous
1653 duplicate status of a breakpoint when starting a new scan for
1654 duplicate breakpoints.
1656 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1657 PR breakpoints/14419
1658 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1659 support LLVM compiler.
1661 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1663 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1664 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1665 (bfin_store_return_value): Likewise.
1666 * cris-tdep.c (cris_store_return_value): Likewise.
1667 (cris_extract_return_value): Likewise.
1668 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1669 * hppa-tdep.c (hppa64_return_value): Likewise.
1670 * lm32-tdep.c (lm32_store_return_value): Likewise.
1671 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1672 * spu-tdep.c (spu_value_from_register): Likewise.
1673 * vax-tdep.c (vax_return_value): Likewise.
1675 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1677 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1678 parameter LEN to ssize_t.
1680 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1682 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1684 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1686 (alpha_store_return_value): Likewise.
1687 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1688 (amd64_push_arguments): Likewise.
1689 * ax-gdb.c (gen_trace_static_fields): Likewise.
1690 (gen_traced_pop): Likewise.
1691 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1692 * breakpoint.c (update_watchpoint): Likewise.
1693 * findcmd.c (parse_find_args): Use local variable for type
1695 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1696 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1697 (h8300_store_return_value): Likewise.
1698 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1699 Use i386_darwin_arg_type_alignment directly.
1700 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1701 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1702 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1703 (m68hc11_extract_return_value): Likewise.
1704 * mep-tdep.c (mep_push_dummy_call): Likewise.
1705 * printcmd.c (float_type_from_length): Likewise.
1706 * s390-tdep.c (s390_value_from_register): Likewise.
1707 * stack.c (read_frame_arg): Likewise.
1708 * tracepoint.c (encode_actions_1): Likewise.
1709 * valops.c (value_fetch_lazy): Use local variable for type
1710 instead of length. Use TYPE_LENGTH directly.
1711 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1713 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1715 * symtab.c (skip_prologue_sal): Fix typo in comment.
1717 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1719 * linespec.c (create_sals_line_offset): Fix typo in comment.
1721 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1723 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1724 use plongest to print the array size.
1726 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1728 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1729 * p-valprint.c (pascal_type_print_base): Likewise.
1731 2012-09-22 Yao Qi <yao@codesourcery.com>
1733 * remote.c (remote_get_trace_status): Remove setting default
1734 values of fields of 'ts'.
1736 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 Fix internal error on canonicalization of clang types.
1739 * cp-name-parser.y (operator): New comment at make_operator call for
1740 new, delete, new[] and delete[].
1741 (exp): Use "sizeof ". Add new comment at make_operator call.
1743 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1745 Fix disassemble without parameters in tailcall frame.
1746 * cli/cli-cmds.c (disassemble_current_function): Use
1747 get_frame_address_in_block.
1749 2012-09-21 Tom Tromey <tromey@redhat.com>
1751 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1752 TYPE_CODE_UNION>: Unify, removing a goto.
1754 2012-09-21 Tom Tromey <tromey@redhat.com>
1756 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1758 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1760 * findvar.c (read_frame_register_value): Mark the result value as
1761 optimized out if any of the input registers have been optimized out.
1763 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1765 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1767 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1769 * eval.c (evaluate_subexp_standard): Eliminate single-use
1772 2012-09-21 Yao Qi <yao@codesourcery.com>
1774 * mi/mi-interp.c: Declare mi_record_changed.
1775 (mi_interpreter_init): Call observer_attach_record_changed.
1776 (mi_record_changed): New.
1777 * record.c (record_open): Call observer_notify_record_changed.
1778 (cmd_record_stop): Call observer_notify_record_changed.
1781 2012-09-20 Tom Tromey <tromey@redhat.com>
1784 * python/python.c (finalize_python): New function.
1785 (_initialize_python): Make a final cleanup.
1787 2012-09-19 Doug Evans <dje@google.com>
1789 * buildsym.h (param_symbols): Delete, unused.
1790 (context_stack): Delete member "params", unused.
1791 * buildsym.c (push_context): Update.
1792 * dwarf2read.c (read_func_scope): Update.
1794 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1796 * sh-tdep.c (sh_register_convert_to_virtual)
1797 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1798 all callers. Just do a memcpy if not the little-endian case.
1800 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1801 set_gdbarch_double_format and set_gdbarch_long_double_format.
1802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1803 set_gdbarch_double_format.
1804 * sh-tdep.c (sh_gdbarch_init): Likewise.
1806 * NEWS: Document the removal of SH's 'regs' command.
1807 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1810 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1812 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1815 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1817 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1818 language when iterating over symbols.
1820 2012-09-18 Yao Qi <yao@codesourcery.com>
1822 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1823 (mi_interpreter_init): Call observer_attach_tsv_created and
1824 observer_attach_tsv_deleted.
1825 (mi_tsv_created, mi_tsv_deleted): New.
1826 * tracepoint.c (delete_trace_state_variable): Call
1827 observer_notify_tsv_deleted.
1828 (trace_variable_command): Call observer_notify_tsv_created.
1829 (delete_trace_variable_command): Call
1830 observer_notify_tsv_deleted.
1831 (create_tsv_from_upload): Call observer_notify_tsv_created.
1834 2012-09-18 Yao Qi <yao@codesourcery.com>
1836 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1837 if traceframe changed.
1838 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1840 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1841 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1842 'traceframe_changed'.
1843 (mi_traceframe_changed): New.
1844 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1846 * NEWS: Mention the new MI notification.
1848 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1850 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1852 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1854 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1855 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1856 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1857 Extend code also for PaX support. Convert all gdb_assert to warning
1860 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1862 Implement auto-load user conveniences suggested by Doug Evans.
1863 * auto-load.c: Include top.h.
1864 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1865 (_initialize_auto_load): New variable scripts_directory_help. Mention
1866 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1867 scripts-directory. Document in online help one can use also files for
1868 set auto-load safe-path.
1869 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1870 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1872 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1874 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1877 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1879 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1880 ELTLEN and use TYPE_LENGTH directly.
1881 (m2_val_print): Likewise.
1882 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1883 variable LEN and use TYPE_LENGTH directly.
1884 (m68k_svr4_store_return_value): Likewise.
1885 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1886 ARGLEN and use TYPE_LENGTH directly.
1887 (mips_o64_push_dummy_call): Likewise.
1888 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1889 variable LENGTH and use TYPE_LENGTH directly.
1890 (s390_function_arg_float): Likewise.
1891 (s390_function_arg_integer): Likewise.
1892 (s390_push_dummy_call): Likewise.
1893 (s390_return_value_convention): Likewise.
1894 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1895 TYPE_LENGTH directly.
1897 2012-09-17 Yao Qi <yao@codesourcery.com>
1899 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1900 Update comment to add_setshow_integer_cmd.
1901 * cli/cli-setshow.c (do_set_command): Handle case
1902 'var_zuinteger_unlimited'.
1903 (do_show_command): Likewise.
1904 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1905 for command 'remotetimeout'.
1906 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1908 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1909 for command 'set listsize'.
1911 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1913 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1916 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1919 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1920 (frame_pop): Drop also TAILCALL_FRAME frames.
1921 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1923 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1924 Pedro Alves <palves@redhat.com>
1927 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1928 function start if we are already at function start. Both for
1929 reverse-next and for reverse-step into function without line number
1932 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 Code cleanup - rename 'inline' depth to 'artificial' depth.
1935 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1936 frame_id_artificial_p, extend the comment.
1937 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1938 * frame.c (fprint_frame_id): Rename at a user, change debug output
1939 text to "artificial=".
1940 (skip_inlined_frames): Rename to ...
1941 (skip_artificial_frames): ... here. Extend the comment.
1942 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1943 (frame_id_inlined_p): Rename to ...
1944 (frame_id_artificial_p): ... here. Rename at a user.
1945 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1946 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1948 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1950 (frame_id_inlined_p): Rename to ...
1951 (frame_id_artificial_p): ... here.
1952 * inline-frame.c (inline_frame_this_id): Rename at a user.
1954 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1956 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1957 vector variables using vector_size syntax rather than array
1960 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1962 * valarith.c (value_concat): Replace unsafe ALLOCA with
1965 2012-09-14 Pedro Alves <palves@redhat.com>
1967 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1969 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1971 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1972 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1973 data-directory as appropriate.
1975 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1977 * printcmd.c (ui_printf): Eliminate single-use variable
1980 2012-09-14 Yao Qi <yao@codesourcery.com>
1981 Pedro Alves <palves@redhat.com>
1983 * valops.c (value_assign): Move observer_notify_target_changed
1984 below to replace reinit_frame_cache.
1986 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1988 Refactor Python "gdb" module into a proper Python package, by
1989 introducing a new "_gdb" module for code implemented in C, and
1990 using reload/__import__ instead of exec.
1991 * python/lib/gdb/__init__.py: Import * from _gdb.
1992 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1993 prompt_hook, sys.argv): Moved from finish_python_initialization.
1994 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1995 (packages, auto_load_packages): New list and function replacing
1996 module_dict and auto-loading code, using __file__ instead of
1997 gdb.PYTHONDIR and reload/__import__ instead of exec.
1998 (GdbSetPythonDirectory): Replacing function of the same name
1999 from finish_python_initialization, using reload/__import__ instead
2000 of exec, as well as call auto_load_packages.
2001 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2002 gdb_python_module and not gdb_module.
2003 * python/python-internal.h (gdb_python_module): Declare.
2004 * python/python.c (gdb_python_module): New global.
2005 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2006 (_initialize_python): Rename gdb module to _gdb.
2007 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2008 (finish_python_initialization): Move Python code to
2009 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2012 2012-09-13 Pedro Alves <palves@redhat.com>
2014 * Makefile.in (COMMON_OBS): Add registry.o.
2015 * registry.c: New file.
2016 * registry.h (struct registry_container): Declare.
2017 (registry_data_callback): New typedef.
2018 (struct registry_data, struct registry_data_registration, struct
2019 registry_data_registry): New type.
2020 (register_data_with_cleanup, registry_alloc_data)
2021 (registry_callback_adaptor, registry_clear_data)
2022 (registry_container_free_data, registry_set_data, registry_data):
2024 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2025 the new common structures and functions.
2026 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2029 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2031 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2032 there is an error inserting hardware breakpoints and use the
2033 error message from the target.
2035 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2036 Catch this exception and print the error message contained within. Do not
2037 print the default hardware error breakpoint message in this case.
2039 2012-09-12 Doug Evans <dje@google.com>
2041 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2044 2012-09-11 Doug Evans <dje@google.com>
2046 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2047 .gdb_index symbol attributes if there are none.
2049 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2051 * symtab.h (struct minimal_symbol) [has_size]: New field.
2052 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2053 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2054 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2055 minimal symbols if the symbol's size is actually known.
2056 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2057 of msymbol's size field. Add comment.
2058 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2059 SET_MSYMBOL_SIZE to set the minimal symbol size.
2061 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2063 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2064 minimal_symbol struct object, rather than setting some of its
2067 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2069 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2070 passed_a_ptr flag when displaying typedef types.
2072 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2074 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2075 the optimized_out flag is preserved.
2077 2012-09-10 Anthony Green <green@moxielogic.com>
2079 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2080 prologue changes in GCC.
2082 2012-09-10 Keith Seitz <keiths@redhat.com>
2085 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2086 (BOOL_CONVERSION_BADNESS): ... this.
2087 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2088 (rank_one_type): Allow all boolean conversions
2089 permitted by the standard.
2091 2012-09-06 Tom Tromey <tromey@redhat.com>
2093 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2094 Don't decref py_objfile.
2096 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2098 Do not enable -lmcheck by default when Python is enabled with
2100 * configure.ac: (python_has_threads) New variable, by testing
2101 if WITH_THREAD is defined in Python.h.
2102 Move --enable-lmcheck after --with-python.
2103 Do not enable -lmcheck by default if python_has_threads=yes.
2104 Warn if --enable-lmcheck and python_has_threads=yes.
2105 * configure: Regenerate.
2107 2012-08-31 Yao Qi <yao@codesourcery.com>
2109 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2110 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2111 Update some commands.
2112 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2113 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2116 2012-08-31 Yao Qi <yao@codesourcery.com>
2118 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2120 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2122 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2124 2012-08-29 Doug Evans <dje@google.com>
2126 * main.c (print_gdb_help): Remove reference to
2127 --use-deprecated-index-sections.
2129 2012-08-28 Yao Qi <yao@codesourcery.com>
2131 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2132 (init_cmds): Call add_setshow_uinteger_cmd for command
2133 'max-user-call-depth'.
2134 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2135 declaration of 'max_user_call_depth'.
2136 * frame.c (backtrace_limit): Add 'unsigned'.
2137 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2139 * remote.c (remoteaddresssize): Add 'unsigned'.
2140 (remote_address_masked): Change local var 'address_size' to
2142 (_initialize_remote): Call add_setshow_uinteger_cmd for
2143 'remoteaddresssize'.
2144 * top.c (history_size): Add 'unsigned'.
2145 (show_commands): Change local variables to 'unsigned'.
2146 (set_history_size_command): Don't check history_size is negative.
2147 Adjust the condition to call unstifle_history and set history_size
2150 2012-08-28 Pedro Alves <palves@redhat.com>
2154 * infcmd.c (default_print_one_register_info): New, factored out
2155 from default_print_registers_info.
2156 (default_print_registers_info): Use it. Mark value unavailable if
2158 (registers_info): Print user registers with
2159 default_print_one_register_info.
2161 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2164 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2165 is not NULL before referencing it.
2167 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2169 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2170 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2173 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2174 Jan Kratochvil <jan.kratochvil@redhat.com>
2176 * auto-load.c (auto_load_objfile_script): Rename to ...
2177 (auto_load_objfile_script_1): ... here, change variable realname to
2178 parameter realname, document it, add return value, add variable retval.
2179 (auto_load_objfile_script): New function.
2181 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2183 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2184 followed by a whitespace.
2186 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2190 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2191 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2194 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2196 * memattr.c (create_mem_region): Fix memory region overlapping
2199 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2201 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2202 with xmalloc/cleanup.
2203 * mt-tdep.c (mt_push_dummy_call): Likewise.
2204 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2205 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2207 2012-08-24 Yao Qi <yao@codesourcery.com>
2209 * jv-exp.y (push_expression_name): Add "." at the end of error
2212 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2214 Document how to return from "python-interactive" to GDB.
2215 * python/python.c (_initialize_python): Update documentation.
2217 2012-08-23 Pedro Alves <palves@redhat.com>
2219 * infrun.c (_initialize_infrun) <handle command help text>:
2220 Mention that multiple signals are supported.
2222 2012-08-23 Pedro Alves <palves@redhat.com>
2224 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2227 2012-08-23 Yao Qi <yao@codesourcery.com>
2229 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2230 (tfind_1): Don't call registers_changed, set_traceframe_num,
2231 and clear_traceframe_info.
2232 Call set_current_traceframe.
2233 (set_current_traceframe): call set_traceframe_num.
2235 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2237 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2238 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2240 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2242 Enable readline in Python in a GDB-specific way and block the
2243 standard Python readline module to prevent conflicts with GDB.
2244 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2245 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2246 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2247 * python/py-gdb-readline.c: New file.
2248 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2250 * python/python.c (_initialize_python): Call
2251 gdbpy_initialize_gdb_readline.
2253 2012-08-22 Keith Seitz <keiths@redhat.com>
2255 * defs.h: Include build-gnulib/config.h
2257 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2259 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2262 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2264 Add a new "python-interactive" command that starts a standard
2265 Python interactive prompt with "pi" as alias, and add "py" as
2266 an alias to "python".
2267 * NEWS: Mention the new commands.
2268 * python/python.c (eval_python_command): New function.
2269 (python_interactive_command): For "python-interactive" with
2270 arguments, call eval_python_command. For "python-interactive"
2271 without arguments, call PyRun_InteractiveLoop.
2272 (_initialize_python): Add "python-interactive" command with
2273 "pi" as alias, and add "py" as an alias to "python".
2275 2012-08-22 Tom Tromey <tromey@redhat.com>
2277 * defs.h (quit_flag): Don't declare.
2278 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2279 (QUIT): Use new functions.
2280 * event-top.c (command_handler): Use clear_quit_flag.
2281 (handle_sigint): Use set_quit_flag.
2282 (async_request_quit): Use check_quit_flag. Don't check
2284 * exceptions.c (throw_exception): Use clear_quit_flag.
2285 * main.c (captured_main): Use clear_quit_flag.
2286 * python/python.c (clear_quit_flag, set_quit_flag)
2287 (check_quit_flag): New functions.
2288 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2290 * remote.c (remote_wait_as): Use check_quit_flag,
2292 (remote_start_remote): Call QUIT.
2293 * symfile.c (load_progress): Use check_quit_flag.
2294 * top.c (command_loop): Use clear_quit_flag.
2295 (command_line_input): Call QUIT.
2296 * utils.c (quit_flag): Conditionally define.
2297 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2299 (prompt_for_continue): Call QUIT. Use quit, not
2301 * remote-mips.c (mips_expect_timeout): Call QUIT.
2302 * monitor.c (monitor_expect): Call QUIT.
2304 2012-08-22 Tom Tromey <tromey@redhat.com>
2306 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2307 (async_init_signals): Update.
2308 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2309 (SIGWINCH_HANDLER_BODY): Remove.
2311 2012-08-22 Tom Tromey <tromey@redhat.com>
2313 * jit.c (jit_object_close_impl): Don't malloc the objfile
2315 * objfiles.c (allocate_objfile): Don't malloc the objfile
2317 (free_objfile): Don't free the objfile name.
2318 * objfiles.h (struct objfile) <name>: Update comment.
2319 * symfile.c (reread_symbols): Fix reference counting. Don't
2320 malloc objfile name.
2322 2012-08-22 Tom Tromey <tromey@redhat.com>
2324 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2325 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2326 (symfile_bfd_open): Likewise.
2327 (generic_load): Likewise.
2328 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2329 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2331 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2333 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2334 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2335 (pmon_load_fast): Likewise.
2336 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2337 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2338 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2339 (macho_check_dsym): Likewise.
2340 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2341 (m32r_upload_command): Likewise.
2342 * gdb_bfd.h (gdb_bfd_cache): Declare.
2343 * gdb_bfd.c (struct gdb_bfd_data): New.
2344 (gdb_bfd_cache): New global.
2345 (struct gdb_bfd_cache_search): New.
2346 (hash_bfd): New function.
2348 (gdb_bfd_open): Likewise.
2349 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2350 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2352 * exec.c (exec_file_attach): Use gdb_bfd_open.
2353 * dsrec.c (load_srec): Use gdb_bfd_open.
2355 2012-08-22 Tom Tromey <tromey@redhat.com>
2357 * dwarf2read.c (macro_start_file): Update.
2358 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2359 (free_objfile_per_bfd_storage): Destroy macro_cache.
2360 (allocate_objfile, free_objfile): Update.
2361 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2363 (struct objfile) <macro_cache>: Remove.
2364 * symfile.c (reread_symbols): Update.
2365 * symmisc.c (print_symbol_bcache_statistics): Update.
2366 (print_objfile_statistics): Update.
2368 2012-08-22 Tom Tromey <tromey@redhat.com>
2370 * elfread.c (elf_symtab_read): Update.
2371 * objfiles.c (objfiles_bfd_data): New global.
2372 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2373 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2374 (allocate_objfile, free_objfile): Update.
2375 (_initialize_objfiles): Initialize objfiles_bfd_data.
2376 * objfiles.h (struct objfile_per_bfd_storage): New.
2377 (struct objfile) <per_bfd>: New field.
2378 <filename_cache>: Remove.
2379 (set_objfile_per_bfd): Declare.
2380 * symfile.c (reread_symbols): Update. Call
2381 set_objfile_per_bfd.
2382 (allocate_symtab): Update.
2383 * symmisc.c (print_symbol_bcache_statistics): Update.
2384 (print_objfile_statistics): Print the size of the BFD obstack.
2386 2012-08-22 Tom Tromey <tromey@redhat.com>
2388 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2389 * gdb_bfd.c: Use DEFINE_REGISTRY.
2390 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2391 (gdb_bfd_ref): Call bfd_alloc_data.
2392 (gdb_bfd_unref): Call bfd_free_data.
2394 2012-08-22 Tom Tromey <tromey@redhat.com>
2396 * registry.h (struct registry_fields): New.
2397 (REGISTRY_FIELDS): Redefine.
2398 (REGISTRY_ACCESS_FIELD): New macro.
2399 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2402 2012-08-22 Tom Tromey <tromey@redhat.com>
2404 * auto-load.c (_initialize_auto_load): Update.
2405 * solib-svr4.c (_initialize_svr4_solib): Update
2406 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2407 * solib-darwin.c (_initialize_darwin_solib): Update.
2408 * registry.h: New file.
2409 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2410 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2411 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2412 (register_program_space_data_with_cleanup)
2413 (register_program_space_data, program_space_alloc_data)
2414 (clear_program_space_data, set_program_space_data)
2415 (program_space_data): Don't declare.
2416 * progspace.c: Use DEFINE_REGISTRY.
2417 (struct program_space_data, struct
2418 program_space_data_registration, struct
2419 program_space_data_registry, program_space_data_registry)
2420 (register_program_space_data_with_cleanup)
2421 (register_program_space_data, program_space_alloc_data)
2422 (program_space_free_data, clear_program_space_data)
2423 (set_program_space_data, program_space_data): Remove.
2424 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2425 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2426 (register_objfile_data_with_cleanup, register_objfile_data)
2427 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2429 * objfiles.c: Use DEFINE_REGISTRY.
2430 (struct objfile_data, struct objfile_data_registration, struct
2431 objfile_data_registry, objfile_data_registry)
2432 (register_objfile_data_with_cleanup, register_objfile_data)
2433 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2434 (set_objfile_data, objfile_data): Remove.
2435 (_initialize_objfiles): Update.
2436 * jit.c (_initialize_jit): Update.
2437 * inflow.c (_initialize_inflow): Update.
2438 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2439 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2440 (register_inferior_data_with_cleanup, register_inferior_data)
2441 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2443 * inferior.c: Use DEFINE_REGISTRY.
2444 (struct inferior_data, struct inferior_data_registration, struct
2445 inferior_data_registry, inferior_data_registry)
2446 (register_inferior_data_with_cleanup, register_inferior_data)
2447 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2448 (set_inferior_data, inferior_data): Remove.
2449 * auxv.c (_initialize_auxv): Update.
2450 * ada-lang.c (_initialize_ada_language): Update.
2451 * breakpoint.c (_initialize_breakpoint): Update.
2452 * i386-nat.c (i386_use_watchpoints): Update.
2454 2012-08-22 Tom Tromey <tromey@redhat.com>
2456 * exec.c (exec_close, exec_file_attach): Update.
2457 (add_to_section_table): Initialize 'key' field.
2458 (add_target_sections, remove_target_sections): Add 'key' argument.
2459 * exec.h (add_target_sections, remove_target_sections): Add
2461 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2462 (reload_shared_libraries_1): Update.
2463 * target.h (struct target_section) <key>: New field.
2465 2012-08-22 Tom Tromey <tromey@redhat.com>
2467 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2469 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2471 * symfile.c (allocate_symtab): Use host_address_to_string
2472 function instead of cast of pointer to long which is not
2473 compatible with x86_64-w64-mingw32 build.
2475 2012-08-19 Andrew Pinski <apinski@cavium.com>
2477 * mips-tdep.c (is_octeon): New function.
2478 (is_octeon_bbit_op): New function.
2479 (mips32_next_pc): Handle Octeon's bbit instructions.
2480 (mips32_instruction_has_delay_slot): Likewise.
2482 2012-08-19 Andrew Pinski <apinski@cavium.com>
2484 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2485 before the function.
2487 2012-08-19 Andrew Pinski <apinski@cavium.com>
2489 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2491 2012-08-19 Keith Seitz <keiths@redhat.com>
2494 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2495 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2497 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2499 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2500 The typo broke "make TAGS".
2502 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2506 2012-08-17 Keith Seitz <keiths@redhat.com>
2509 * gdbtypes.c (strict_type_checking): New variable.
2510 (show_strict_type_checking): New function.
2511 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2512 if strict type checking is disabled.
2513 (_initialize_gdbtypes): Add "check type" subcommand.
2514 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2516 2012-08-17 Keith Seitz <keiths@redhat.com>
2518 * language.h (type_mode): Remove.
2519 (type_check): Remove.
2520 (struct language_defn): Remove la_type_check.
2521 (STRICT_TYPE): Remove unused macro.
2522 (type_error): Remove.
2523 * language.c (set_type_range_case): Renamed to ...
2524 (set_range_case): ... this. Update all callers.
2525 Remove type_mode/type_check.
2526 (type_mode): Remove.
2527 (type_check): Remove.
2528 (show_type_command): Remove.
2529 (set_type_command): Remove.
2530 (language_info): Remove type checking output.
2531 (type_error): Remove unused function.
2532 (range_error): Update comment.
2533 (unknown_language_defn): Remove la_type_check.
2534 (auto_language_defn): Likewise.
2535 (local_language_defn): Likewise.
2536 (_initialize_language): Remove "check type" subcommand.
2537 * ada-lang.c (ada_language_defn): Remove la_type_check.
2538 * c-lang.c (c_language_defn): Likewise.
2539 (cplus_language_defn): Likewise.
2540 (asm_language_defn): Likewise.
2541 (minimal_language_defn): Likewise.
2542 * d-lang.c (d_language_defn): Likewise.
2543 * f-lang.c (f_language_defn): Likewise.
2544 * go-lang.c (go_language_defn): Likewise.
2545 * jv-lang.c (java_language_defn): Likewise.
2546 * m2-lang.c (m2_language_defn): Likewise.
2547 * objc-lang.c (objc_language_defn): Likewise.
2548 * opencl-lang.c (opencl_language_defn): Likewise.
2549 * p-lang.c (pascal_language_defn): Likewise.
2551 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2553 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2555 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2557 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2559 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2560 using the regache. Use ia64_hpux_get_register_from_save_state_t
2561 to access the bsp and bspstore registers if not.
2563 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2565 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2566 * breakpoint.c (detach_breakpoints): Change pid parameter into
2567 a ptid. Adjust code accordingly.
2568 * infrun.c (handle_inferior_event): Delete variable child_pid.
2569 Update call to detach_breakpoints to pass the child ptid for
2571 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2572 assert that inferior_ptid's lwp is zero.
2573 (linux_handle_extended_wait): Update call to detach_breakpoints.
2574 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2577 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2579 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2580 parent, only call detach_breakpoints if tts.tts_event ==
2583 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2585 * dwarf2-frame.c (dwarf2_frame_cache): Use
2586 get_frame_address_in_block instead of get_frame_pc as
2587 the bound for executing the frame's FDE.
2589 2012-08-16 Yao Qi <yao@codesourcery.com>
2591 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2592 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2593 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2594 (c_type_print_varspec_suffix): Likewise.
2595 * eval.c (evaluate_subexp_standard): Likewise.
2596 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2597 (f_type_print_varspec_suffix): Likewise.
2598 * gdbtypes.c (is_scalar_type): Likewise.
2599 (recursive_dump_type): Likewise.
2600 * infcall.c (value_arg_coerce): Likewise.
2601 * m2-valprint.c (m2_val_print): Likewise.
2602 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2603 (pascal_type_print_varspec_suffix): Likewise.
2604 (pascal_type_print_base): Likewise.
2605 * p-valprint.c (pascal_val_print): Likewise.
2606 (pascal_val_print): Likewise.
2607 * valops.c (value_slice): Likewise.
2608 * valprint.c (scalar_type_p): Likewise.
2609 * valarith.c (value_bitstring_subscript): Remove.
2610 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2611 Remove comment on TYPE_CODE_BITSTRING.
2613 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2614 TYPE_CODE_BITSTRING.
2616 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2619 2012-08-16 Yao Qi <yao@codesourcery.com>
2621 * tracepoint.c (trace_find_none_command): Remove.
2622 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2624 2012-08-16 Yao Qi <yao@codesourcery.com>
2626 * remote.c (handle_notification): Remove parameter 'length'.
2627 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2629 2012-08-15 Keith Seitz <keiths@redhat.com>
2631 * gdbtypes.c (opaque_type_resolution): Make static.
2632 Add missing comment.
2633 (overload_debug): Add missing comment.
2634 (show_opaque_type_resolution): Likewise.
2635 (show_overload_debug): Likewise.
2636 (print_bit_vector): Remove unnecessary forward declaration.
2637 (print_arg_types): Likewise.
2638 (dump_fn_fieldlists): Likewise.
2639 (print_cplus_stuff): Likewise.
2641 2012-08-15 Tom Tromey <tromey@redhat.com>
2643 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2644 (gdb_bfd_ref): Initialize new field.
2645 (gdb_bfd_unref): Unref the archive BFD.
2646 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2649 2012-08-15 Tom Tromey <tromey@redhat.com>
2652 * python/py-bpevent.c (create_breakpoint_event_object): Update
2654 * python/py-event.c (evpy_add_attribute): Update comment.
2655 * python/py-exitedevent.c (create_exited_event_object): Fix
2656 reference counting and error handling.
2657 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2658 Fix reference counting.
2659 * python/py-signalevent.c (create_signal_event_object): Fix
2660 reference counting and error handling.
2661 * python/py-stopevent.c (emit_stop_event): Fix reference
2663 * python/py-threadevent.c (get_event_thread): Return a
2665 * python/py-type.c (convert_field): Fix reference counting.
2667 2012-08-15 Tom Tromey <tromey@redhat.com>
2669 * dwarf2read.c (dwarf_decode_macro_bytes)
2670 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2673 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2675 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2676 stepi, nexti, finish, next, step, jump, and continue commands.
2677 * infrun.c (_initialize_infrun): Update help text for the handle
2680 2012-08-14 Doug Evans <dje@google.com>
2682 * gdbtypes.c (struct extra): Delete, unused.
2684 * gdbtypes.c: Whitespace cleanup.
2685 (address_space_name_to_int): Remove "extern" from definition.
2686 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2688 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2689 TYPE_POINTER_TYPE (type).
2691 2012-08-14 Gary Benson <gbenson@redhat.com>
2693 * solib-svr4.c (svr4_free_library_list): Use free_so.
2695 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2697 * .gitignore: Add go-exp.c.
2699 2012-08-13 Doug Evans <dje@google.com>
2701 * value.c (show_convenience): Tweak comment.
2702 (_initialize_values): Mention convenience functions in the help text
2703 for "show convenience".
2705 2012-08-13 Yao Qi <yao@codesourcery.com>
2707 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2708 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2710 * eval.c (evaluate_subexp_standard): Likewise.
2711 * expprint.c (print_subexp_standard): Likewise.
2712 (dump_subexp_body_standard): Likewise.
2713 * parse.c (operator_length_standard): Likewise.
2715 2012-08-13 Yao Qi <yao@codesourcery.com>
2717 * std-operator.def: Remove OP_BITSTRING.
2718 * breakpoint.c (watchpoint_exp_is_const): Update.
2719 * eval.c (evaluate_subexp_standard): Remove handling to
2721 * expprint.c (print_subexp_standard): Likewise.
2722 (dump_subexp_body_standard): Likewise.
2723 * parse.c (operator_length_standard): Likewise.
2724 * valops.c (value_bitstring): Remove.
2725 * value.h: Remove the declaration of 'value_bitstring'.
2727 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2729 * linespec.c (find_methods): Remove unused variables `i1' and
2731 (decode_line_full): Likewise for `arg_start'.
2733 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2735 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2736 (zlib_decompress_section): Likewise for `section_data'.
2737 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2739 2012-08-10 Doug Evans <dje@google.com>
2741 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2742 * NEWS: Document them.
2743 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2745 * python/py-type.c (typy_array_1): New function.
2746 (typy_array): Call it.
2747 (typy_vector): New function.
2748 (type_object_methods): Add "vector".
2749 * python/lib/gdb/function/__init__.py: New file.
2750 * python/lib/gdb/function/strfns.py: New file.
2752 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2754 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2755 for TYPE_FIELD_BITPOS.
2756 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2758 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2761 * common/vec.h (VEC_merge): Define.
2762 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2763 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2764 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2765 * completer.c: Include gdb_signals.h.
2766 (signal_completer): Define.
2767 * completer.h (signal_completer): Add prototype.
2768 * infcmd.c (_initialize_infcmd): Assign the command
2769 completer for "signal" to handle_completer.
2770 * infrun.c: Include completer.h.
2771 (handle_completer): Define.
2772 (_initialize_infrun): Declare a new local variable c. Store the
2773 result of add_com("handle") to it. Assign the command
2774 completer for "handle" to handle_completer.
2776 2012-08-09 Yao Qi <yao@codesourcery.com>
2778 * cli/cli-decode.c (set_cmd_prefix): New.
2779 (lookup_cmd_for_prefixlist): New.
2780 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2781 of each cmd_list_element in *prefixlist.
2782 (add_setshow_cmd_full): set_cmd_prefix.
2783 (add_alias_cmd): Likewise.
2784 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2785 Declare 'auto_boolean_enums'.
2786 * cli/cli-setshow.c: Include "observer.h".
2787 (notify_command_param_changed_p): New.
2788 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2790 (do_setshow_command): Split it to ...
2791 (do_set_command, do_show_command): ... them. New.
2792 (do_set_command): Call observer_notify_command_param_changed if
2793 notify_command_param_changed_p returns true.
2794 (cmd_show_list): Caller update.
2795 * auto-load.c (set_auto_load_cmd): Likewise.
2796 * remote.c (show_remote_cmd): Likewise.
2797 * cli/cli-setshow.h: Update declarations.
2798 * top.c (execute_command): Call do_set_command and do_show_command.
2800 * NEWS: Mention new MI notification.
2801 * mi/mi-interp.c: Declare mi_command_param_changed.
2802 (mi_interpreter_init): Attach mi_command_param_changed to
2803 observer command_param_changed.
2804 (mi_command_param_changed): New.
2805 Remove mi_suppress_breakpoint_notifications.
2806 Define global variable mi_suppress_notification.
2807 (mi_breakpoint_created): Update.
2808 (mi_breakpoint_deleted): Likewise.
2809 (mi_breakpoint_modified): Likewise.
2810 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2811 'gdb-set' and set mi_suppress_notification.
2812 * mi/mi-main.h: (mi_suppress_notification): New struct.
2814 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2815 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2819 2012-08-09 Yao Qi <yao@codesourcery.com>
2821 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2822 (skiplist): Move it to skip.c.
2823 (init_cmd_lists): Remove code setting enablebreaklist and
2825 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2826 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2828 * gdbcmd.h: Likewise.
2829 * skip.c (_initialize_step_skip): Move 'skiplist' from
2832 2012-08-09 Yao Qi <yao@codesourcery.com>
2834 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2835 * gnu-nat.c, symfile.c: Likewise.
2837 2012-08-08 Aaron Gamble <agamble@google.com>
2839 * utils.c (prompt_for_continue_wait_time): New static global.
2840 (make_command_stats_cleanup): Initialize it.
2841 (report_command_stats): Subtract time waiting for user.
2842 (prompt_for_continue): Track time waiting for user.
2843 (defaulted_query): Track time waiting for user.
2845 2012-08-08 Doug Evans <dje@google.com>
2847 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2849 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2850 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2851 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2852 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2853 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2854 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2856 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2857 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2858 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2859 (dump_prefix_expression): Handle OP_TYPE.
2861 2012-08-08 Keith Seitz <keiths@redhat.com>
2863 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2866 2012-08-08 Doug Evans <dje@google.com>
2868 * linux-thread-db.c: #include "gdb_vecs.h".
2869 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2871 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2872 (thread_db_load_search): Use a vector to iterate over path elements.
2873 Handle text appearing after "$pdir".
2875 * gdb_string.h: Moved to ...
2876 * common/gdb_string.h: ... here.
2877 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2878 gdb_string.h and gdb_assert.h.
2880 2012-08-08 Yao Qi <yao@codesourcery.com>
2882 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2883 (tic6x_value_to_register): Likewise.
2884 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2885 and set_gdbarch_value_to_register.
2887 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2888 Jean-Marc Saffroy <saffroy@gmail.com>
2891 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2892 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2893 * gcore.c (gcore_create_callback): New function comment. Add modified
2894 parameter. Only write modified regions. Set SEC_READONLY exactly
2895 according to MODIFIED.
2896 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2897 the passed modified value to FUNC.
2898 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2899 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2900 first. New variables modified and has_anonymous. Parse the lines of
2901 smaps file. Add the passed MODIFIED value to FUNC.
2902 * procfs.c (find_memory_regions_callback): Add the passed modified
2905 2012-08-06 Tom Tromey <tromey@redhat.com>
2907 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2908 (dwarf2_frame_cache): Use it.
2909 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2910 cache initialization constraint.
2912 2012-08-06 Tom Tromey <tromey@redhat.com>
2915 * varobj.c (update_dynamic_varobj_children): Don't call
2918 2012-08-06 Tom Tromey <tromey@redhat.com>
2921 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2923 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2925 * NEWS: New entry for 'cd' default parameters.
2926 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2928 2012-08-03 Tom Tromey <tromey@redhat.com>
2930 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2933 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2935 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2936 to attempting lseek/write.
2937 (inf_child_fileio_pread): Likewise for pread.
2939 2012-08-02 Yao Qi <yao@codesourcery.com>
2941 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2942 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2943 add_setshow_zinteger_cmd.
2944 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2945 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2946 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2947 instead of add_setshow_zinteger_cmd.
2948 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2949 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2950 instead of add_setshow_zinteger_cmd.
2951 * frame.c (frame_debug): Add 'unsigned'.
2952 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2953 add_setshow_zinteger_cmd.
2954 * frame.h: Update the declaration of 'frame_debug'.
2955 * gdbtypes.c (overload_debug): Add 'unsigned'.
2956 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2957 add_setshow_zinteger_cmd.
2958 * inferior.h: Update declaration of 'debug_infrun'.
2959 * infrun.c (debug_infrun): Add 'unsigned'.
2960 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2961 add_setshow_zinteger_cmd.
2962 * jit.c (jit_debug): Add 'unsigned'.
2963 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2964 add_setshow_zinteger_cmd.
2965 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2966 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2967 instead of add_setshow_zinteger_cmd.
2968 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2969 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2970 add_setshow_zinteger_cmd.
2971 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2972 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2973 instead of add_setshow_zinteger_cmd.
2974 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2975 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2976 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2977 intead of add_setshow_zinteger_cmd.
2978 * mips-tdep.c (mips_debug): Add 'unsigned'.
2979 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2980 instead of add_setshow_zinteger_cmd.
2981 * monitor.c (monitor_debug): Add 'unsigned'.
2982 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2983 add_setshow_zinteger_cmd.
2984 * observer.c (observer_debug): Add 'unsigned'.
2985 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2986 add_setshow_zinteger_cmd.
2987 * parse.c (expressiondebug): Add 'unsigned'.
2988 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2989 add_setshow_zinteger_cmd.
2990 * record.c (record_debug): Add 'unsigned'.
2991 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2992 add_setshow_zinteger_cmd.
2993 * record.h: Update the declaration of 'record_debug'.
2994 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2995 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2996 add_setshow_zinteger_cmd.
2997 * serial.c (global_serial_debug_p): Add 'unsigned'.
2998 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2999 add_setshow_zinteger_cmd.
3000 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3001 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3002 add_setshow_zinteger_cmd.
3003 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3004 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3005 add_setshow_zinteger_cmd.
3006 * target.c (targetdebug): Add 'unsigned'.
3007 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3008 add_setshow_zinteger_cmd.
3009 * valops.c (overload_debug): Add 'unsigned'.
3010 * varobj.c (varobjdebug): Add 'unsigned'.
3011 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3012 add_setshow_zinteger_cmd.
3013 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3014 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3015 instead of add_setshow_zinteger_cmd.
3017 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3018 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3019 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3020 instead of add_setshow_zinteger_cmd.
3021 * gdbarch.c, gdbarch.h: Re-generated.
3023 2012-08-02 Yao Qi <yao@codesourcery.com>
3025 * nto-tdep.c: Don't include cli/cli-decode.h and
3027 (_initialize_nto_tdep): Remove.
3028 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3030 Remove macro nto_internal_debugging.
3032 2012-08-01 Richard Henderson <rth@redhat.com>
3034 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3035 (mep-*-*) [gdb_target_obs]: Likewise.
3037 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3039 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3040 linux_get_siginfo_type.
3042 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3046 (call_function_by_hand) <ON_STACK>: Call write_memory with
3047 gdbarch_breakpoint_from_pc, if possible.
3048 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3051 2012-07-31 Yao Qi <yao@codesourcery.com>
3053 * tracepoint.c: Add 'static' for some variables.
3055 2012-07-31 Yao Qi <yao@codesourcery.com>
3057 * go32-nat.c: Declare _initialize_go32_nat.
3058 * ser-go32.c: Declare _initialize_ser_dos.
3059 * top.c (do_chdir_cleanup): Add 'static'.
3061 2012-07-30 Keith Seitz <keiths@redhat.com>
3063 * linespec.c (linespec_lex_number): A number followed
3064 by quotes is a valid number, too.
3066 2012-07-30 Tom Tromey <tromey@redhat.com>
3068 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3070 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3072 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3073 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3075 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3077 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3078 invalid or reevaluated to prevent prevent references to possibly
3079 delete'd type objects being left in the varobj.
3081 2012-07-27 Tom Tromey <tromey@redhat.com>
3082 Jan Kratochvil <jan.kratochvil@redhat.com>
3084 * copying.awk: Print buffer-read-only and vi ro markers.
3085 * copying.c: Rebuild.
3086 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3087 * gdbarch.c, gdbarch.h: Rebuild.
3088 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3089 buffer-read-only and vi ro markers.
3090 * features/arm-with-iwmmxt.c: Rebuild.
3091 * features/arm-with-m-fpa-layout.c: Rebuild.
3092 * features/arm-with-m-vfp-d16.c: Rebuild.
3093 * features/arm-with-m.c: Rebuild.
3094 * features/arm-with-neon.c: Rebuild.
3095 * features/arm-with-vfpv2.c: Rebuild.
3096 * features/arm-with-vfpv3.c: Rebuild.
3097 * features/i386/amd64-avx-linux.c: Rebuild.
3098 * features/i386/amd64-avx.c: Rebuild.
3099 * features/i386/amd64-linux.c: Rebuild.
3100 * features/i386/amd64.c: Rebuild.
3101 * features/i386/i386-avx-linux.c: Rebuild.
3102 * features/i386/i386-avx.c: Rebuild.
3103 * features/i386/i386-linux.c: Rebuild.
3104 * features/i386/i386-mmx-linux.c: Rebuild.
3105 * features/i386/i386-mmx.c: Rebuild.
3106 * features/i386/i386.c: Rebuild.
3107 * features/i386/x32-avx-linux.c: Rebuild.
3108 * features/i386/x32-avx.c: Rebuild.
3109 * features/i386/x32-linux.c: Rebuild.
3110 * features/i386/x32.c: Rebuild.
3111 * features/mips-dsp-linux.c: Rebuild.
3112 * features/mips-linux.c: Rebuild.
3113 * features/mips64-dsp-linux.c: Rebuild.
3114 * features/mips64-linux.c: Rebuild.
3115 * features/rs6000/powerpc-32.c: Rebuild.
3116 * features/rs6000/powerpc-32l.c: Rebuild.
3117 * features/rs6000/powerpc-403.c: Rebuild.
3118 * features/rs6000/powerpc-403gc.c: Rebuild.
3119 * features/rs6000/powerpc-405.c: Rebuild.
3120 * features/rs6000/powerpc-505.c: Rebuild.
3121 * features/rs6000/powerpc-601.c: Rebuild.
3122 * features/rs6000/powerpc-602.c: Rebuild.
3123 * features/rs6000/powerpc-603.c: Rebuild.
3124 * features/rs6000/powerpc-604.c: Rebuild.
3125 * features/rs6000/powerpc-64.c: Rebuild.
3126 * features/rs6000/powerpc-64l.c: Rebuild.
3127 * features/rs6000/powerpc-7400.c: Rebuild.
3128 * features/rs6000/powerpc-750.c: Rebuild.
3129 * features/rs6000/powerpc-860.c: Rebuild.
3130 * features/rs6000/powerpc-altivec32.c: Rebuild.
3131 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3132 * features/rs6000/powerpc-altivec64.c: Rebuild.
3133 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3134 * features/rs6000/powerpc-cell32l.c: Rebuild.
3135 * features/rs6000/powerpc-cell64l.c: Rebuild.
3136 * features/rs6000/powerpc-e500.c: Rebuild.
3137 * features/rs6000/powerpc-e500l.c: Rebuild.
3138 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3139 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3140 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3141 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3142 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3143 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3144 * features/rs6000/powerpc-vsx32.c: Rebuild.
3145 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3146 * features/rs6000/powerpc-vsx64.c: Rebuild.
3147 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3148 * features/rs6000/rs6000.c: Rebuild.
3149 * features/s390-linux32.c: Rebuild.
3150 * features/s390-linux32v1.c: Rebuild.
3151 * features/s390-linux32v2.c: Rebuild.
3152 * features/s390-linux64.c: Rebuild.
3153 * features/s390-linux64v1.c: Rebuild.
3154 * features/s390-linux64v2.c: Rebuild.
3155 * features/s390x-linux64.c: Rebuild.
3156 * features/s390x-linux64v1.c: Rebuild.
3157 * features/s390x-linux64v2.c: Rebuild.
3158 * features/tic6x-c62x-linux.c: Rebuild.
3159 * features/tic6x-c62x.c: Rebuild.
3160 * features/tic6x-c64x-linux.c: Rebuild.
3161 * features/tic6x-c64x.c: Rebuild.
3162 * features/tic6x-c64xp-linux.c: Rebuild.
3163 * features/tic6x-c64xp.c: Rebuild.
3165 2012-07-27 Tom Tromey <tromey@redhat.com>
3167 * c-exp.y (classify_name): Avoid assignment in condition.
3169 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3171 * amd64-windows-tdep.c: Include "frame.h".
3172 (amd64_windows_skip_trampoline_code): New function.
3173 (amd64_windows_init_abi): Add trampoline registration.
3175 2012-07-27 Yao Qi <yao@codesourcery.com>
3177 * tracepoint.c (cur_traceframe_number): Remove.
3178 (set_tfile_traceframe): Remove.
3179 (tfile_trace_find, tfile_fetch_registers): Update callers.
3180 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3181 (tfile_open, tfile_trace_find): Likewise.
3183 2012-07-27 Yao Qi <yao@codesourcery.com>
3185 * thread.c (switch_to_thread): Don't call registers_changed.
3187 2012-07-26 Tom Tromey <tromey@redhat.com>
3189 * Makefile.in (SFILES): Remove objc-exp.y.
3190 (YYFILES): Remove objc-exp.c.
3191 (YYOBJ): Remove objc-exp.o.
3192 (local-maintainer-clean): Don't mention objc-exp.c.
3193 * c-exp.y: Include objc-lang.h.
3194 (%union) <class>: New field.
3195 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3196 (exp): Clone subscript production for OBJC_LBRAC. Add various
3197 Objective C productions.
3198 (msglist, msgarglist, msgarg): New productions.
3199 (array_mod, func_mod, operator): Clone productions for
3201 (parse_string_or_char): Handle '@' strings.
3202 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3203 (classify_name): Check la_name_of_this. Recognize ObjC class
3205 * objc-exp.y: Remove.
3206 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3207 * objc-lang.h (objc_parse, objc_error): Don't declare.
3209 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3211 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3213 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3215 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3218 2012-07-26 Tom Tromey <tromey@redhat.com>
3220 * copying.c: Rebuild.
3221 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3224 2012-07-26 Tom Tromey <tromey@redhat.com>
3226 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3228 (print_objfile_statistics): Likewise.
3229 (maintenance_print_symbols): Likewise.
3230 (maintenance_print_msymbols): Likewise.
3231 (maintenance_print_objfiles): Likewise.
3232 * psymtab.c (print_partial_symbols): Call QUIT.
3233 (maintenance_print_psymbols): Likewise. Don't modify
3235 * copying.c (show_copying_command): Don't modify immediate_quit.
3236 (show_warranty_command): Likewise.
3237 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3239 2012-07-26 Keith Seitz <keiths@redhat.com>
3241 * linespec.c (linespec_lexer_lex_number): The input
3242 is also a valid number if the next character is a comma
3245 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3247 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3250 2012-07-26 Tristan Gingold <gingold@adacore.com>
3252 * machoread.c: Include gdb_bfd.h.
3254 2012-07-26 Tristan Gingold <gingold@adacore.com>
3256 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3259 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3261 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3263 (dwarf2_evaluate_loc_desc): Likewise.
3264 (dwarf2_loc_desc_needs_frame): Likewise.
3265 (locexpr_describe_location_1): Likewise.
3266 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3268 (struct dwarf2_loclist_baton): Likewise.
3269 * dwarf2read.c (struct dwarf_block): Likewise.
3270 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3271 (decode_locdesc): Expand SIZE and I to size_t.
3273 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3275 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3277 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3279 * doublest.c (convert_doublest_to_floatformat): If the exponent
3280 is too small, treat the value as zero. If the exponent is too
3281 large, treat the value as infinity.
3283 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3285 * configure.ac: Add --enable-lmcheck configure option.
3286 * configure: Regenerate.
3288 2012-07-25 Tom Tromey <tromey@redhat.com>
3290 * NEWS: Mention maint info bfds.
3291 * gdb_bfd.c (all_bfds): New global.
3292 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3293 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3296 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3298 * configure.tgt: Add v850*-*-rtems*.
3300 2012-07-25 Tom Tromey <tromey@redhat.com>
3302 * macrotab.c (macro_bcache_str): Remove cast.
3304 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3306 * linespec.c (linespec_lexer_lex_number): Update comments,
3307 change the return and add check to make sure the input is
3308 the decimal numbers.
3309 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3310 false, call linespec_lexer_lex_string.
3312 2012-07-24 Tom Tromey <tromey@redhat.com>
3314 * symfile.c (symbol_file_add): Don't open BFD twice.
3316 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3318 * breakpoint.c (create_breakpoint): Store condition for pending
3321 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3323 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3324 (m68k_return_value): Handle complex types like structures.
3325 (m68k_svr4_return_value): Likewise.
3327 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3329 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3330 parameters to bfd_get_section_name.
3332 2012-07-24 Yao Qi <yao@codesourcery.com>
3334 * cli/cli-setshow.c: Handle case 'var_uinteger'
3335 and 'var_zuninteger' together. Handle case 'var_integer' and
3336 'var_zinteger' together.
3338 2012-07-23 Keith Seitz <keiths@redhat.com>
3340 * linespec.c (convert_linespec_to_sal): Don't add
3341 any symbols to the result vector if symbol_to_sal
3344 2012-07-23 Keith Seitz <keiths@redhat.com>
3346 * linespec.c (decode_objc): Record the function name
3349 2012-07-23 Tom Tromey <tromey@redhat.com>
3351 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3353 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3354 (map_vmap): Acquire a reference to the BFD.
3356 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3358 * p-valprint.c (pascal_object_print_value): Replace potentially
3359 unsafe alloca with xmalloc/xfree.
3360 * valops.c (search_struct_method): Likewise.
3362 2012-07-23 Tom Tromey <tromey@redhat.com>
3364 * solib-svr4.c (enable_break): Update.
3365 * bfd-target.h (target_bfd_reopen): Update documentation.
3367 2012-07-23 Tom Tromey <tromey@redhat.com>
3369 * symfile.c (separate_debug_file_exists): Update.
3370 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3371 (reread_symbols): Update.
3372 * elfread.c (build_id_verify): Update.
3373 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3374 bfd_open_maybe_remote.
3376 2012-07-23 Tom Tromey <tromey@redhat.com>
3378 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3380 2012-07-23 Tom Tromey <tromey@redhat.com>
3382 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3384 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3386 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3387 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3389 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3390 * objfiles.c (allocate_objfile): Acquire a new reference.
3391 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3392 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3393 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3394 a cleanup for 'nbfd'.
3395 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3397 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3398 make a cleanup for 'abfd'.
3399 (symbol_file_add): Make a BFD cleanup.
3401 2012-07-23 Tom Tromey <tromey@redhat.com>
3403 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3404 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3405 * corelow.c (core_open): Use gdb_bfd_fopen.
3406 * dsrec.c (load_srec): Use gdb_bfd_openr.
3407 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3408 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3409 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3410 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3411 (gdb_bfd_fdopenr): New functions.
3412 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3413 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3414 (gdb_bfd_fdopenr): Declare.
3415 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3416 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3417 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3418 gdb_bfd_openr_next_archived_file.
3419 (macho_check_dsym): Use gdb_bfd_openr.
3420 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3421 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3422 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3423 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3425 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3426 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3427 gdb_bfd_openr_next_archived_file.
3428 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3430 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3432 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3433 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3434 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3435 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3436 (symfile_bfd_open): Use gdb_bfd_fopen.
3437 (generic_load): Use gdb_bfd_openr.
3438 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3440 2012-07-23 Tom Tromey <tromey@redhat.com>
3442 * bfd-target.c (target_bfd_reopen): Update.
3443 * cli/cli-dump.c (bfd_openr_with_cleanup)
3444 (bfd_openw_with_cleanup): Update.
3445 * corelow.c (core_open): Update.
3446 * dsrec.c (load_srec): Update.
3447 * exec.c (exec_file_attach): Update.
3448 * gcore.c (create_gcore_bfd): Update.
3449 * gdb_bfd.c (gdb_bfd_ref): Return void.
3450 (gdb_bfd_open): Update.
3451 * gdb_bfd.h (gdb_bfd_ref): Return void.
3453 * jit.c (jit_bfd_try_read_symtab): Update.
3454 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3455 * machoread.c (macho_symfile_read_all_oso): Update.
3456 (macho_check_dsym): Update.
3457 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3458 * remote-m32r-sdi.c (m32r_load): Update.
3459 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3460 * rs6000-nat.c (add_vmap): Update.
3461 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3463 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3464 * solib-spu.c (spu_bfd_open): Update.
3465 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3466 * spu-linux-nat.c (spu_bfd_open): Update.
3467 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3468 (generic_load): Update.
3469 * windows-nat.c (windows_make_so): Update.
3471 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3473 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3475 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3477 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3478 SIGTRAMP_FRAME unwinding.
3480 2012-07-20 Doug Evans <dje@google.com>
3482 * NEWS: Document new options "set/show use-deprecated-index-sections",
3483 and delete reference to --use-deprecated-index-sections.
3484 * symfile.h (use_deprecated_index_sections): Delete.
3485 * dwarf2read.c (use_deprecated_index_sections): Make static.
3486 (read_index_from_section): Update wording of how to load
3487 deprecated index sections.
3488 (_initialize_dwarf2_read): New options
3489 "set/show use-deprecated-index-sections".
3490 * main.c (captured_main): Delete --use-deprecated-index-sections.
3492 2012-07-20 Pedro Alves <palves@redhat.com>
3497 * infrun.c (handle_inferior_event) <new thread>: Don't special
3498 case minus_one_ptid.
3499 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3500 * linux-thread-db.c (thread_get_info_callback): Don't return early
3501 if the thread is zombie.
3502 (thread_from_lwp): Change return type to void. Rewrite stale
3504 (attach_thread): Don't return early if the thread is zombie,
3505 instead set its "dying" flag.
3506 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3507 (find_new_threads_callback): Don't return early if the thread is
3510 2012-07-20 Pedro Alves <palves@redhat.com>
3512 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3513 * target.c (target_wait): Likewise.
3514 (str_comma_list_concat_elem, do_option, target_options_to_string):
3516 * target.h (target_options_to_string): Declare.
3518 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3519 Tom Tromey <tromey@redhat.com>
3521 * dwarf2read.c (dwarf_decode_macros)
3522 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3523 DW_MACRO_GNU_transparent_include_alt>: New cases.
3524 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3525 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3527 2012-07-20 Tom Tromey <tromey@redhat.com>
3529 * dwarf2read.c (try_open_dwo_file): Don't call
3530 gdb_bfd_stash_filename.
3532 2012-07-20 Pedro Alves <palves@redhat.com>
3534 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3535 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3536 (i386_process_record): Tweak description comments.
3538 2012-07-20 Pedro Alves <palves@redhat.com>
3540 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3541 (i386_process_record): Use record_read_memory.
3542 * record.c (record_read_memory): New function.
3543 (record_arch_list_add_mem, record_exec_insn): Use
3545 * record.h (record_read_memory): Declare.
3547 2012-07-20 Yao Qi <yao@codesourcery.com>
3549 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3552 2012-07-19 Pedro Alves <palves@redhat.com>
3554 * record.c (record_resume): Ask the target beneath to report all
3557 2012-07-19 Doug Evans <dje@google.com>
3559 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3560 there's no section at address zero.
3561 (dwarf2_record_block_ranges): Ditto.
3563 2012-07-19 Yao Qi <yao@codesourcery.com>
3565 * command.h, remote.c: Fix a typo in comment.
3567 2012-07-19 Tom Tromey <tromey@redhat.com>
3570 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3571 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3572 OP_DECLTYPE>: New cases.
3573 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3574 (type_exp): Add new productions.
3575 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3577 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3579 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3580 OP_DECLTYPE>: New case.
3581 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3583 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3584 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3586 2012-07-19 Tom Tromey <tromey@redhat.com>
3588 * c-exp.y (enum token_flags): New.
3589 (struct token) <cxx_only>: Remove.
3591 (tokentab3, tokentab2, ident_tokens): Update.
3592 (lex_one_token): Update. Handle FLAG_SHADOW.
3594 2012-07-19 Tom Tromey <tromey@redhat.com>
3596 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3597 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3598 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3599 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3600 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3601 type_exp production where appropriate.
3602 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3603 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3604 <UNOP_MEMVAL_TYPE>: New case.
3605 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3606 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3607 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3608 <UNOP_MEMVAL_TYPE>: New case.
3609 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3610 UNOP_REINTERPRET_CAST>: Update.
3611 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3612 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3613 UNOP_REINTERPRET_CAST>: Update.
3614 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3615 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3616 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3619 2012-07-19 Yao Qi <yao@codesourcery.com>
3620 Jan Kratochvil <jan.kratochvil@redhat.com>
3622 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3623 and case 'var_optional_filename' together.
3624 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3625 instead of add_setshow_optional_filename_cmd for setshow command
3626 'args'. Set completer for 'set args'.
3628 2012-07-18 Doug Evans <dje@google.com>
3630 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3631 * common/gdb_vecs.c: New file, contents from utils.c.
3632 * common/host-defs.h: New file, contents from defs.h.
3633 * utils.h: New file, contents from defs.h.
3634 * defs.h: Move all declarations of objects defined in utils.c
3635 to utils.h (except QUIT() and related).
3636 #include "utils.h", "host-defs.h".
3637 * probe.h (probe_p): Move here from gdb_vecs.h.
3638 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3639 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3640 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3641 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3642 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3643 (COMMON_OBS): Add gdb_vecs.o.
3644 (gdb_vecs.o): New rule.
3646 2012-07-18 Keith Seitz <keiths@redhat.com>
3648 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3649 parameter. If non-zero, use SYMNAME as the canonical name
3652 (convert_linespec_to_sals): Use add_sal_to_sals for
3654 (decode_line_full): No need to "fill in missing canonical names"
3655 anymore. Simply make cleanups for the allocated names.
3657 2012-07-18 Keith Seitz <keiths@redhat.com>
3659 * linespec.c (struct linespec): Constify expression,
3660 source_filename, function_name, and label_name.
3661 (symbol_not_found_error): Make all parameters const.
3662 (linespec_parser_delete): No need to check for NULL
3663 when using xfree. Cast const char * to char * for xfree.
3665 2012-07-18 Keith Seitz <keiths@redhat.com>
3667 * breakpoint.c (invalid_thread_id_error): New function.
3668 (find_condition_and_thread): Use invalid_thread_id_error.
3669 (watch_command_1): Likewise.
3671 2012-07-18 Tom Tromey <tromey@redhat.com>
3673 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3674 * contrib/cc-with-tweaks.sh: New file.
3676 2012-07-18 Tom Tromey <tromey@redhat.com>
3678 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3679 (locate_dwz_sections): Recognize .gdb_index.
3680 (create_cus_from_index_list): New function.
3681 (create_cus_from_index): Use it. Handle .dwz data.
3682 (read_index_from_section): New function, extracted from
3684 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3687 2012-07-18 Tom Tromey <tromey@redhat.com>
3689 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3690 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3691 <is_dwz>: New field.
3692 (struct dwz_file): New.
3693 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3694 (locate_dwz_sections, dwarf2_get_dwz_file)
3695 (get_abbrev_section_for_cu): New functions.
3696 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3697 (read_and_check_type_unit_head): Add abbrev_section argument.
3698 (create_debug_types_hash_table): Update.
3699 (init_cutu_and_read_dies): Use proper abbrev section.
3700 (init_cutu_and_read_dies_no_follow): Likewise.
3701 (set_partial_user): Do nothing if PST==NULL.
3702 (read_comp_units_from_section): New function.
3703 (create_all_comp_units): Use it.
3704 (scan_partial_symbols, partial_die_parent_scope): Update.
3705 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3706 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3707 (find_partial_die): Add offset_in_dwz argument. Update.
3708 (guess_partial_die_structure_name, fixup_partial_die): Update.
3709 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3710 DW_FORM_GNU_strp_alt.
3711 (read_indirect_string_from_dwz): New function.
3712 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3713 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3714 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3715 (follow_die_offset): Add offset_in_dwz argument.
3716 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3717 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3718 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3719 Handle new macro forms.
3720 (dwarf_decode_macros): Update.
3721 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3722 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3723 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3724 (create_debug_types_hash_table): Use correct abbrev section.
3725 (get_debug_line_section): New function.
3726 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3727 (process_full_comp_unit): Pass 'required' argument to
3728 end_symtab_get_static_block.
3729 * buildsym.h (end_symtab_get_static_block): Update.
3730 * buildsym.c (end_symtab_get_static_block): Add 'required'
3732 (end_symtab, end_expandable_symtab): Update.
3734 2012-07-18 Tom Tromey <tromey@redhat.com>
3736 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3738 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3739 (zlib_decompress_section): Remove.
3740 (dwarf2_read_section): Use gdb_bfd_map_section.
3741 (munmap_section_buffer): Remove.
3742 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3743 munmap_section_buffer.
3744 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3745 (struct gdb_bfd_section_data): New.
3746 (free_one_bfd_section): New function.
3747 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3748 (get_section_descriptor, zlib_decompress_section)
3749 (gdb_bfd_map_section): New functions.
3750 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3752 2012-07-18 Tom Tromey <tromey@redhat.com>
3754 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3756 2012-07-18 Tom Tromey <tromey@redhat.com>
3758 * gdb_bfd.c (struct gdb_bfd_data): New.
3759 (gdb_bfd_cache): New global.
3760 (struct gdb_bfd_cache_search): New.
3761 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3762 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3763 * gdb_bfd.h (gdb_bfd_open): Declare.
3765 2012-07-18 Tom Tromey <tromey@redhat.com>
3767 * utils.c (make_cleanup_bfd_unref): Rename from
3768 make_cleanup_bfd_close.
3769 * defs.h (make_cleanup_bfd_unref): Rename from
3770 make_cleanup_bfd_close.
3771 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3772 (bfd_openw_with_cleanup): Update.
3773 * corelow.c (core_open): Update.
3774 * dsrec.c (load_srec): Update.
3775 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3776 * remote-m32r-sdi.c (m32r_load): Update.
3777 * remote-mips.c (mips_load_srec): Update.
3778 (pmon_load_fast): Update.
3779 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3781 (darwin_bfd_open): Update.
3782 * solib.c (solib_bfd_fopen): Update.
3783 * symfile-mem.c (symbol_file_add_from_memory): Update.
3784 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3785 (symfile_bfd_open): Update.
3786 (generic_load): Update.
3788 2012-07-18 Tom Tromey <tromey@redhat.com>
3790 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3791 (pmon_load_fast): Likewise.
3792 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3793 (m32r_upload_command): Likewise.
3794 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3795 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3796 Use make_cleanup_bfd_close.
3798 2012-07-18 Tom Tromey <tromey@redhat.com>
3800 * symfile.c (symfile_bfd_open): Don't copy name. Call
3801 gdb_bfd_stash_filename.
3802 (load_command): Open the new BFD before freeing the old.
3803 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3804 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3805 Call gdb_bfd_stash_filename.
3806 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3807 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3808 gdb_bfd_stash_filename.
3809 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3810 Free found_pathname.
3811 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3812 gdb_bfd_stash_filename.
3813 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3814 * machoread.c (macho_add_oso_symfile): Call
3815 gdb_bfd_stash_filename.
3816 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3817 gdb_bfd_stash_filename.
3818 (macho_check_dsym): Don't copy filename. Call
3819 gdb_bfd_stash_filename.
3820 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3821 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3822 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3823 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3824 * exec.c (exec_close): Don't free the BFD's filename.
3825 (exec_file_attach): Don't copy the filename. Call
3826 gdb_bfd_stash_filename.
3827 * corelow.c (core_close): Don't free the BFD's filename.
3828 (core_open): Call gdb_bfd_stash_filename.
3829 * corefile.c (reopen_exec_file): Remove #if 0 code.
3830 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3832 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3834 2012-07-18 Tom Tromey <tromey@redhat.com>
3836 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3838 (free_dwo_file): Use gdb_bfd_unref.
3839 * cli/cli-dump.c: Include gdb_bfd.h.
3840 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3841 (bfd_openr_with_cleanup): Likewise.
3842 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3844 * utils.c: Include gdb_bfd.h.
3845 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3846 * symfile.c: Include gdb_bfd.h.
3847 (separate_debug_file_exists): Use gdb_bfd_unref.
3848 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3849 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3850 (generic_load): Use gdb_bfd_ref.
3851 (reread_symbols): Use gdb_bfd_unref.
3852 * symfile-mem.c: Include gdb_bfd.h.
3853 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3854 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3855 * solib.c: Include gdb_bfd.h.
3856 (solib_bfd_fopen): Use gdb_bfd_ref.
3857 (solib_bfd_open): Use gdb_bfd_unref.
3858 (free_so_symbols): Use gdb_bfd_unref.
3859 (reload_shared_libraries_1): Use gdb_bfd_unref.
3860 * solib-spu.c: Include gdb_bfd.h.
3861 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3862 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3864 * solib-frv.c: Include gdb_bfd.h.
3865 (enable_break2): Use gdb_bfd_unref.
3866 * solib-dsbt.c: Include gdb_bfd.h.
3867 (enable_break2): Use gdb_bfd_unref.
3868 * solib-darwin.c: Include gdb_bfd.h.
3869 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3871 (darwin_bfd_open): Use gdb_bfd_unref.
3872 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3873 * remote-mips.c: Include gdb_bfd.h.
3874 (mips_load_srec): Use gdb_bfd_ref.
3875 (pmon_load_fast): Use gdb_bfd_ref.
3876 * remote-m32r-sdi.c: Include gdb_bfd.h.
3877 (m32r_load): Use gdb_bfd_ref.
3878 * record.c: Include gdb_bfd.h.
3879 (record_save_cleanups): Use gdb_bfd_unref.
3880 (cmd_record_save): Use gdb_bfd_unref.
3881 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3883 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3884 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3885 * objfiles.c: Include gdb_bfd.h.
3886 (free_objfile): Use gdb_bfd_unref.
3887 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3889 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3890 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3891 (macho_check_dsym): Likewise.
3892 * m32r-rom.c: Include gdb_bfd.h.
3893 (m32r_load): Use gdb_bfd_ref.
3894 (m32r_upload_command): Use gdb_bfd_ref.
3895 * jit.c: Include gdb_bfd.h.
3896 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3897 * gdb_bfd.h: New file.
3898 * gdb_bfd.c: New file.
3899 * gcore.c: Include gdb_bfd.h.
3900 (create_gcore_bfd): Use gdb_bfd_ref.
3901 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3902 (gcore_command): Use gdb_bfd_unref.
3903 * exec.c: Include gdb_bfd.h.
3904 (exec_close): Use gdb_bfd_unref.
3905 (exec_close_1): Use gdb_bfd_unref.
3906 (exec_file_attach): Use gdb_bfd_ref.
3907 * elfread.c: Include gdb_bfd.h.
3908 (build_id_verify): Use gdb_bfd_unref.
3909 * dsrec.c: Include gdb_bfd.h.
3910 (load_srec): Use gdb_bfd_ref.
3911 * corelow.c: Include gdb_bfd.h.
3912 (core_close): Use gdb_bfd_unref.
3913 (core_open): Use gdb_bfd_ref.
3914 * bfd-target.c: Include gdb_bfd.h.
3915 (target_bfd_xclose): Use gdb_bfd_unref.
3916 (target_bfd_reopen): Use gdb_bfd_ref.
3917 * Makefile.in (SFILES): Add gdb_bfd.c.
3918 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3919 (COMMON_OBS): Add gdb_bfd.o.
3921 2012-07-18 Keith Seitz <keiths@redhat.com>
3923 * breakpoint.c (find_condition_and_thread): Initialize
3925 (create_breakpiont): find_condition_and_thread will now
3926 initialize COND_STRING, THREAD, and REST (and TASK).
3927 (addr_string_to_sals): Likewise.
3929 2012-07-18 Pedro Alves <palves@redhat.com>
3931 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3932 Pull the single step breakpoints out of the target.
3934 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3936 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3937 * stap-probe.c (compile_probe_arg): Likewise.
3939 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3941 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3942 (elf_compile_to_ax): Likewise.
3943 * infrun.c (insert_exception_resume_from_probe): Likewise.
3944 (check_exception_resume): Remove `objfile' variable.
3945 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3946 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3947 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3948 (compare_entries): Rename to...
3949 (compare_probes): ...this. Adjust function to work with
3950 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3952 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3954 (print_ui_out_info): Adjust argument to be `struct probe *'.
3955 (info_probes_for_ops): Adjust internal computations to use
3957 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3958 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3959 gen_info_probes_table_values>: Remove `objfile' argument.
3960 (struct probe) <objfile>: New field.
3961 (find_probe_by_pc): Remove `objfile' argument.
3962 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3963 (stap_get_probe_argument_count): Likewise.
3964 (stap_get_arg): Likewise.
3965 (stap_evaluate_probe_argument): Likewise.
3966 (stap_compile_to_ax): Likewise.
3967 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3968 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3969 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3970 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3971 sym_compile_to_ax>: Likewise.
3973 2012-07-18 Terry Guo <terry.guo@arm.com>
3976 * defs.h (GDB_MI_MSG_WIDTH): New.
3977 * ser_base (ser_base_read_error_fd): New function.
3978 (do_ser_base_readchar): Poll error file descriptor as well as
3980 (generic_readchar): Refactor error handling.
3982 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3984 * NEWS: Create a new section for the next release branch.
3985 Rename the section of the current branch, now that it has
3988 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3990 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3991 * version.in: Bump version to 7.5.50.20120718-cvs.
3993 2012-07-17 Keith Seitz <keiths@redhat.com>
3995 * linespec.c (linespec_parse_line_offset): Make parameter
3998 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4001 * f-valprint.c (info_common_command): New variable frame_id.
4002 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4003 * printcmd.c (print_variable_and_value): Extend function comment.
4004 Add comment for invalidated FRAME.
4005 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4006 FI form FRAME_ID after each print_frame_local_vars.
4007 (struct print_variable_and_value_data): Change frame to frame_id.
4008 (do_print_variable_and_value): New variable frame, initialize it from
4009 p->frame_id. Add comment for invalidated FRAME.
4010 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4011 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4012 for invalidated FRAME.
4014 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4015 Pedro Alves <palves@redhat.com>
4017 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4020 2012-07-16 Tom Tromey <tromey@redhat.com>
4022 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4024 2012-07-15 Doug Evans <dje@google.com>
4026 * dwarf2read.c (stmt_list_hash): New struct.
4027 (type_unit_group): Embed "per_cu" member, remove pointer.
4028 New union member "t", move member "tus" into it, all uses updated.
4029 New member "hash", replaces member "line_offset, all uses updated.
4030 (quick_file_names): Replace member "offset" with "hash", all uses
4032 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4033 (hash_file_name_entry, eq_file_name_entry): Call them.
4034 (hash_type_unit_group, eq_type_unit_group): Ditto.
4035 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4036 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4037 (dw2_get_file_names): Update.
4038 (create_type_unit_group): Replace "per_cu" arg with "cu".
4039 All callers updated. Fix "quick" (.gdb_index) handling.
4040 (get_type_unit_group): Replace "per_cu" arg with "cu".
4041 All callers updated.
4042 (build_type_unit_groups): Don't reset tu_stats.
4044 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4045 "tab_cur_size". Change member "tab" to be a htab_t.
4046 (create_filename_seen_cache): Update.
4047 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4048 (filename_seen): Update.
4050 2012-07-13 Doug Evans <dje@google.com>
4052 * symtab.c (filename_seen): Update comment.
4054 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4055 Doug Evans <dje@google.com>
4057 * buildsym.c (end_symtab_1): Split it to ...
4058 (end_symtab_get_static_block): ... this ...
4059 (end_symtab_from_static_block): ... and this function.
4060 (end_symtab, end_expandable_symtab): Call them.
4061 * buildsym.h (end_symtab_get_static_block)
4062 (end_symtab_from_static_block): New declarations.
4063 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4064 Set its valid CU ranges.
4066 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4068 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4069 DW_OP_GNU_parameter_ref.
4071 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4073 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4074 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4076 2012-07-13 Doug Evans <dje@google.com>
4078 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4079 (filename_seen_cache): New struct.
4080 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4081 (create_filename_seen_cache): New function.
4082 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4083 (filename_seen): Delete arg "first". New arg "cache". All callers
4085 (output_source_filename_data): New struct.
4086 (output_source_filename): Delete arg "first". New arg "data".
4087 All callers updated.
4088 (sources_info): Delete local "first". New locals "data", "cleanups".
4089 Rewrite to use filename_seen_cache.
4090 (add_partial_filename_data): Delete member "first". New member
4091 "filename_seen_cache". All uses updated.
4092 (make_source_files_completion_list): Rewrite to use
4093 filename_seen_cache.
4095 2012-07-12 Doug Evans <dje@google.com>
4097 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4099 2012-07-10 Doug Evans <dje@google.com>
4102 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4103 all_type_unit_groups, type_unit_groups, tu_stats.
4104 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4105 All uses updated. Add type_unit_group to union "s".
4106 (type_unit_group): New struct.
4107 (IS_TYPE_UNIT_GROUP): New macro.
4108 (abbrev_table): Delete unused member "section".
4109 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4110 (dw2_get_cu): Assert not used with type_unit_group.
4111 (dw2_get_primary_cu): New function.
4112 (dw2_build_type_unit_groups_reader): New function.
4113 (dw2_build_type_unit_groups): New function.
4114 (dw2_get_file_names): Assert not called on type units.
4115 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4116 Redo loop to iterate over type unit groups instead of type units.
4117 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4118 (read_abbrev_offset): New function.
4119 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4121 (create_partial_symtab): New function.
4122 (process_psymtab_comp_unit_reader): Assert not used with type units.
4123 Call create_partial_symtab.
4124 (process_psymtab_type_unit): Delete.
4125 (hash_type_unit_group, eq_type_unit_group): New functions.
4126 (allocate_type_unit_groups_table): New function.
4127 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4128 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4129 (create_type_unit_group, get_type_unit_group): New functions.
4130 (tu_abbrev_offset): New struct.
4131 (sort_tu_by_abbrev_offset): New function.
4132 (add_type_unit_group_to_table): New function.
4133 (build_type_unit_groups): New function.
4134 (build_type_psymtabs_reader): New function.
4135 (build_type_psymtab_dependencies): New function.
4136 (build_type_psymtabs): Rewrite.
4137 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4138 is seen in a type unit.
4139 (process_queue): Move symtab expansion debugging printfs here.
4140 Call process_full_type_unit for type units.
4141 (compute_symtab_includes): Assert not called for type units.
4142 (process_cu_includes): Don't call compute_symtab_includes for
4144 (process_full_type_unit): New function.
4145 (process_imported_unit_die): Flag an error if called for type units.
4146 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4147 updated. Assert not called for type units.
4148 (read_file_scope): Call dwarf2_start_symtab.
4149 (setup_type_unit_groups): New function.
4150 (read_type_unit_scope): Rewrite.
4151 (abbrev_table_read_table): Initialize abbrev_table->offset.
4152 (abbrev_table_free_cleanup): New function.
4153 (dwarf2_start_symtab): New function.
4154 (load_full_type_unit): Assert not called for type unit groups.
4155 * buildsym.c (finish_block_internal): New arg "expandable".
4156 All callers updated.
4157 (start_symtab): Move most contents to ...
4158 (restart_symtab): ... here. New function.
4159 (reset_symtab_globals): New function.
4160 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4161 Call reset_symtab_globals.
4162 (end_symtab, end_expandable_symtab): New functions.
4163 (set_missing_symtab, augment_type_symtab): New functions.
4164 * buildsym.h (end_expandable_symtab): Declare.
4165 (augment_type_symtab, restart_symtab): Declare.
4166 * psympriv.h (struct partial_symtab): New member "anonymous".
4167 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4169 (read_psymtabs_with_filename): Ditto.
4170 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4171 (expand_symtabs_matching_via_partial): Ditto.
4172 (dump_psymtab): Update.
4173 * dictionary.c (dict_add_pending): New function.
4174 * dictionary.h (dict_add_pending): Declare.
4176 2012-07-09 Doug Evans <dje@google.com>
4178 * buildsym.c (start_subfile): Remove unnecessary check for
4181 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4183 * dwarf2read.c (load_full_type_unit): Simplify.
4185 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4186 to struct signatured_type **. All uses updated.
4188 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4189 All callers updated.
4191 2012-07-09 Tom Tromey <tromey@redhat.com>
4193 * c-exp.y (check_parameter_typelist): New function.
4194 (parameter_typelist): Call it.
4195 * eval.c (make_params): Handle '(void)' case.
4196 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4199 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4201 * common/linux-ptrace.c: Include gdb_assert.h.
4202 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4203 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4205 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4207 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4208 * linux-nat.c (linux_child_post_attach)
4209 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4211 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4213 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4214 nptl <2.7 bug workaround for core files.
4216 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4218 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4220 (save_siginfo): Remove.
4221 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4223 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4224 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4225 * linux-nat.h (struct lwp_info): Remove field siginfo.
4227 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 Code cleanup for the next patch.
4230 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4231 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4233 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4234 (ia64_linux_stopped_data_address):
4235 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4237 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4238 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4239 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4242 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4245 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4246 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4248 2012-07-06 Tom Tromey <tromey@redhat.com>
4250 * c-exp.y (DOTDOTDOT): New token.
4251 (func_mod, exp): Use parameter_typelist.
4252 (parameter_typelist): New production.
4253 (tokentab3): Add "..." token.
4254 * eval.c (make_params): Handle varargs.
4255 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4258 2012-07-06 Tom Tromey <tromey@redhat.com>
4261 * c-exp.y (%union) <tvec>: Change type.
4262 (func_mod): Now uses <tvec> type.
4263 (exp): Update for tvec change.
4264 (direct_abs_decl): Push the typelist.
4265 (func_mod): Return a typelist.
4266 (nonempty_typelist): Update for tvec change.
4267 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4268 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4269 * parse.c (pop_type_list): New function.
4270 (push_typelist): New function.
4271 (follow_types): Handle tp_function_with_arguments.
4272 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4273 (enum type_pieces) <tp_function_with_arguments>: New constant.
4274 (union type_stack_elt) <typelist_val>: New field.
4275 (push_typelist): Declare.
4277 2012-07-06 Tom Tromey <tromey@redhat.com>
4279 * c-exp.y (%union) <type_stack>: New field.
4280 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4281 (ptr_operator_ts): New production.
4283 * parse.c (type_stack_reserve): New function.
4284 (check_type_stack_depth): Use it.
4285 (pop_type_stack, append_type_stack, push_type_stack)
4286 (get_type_stack, type_stack_cleanup): New functions.
4287 (follow_types): Handle tp_type_stack.
4288 (_initialize_parse): Simplify initialization.
4289 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4291 (union type_stack_elt) <stack_val>: New field.
4292 (get_type_stack, append_type_stack, push_type_stack)
4293 (type_stack_cleanup): Declare.
4295 2012-07-06 Tom Tromey <tromey@redhat.com>
4297 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4299 (struct type_stack): New.
4300 * parse.c (type_stack, type_stack_size, type_stack_depth):
4302 (type_stack): New global.
4303 (parse_exp_in_context, check_type_stack_depth)
4304 (insert_into_type_stack, insert_type, push_type, push_type_int)
4305 (insert_type_address_space, pop_type, pop_type_int)
4306 (_initialize_parse): Update.
4308 2012-07-06 Tom Tromey <tromey@redhat.com>
4310 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4313 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4315 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4317 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4318 Jan Kratochvil <jan.kratochvil@redhat.com>
4320 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4321 alloca with xmalloc/xfree.
4323 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4325 * MAINTAINERS (Write After Approval): Add myself to the list.
4327 2012-07-05 Doug Evans <dje@google.com>
4329 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4331 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4333 * ax-gdb.c (cli/cli-utils.h): New include.
4334 (linespec.h): Ditto.
4335 (agent_eval_command_one): New function.
4336 (agent_command_1): Ditto.
4337 (agent_command): Call function agent_command_1.
4338 (agent_eval_command): Ditto.
4339 (_initialize_ax_gdb): Change help for "maint agent"
4340 and "maint agent-eval".
4342 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4344 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4345 * cli/cli-utils.c (check_for_argument): New function.
4346 * cli/cli-utils.h (check_for_argument): Ditto.
4348 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4350 * NEWS: Mention x32 ABI support.
4352 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4354 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4355 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4357 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4358 and pc_regnum_from_eax to -1. Update SP regnum from
4359 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4362 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4365 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4367 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4368 * dwarf2expr.h: Include gdbtypes.h.
4369 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4370 these forward declarations.
4371 (cu_offset, sect_offset): Move these ...
4372 * gdbtypes.h: Remove include dwarf2expr.h.
4373 (cu_offset, sect_offset): ... here.
4375 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4377 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4378 (amd64_linux_sigtramp_code): This.
4379 (amd64_x32_linux_sigtramp_code): New.
4380 (LINUX_SIGTRAMP_LEN): Updated.
4381 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4383 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4387 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4389 * config.in: Regenerate.
4390 * configure: Regenerate.
4391 * configure.ac: Remove check for gnu/libc-version.h.
4392 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4394 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4395 variables libc_version, libc_major and libc_minor. Replace sscanf by
4396 inferior_has_bug. Extend the comment.
4398 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4400 * linux-thread-db.c (inferior_has_bug): New function.
4401 (thread_db_find_new_threads_silently): Return boolean as checked by
4402 inferior_has_bug, describe it in the comments.
4403 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4404 earlier. Abort the initialization if it returned non-zero.
4405 (thread_db_new_objfile): Exclude debug files.
4406 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4409 2012-07-02 Doug Evans <dje@google.com>
4411 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4412 related to queue management.
4414 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4415 instead of "debug dwarf2-die" in debugging printfs.
4416 (create_debug_info_hash_table_reader): Ditto.
4417 (create_debug_info_hash_table): Ditto.
4418 (init_dwo_file): Ditto.
4419 (init_cutu_and_read_dies): Add debugging printf.
4420 (init_cutu_and_read_dies_no_follow): Ditto.
4421 (process_psymtab_comp_unit_reader): Ditto.
4423 2012-07-02 Stan Shebs <stan@codesourcery.com>
4425 Add target-side support for dynamic printf.
4426 * NEWS: Mention the additional style.
4427 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4428 (struct bp_location): New field cmd_bytecode.
4429 * breakpoint.c: Include format.h.
4430 (disconnected_dprintf): New global.
4431 (parse_cmd_to_aexpr): New function.
4432 (build_target_command_list): New function.
4433 (insert_bp_location): Call it.
4434 (remove_breakpoints_pid): Skip dprintf breakpoints.
4435 (print_one_breakpoint_location): Ditto.
4436 (dprintf_style_agent): New global.
4437 (dprintf_style_enums): Add dprintf_style_agent.
4438 (update_dprintf_command_list): Add agent case.
4439 (agent_printf_command): New function.
4440 (_initialize_breakpoint): Add new commands.
4441 * common/ax.def (printf): New bytecode.
4442 * ax.h (ax_string): Declare.
4443 * ax-gdb.h (gen_printf): Declare.
4444 * ax-gdb.c: Include cli-utils.h, format.h.
4445 (gen_printf): New function.
4446 (maint_agent_print_command): New function.
4447 (_initialize_ax_gdb): Add maint agent-printf command.
4448 * ax-general.c (ax_string): New function.
4449 (ax_print): Add printf disassembly.
4450 * Makefile.in (SFILES): Add format.c
4451 (COMMON_OBS): Add format.o.
4452 * common/format.h: New file.
4453 * common/format.c: New file.
4454 * printcmd.c: Include format.h.
4455 (ui_printf): Call parse_format_string.
4456 * remote.c (remote_state): New field breakpoint_commands.
4457 (PACKET_BreakpointCommands): New enum.
4458 (remote_breakpoint_commands_feature): New function.
4459 (remote_protocol_features): Add new BreakpointCommands entry.
4460 (remote_can_run_breakpoint_commands): New function.
4461 (remote_add_target_side_commands): New function.
4462 (remote_insert_breakpoint): Call it.
4463 (remote_insert_hw_breakpoint): Ditto.
4464 (_initialize_remote): Add new packet configuration for
4465 target-side breakpoint commands.
4466 * target.h (struct target_ops): New field
4467 to_can_run_breakpoint_commands.
4468 (target_can_run_breakpoint_commands): New macro.
4469 * target.c (update_current_target): Handle
4470 to_can_run_breakpoint_commands.
4472 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4474 Execute -ix and -iex only after system and user gdbinit files.
4475 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4476 processing down after gdbinit files.
4478 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4480 Add fnmatch-gnu module.
4481 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4482 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4483 * gnulib/aclocal.m4: Regenerate.
4484 * gnulib/config.in: Regenerate.
4485 * gnulib/configure: Regenerate.
4486 * gnulib/import/dummy.c: Remove.
4487 * gnulib/import/Makefile.am: Regenerate.
4488 * gnulib/import/Makefile.in: Likewise.
4489 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4490 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4491 * gnulib/import/alloca.c: New file.
4492 * gnulib/import/alloca.in.h: Likewise.
4493 * gnulib/import/config.charset: Likewise.
4494 * gnulib/import/fnmatch.c: Likewise.
4495 * gnulib/import/fnmatch.in.h: Likewise.
4496 * gnulib/import/fnmatch_loop.c: Likewise.
4497 * gnulib/import/localcharset.c: Likewise.
4498 * gnulib/import/localcharset.h: Likewise.
4499 * gnulib/import/m4/alloca.m4: Likewise.
4500 * gnulib/import/m4/codeset.m4: Likewise.
4501 * gnulib/import/m4/configmake.m4: Likewise.
4502 * gnulib/import/m4/fcntl-o.m4: Likewise.
4503 * gnulib/import/m4/fnmatch.m4: Likewise.
4504 * gnulib/import/m4/glibc21.m4: Likewise.
4505 * gnulib/import/m4/localcharset.m4: Likewise.
4506 * gnulib/import/m4/locale-fr.m4: Likewise.
4507 * gnulib/import/m4/locale-ja.m4: Likewise.
4508 * gnulib/import/m4/locale-zh.m4: Likewise.
4509 * gnulib/import/m4/mbrtowc.m4: Likewise.
4510 * gnulib/import/m4/mbsinit.m4: Likewise.
4511 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4512 * gnulib/import/m4/mbstate_t.m4: Likewise.
4513 * gnulib/import/m4/stdbool.m4: Likewise.
4514 * gnulib/import/m4/wchar_h.m4: Likewise.
4515 * gnulib/import/m4/wctype_h.m4: Likewise.
4516 * gnulib/import/m4/wint_t.m4: Likewise.
4517 * gnulib/import/mbrtowc.c: Likewise.
4518 * gnulib/import/mbsinit.c: Likewise.
4519 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4520 * gnulib/import/mbsrtowcs-state.c: Likewise.
4521 * gnulib/import/mbsrtowcs.c: Likewise.
4522 * gnulib/import/ref-add.sin: Likewise.
4523 * gnulib/import/ref-del.sin: Likewise.
4524 * gnulib/import/stdbool.in.h: Likewise.
4525 * gnulib/import/streq.h: Likewise.
4526 * gnulib/import/strnlen1.c: Likewise.
4527 * gnulib/import/strnlen1.h: Likewise.
4528 * gnulib/import/verify.h: Likewise.
4529 * gnulib/import/wchar.in.h: Likewise.
4530 * gnulib/import/wctype.in.h: Likewise.
4532 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 Support shell wildcards for 'set auto-load safe-path'.
4535 * auto-load.c: Include fnmatch.h.
4536 (filename_is_in_dir): Rename to ...
4537 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4538 it. Update function comment. Rename dir_len to pattern_len. New
4539 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4540 messages. Use gdb_filename_fnmatch.
4541 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4543 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4544 * defs.h (gdb_filename_fnmatch): New declaration.
4545 * utils.c: Include fnmatch.h.
4546 (gdb_filename_fnmatch): New function.
4548 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4550 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4551 `-probe' and `-probe-stap' options.
4553 2012-07-01 Yao Qi <yao@codesourcery.com>
4555 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4556 always_inserted_off, and always_inserted_enums.
4557 Change always_inserted_mode's type to 'enum auto_boolean'.
4558 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4560 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4561 of add_setshow_enum_cmd.
4562 * infrun.c: Remove can_use_displaced_stepping_auto,
4563 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4564 can_use_displaced_stepping_enum.
4565 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4566 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4567 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4568 add_setshow_enum_cmd.
4570 2012-06-30 Doug Evans <dje@google.com>
4572 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4573 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4574 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4576 2012-06-29 Doug Evans <dje@google.com>
4578 * linespec.c: #include "stack.h".
4579 (decode_line_with_current_source): Moved here from symtab.c and
4580 renamed from decode_line_spec. All callers updated.
4581 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4582 renamed from decode_line_spec_1. All callers updated.
4583 * linespec.h (decode_line_with_current_source): Move declaration here
4584 from symtab.h and renamed from decode_line_spec.
4585 (decode_line_with_last_displayed): Move declaration here from symtab.h
4586 and renamed from decode_line_spec_1.
4587 * macrocmd.c: #include "linespec.h".
4588 * symtab.c: Remove #include "linespec.h".
4590 2012-06-28 Doug Evans <dje@google.com>
4592 * dwarf2read.c (get_cu_length): New function.
4593 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4594 (create_debug_types_hash_table): Ditto.
4595 (init_cutu_and_read_dies): Ditto.
4596 (init_cutu_and_read_dies_no_follow): Ditto.
4598 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4600 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4601 (struct abbrev_table): Define.
4602 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4604 (init_cutu_and_read_dies): Update.
4605 (abbrev_table_alloc_abbrev): New function. Replaces
4606 dwarf_alloc_abbrev. All callers updated.
4607 (abbrev_table_add_abbrev): New function.
4608 (abbrev_table_lookup_abbrev): New function. Replaces
4609 dwarf2_lookup_abbrev. All callers updated.
4610 (abbrev_table_read_table): New function. Contents moved here from
4611 dwarf2_read_abbrevs.
4612 (dwarf2_read_abbrevs): Call it.
4613 (abbrev_table_free): New function.
4614 (dwarf2_free_abbrev_table): Call it.
4616 2012-06-28 Stan Shebs <stan@codesourcery.com>
4618 * osdata.c (info_osdata_command): Filter out "Title" columns
4620 * common/linux-osdata.c (struct osdata_type): Add title field.
4621 (osdata_table): Add titles to each entry.
4622 (linux_command_xfer_osdata): Add a column for title data.
4624 2012-06-28 Stan Shebs <stan@codesourcery.com>
4626 Make logging work for MI.
4628 * interps.h (interp_set_logging_ftype): New typedef.
4629 (struct interp_procs): New field set_logging_proc.
4630 (current_interp_set_logging): Declare.
4631 * interps.c (current_interp_set_logging): New function.
4632 * cli/cli-logging.c: Include interps.h.
4633 (set_logging_redirect): Call current_interp_set_logging.
4634 (pop_output_files): Ditto.
4635 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4636 * mi/mi-console.h (mi_console_set_raw): Declare.
4637 * mi/mi-console.c (mi_console_set_raw): New function.
4638 * mi/mi-interp.c (saved_raw_stdout): New global.
4639 (mi_set_logging): New function.
4640 (_initialize_mi_interp): Add it to interp procs.
4642 2012-06-28 Doug Evans <dje@google.com>
4644 * symtab.c (lookup_symbol_aux_objfile): Use
4645 ALL_OBJFILE_PRIMARY_SYMTABS.
4647 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4649 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4651 * common/buffer.c: Include inttypes.h and stdint.h.
4652 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4654 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4655 Pedro Alves <palves@redhat.com>
4657 * gdbthread.h (ALL_THREADS): New macro.
4658 (thread_list): Declare.
4659 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4660 going, but instead fall through to the stepping handling.
4661 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4662 the passed in signal. Adjust debug output.
4663 (resume_callback): Rename to ...
4664 (linux_nat_resume_callback): ... this. Pass the thread's last
4665 stop signal, if in "pass" state.
4666 (linux_nat_resume): Adjust to rename.
4667 (stop_wait_callback): New assertion. Don't respawn signals;
4668 instead let the LWP remain with SIGNALLED set.
4669 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4670 * remote.c (append_pending_thread_resumptions): New.
4671 (remote_vcont_resume): Call it.
4672 * target.h (target_resume): Extend comment.
4674 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4676 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4678 2012-06-27 Doug Evans <dje@google.com>
4680 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4681 Delete have_addr_base, unused. All uses updated.
4682 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4683 (dwarf2_get_pc_bounds): Add ranges_base.
4684 (dwarf2_record_block_ranges): Ditto.
4686 2012-06-27 Tom Tromey <tromey@redhat.com>
4689 * varobj.c (varobj_create): Update.
4690 (varobj_set_value): Update.
4691 * tracepoint.c (validate_actionline): Update.
4692 (encode_actions_1): Update.
4693 * parse.c (parse_exp_1): Add 'pc' argument.
4694 (parse_exp_in_context): Add 'pc' argument. Change how
4695 expression_context_pc is set.
4696 (parse_expression): Update.
4697 (parse_field_expression): Update.
4698 * expression.h (parse_exp_1): Update.
4699 * eval.c (parse_to_comma_and_eval): Update.
4700 * breakpoint.c (set_breakpoint_condition): Update.
4701 (update_watchpoint): Update.
4702 (init_breakpoint_sal): Update
4703 (find_condition_and_thread): Update.
4704 (watch_command_1): Update.
4705 (update_breakpoint_locations): Update.
4706 * ada-lang.c (ada_read_renaming_var_value): Update.
4707 (create_excep_cond_exprs): Update.
4709 2012-06-27 Doug Evans <dje@google.com>
4711 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4714 2012-06-26 Doug Evans <dje@google.com>
4716 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4718 (error_check_comp_unit_head): New arg abbrev_section. All callers
4720 (read_and_check_comp_unit_head): Ditto.
4721 (read_and_check_type_unit_head): Ditto.
4723 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4725 New attribute 'last' for gdb.Symtab_and_line.
4726 * NEWS (Python Scripting): Add entry about the new attribute.
4727 * python/py-symtab.c (salpy_get_last): New function which
4728 implements the get method for the 'last' attribute of
4729 gdb.Symtab_and_line.
4730 (sal_object_getset): Add entry for the 'last' attribute.
4732 2012-06-26 Doug Evans <dje@google.com>
4734 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4735 (dwo_sections): Add macinfo, macro.
4736 (dwarf2_locate_dwo_sections): Watch for macro sections.
4737 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4738 All callers updated. Handle DWO files.
4740 * NEWS: Mention new options "set debug dwarf2-read" and
4741 "set debug symtab-create".
4742 * dwarf2read.c (dwarf2_read_debug): New static global.
4743 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4744 (process_queue): Ditto.
4745 (process_full_comp_unit): Ditto.
4746 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4747 * elfread.c (elf_symfile_read): Add debugging printf.
4748 * minsyms.c (install_minimal_symbols): Ditto.
4749 * psymtab.c (allocate_psymtab): Ditto.
4750 * symfile.c (allocate_symtab): Ditto.
4751 * symtab.c (symtab_create_debug): New global.
4752 (_initialize_symtab): Add new option "set debug symtab-create".
4753 * symtab.h (symtab_create_debug): Declare.
4755 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4756 (lookup_dwo_type_unit): Ditto.
4758 2012-06-26 Roland McGrath <roland@hack.frob.com>
4759 H.J. Lu <hongjiu.lu@intel.com>
4761 * amd64-linux-nat.c: Include <sys/user.h>.
4762 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4763 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4764 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4766 * configure.ac: Check if the fs_base and gs_base members of
4767 `struct user_regs_struct' exist.
4768 * config.in: Regenerated.
4769 * configure: Likewise.
4771 2012-06-25 Michael Eager <eager@eagercon.com>
4774 * python/python.c (gdbpy_write): Check for interrupted output.
4776 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4778 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4779 register as a stack alignment in ARM mode.
4781 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4783 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4784 * gnulib/config.in: Regenerate.
4785 * gnulib/configure: Likewise.
4786 * gnulib/import/m4/extensions.m4: Update it.
4787 * gnulib/import/m4/gnulib-common.m4: Likewise.
4788 * gnulib/import/m4/memmem.m4: Likewise.
4789 * gnulib/import/m4/mmap-anon.m4: Likewise.
4790 * gnulib/import/m4/multiarch.m4: Likewise.
4791 * gnulib/import/stdint.in.h: Likewise.
4793 2012-06-24 Yao Qi <yao@codesourcery.com>
4795 * corefile.c (write_memory_with_notification): New.
4796 * gdbcore.h: Declare write_memory_with_notification.
4797 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4798 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4799 * valops.c (value_assign): Likewise.
4800 * python/py-inferior.c (infpy_write_memory): Call
4801 'write_memory_with_notification'.
4803 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4805 * cc-with-index.sh: Use also -ex "set auto-load no".
4807 2012-06-23 Doug Evans <dje@google.com>
4810 * NEWS: Document additions to .gdb_index.
4811 * dwarf2read.c: #include "gdb/gdb-index.h".
4812 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4813 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4814 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4815 (dwarf2_read_index): Recognize version 7.
4816 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4817 block_kind, domain): All callers updated.
4818 (dw2_find_symbol_file): Handle new index CU values.
4819 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4820 (add_index_entry): New args is_static, kind. All callers updated.
4821 (offset_type_compare, uniquify_cu_indices): New functions
4822 (symbol_kind): New function.
4823 (write_psymtabs_to_index): Remove duplicate CU values.
4824 (write_psymtabs_to_index): Write .gdb_index version 7.
4826 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4828 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4829 * configure: Regenerate.
4831 2012-06-20 Yao Qi <yao@codesourcery.com>
4833 * python/py-inferior.c: Update comments of infpy_read_memory
4834 and infpy_write_memory.
4836 2012-06-19 Tom Tromey <tromey@redhat.com>
4839 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4840 (push_type_address_space): Remove.
4841 * parse.c (insert_into_type_stack): New function.
4842 (insert_type): Likewise.
4843 (insert_type_address_space): Rename from push_type_address_space.
4844 Insert tp_space_identifier.
4845 * c-exp.y (ptr_operator): New production.
4846 (abs_decl): Use ptr_operator.
4847 (space_identifier): Call insert_type_address_space.
4848 (ptype): Don't use const_or_volatile_or_space_identifier.
4849 (const_or_volatile_noopt): Call insert_type.
4850 (conversion_type_id, conversion_declarator): New productions.
4851 (operator): Use conversion_type_id.
4853 2012-06-18 Doug Evans <dje@google.com>
4855 * symtab.h (minimal_symbol): New member created_by_gdb.
4856 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4858 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4859 (search_symbols): Call it instead of lookup_symbol.
4860 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4862 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4863 Adjust address for DW_OP_GNU_addr_index.
4864 * dwarf2expr.h (dwarf_expr_context): Update comment.
4865 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4866 all callers updated. Handle TLS vars described with
4867 DW_OP_GNU_const_index.
4868 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4869 and DW_OP_GNU_const_index.
4870 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4872 * block.c (find_block_in_blockvector): Make explicit the fact that we
4873 ignore GLOBAL_BLOCK.
4875 2012-06-18 Tom Tromey <tromey@redhat.com>
4877 * c-exp.y (operator): Remove trailing space after "delete" and
4880 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4881 Jan Kratochvil <jan.kratochvil@redhat.com>
4883 Switch i386 and derived targets to ON_STACK.
4884 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4885 (amd64_dicos_init_abi): Remove its installment.
4886 * dicos-tdep.c (dicos_init_abi): Remove the
4887 set_gdbarch_call_dummy_location call. Update the comment here.
4888 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4889 (i386_dicos_init_abi): Remove its installment.
4890 * i386-tdep.c (i386_push_dummy_code): New function.
4891 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4892 i386_push_dummy_code.
4894 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4896 Remove stale dummy frames.
4897 * breakpoint.c: Include dummy-frame.h.
4898 (longjmp_breakpoint_ops): New variable.
4899 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4900 bp_longjmp_call_dummy.
4901 (bpstat_what, bptype_string, print_one_breakpoint_location)
4902 (init_bp_location): Support bp_longjmp_call_dummy.
4903 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4904 (set_longjmp_breakpoint_for_call_dummy)
4905 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4907 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4908 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4909 FIXME comment and extend the other comment for bp_call_dummy.
4910 (set_longjmp_breakpoint_for_call_dummy)
4911 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4912 * dummy-frame.c: Include gdbthread.h.
4913 (pop_dummy_frame_bpt): New function.
4914 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4915 (dummy_frame_discard): New function.
4916 (cleanup_dummy_frames): Update the comment about longjmps.
4917 * dummy-frame.h (dummy_frame_discard): New declaration.
4918 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4919 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4920 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4921 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4922 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4923 keep_going if IS_LONGJMP and there is no other reason to stop.
4925 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4927 * remote-sim.c (sim_command_completer): Initialize
4930 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4932 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4933 * dwarf2loc.c (call_site_parameter_matches): Support
4934 CALL_SITE_PARAMETER_PARAM_OFFSET.
4935 (needs_dwarf_reg_entry_value): Push stub value.
4936 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4937 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4938 * gdbtypes.h (enum call_site_parameter_kind): New item
4939 CALL_SITE_PARAMETER_PARAM_OFFSET.
4940 (struct call_site.parameter.u): New field param_offset.
4942 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4944 Code cleanup: Generalize call_site.parameter key.
4945 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4946 variable dwarf_reg. New variable kind_u. Update parameters to
4947 push_dwarf_reg_entry_value.
4948 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4949 * dwarf2expr.h (enum call_site_parameter_kind)
4950 (union call_site_parameter_u): Forward declarations.
4951 (struct dwarf_expr_context_funcs): Update parameters and their
4952 description for push_dwarf_reg_entry_value.
4953 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4954 * dwarf2loc.c (call_site_parameter_matches): New function.
4955 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4956 description. Use call_site_parameter_matches.
4957 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4958 Update parameters and their description.
4959 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4960 New variable kind_u. Adjust the caller for updated parameters.
4961 (needs_dwarf_reg_entry_value): Update parameters.
4962 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4963 instead of attr. Update for the changed fields of struct
4964 call_site_parameter.
4965 * gdbtypes.h: Include dwarf2expr.h.
4966 (enum call_site_parameter_kind): New.
4967 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4968 fb_offset into new union u.
4970 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4972 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4973 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4976 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4978 * amd64-linux-nat.c (compat_x32_clock_t): New.
4979 (compat_x32_siginfo_t): Likewise.
4980 (compat_x32_siginfo_from_siginfo): Likewise.
4981 (siginfo_from_compat_x32_siginfo): Likewise.
4982 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4983 and siginfo_from_compat_x32_siginfo for x32.
4985 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4987 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4989 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4991 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4992 instead of gdbarch_ptr_bit.
4993 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4994 (amd64_supply_native_gregset): Likewise.
4995 (amd64_collect_native_gregset): Likewise.
4996 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4997 (amd64_supply_xsave): Likewise.
4998 (amd64_collect_fxsave): Likewise.
4999 (amd64_collect_xsave): Likewise.
5001 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5003 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5004 (amd64_linux_read_description): Check DS segment register for
5007 2012-06-15 Tom Tromey <tromey@redhat.com>
5009 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5010 init_cutu_and_read_dies.
5012 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5014 * MAINTAINERS (Write After Approval): Add myself to the list.
5016 2012-06-15 Tom Tromey <tromey@redhat.com>
5018 * valops.c (value_find_oload_method_list): Now static.
5019 * value.h (value_find_oload_method_list): Don't declare.
5021 2012-06-15 Tom Tromey <tromey@redhat.com>
5023 * valops.c (find_overload_match): Use value_ind.
5025 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5027 * infrun.c (handle_inferior_event): Correct indentation.
5029 2012-06-14 Doug Evans <dje@google.com>
5031 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5032 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5034 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5035 updated. Handle DEBUG_LOC_START_LENGTH.
5036 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5037 (loclist_describe_location): Ditto.
5039 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5042 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5043 after hiding inline functions.
5045 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5047 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5048 _initialize_inf_ttrace.
5050 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5052 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5053 _initialize_hppa_hpux_nat.
5055 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5057 * remote-sim.c (sim_command_completer): Change type of return
5058 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5060 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5061 Jan Kratochvil <jan.kratochvil@redhat.com>
5064 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5065 stack on a 16-byte boundary.
5067 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5069 * jit.c (finalize_symtab): Set function's return type to 'void' by
5072 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5073 H.J. Lu <hongjiu.lu@intel.com>
5075 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5076 Move bits common to both the classic LP64 and the new x32 ILP32
5078 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5079 (amd64_x32_linux_init_abi): New function.
5080 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5083 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5084 * i386-tdep.c (i386_pseudo_register_name): Make public.
5085 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5086 * amd64-tdep.c (amd64_dword_names): Add "eip".
5087 (amd64_x32_pseudo_register_type): New function
5088 (amd64_x32_init_abi): New function.
5090 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5093 * inferior.h (struct inferior_suspend_state): Comment out.
5094 (struct inferior): Comment out the field suspend.
5095 * infrun.c (struct infcall_suspend_state): Comment out the field
5097 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5100 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5102 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5103 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5104 function comment. Return ERROR for unresolved cases. Implement
5105 returning proper NAME.
5106 (yylex): Accept also NAME from classify_inner_name.
5107 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5108 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5110 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5112 2012-06-13 Tom Tromey <tromey@redhat.com>
5114 * breakpoint.c (condition_completer): New function.
5115 (_initialize_breakpoint): Use it.
5116 * value.c (complete_internalvar): New function.
5117 * value.h (complete_internalvar): Declare.
5119 2012-06-13 Tom Tromey <tromey@redhat.com>
5121 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5122 * breakpoint.c (catch_syscall_completer): Return a VEC.
5123 * cli/cli-cmds.c (complete_command): Update.
5124 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5125 (complete_on_enum): Likewise.
5126 * command.h: Include gdb_vecs.h.
5127 (completer_ftype): Change return type.
5128 (complete_on_cmdlist, complete_on_enum): Likewise.
5129 * completer.c (noop_completer, filename_completer)
5130 (location_completer): Return a VEC.
5131 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5133 (expression_completer, complete_line_internal, complete_line)
5134 (command_completer): Return a VEC.
5135 (gdb_completion_word_break_characters, line_completion_function):
5137 * completer.h: Include gdb_vecs.h.
5138 (complete_line, noop_completer, filename_completer)
5139 (expression_completer, location_completer, command_completer):
5141 * f-lang.c (f_word_break_characters): Return a VEC.
5142 * interps.c (interpreter_completer): Return a VEC.
5143 * language.h (struct language_defn)
5144 <la_make_symbol_completion_list>: Return a VEC.
5145 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5146 * symtab.c (free_completion_list): Take a VEC.
5147 (return_val_size, return_val_index): Remove.
5148 (return_val): Now a VEC.
5149 (completion_list_add_name): Update.
5150 (default_make_symbol_completion_list_break_on)
5151 (default_make_symbol_completion_list, make_symbol_completion_list)
5152 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5154 (add_filename_to_list): Update.
5155 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5157 (maybe_add_partial_symtab_filename): Update.
5158 (make_source_files_completion_list): Return a VEC.
5159 * symtab.h (default_make_symbol_completion_list_break_on)
5160 (default_make_symbol_completion_list, make_symbol_completion_list)
5161 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5162 (make_source_files_completion_list): Update.
5164 2012-06-13 Tom Tromey <tromey@redhat.com>
5166 * breakpoint.c (add_catch_command): Use completer_ftype.
5167 * breakpoint.h: Include command.h.
5168 (add_catch_command): Use completer_ftype.
5169 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5170 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5171 Use completer_ftype.
5172 * command.h (completer_ftype): New typedef.
5173 (set_cmd_completer): Use it.
5174 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5177 2012-06-13 Pedro Alves <palves@redhat.com>
5179 Partial revert of previous change.
5181 * serial.c (scb_base): New global.
5182 (serial_for_fd): New.
5183 (serial_open, serial_fdopen_ops): Link new serial in open serials
5185 (do_serial_close): Unlink serial from the open serials chain.
5187 2012-06-12 Pedro Alves <palves@redhat.com>
5189 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5191 (prepare_for_detach): No longer context switch here in non-stop
5193 (fetch_inferior_event): Ditto.
5194 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5195 to the event thread before removing breakpoints. Switch to the
5196 event thread before inserting breakpoints and resuming.
5197 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5198 event thread before resuming.
5199 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5200 Switch to the event thread before removing breakpoints.
5202 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5204 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5205 special characters correctly for the Windows shells. See
5206 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5208 [!__MINGW32__]: Remove extra double quote character from special
5211 2012-06-11 Stan Shebs <stan@codesourcery.com>
5213 * ui-out.h: Remove #if 0 declarations.
5214 * ui-out.c: Remove #if 0 functions.
5216 2012-06-11 Pedro Alves <palves@redhat.com>
5218 * ser-base.c (run_async_handler_and_reschedule): New.
5219 (fd_event, push_event): Use it.
5220 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5221 reference count to 1.
5222 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5224 (serial_is_open, serial_ref, serial_unref): New.
5225 * serial.h (serial_open): Adjust comment.
5226 (serial_is_open): Declare.
5227 (serial_close): Adjust comment.
5228 (serial_ref, serial_unref) Declare.
5229 (struct serial): New field 'refcnt'.
5231 2012-06-11 Pedro Alves <palves@redhat.com>
5233 Remove #if 0'd "connect" command, and unnecessary associated
5234 refcounting and serial reuse bits.
5236 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5237 * serial.c (last_serial_opened): Delete.
5239 (serial_open): Adjust.
5240 (serial_for_fd): Delete.
5241 (serial_fdopen_ops, do_serial_close): Adjust.
5242 (serial_fdopen_ops): Adjust.
5244 2012-06-11 Pedro Alves <palves@redhat.com>
5246 * serial.c (do_serial_close): Remove early return when SCB is
5249 2012-06-11 Tom Tromey <tromey@redhat.com>
5251 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5253 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 Fix regression by the "ambiguous linespec" series.
5256 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5257 get_last_displayed_symtab and get_last_displayed_line and depending
5260 2012-06-11 Tom Tromey <tromey@redhat.com>
5262 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5263 (dw2_find_symbol_file): Use it.
5265 2012-06-11 Michael Eager <eager@eagercon.com>
5267 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5268 * mips-linux-tdep.h (mips_signals): New
5270 2012-06-11 Tom Tromey <tromey@redhat.com>
5272 * infrun.c (handle_inferior_event)
5273 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5275 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5276 exception logic in all cases. Update comments.
5277 (insert_longjmp_resume_breakpoint): Set the exception resume
5280 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5282 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5284 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5286 * valarith.c (binop_types_user_defined_p): Fix a typo.
5288 2012-06-08 Yao Qi <yao@codesourcery.com>
5289 Chung-Lin Tang <cltang@codesourcery.com>
5291 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5292 * arch-utils.h: Declare.
5293 * gdbarch.sh: Add return_in_first_hidden_param_p.
5294 * gdbarch.c, gdbarch.h: Regenerated.
5295 * infcall.c (call_function_by_hand): Call
5296 gdbarch_return_in_first_hidden_param_p instead of
5297 language_pass_by_reference.
5299 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5300 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5301 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5302 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5303 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5304 `cplus_return_struct_by_reference'.
5305 (tic6x_return_value): Handle language cplusplus.
5306 (tic6x_return_in_first_hidden_param_p): New.
5307 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5309 2012-06-07 Doug Evans <dje@google.com>
5311 * dwarf2read.c (dwarf2_cu): Add comment.
5313 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5315 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5317 (mips_eabi_push_dummy_call): Likewise.
5318 (mips_n32n64_push_dummy_call): Likewise.
5319 (mips_o32_push_dummy_call): Likewise.
5320 (mips_o64_push_dummy_call): Likewise.
5322 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5324 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5326 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5328 * mips-tdep.c (mips_pseudo_register_type): Use
5329 mips_float_register_p.
5331 2012-06-06 Pedro Alves <palves@redhat.com>
5333 * infrun.c (handle_inferior_event): Remove calls to
5334 reinit_frame_cache that follow a context_switch call.
5336 2012-06-06 Pedro Alves <palves@redhat.com>
5338 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5339 context_switch and remove stale comment.
5341 2012-06-06 Pedro Alves <palves@redhat.com>
5343 * infrun.c (struct execution_control_state): Remove
5344 `new_thread_event' field.
5345 (handle_inferior_event): Simplify new threads handling; don't
5346 resume the inferior if we find a new thread.
5348 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5350 * NEWS: Document the deprecation of SH's 'regs' command.
5351 * inferior.h (all_registers_info): Add function declaration.
5352 * sh-tdep.c (sh_show_regs): Remove variable.
5353 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5354 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5355 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5356 (sh_show_regs_command): Remove functions.
5357 (sh_gdbarch_init): Don't set sh_show_regs.
5358 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5359 'info all-registers'.
5360 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5361 (sh64_show_regs): Remove functions.
5362 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5364 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5366 * configure.ac: Move development=true below AC_INIT.
5367 * configure: Regenerate.
5369 2012-06-05 Stan Shebs <stan@codesourcery.com>
5371 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5374 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5376 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5377 argument as ssize_t.
5378 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5379 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5380 * target.c (target_read_stack, target_write_memory)
5381 (target_write_raw_memory): Likewise.
5382 * target.h (target_read_stack, target_write_memory)
5383 (target_write_raw_memory): Likewise.
5385 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5387 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5388 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5389 * target.c (target_read_memory): Change LEN to ssize_t.
5390 * target.h (target_read_memory): Change LEN to ssize_t.
5392 2012-06-05 Pedro Alves <palves@redhat.com>
5396 * breakpoint.c (until_break_command): Only fetch the selected
5397 frame after decode_line_1.
5399 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5401 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5402 event breakpoint at _start, __start or main if a program
5403 interpreter is not found.
5405 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5407 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5409 * windows-tdep.c: #include "objfiles.h".
5410 (windows_iterate_over_objfiles_in_search_order): New function.
5411 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5412 iterate_over_objfiles_in_search_order gdbarch method to
5413 windows_iterate_over_objfiles_in_search_order.
5414 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5416 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5418 * gdbarch.sh: Add generation of
5419 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5420 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5421 (iterate_over_objfiles_in_search_order): New gdbarch method.
5422 * gdbarch.h, gdbarch.c: Regenerate.
5423 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5425 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5427 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5428 out of lookup_symbol_aux_symtabs.
5429 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5430 call to lookup_symbol_aux_objfile.
5431 (struct global_sym_lookup_data): New type.
5432 (lookup_symbol_global_iterator_cb): New function.
5433 (lookup_symbol_global): Search for symbol using
5434 gdbarch_iterate_over_objfiles_in_search_order and
5435 lookup_symbol_global_iterator_cb.
5436 * findvar.c (struct minsym_lookup_data): New type.
5437 (minsym_lookup_iterator_cb): New function.
5438 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5439 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5440 and minsym_lookup_iterator_cb.
5442 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5444 Revert the following patch:
5445 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5446 try locating the symbol in the symbol's own objfile first, before
5447 extending the search to all objfiles.
5448 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5449 out of lookup_symbol_aux_symtabs.
5450 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5451 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5452 Do not search EXCLUDE_OBJFILE.
5453 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5454 (lookup_symbol_global): Search for matches in the block's objfile
5455 first, before searching all other objfiles.
5457 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5459 * breakpoint.c (find_condition_and_thread): Stop parsing
5460 as soon as the first invalid keyword is found.
5462 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5464 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5466 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5468 * config/djgpp/djcheck.sh: Add copyright header.
5470 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5472 * copyright.py (update_files, main): Fix path to update-copyright
5475 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5477 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5478 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5479 for which a reminder to update by hand is printed.
5481 2012-06-04 Doug Evans <dje@google.com>
5483 * buildsym.c (make_blockvector): Add comment.
5485 2012-06-04 Pedro Alves <palves@redhat.com>
5487 * arch-utils.c (default_gdb_signal_from_target): Delete.
5488 * arch-utils.h (default_gdb_signal_from_target): Delete.
5489 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5490 gdbarch_gdb_signal_from_target_p.
5491 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5493 * gdbarch.h: Regenerate.
5494 * gdbarch.c: Regenerate.
5496 2012-06-04 Pedro Alves <palves@redhat.com>
5498 * gdbarch.sh (gdb_signal_from_target): Mention that the
5499 implementation of the method must be host independent.
5500 * gdbarch.h: Regenerate.
5502 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5504 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5506 (target_read_memory_bfd): New function.
5507 (symbol_file_add_from_memory): Use it.
5509 2012-06-03 Doug Evans <dje@google.com>
5511 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5513 (basic_lookup_transparent_type): Ditto.
5515 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5516 (ALL_PRIMARY_SYMTABS): Use it.
5517 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5518 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5519 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5520 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5521 (basic_lookup_transparent_type): Ditto.
5523 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5525 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5526 it to optimize resolution of demangled name.
5528 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5530 * configure.ac (development): Define new variable.
5531 Call AC_CHECK_LIB for mcheck if $development.
5532 (ERROR_ON_WARNING): Enable it by default only if $development.
5533 * config.in: Regenerate.
5534 * configure: Regenerate.
5536 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5538 * target.c (target_read_memory): Make LEN argument as size_t.
5539 * target.h (target_read_memory): Likewise.
5541 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5543 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5545 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5547 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5548 BookE interface for PowerPC server processors if not available
5549 in the Linux Kernel.
5551 2012-05-31 Keith Seitz <keiths@redhat.com>
5553 * linespec.c (decode_objc): Add cleanup to free
5555 (find_linespec_symbols): Add cleanup to free CLASSES.
5556 * symfile.c (find_separate_debug_file_by_debuglink): Add
5557 cleanup to free DEBUGLINK.
5558 * ui-out.c (clear_header_list): No need to check if
5559 HEADER_NEXT.COLHDR is NULL.
5560 Free HEADER_NEXT.COL_NAME.
5562 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5564 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5567 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5569 * configure.host (gdb_host_cpu): Handle tilegx*.
5570 (gdb_host): Handle tilegx-*-linux*.
5571 * tilegx-linux-nat.c: New file.
5572 * config/tilegx/linux.mh: New file.
5574 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5576 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5577 tilegx-linux-tdep.o.
5578 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5579 tilegx-linux-tdep.c.
5580 * configure.tgt: Handle tilegx-*-linux*.
5581 * tilegx-tdep.h: New file.
5582 * tilegx-tdep.c: New file.
5583 * tilegx-linux-tdep.c: New file.
5584 * regformats/reg-tilegx.dat: New file.
5586 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5588 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5589 accounting of hw watchpoints on ppc.
5591 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5593 * source.c (openp): Expand tilde in path entries.
5595 2012-05-29 Doug Evans <dje@google.com>
5597 * buildsym.c (block_compar): Fix comment.
5598 (end_symtab): Fix and clarify some comments.
5600 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5601 cleanup_undefined_types.
5602 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5603 All callers updated.
5605 2012-05-29 Tom Tromey <tromey@redhat.com>
5607 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5609 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5610 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5612 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5615 2012-05-29 Tristan Gingold <gingold@adacore.com>
5617 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5618 (struct darwin_info): ... New struct.
5619 (solib_darwin_pspace_data): New variable.
5620 (darwin_pspace_data_cleanup): New function.
5621 (get_darwin_info): Likewise.
5622 (darwin_dyld_version_ok, darwin_load_image_infos)
5623 (darwin_solib_get_all_image_info_addr_at_init)
5624 (darwin_solib_read_all_image_info_addr): Add info argument.
5626 (darwin_current_sos): Use per pspace structure.
5627 (darwin_solib_create_inferior_hook): Likewise.
5628 (darwin_clear_solib): Likewise.
5629 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5631 2012-05-28 Pedro Alves <palves@redhat.com>
5633 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5634 block that uses them. Clear ecss before handling each event.
5636 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5638 * solib-svr4.c (svr4_current_sos): New comment on
5639 svr4_current_sos_via_xfer_libraries fall back.
5641 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5643 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5644 it as a fallback for TYPE_IS_OPAQUE.
5645 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5646 symbols for lookup_symbol.
5648 2012-05-24 John Steele Scott <toojays@toojays.net>
5650 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5651 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5652 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5653 (check_producer): ... this new function, which also checks for ICC
5654 and caches the result.
5655 (producer_is_icc): New function.
5656 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5659 2012-05-24 Pedro Alves <palves@redhat.com>
5663 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5664 (default_gdb_signal_to_target): ... this. Add comment.
5665 (default_gdb_signal_from_host): Rename to ...
5666 (default_gdb_signal_from_target): ... this. Add comment.
5667 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5668 (default_gdb_signal_to_target): ... this.
5669 (default_gdb_signal_from_host): Rename to ...
5670 (default_gdb_signal_from_target): ... this.
5671 * corelow.c (core_open): Adjust to naming change. Replace comment.
5672 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5673 (gdb_signal_from_target): ... this. Adjust to
5674 default_gdb_signal_from_host naming change. Extend comment.
5675 (gdb_signal_to_host): Rename to ...
5676 (gdb_signal_to_target): ... this. Adjust to
5677 default_gdb_signal_to_host naming change.
5678 * gdbarch.h, gdbarch.c: Renegerate.
5680 2012-05-24 Pedro Alves <palves@redhat.com>
5684 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5686 2012-05-24 Pedro Alves <palves@redhat.com>
5690 Replace target_signal with gdb_signal throughout.
5692 2012-05-24 Pedro Alves <palves@redhat.com>
5696 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5697 string, instead of reusing the va_list argument.
5699 2012-05-24 Tom Tromey <tromey@redhat.com>
5701 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5704 2012-05-23 Doug Evans <dje@google.com>
5706 * symtab.c (search_symbols): Formatting fixes.
5707 (print_symbol_info): Formatting fixes.
5709 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5710 int64_t change to leb128 API.
5711 (read_encoded_value, decode_frame_entry_1): Ditto.
5712 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5713 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5714 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5715 (execute_stack_op): Ditto.
5716 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5717 (safe_read_uleb128, safe_read_sleb128): Ditto.
5718 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5719 (dwarf2_compile_expr_to_ax): Ditto.
5720 (locexpr_describe_location_piece): Ditto.
5721 (disassemble_dwarf_expression): Ditto.
5722 (locexpr_describe_location_1): Ditto.
5724 2012-05-23 Stan Shebs <stan@codesourcery.com>
5725 Kwok Cheung Yeung <kcy@codesourcery.com>
5727 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5728 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5729 (mi-cmd-info.o): New rule.
5730 * osdata.h (info_osdata_command): New declaration.
5731 * osdata.c (info_osdata_command): Change to non-static.
5732 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5733 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5734 * mi/mi-cmd-info.c: New file.
5736 2012-05-23 Doug Evans <dje@google.com>
5738 * symtab.c (search_symbols): Pass NULL for file_matcher to
5739 expand_symtabs_matching if there are no files to match.
5741 * gdbtypes.c (lookup_typename): Simplify.
5743 2012-05-23 Pedro Alves <palves@redhat.com>
5745 * arch-utils.h (default_target_signal_to_host): Delete.
5746 * arch-utils.c (default_target_signal_to_host): Delete.
5747 * gdbarch.sh (target_signal_to_host): Remove.
5748 * gdbarch.h, gdbarch.c: Regenerate.
5750 2012-05-22 Doug Evans <dje@google.com>
5752 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5754 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5755 (execute_cfa_program): Update to match API of leb128 functions.
5756 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5758 (read_unsigned_leb128, read_signed_leb128): Delete.
5759 (read_initial_length): Change type of buf argument to
5761 (read_encoded_value): Update to match API of leb128 functions.
5762 (decode_frame_entry): Change result to "const gdb_byte *", and
5763 similarly for "start" parameter.
5764 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5765 (dwarf2_build_frame_info): Change local frame_ptr to
5767 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5768 read_uleb128, read_sleb128. All callers updated.
5769 (safe_skip_leb128): New function.
5770 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5771 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5772 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5773 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5774 read_uleb128, read_sleb128.
5775 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5776 (execute_stack_op): Update to match API of leb128 functions.
5777 * dwarf2expr.h: #include "leb128.h".
5778 (read_uleb128, read_sleb128): Delete.
5779 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5780 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5781 * dwarf2loc.c (debug_loc_kind): New enum.
5782 (decode_debug_loc_addresses): New function.
5783 (decode_debug_loc_dwo_addresses): New function.
5784 (dwarf2_find_location_expression): Rewrite.
5785 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5786 (locexpr_describe_location_piece): Ditto.
5787 (disassemble_dwarf_expression): Ditto.
5788 (locexpr_describe_location_1): Ditto.
5789 (loclist_describe_location): Rewrite.
5790 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5791 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5792 (dwarf2_section_buffer_overflow_complaint): Renamed from
5793 dwarf2_macros_too_long_complaint. All callers updated.
5794 (skip_leb128): Delete.
5795 (init_cu_die_reader): Initialize reader->buffer_end.
5796 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5797 (skip_form_bytes): New arg buffer_end. All callers updated.
5798 Replace call to skip_leb128 with gdb_skip_leb128.
5799 (skip_unknown_opcode): New arg mac_end. All callers updated.
5800 (fill_in_loclist_baton): Initialize baton->from_dwo.
5802 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5804 * mips-linux-nat.c (mips_linux_read_description): Use a more
5805 verbose error message.
5807 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5809 * NEWS: Add MIPS/Linux DSP support.
5810 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5811 (SIGCONTEXT_DSPCTL): New macro.
5812 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5813 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5814 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5815 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5816 (N64_SIGCONTEXT_HI3): Likewise.
5817 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5818 (N64_SIGCONTEXT_LO3): Likewise.
5819 (N64_SIGCONTEXT_DSPCTL): Likewise.
5820 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5821 (mips_linux_o32_sigframe_init): Handle DSP registers.
5822 (mips_linux_n32n64_sigframe_init): Likewise.
5824 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5826 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5829 2012-05-22 Pedro Alves <palves@redhat.com>
5831 * target.h (store_waitstatus): Move declaration ...
5832 * inf-child.h (store_waitstatus): ... here.
5833 * target.c: Move inclusion of gdb_wait.h, and ...
5834 (store_waitstatus): ... this ...
5835 * inf-child.c: ... here.
5836 * linux-nat.c: Include inf-child.h.
5837 * rs6000-nat.c: Include inf-child.h.
5838 * spu-linux-nat.c: Include inf-child.h.
5840 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5842 * tracepoint.c (start_tracing): Add missing i18n markup.
5843 (stop_tracing, set_trace_user): Ditto.
5844 (set_trace_notes, set_trace_stop_notes): Ditto.
5846 2012-05-21 Tom Tromey <tromey@redhat.com>
5849 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5851 * value.h (value_cast_pointers): Update.
5852 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5853 (value_cast): Update.
5854 (update_search_result): New function.
5855 (do_search_struct_field): New, from search_struct_field. Check
5856 for ambiguous results.
5857 (search_struct_field): Rewrite.
5858 * infcall.c (value_arg_coerce): Update.
5859 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5860 value_cast_pointers.
5861 * ada-lang.c (ada_convert_actual): Update.
5863 2012-05-21 Tom Tromey <tromey@redhat.com>
5865 * macroexp.c (macro_stringify): Terminate the string.
5867 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5869 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5871 * auto-load.c (auto_load_expand_dir_vars): New function.
5872 (auto_load_safe_path_vec_update): Use it, remove the
5873 substitute_path_component call thanks to it.
5874 (auto_load_objfile_script): Remove the debug_file_directory processing.
5875 Use auto_load_expand_dir_vars, remove the substitute_path_component
5877 * configure: Regenerate.
5878 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5879 path. Escape $ also for $debugdir.
5880 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5881 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5883 2012-05-20 Doug Evans <dje@google.com>
5885 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5886 before use. Check for symtab->includes == NULL before scanning it.
5888 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5890 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5892 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5894 * NEWS: Add microMIPS support and "set mips compression",
5895 "show mips compression" commands.
5896 * mips-tdep.h (mips_isa): New enum.
5897 (gdbarch_tdep): Add mips_isa.
5898 (mips_pc_is_mips16): Update prototype.
5899 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5900 * mips-tdep.c (mips_compression_mips16): New variable.
5901 (mips_compression_micromips): Likewise.
5902 (mips_compression_strings): Likewise.
5903 (mips_compression_string): Likewise.
5904 (is_mips16_isa, is_micromips_isa): New functions.
5905 (is_mips16_addr): Rename to...
5906 (is_compact_addr): ... this.
5907 (unmake_mips16_addr): Likewise to...
5908 (unmake_compact_addr): ... this.
5909 (make_mips16_addr): Likewise to...
5910 (make_compact_addr): ... this.
5911 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5913 (mips_elf_make_msymbol_special): Handle microMIPS code.
5914 (msymbol_is_special): Rename to...
5915 (msymbol_is_mips16): ... this.
5916 (mips_make_symbol_special, mips_pc_is_mips16): Update
5918 (msymbol_is_mips, msymbol_is_micromips): New functions.
5919 (mips16_to_32_reg): Rename to...
5920 (mips_reg3_to_reg): ... this.
5921 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5922 (mips_pc_isa): Likewise.
5923 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5925 (mips_fetch_instruction): Pass return status instead of printing
5926 an error message if requested. Handle microMIPS code. Bail out
5928 (micromips_op): New macro.
5929 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5930 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5931 (b6s4_op, b7s3_reg): Likewise.
5932 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5933 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5934 (mips_insn_size): New function.
5935 (mips32_next_pc): Update mips_fetch_instruction call.
5936 (micromips_relative_offset7): New function.
5937 (micromips_relative_offset10): Likewise.
5938 (micromips_relative_offset16): Likewise.
5939 (micromips_pc_insn_size): Likewise.
5940 (micromips_bc1_pc): Likewise.
5941 (micromips_next_pc): Likewise.
5942 (unpack_mips16): Update mips_fetch_instruction call.
5943 (extended_mips16_next_pc): Update according to change to
5945 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5947 (mips16_scan_prologue): Update mips_fetch_instruction call.
5948 Update according to change to mips16_to_32_reg.
5949 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5950 (mips_insn16_frame_base_sniffer): Likewise.
5951 (micromips_decode_imm9): New function.
5952 (micromips_scan_prologue): Likewise.
5953 (mips_micro_frame_cache): Likewise.
5954 (mips_micro_frame_this_id): Likewise.
5955 (mips_micro_frame_prev_register): Likewise.
5956 (mips_micro_frame_sniffer): Likewise.
5957 (mips_micro_frame_unwind): New variable.
5958 (mips_micro_frame_base_address): New function.
5959 (mips_micro_frame_base): New variable.
5960 (mips_micro_frame_base_sniffer): New function.
5961 (mips32_scan_prologue): Update mips_fetch_instruction call.
5962 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5963 rather than for MIPS16.
5964 (mips_insn32_frame_base_sniffer): Likewise.
5965 (mips_addr_bits_remove): Handle microMIPS code.
5966 (deal_with_atomic_sequence): Rename to...
5967 (mips_deal_with_atomic_sequence): ... this. Update the type
5968 of the variable used to hold an instruction. Remove the ISA bit
5969 check. Update mips_fetch_instruction call.
5970 (micromips_deal_with_atomic_sequence): New function.
5971 (deal_with_atomic_sequence): Likewise.
5972 (mips_about_to_return): Handle microMIPS code. Update
5973 mips_fetch_instruction call.
5974 (heuristic_proc_start): Check for the standard MIPS ISA rather
5975 than for MIPS16. Update mips_pc_is_mips16 and
5976 mips_fetch_instruction calls. Handle microMIPS code.
5977 (mips_push_dummy_code): Handle microMIPS code.
5978 (mips_eabi_push_dummy_call): Likewise.
5979 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5980 (mips_o64_push_dummy_call): Handle microMIPS code.
5981 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5982 (is_delayed): Remove function.
5983 (mips_single_step_through_delay): Replace the call to is_delayed
5984 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5985 Handle microMIPS code.
5986 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5988 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5990 (micromips_in_function_epilogue_p): New function.
5991 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5993 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5995 (gdb_print_insn_mips): Likewise.
5996 (mips_breakpoint_from_pc): Likewise.
5997 (mips_remote_breakpoint_from_pc): New function.
5998 (mips32_instruction_has_delay_slot): Simplify making use of the
5999 updated mips_fetch_instruction interface.
6000 (micromips_instruction_has_delay_slot): New function.
6001 (mips16_instruction_has_delay_slot): Simplify making use of the
6002 updated mips_fetch_instruction interface.
6003 (mips_adjust_breakpoint_address): Check for the standard MIPS
6004 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6005 calls. Handle microMIPS code.
6006 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6007 (mips_skip_trampoline_code): Handle microMIPS code.
6008 (global_mips_compression): New function.
6009 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6010 file flags. Register the microMIPS remote breakpoint handler
6011 and heuristic frame unwinder.
6012 (show_mips_compression): New function.
6013 (_initialize_mips_tdep): Add the "set mips compression" and
6014 "show mips compression" commands.
6016 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6021 * amd64-darwin-tdep.c:
6022 * arm-symbian-tdep.c:
6026 * bfin-linux-tdep.c:
6033 * dwarf2-frame-tailcall.c:
6062 * microblaze-tdep.c:
6063 * mips-linux-tdep.c:
6071 * python/py-finishbreakpoint.c:
6072 * python/py-inferior.c:
6073 * python/py-infthread.c:
6077 * remote-m32r-sdi.c:
6081 * rs6000-aix-tdep.c:
6107 * amd64-darwin-tdep.c:
6108 * arm-symbian-tdep.c:
6109 * arm-tdep.c: Delete unused variables.
6111 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6113 Rename $ddir to $datadir.
6114 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6115 * auto-load.c (auto_load_safe_path_vec_update)
6116 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6117 * configure: Regenerate.
6118 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6119 Likewise. Remove the 'use $ddir' help string.
6121 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6123 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6124 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6126 2012-05-18 Tom Tromey <tromey@redhat.com>
6129 * valprint.h (struct value_print_options) <symbol_print>: New
6131 * valprint.c (user_print_options): Add default for symbol_print.
6132 (show_symbol_print): New function.
6133 (generic_val_print): Respect symbol_print.
6134 (_initialize_valprint): Add "print symbol" setting.
6135 * f-valprint.c (f_val_print): Respect symbol_print.
6136 * c-valprint.c (c_val_print): Respect symbol_print.
6138 * printcmd.c (print_address_symbolic): Return int. Ignore some
6140 (print_address_demangle): Return int.
6141 * defs.h: (print_address_symbolic): Return int.
6142 * value.h (print_address_demangle): Return int.
6144 2012-05-18 Tom Tromey <tromey@redhat.com>
6146 * valprint.c (val_print_string): Don't print leading space.
6147 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6148 print space before string or vtbl.
6149 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6151 * jv-valprint.c (java_value_print): Print space before string.
6152 * go-valprint.c (print_go_string): Print space before string.
6153 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6154 space before string.
6155 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6156 space before string or vtbl.
6157 * auxv.c (fprint_target_auxv): Print space after address.
6159 2012-05-18 Tom Tromey <tromey@redhat.com>
6161 * printcmd.c (print_address_demangle): Remove special case for 0.
6163 2012-05-18 Tom Tromey <tromey@redhat.com>
6165 * printcmd.c (print_address_demangle): Add 'opts' argument.
6166 * p-valprint.c (pascal_val_print): Update.
6167 * jv-valprint.c (java_val_print): Update.
6169 * valprint.c (generic_val_print): Update.
6170 (print_function_pointer_address): Add 'options' argument. Remove
6171 'addressprint' argument. Update.
6172 * m2-valprint.c (print_unpacked_pointer): Update.
6173 * gnu-v3-abi.c (print_one_vtable): Update.
6174 (gnuv3_print_method_ptr): Update.
6175 * f-valprint.c (f_val_print): Update.
6176 * cp-valprint.c (cp_print_value_fields): Update.
6177 * valprint.h (print_function_pointer_address): Update.
6178 * c-valprint.c (c_val_print): Update.
6180 2012-05-18 Tom Tromey <tromey@redhat.com>
6182 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6183 directly corresponding to the found psymtab.
6184 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6185 (dw2_find_pc_sect_symtab): Use it.
6186 * block.h (blockvector_contains_pc): Declare.
6187 * block.c (find_block_in_blockvector): New function.
6188 (blockvector_for_pc_sect): Use it.
6189 (blockvector_contains_pc): New function.
6191 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6193 * mips-tdep.h (mips_write_pc): New prototype.
6194 * mips-tdep.c (mips_write_pc): Make external, add description.
6195 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6198 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6200 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6202 (mips_unwind_pc, mips_write_pc): Likewise.
6203 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6206 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6208 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6209 proc_warn, proc_error, proc_get_status, proc_flags,
6210 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6211 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6212 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6213 proc_stop_process, proc_wait_for_stop, proc_run_process,
6214 proc_set_traced_signals, proc_set_traced_faults,
6215 proc_set_traced_sysentry, proc_set_traced_sysexit,
6216 proc_set_held_signals, proc_get_held_signals,
6217 proc_get_traced_signals, proc_get_traced_faults,
6218 proc_get_traced_sysentry, proc_get_traced_sysexit,
6219 proc_clear_current_fault, proc_set_current_signal,
6220 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6221 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6222 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6223 proc_get_current_thread, proc_get_current_thread,
6224 proc_get_current_thread, proc_update_threads,
6225 proc_update_threads, proc_update_threads, proc_update_threads,
6226 proc_iterate_over_threads, procfs_find_new_threads,
6227 procfs_pid_to_str): Make static. Remove advance declaration.
6228 (proc_cursig): Make static. Conditionalized defintion on
6229 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6230 (proc_syscall, proc_set_kill_on_last_close,
6231 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6232 proc_get_pending_signals, proc_get_signal_actions,
6233 proc_trace_signal, proc_ignore_signal): Delete.
6235 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6237 * coffread.c (cs_section_address): Passing proper argument for
6238 `bfd_get_section_vma'.
6239 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6240 `bfd_get_section_flags'.
6241 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6242 `bfd_get_section_vma'.
6244 2012-05-16 Tom Tromey <tromey@redhat.com>
6247 * macrotab.h: (macro_define_special): Declare.
6248 (enum macro_special_kind): New.
6249 (struct macro_definition) <argc, replacement>: Update comments.
6250 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6251 (macro_define_object_internal): New function.
6252 (macro_define_object): Use it.
6253 (macro_define_special): New function.
6254 (fixup_definition): New function.
6255 (macro_lookup_definition, foreach_macro_in_scope)
6256 (foreach_macro): Use fixup_definition.
6257 * macroexp.h (macro_stringify): Declare.
6258 * macroexp.c (free_buffer_return_text): New function.
6259 (stringify): Constify "arg".
6260 (macro_stringify): New function.
6261 * dwarf2read.c (macro_start_file): Call macro_define_special.
6263 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6264 Maciej W. Rozycki <macro@mips.com>
6266 * breakpoint.h (bp_location): Add related_address member.
6267 * inferior.h (get_return_value): Take a pointer to struct value
6268 instead of struct type for the function requested.
6269 * value.h (using_struct_return): Likewise.
6270 * gdbarch.sh (return_value): Take a pointer to struct value
6271 instead of struct type for the function requested.
6272 * breakpoint.c (set_breakpoint_location_function): Initialize
6273 related_address for bp_gnu_ifunc_resolver breakpoints.
6274 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6275 requested function's address to gdbarch_return_value.
6276 * eval.c (evaluate_subexp_standard): Pass the requested
6277 function's address to using_struct_return.
6278 * infcall.c (call_function_by_hand): Pass the requested
6279 function's address to using_struct_return and
6280 gdbarch_return_value.
6281 * infcmd.c (get_return_value): Take a pointer to struct value
6282 instead of struct type for the function requested.
6283 (print_return_value): Update accordingly.
6284 (finish_command_continuation): Likewise.
6285 * stack.c (return_command): Pass the requested function's
6286 address to using_struct_return and gdbarch_return_value.
6287 * value.c (using_struct_return): Take a pointer to struct value
6288 instead of struct type for the function requested. Pass the
6289 requested function's address to gdbarch_return_value.
6290 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6291 New function_value member, replacing function_type.
6292 (bpfinishpy_dealloc): Update accordingly.
6293 (bpfinishpy_pre_stop_hook): Likewise.
6294 (bpfinishpy_init): Likewise. Record the requested function's
6296 * mips-tdep.c (mips_fval_reg): New enum.
6297 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6298 words put in GP registers.
6299 (mips_o64_push_dummy_call): Update a comment.
6300 (mips_o32_return_value): Take a pointer to struct value instead
6301 of struct type for the function requested and use it to check if
6302 using the MIPS16 calling convention. Return the designated
6303 general purpose registers for floating-point values returned in
6305 (mips_o64_return_value): Likewise.
6306 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6307 (ppc_sysv_abi_broken_return_value): Likewise.
6308 (ppc64_sysv_abi_return_value): Likewise.
6309 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6310 value instead of struct type for the function requested.
6311 * amd64-tdep.c (amd64_return_value): Likewise.
6312 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6313 * arm-tdep.c (arm_return_value): Likewise.
6314 * avr-tdep.c (avr_return_value): Likewise.
6315 * bfin-tdep.c (bfin_return_value): Likewise.
6316 * cris-tdep.c (cris_return_value): Likewise.
6317 * frv-tdep.c (frv_return_value): Likewise.
6318 * h8300-tdep.c (h8300_return_value): Likewise.
6319 (h8300h_return_value): Likewise.
6320 * hppa-tdep.c (hppa32_return_value): Likewise.
6321 (hppa64_return_value): Likewise.
6322 * i386-tdep.c (i386_return_value): Likewise.
6323 * ia64-tdep.c (ia64_return_value): Likewise.
6324 * iq2000-tdep.c (iq2000_return_value): Likewise.
6325 * lm32-tdep.c (lm32_return_value): Likewise.
6326 * m32c-tdep.c (m32c_return_value): Likewise.
6327 * m32r-tdep.c (m32r_return_value): Likewise.
6328 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6329 * m68k-tdep.c (m68k_return_value): Likewise.
6330 (m68k_svr4_return_value): Likewise.
6331 * m88k-tdep.c (m88k_return_value): Likewise.
6332 * mep-tdep.c (mep_return_value): Likewise.
6333 * microblaze-tdep.c (microblaze_return_value): Likewise.
6334 * mn10300-tdep.c (mn10300_return_value): Likewise.
6335 * moxie-tdep.c (moxie_return_value): Likewise.
6336 * mt-tdep.c (mt_return_value): Likewise.
6337 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6338 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6339 (ppc_sysv_abi_broken_return_value): Likewise.
6340 (ppc64_sysv_abi_return_value): Likewise.
6341 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6342 * rl78-tdep.c (rl78_return_value): Likewise.
6343 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6344 * rx-tdep.c (rx_return_value): Likewise.
6345 * s390-tdep.c (s390_return_value): Likewise.
6346 * score-tdep.c (score_return_value): Likewise.
6347 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6348 (sh_return_value_fpu): Likewise.
6349 * sh64-tdep.c (sh64_return_value): Likewise.
6350 * sparc-tdep.c (sparc32_return_value): Likewise.
6351 * sparc64-tdep.c (sparc64_return_value): Likewise.
6352 * spu-tdep.c (spu_return_value): Likewise.
6353 * tic6x-tdep.c (tic6x_return_value): Likewise.
6354 * v850-tdep.c (v850_return_value): Likewise.
6355 * vax-tdep.c (vax_return_value): Likewise.
6356 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6357 * xtensa-tdep.c (xtensa_return_value): Likewise.
6358 * gdbarch.c: Regenerate.
6359 * gdbarch.h: Regenerate.
6361 2012-05-15 Tom Tromey <tromey@redhat.com>
6363 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6365 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6367 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6368 of command in two error message.
6370 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6372 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6374 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6376 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6378 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6380 * NEWS (show auto-load scripts-directory): Add forgotten command.
6382 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6384 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6387 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6389 * amd64-tdep.c: Include features/i386/x32.c and
6390 features/i386/x32-avx.c.
6391 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6392 initialize_tdesc_x32_avx.
6394 2012-05-14 Stan Shebs <stan@codesourcery.com>
6397 * breakpoint.h (enum bptype): New type bp_dprintf.
6398 (struct breakpoint): New field extra_string.
6399 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6400 (create_breakpoint): Add extra_string arg.
6401 * breakpoint.c (dprintf_breakpoint_ops): New.
6402 (is_breakpoint): Add bp_dprintf.
6403 (bpstat_what): Add dprintf case.
6404 (bptype_string): Ditto.
6405 (print_one_breakpoint_location): Ditto.
6406 (init_bp_location): Ditto.
6407 (bkpt_print_mention): Ditto.
6408 (dprintf_style_enums): New array.
6409 (dprintf_style): New global.
6410 (dprintf_function): New global.
6411 (dprintf_channel): New global.
6412 (update_dprintf_command_list): New function.
6413 (update_dprintf_commands): New function.
6414 (init_breakpoint_sal): Add extra_string argument, handle it.
6415 (create_breakpoint_sal): Add extra_string argument.
6416 (create_breakpoints_sal): Add extra_string argument, update callers.
6417 (find_condition_and_thread): Add extra argument.
6418 (create_breakpoint): Add extra_string argument, record it.
6419 (dprintf_command): New function.
6420 (break_command_1): Add arg to create_breakpoint call.
6421 (handle_gnu_v3_exceptions): Ditto.
6422 (trace_command): Ditto.
6423 (ftrace_command): Ditto.
6424 (strace_command): Ditto.
6425 (bkpt_print_mention): Add dprintf case.
6426 (create_breakpoint_sal_default): Add extra_string argument.
6427 (_initialize_breakpoint): Add new commands.
6428 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6429 * python/py-breakpoint.c (bppy_init): Ditto.
6430 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6432 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6434 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6436 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6438 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6441 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6443 Add a new function gdb.find_pc_line to the Python API.
6444 * NEWS (Python Scripting): Add entry about the new function.
6445 * python/python.c (gdbpy_find_pc_line): New function which
6446 implements gdb.find_pc_line.
6447 (GdbMethods): Add entry for the new function.
6449 2012-05-12 Pedro Alves <palves@redhat.com>
6451 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6452 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6454 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6456 * inferior.c: Include completer.h
6457 (initialize_inferiors): Set completer of add-inferior to
6460 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6462 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6463 gdbarch_ptr_bit for x32 core dump.
6465 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6467 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6468 and features/i386/x32-avx-linux.c.
6470 2012-05-11 Stan Shebs <stan@codesourcery.com>
6471 Kwok Cheung Yeung <kcy@codesourcery.com>
6473 * NEWS: Describe new info os commands.
6474 * common/linux-osdata.c (PID_T, TIME_T): Define.
6475 (MAX_PID_T_STRLEN): New.
6476 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6478 (command_from_pid): Add comment. Change to use PID_T.
6479 (commandline_from_pid): Change to use PID_T.
6480 (user_from_pid): Add comment.
6481 (get_process_owner): Add comment. Change to use PID_T and
6483 (get_number_of_cpu_cores): Add comment.
6484 (get_cores_used_by_process): Add comment. Change to use PID_T and
6486 (linux_xfer_osdata_processes): Change to use PID_T and
6488 (compare_processes): New function.
6489 (linux_xfer_osdata_processgroups): New function.
6490 (linux_xfer_osdata_threads): Change to use PID_T.
6491 (linux_xfer_osdata_fds): New function.
6492 (format_socket_state, print_sockets): New functions.
6493 (union socket_addr): New union.
6494 (linux_xfer_osdata_isockets): New function.
6495 (time_from_time_t, group_from_gid): New functions.
6496 (linux_xfer_osdata_shm): New function.
6497 (linux_xfer_osdata_sem): New function.
6498 (linux_xfer_osdata_msg): New function.
6499 (linux_xfer_osdata_modules): New function.
6500 (osdata_table): Add new entries.
6501 * common/buffer.c (buffer_xml_printf): Add support for long and
6502 long long format specifiers.
6504 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6506 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6507 (tdesc_x32_avx_linux): Likewise.
6509 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6511 Implement multi-component --with-auto-load-dir.
6512 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6514 (--with-auto-load-safe-path): Update the default value description.
6515 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6517 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6518 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6519 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6520 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6521 "set auto-load scripts-directory".
6522 * config.in: Regenerate.
6523 * configure: Regenerate.
6524 * configure.ac (--with-auto-load-dir): New configure option.
6525 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6527 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6529 Provide $ddir substitution for --with-auto-load-safe-path.
6530 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6532 * auto-load.c: Include observer.h.
6533 (auto_load_safe_path_vec_update): Call substitute_path_component for
6534 each component. New variable ddir_subst.
6535 (auto_load_gdb_datadir_changed): New function.
6536 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6537 AUTO_LOAD_SAFE_PATH. New comment.
6538 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6539 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6540 * config.in: Regenerate.
6541 * configure: Regenerate.
6542 * configure.ac (--auto-load-safe-path): Rename
6543 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6544 GDB_DATADIR/auto-load.
6545 * defs.h (substitute_path_component): New declaration.
6546 * top.c: Include observer.h.
6547 (set_gdb_datadir): New function.
6548 (init_main): Install it for "set data-directory".
6549 * utils.c (substitute_path_component): New function.
6551 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6553 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6554 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6555 DEBUG_FILE_DIRECTORY. Handle multiple components of
6556 DEBUG_FILE_DIRECTORY.
6558 2012-05-10 Tom Tromey <tromey@redhat.com>
6560 * dwarf2read.c (recursively_write_psymbols): New function.
6561 (write_psymtabs_to_index): Use it.
6563 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6565 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6566 (load_partial_comp_unit): Update.
6567 (queue_comp_unit): Add argument 'pretend_language'.
6568 (process_queue): Update.
6569 (psymtab_to_symtab_1): Skip dependencies that have a user.
6570 (load_partial_comp_unit_reader): Give meaning to the 'data'
6572 (load_full_comp_unit): Add 'pretend_language' argument.
6573 (process_full_comp_unit): Add 'pretend_language' argument. Set
6575 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6577 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6578 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6580 (prepare_one_comp_unit): Add 'pretend_language' argument.
6582 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6583 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6584 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6585 (dw2_do_instantiate_symtab): Check whether symtab was read in
6587 (dw2_instantiate_symtab): Add assertion. Call
6588 process_cu_includes.
6589 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6590 (partial_symtab_p): New typedef.
6591 (set_partial_user): New function.
6592 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6593 (scan_partial_symbols): Add imported CU to imported_symtabs.
6594 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6595 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6596 (get_symtab, recursively_compute_inclusions)
6597 (compute_symtab_includes, process_cu_includes)
6598 (process_imported_unit_die): New functions.
6599 (process_die) <DW_TAG_imported_unit>: New case.
6600 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6602 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6604 (struct partial_die_info) <locdesc>: Remove.
6606 (process_psymtab_comp_unit): Add 'read_partial' argument.
6608 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6609 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6610 (add_partial_symbol): Update.
6611 (process_die): Handle DW_TAG_partial_unit.
6612 (read_file_scope): Update comment.
6613 (load_partial_dies): Handle DW_TAG_imported_unit.
6614 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6615 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6617 2012-05-10 Tom Tromey <tromey@redhat.com>
6619 * cc-with-dwz.sh: New file.
6621 2012-05-10 Tom Tromey <tromey@redhat.com>
6623 * symtab.h (struct symtab) <includes, user>: New fields.
6624 * block.h (struct block_iterator) <d, idx, which>: New fields.
6625 * block.c (initialize_block_iterator, find_iterator_symtab)
6626 (block_iterator_step, block_iter_name_step)
6627 (block_iter_match_step): New functions.
6628 (block_iterator_first, block_iterator_next)
6629 (block_iter_name_first, block_iter_name_next)
6630 (block_iter_match_first, block_iter_match_next): Rewrite.
6631 (get_block_symtab): New function.
6633 2012-05-10 Tom Tromey <tromey@redhat.com>
6635 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6637 * jit.c (finalize_symtab): Use allocate_global_block,
6639 * buildsym.c (finish_block_internal): New function, from old
6641 (finish_block): Rewrite.
6642 (end_symtab): Use finish_block_internal, set_block_symtab.
6643 * block.h (struct global_block): New.
6644 (allocate_global_block, set_block_symtab): Declare.
6645 * block.c (allocate_global_block, set_block_symtab): New
6648 2012-05-10 Tom Tromey <tromey@redhat.com>
6650 * psymtab.c (partial_map_expand_apply): Add assertion.
6651 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6652 (psymtab_to_symtab): Find unshared psymtab.
6653 (dump_psymtab): Print including psymtabs.
6654 (recursively_search_psymtabs): New function.
6655 (expand_symtabs_matching_via_partial): Use it.
6656 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6658 (enum psymtab_search_status): New.
6660 2012-05-10 Tom Tromey <tromey@redhat.com>
6662 * tracepoint.c (scope_info): Update.
6663 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6664 (find_pc_sect_symtab, search_symbols)
6665 (default_make_symbol_completion_list_break_on)
6666 (make_file_symbol_completion_list): Update.
6667 * symmisc.c (dump_symtab_1): Update.
6668 * stack.c (print_frame_args, iterate_over_block_locals)
6669 (print_frame_labels, iterate_over_block_arg_vars): Update.
6670 * python/py-block.c (block_object) <dict>: Remove.
6672 <iter>: Change type.
6673 (blpy_iter): Update.
6674 (blpy_block_syms_iternext): Update.
6675 * psymtab.c (map_block): Use block iterators.
6676 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6677 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6678 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6679 * infrun.c (check_exception_resume): Update.
6680 * cp-support.c (make_symbol_overload_list_block): Update.
6681 * coffread.c (patch_opaque_types): Update.
6682 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6683 * block.h (struct block_iterator): New.
6684 (block_iterator_first, block_iterator_next, block_iter_name_first)
6685 (block_iter_name_next, block_iter_match_first)
6686 (block_iter_match_next): Declare.
6687 (ALL_BLOCK_SYMBOLS): Redefine.
6688 * block.c (block_iterator_first, block_iterator_next)
6689 (block_iter_name_first, block_iter_name_next)
6690 (block_iter_match_first, block_iter_match_next): New functions.
6691 * ada-lang.c (ada_add_block_symbols)
6692 (ada_make_symbol_completion_list): Use block iterator.
6694 2012-05-10 Tom Tromey <tromey@redhat.com>
6696 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6697 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6698 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6699 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6700 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6703 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6705 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6706 print-file-var-lib2.c, print-file-var-main.c and
6707 print-file-var.exp (located in gdb/testsuite/gdb.base).
6709 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6711 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6712 try locating the symbol in the symbol's own objfile first, before
6713 extending the search to all objfiles.
6714 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6715 out of lookup_symbol_aux_symtabs.
6716 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6717 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6718 Do not search EXCLUDE_OBJFILE.
6719 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6720 (lookup_symbol_global): Search for matches in the block's objfile
6721 first, before searching all other objfiles.
6723 2012-05-10 Tristan Gingold <gingold@adacore.com>
6725 * printcmd.c (set_command): Add pre/post inc/dec.
6727 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6729 * gdb.1: Document -ex option.
6731 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6733 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6734 * inferior.h (AT_SYMBOL): Delete.
6736 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6738 * mips-tdep.c (mips_push_dummy_code): New function.
6739 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6740 ON_STACK and install mips_push_dummy_code as our gdbarch
6741 push_dummy_code routine.
6743 2012-05-09 Pedro Alves <palves@redhat.com>
6745 * target.c (set_maintenance_target_async_permitted): Rename to ...
6746 (set_target_async_command): ... this.
6747 (show_maintenance_target_async_permitted): Rename to ...
6748 (show_target_async_command): ... this.
6749 (initialize_targets): Adjust.
6751 2012-05-08 Doug Evans <dje@google.com>
6753 * go-exp.y (classify_name): Add missing assignment of fields of
6756 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6758 Display the ">" prompt in interactive mode while reading canned
6759 commands, even when the current interpreter is MI.
6761 * interps.c (interp_set_temp): New function.
6763 * interps.h (interp_set_temp): Add prototype.
6765 * cli/cli-script.c (restore_interp): New cleanup function.
6766 (read_command_lines): Temporarily override the current interpreter
6767 with CLI and arrange for restoring the original one.
6769 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6771 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6773 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6775 * probe.c (parse_probes): Move conditional to check for
6776 debuginfo files from here...
6777 * stap-probe.c (stap_get_probes): ... to here.
6779 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6780 H.J. Lu <hongjiu.lu@intel.com>
6782 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6783 `movl %esp, %ebp' for the X32 ABI.
6785 2012-05-07 Tom Tromey <tromey@redhat.com>
6787 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6789 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6790 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6791 (dwarf_stack_op_name): Remove.
6792 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6793 (decode_locdesc): Use get_DW_OP_name.
6794 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6795 (dwarf2_compile_expr_to_ax): Likewise.
6796 (disassemble_dwarf_expression): Likewise.
6797 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6799 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6801 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6802 (sh_linux_sigtramp_cache): New function.
6803 (sh_linux_sigreturn_init): New function.
6804 (sh_linux_rt_sigreturn_init): New function.
6805 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6807 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6809 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6810 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6811 (sh_linux_init_abi): Add init calls to register new tramp_frame
6812 definitions under 32-bit SH, update comments.
6814 2012-05-07 Pedro Alves <palves@redhat.com>
6818 * amd64-linux-tdep.c: Include glibc-tdep.h.
6819 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6820 gdbarch_skip_solib_resolver callback.
6822 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6824 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6825 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6826 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6827 (add_auto_load_safe_path): Change the error message.
6828 (_initialize_auto_load): Change the "safe-path" help text.
6829 * configure: Regenerate
6830 * configure.ac (--without-auto-load-safe-path): Set
6831 WITH_AUTO_LOAD_SAFE_PATH to /.
6833 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6835 * stap-probe.h: Do not include unecessary `probe.h'.
6837 2012-05-05 Alan Modra <amodra@gmail.com>
6839 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6840 bfd_und_section_ptr.
6841 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6842 and bfd_com_section_ptr.
6844 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6846 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6848 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6850 * windows-nat.h (segment_register_p_ftype): New typedef.
6851 (windows_set_segment_register_p): Add declaration.
6852 * windows-nat.c (segment_register_p): New static global.
6853 (windows_set_segment_register_p): New function.
6854 (do_windows_fetch_inferior_registers): Add special handling
6855 for segment registers.
6856 * amd64-windows-nat.c: #include "amd64-tdep.h".
6857 (amd64_windows_segment_register_p): New function.
6858 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6859 * i386-windows-nat.c: #include "i386-tdep.h".
6860 (i386_windows_segment_register_p): New function.
6861 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6863 2012-05-04 Tristan Gingold <gingold@adacore.com>
6865 * printcmd.c (set_command): Emit a warning if the expression is not
6868 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6870 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6873 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6875 * stap-probe.c (stap_is_operator): Change declaration.
6876 (stap_get_opcode): Change return value.
6877 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6878 `stap_parse_argument_1'.
6880 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6882 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6885 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6887 Add two new methods global_block and static_block to gdb.Symtab
6889 * NEWS (Python scripting): Add entry about the new methods.
6890 * python/py-symtab.c (stpy_global_block): New function which
6891 implements the gdb.Symtab.global_block() method.
6892 (stpy_static_block): New function which implements the
6893 gdb.Symtab.static_block() method.
6894 (symtab_object_methods): Add entries for the two new methods.
6896 2012-05-03 Doug Evans <dje@google.com>
6898 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6901 2012-05-03 Yao Qi <yao@codesourcery.com>
6903 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6905 (i386_process_record): Ditto.
6907 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6909 * infcall.c (unwind_on_signal_p): Make static.
6911 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6913 * sol-thread.c (solaris_pid_to_str): Make static.
6914 (_initialize_sol_thread): Add prototype.
6916 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6918 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6920 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6922 * MAINTAINERS: Remove myself.
6924 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6926 Fix --without-auto-load-safe-path for MS-Windows host platform.
6927 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6929 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6931 * gdb_curses.h: Undefine KEY_EVENT before including curses
6932 headers. Move "#undef MOUSE_MOVED" before any curses header
6935 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6937 * features/i386/i386-mmx-linux.c: Regenerate.
6938 * features/rs6000/powerpc-32.c: Likewise.
6939 * features/rs6000/powerpc-32l.c: Likewise.
6940 * features/rs6000/powerpc-403.c: Likewise.
6941 * features/rs6000/powerpc-403gc.c: Likewise.
6942 * features/rs6000/powerpc-405.c: Likewise.
6943 * features/rs6000/powerpc-505.c: Likewise.
6944 * features/rs6000/powerpc-601.c: Likewise.
6945 * features/rs6000/powerpc-602.c: Likewise.
6946 * features/rs6000/powerpc-603.c: Likewise.
6947 * features/rs6000/powerpc-604.c: Likewise.
6948 * features/rs6000/powerpc-64.c: Likewise.
6949 * features/rs6000/powerpc-64l.c: Likewise.
6950 * features/rs6000/powerpc-750.c: Likewise.
6951 * features/rs6000/powerpc-860.c: Likewise.
6952 * features/rs6000/powerpc-e500.c: Likewise.
6953 * features/rs6000/powerpc-e500l.c: Likewise.
6954 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6955 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6956 * features/rs6000/rs6000.c: Likewise.
6958 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6960 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6962 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6963 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6964 (stap_parse_argument) <e>: Likewise.
6965 (handle_stap_probe) <byte_order>: Likewise.
6967 2012-04-30 Doug Evans <dje@google.com>
6969 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6970 init_and_read_dies_worker. All callers updated.
6971 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6972 replaced with init_cutu_and_read_dies.
6973 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6974 (find_partial_die): Remove FIXME. Don't free current CU.
6976 2012-04-30 Sterling Augustine <saugustine@google.com>
6978 * contrib: New directory.
6979 * contrib/test_pubnames_and_indexes.py: New file.
6981 2012-04-30 Doug Evans <dje@google.com>
6983 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6984 All callers updated.
6985 (init_cu_die_reader): Verify the section is non-empty.
6986 (dwarf_decode_line_header): Don't dereference section->asection
6987 until we know the section is present.
6989 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6991 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6994 2012-04-29 Yao Qi <yao@codesourcery.com>
6996 * gdb-code-style.el: New hook gdb-markup-hook
6997 and gdb-comment-hook.
6999 2012-04-28 Doug Evans <dje@google.com>
7001 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7002 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7004 * symfile.h (dwarf2_debug_sections): New member addr.
7005 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7006 (ctx_no_get_addr_index): New function.
7007 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7008 (ctx_no_get_addr_index): Declare.
7009 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7010 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7011 (dwarf_expr_ctx_funcs): Update.
7012 (needs_get_addr_index): New function.
7013 (needs_frame_ctx_funcs): Update.
7014 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7015 * dwarf2read.c: #include "gdbcore.h".
7016 (dwarf2_per_objfile): New members addr, dwo_files.
7017 (dwarf2_elf_names): Add entry for addr.
7018 (struct dwo_section_names): New type.
7019 (dwo_section_names): New static global.
7020 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7021 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7022 old debug_types_section member updated to use this.
7023 Rename member debug_types_section to info_or_types_section,
7025 (signatured_type): Rename member type_offset to type_offset_in_tu,
7026 all uses updated. New member type_offset_in_section.
7027 (struct dwo_sections): New type.
7028 (struct dwo_unit): New type.
7029 (struct dwo_file): New type.
7030 (die_reader_specs): New member dwo_file.
7031 (dwarf2_locate_sections): Watch for .debug_addr.
7032 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7033 (dwarf2_read_section): Get bfd of section from bfd's asection,
7035 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7036 (create_signatured_type_table_from_index): Initialize
7037 sig_type->info_or_types_section.
7038 (dw2_get_file_names): Statement lists for type units with DWO files
7039 live in the DWO file.
7040 (create_debug_types_hash_table): New function.
7041 (create_all_type_units): Rewrite.
7042 (init_cu_die_reader): New arg dwo_file, all callers updated.
7043 (init_and_read_dies_worker): Get section from
7044 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7045 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7046 continue reading the CU/TU from there.
7047 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7048 updated. Get section from this_cu->info_or_types_section.
7049 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7050 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7051 DW_FORM_GNU_str_index.
7052 (hash_dwo_file, eq_dwo_file): New functions.
7053 (allocate_dwo_file_hash_table): New function.
7054 (hash_dwo_unit, eq_dwo_unit): New functions.
7055 (allocate_dwo_unit_table): New function.
7056 (dwarf2_locate_dwo_sections): New function.
7057 (struct create_dwo_info_table_data): New type.
7058 (create_debug_info_hash_table_reader): New function.
7059 (create_debug_info_hash_table): New function.
7060 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7061 (lookup_dwo_file): New function.
7062 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7063 (free_dwo_file, free_dwo_file_cleanup): New functions.
7064 (free_dwo_file_from_slot, free_dwo_files): New functions.
7065 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7066 (dwarf2_record_block_ranges): Ditto.
7067 (read_partial_die): Ditto.
7068 (process_enumeration_scope): Update to use type_offset_in_section.
7069 (read_full_die_1): New function.
7070 (read_full_die): Rewrite.
7071 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7072 DW_FORM_GNU_str_index.
7073 (read_addr_index_1, read_addr_index): New functions.
7074 (read_addr_index_from_leb128): New function.
7075 (struct dwarf2_read_addr_index_data): New type.
7076 (dwarf2_read_addr_index_reader): New function.
7077 (dwarf2_read_addr_index): New function.
7078 (read_str_index): New function.
7079 (leb128_size): New function.
7080 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7081 If processing a type unit from a DWO file, get the line section
7083 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7084 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7085 DW_FORM_GNU_str_index.
7086 (lookup_die_type): Check whether section offset of type's die is
7087 known before looking it up. Remove assert. Condition can
7088 legimately happen for inter-cu type references.
7089 (dwarf_attr_name): Handle Fission attributes.
7090 (dwarf_form_name): Handle Fission forms.
7091 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7092 DW_FORM_GNU_str_index.
7093 (follow_die_sig): Update to use type_offset_in_section.
7094 (decode_locdesc): New case DW_OP_GNU_addr_index.
7095 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7096 DW_FORM_GNU_str_index.
7097 (cu_debug_loc_section): New function.
7098 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7099 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7100 Free DWO files if present.
7101 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7103 Refactor DIE reading.
7104 * dwarf2read.c (dwarf2_per_objfile): Replace members
7105 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7106 (die_reader_specs): New member "die_section". Temporarily make
7107 member "buffer" non-const, pending constifying all info_ptr uses.
7108 (die_reader_func_ftype): New typedef.
7109 (dw2_get_file_names_reader): New function.
7110 (dw2_get_file_names): Rewrite.
7111 (read_and_check_type_unit_head): Rename arg type_offset to
7113 (create_all_type_units): Improve debugging message.
7114 Improve dummy type unit check.
7115 (init_cu_die_reader): New arg "section". All callers updated.
7116 (init_and_read_dies_worker): New function.
7117 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7118 (init_cutu_and_read_dies_no_follow): New function.
7119 (init_cutu_and_read_dies_simple): New function.
7120 (process_psymtab_comp_unit_reader): New function.
7121 (process_psymtab_comp_unit): Delete args section,
7122 is_debug_types_section. Rewrite. All callers updated.
7123 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7124 All callers updated. Rewrite.
7125 (load_partial_comp_unit_reader): New function.
7126 (load_partial_comp_unit): Rewrite.
7127 (skip_children): New arg reader. Delete args buffer, cu.
7128 All callers updated.
7129 (skip_one_die): New arg reader. Delete args buffer, cu.
7130 All callers updated.
7131 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7132 All callers updated.
7133 (load_full_comp_unit_reader): New function.
7134 (load_full_comp_unit): Rewrite.
7135 (read_comp_unit): Delete.
7136 (read_die_and_children_1): Delete, contents moved ...
7137 (read_die_and_children): ... here.
7138 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7139 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7140 All callers updated.
7141 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7142 All callers updated.
7143 (find_partial_die): Rewrite load_all_dies support.
7144 (read_attribute_value): New arg reader. Delete args abfd, cu.
7145 All callers updated.
7146 (read_attribute): New arg reader. Delete args abfd, cu.
7147 All callers updated.
7148 (load_full_type_unit): Add assert.
7149 (read_signatured_type_reader): New function.
7150 (read_signatured_type): Rewrite.
7151 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7152 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7153 All callers updated. Set per_cu->cu = NULL after freeing it.
7154 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7155 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7156 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7157 (set_die_type): Update.
7158 (get_die_type_at_offset): Update.
7159 (read_file_scope): Call prepare_one_comp_unit.
7160 (read_type_unit_scope): Ditto.
7161 (prepare_one_comp_unit): Set producer if present.
7163 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7165 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7166 gettext function on `error'.
7168 2012-04-27 Doug Evans <dje@google.com>
7170 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7173 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7174 Tom Tromey <tromey@redhat.com>
7176 * breakpoint.c (struct breakpoint_objfile_data)
7177 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7178 <exception_probes>: New fields.
7179 (free_breakpoint_probes): New function.
7180 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7181 `_Unwind_DebugHook'.
7182 (create_exception_master_breakpoint): Likewise.
7183 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7184 * infrun.c: Including necessary header files for handling SystemTap
7186 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7187 via SystemTap probes.
7188 (check_exception_resume): Remove `func' argument. Handle exception
7189 unwinding breakpoint set via a SystemTap probe.
7190 (insert_exception_resume_from_probe): New function.
7192 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7193 Tom Tromey <tromey@redhat.com>
7194 Jan Kratochvil <jan.kratochvil@redhat.com>
7196 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7197 (COMMON_OBS): Likewise.
7198 (HFILES_NO_SRCDIR): Add `probe'.
7199 * NEWS: Mention support for static and SystemTap probes.
7200 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7201 SystemTap probes' arguments parser.
7202 * arm-linux-tdep.c: Including headers needed to perform the parsing
7203 of SystemTap probes' arguments.
7204 (arm_stap_is_single_operand): New function.
7205 (arm_stap_parse_special_token): Likewise.
7206 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7207 probes' arguments parser.
7208 * ax-gdb.c (require_rvalue): Removing static declaration.
7209 (gen_expr): Likewise.
7210 * ax-gdb.h (gen_expr): Declaring function.
7211 (require_rvalue): Likewise.
7212 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7213 (bkpt_probe_breakpoint_ops): New variable.
7214 (momentary_breakpoint_from_master): Set the `probe' value.
7215 (add_location_to_breakpoint): Likewise.
7216 (break_command_1): Using proper breakpoint_ops according to the
7217 argument passed by the user in the command line.
7218 (bkpt_probe_insert_location): New function.
7219 (bkpt_probe_remove_location): Likewise.
7220 (bkpt_probe_create_sals_from_address): Likewise.
7221 (bkpt_probe_decode_linespec): Likewise.
7222 (tracepoint_probe_create_sals_from_address): Likewise.
7223 (tracepoint_probe_decode_linespec): Likewise.
7224 (tracepoint_probe_breakpoint_ops): New variable.
7225 (trace_command): Using proper breakpoint_ops according to the
7226 argument passed by the user in the command line.
7227 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7228 static probes on breakpoints and tracepoints.
7229 * breakpoint.h (struct bp_location) <probe>: New field.
7230 * cli-utils.c (skip_spaces_const): New function.
7231 (extract_arg): Likewise.
7232 * cli-utils.h (skip_spaces_const): Likewise.
7233 (extract_arg): Likewise.
7234 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7235 * configure.ac: Append `stap-probe.o' to be generated when ELF
7237 * configure: Regenerate.
7238 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7239 * elfread.c: Include `probe.h' and `arch-utils.h'.
7240 (probe_key): New variable.
7241 (elf_get_probes): New function.
7242 (elf_get_probe_argument_count): Likewise.
7243 (elf_evaluate_probe_argument): Likewise.
7244 (elf_compile_to_ax): Likewise.
7245 (elf_symfile_relocate_probe): Likewise.
7246 (stap_probe_key_free): Likewise.
7247 (elf_probe_fns): New variable.
7248 (elf_sym_fns): Add `sym_probe_fns' value.
7249 (elf_sym_fns_lazy_psyms): Likewise.
7250 (elf_sym_fns_gdb_index): Likewise.
7251 (_initialize_elfread): Initialize objfile cache for static
7253 * gdb_vecs.h (struct probe): New forward declaration.
7254 (probe_p): New VEC declaration.
7255 * gdbarch.c: Regenerate.
7256 * gdbarch.h: Regenerate.
7257 * gdbarch.sh (stap_integer_prefix): New variable.
7258 (stap_integer_suffix): Likewise.
7259 (stap_register_prefix): Likewise.
7260 (stap_register_suffix): Likewise.
7261 (stap_register_indirection_prefix): Likewise.
7262 (stap_register_indirection_suffix): Likewise.
7263 (stap_gdb_register_prefix): Likewise.
7264 (stap_gdb_register_suffix): Likewise.
7265 (stap_is_single_operand): New function.
7266 (stap_parse_special_token): Likewise.
7267 (struct stap_parse_info): Forward declaration.
7268 * i386-tdep.c: Including headers needed to perform the parsing
7269 of SystemTap probes' arguments.
7270 (i386_stap_is_single_operand): New function.
7271 (i386_stap_parse_special_token): Likewise.
7272 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7273 probes' arguments parser.
7274 * i386-tdep.h (i386_stap_is_single_operand): New function.
7275 (i386_stap_parse_special_token): Likewise.
7276 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7277 * mipsread.c (ecoff_sym_fns): Likewise.
7278 * objfiles.c (objfile_relocate1): Support relocation for static
7280 * parse.c (prefixify_expression): Remove static declaration.
7281 (initialize_expout): Likewise.
7282 (reallocate_expout): Likewise.
7283 * parser-defs.h (initialize_expout): Declare function.
7284 (reallocate_expout): Likewise.
7285 (prefixify_expression): Likewise.
7286 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7287 of SystemTap probes' arguments.
7288 (ppc_stap_is_single_operand): New function.
7289 (ppc_stap_parse_special_token): Likewise.
7290 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7291 probes' arguments parser.
7292 * probe.c: New file, for generic statically defined probe support.
7293 * probe.h: Likewise.
7294 * s390-tdep.c: Including headers needed to perform the parsing of
7295 SystemTap probes' arguments.
7296 (s390_stap_is_single_operand): New function.
7297 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7298 probes' arguments parser.
7299 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7300 * stap-probe.c: New file, for SystemTap probe support.
7301 * stap-probe.h: Likewise.
7302 * symfile.h: Include `gdb_vecs.h'.
7303 (struct sym_probe_fns): New struct.
7304 (struct sym_fns) <sym_probe_fns>: New field.
7305 * symtab.c (init_sal): Initialize `probe' field.
7306 * symtab.h (struct probe): Forward declaration.
7307 (struct symtab_and_line) <probe>: New field.
7308 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7310 (stop_tracing): Likewise.
7311 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7313 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7314 Tom Tromey <tromey@redhat.com>
7316 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7317 and to compile agent expressions.
7318 * infrun.c (siginfo_make_value): New argument `ignore'.
7319 (siginfo_funcs): New struct.
7320 (_initialize_infrun): New argument when calling
7321 `create_internalvar_type_lazy'.
7322 * thread.c (thread_id_make_value): New argument `ignore'.
7323 (thread_funcs): New struct.
7324 (_initialize_thread): New argument when calling
7325 `create_internalvar_type_lazy'.
7326 * tracepoint.c (sdata_make_value): New argument `ignore'.
7327 (sdata_funcs): New struct.
7328 (_initialize_tracepoint): New argument when calling
7329 `create_internalvar_type_lazy'.
7330 * value.c (make_value): New struct.
7331 (create_internalvar_type_lazy): New argument `data'.
7332 (compile_internalvar_to_ax): New function.
7333 (value_of_internalvar): Properly handling `make_value' case.
7334 (clear_internalvar): Likewise.
7335 (show_convenience): Adding `TRY_CATCH' block.
7336 * value.h (internalvar_make_value): Delete, replace by...
7337 (struct internalvar_funcs): ... this.
7338 (create_internalvar_type_lazy) <fun>: Delete argument.
7339 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7340 (compile_internalvar_to_ax): New function.
7341 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7342 (tlb_funcs): New struct.
7343 (_initialize_windows_tdep): New argument when calling
7344 `create_internalvar_type_lazy'.
7346 2012-04-27 Mark Wielaard <mjw@redhat.com>
7348 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7349 see whether it is an address or a constant offset from DW_AT_low_pc.
7350 (dwarf2_record_block_ranges): Likewise.
7351 (read_partial_die): Likewise.
7353 2012-04-26 Mark Wielaard <mjw@redhat.com>
7355 * MAINTAINERS (Write After Approval): Add myself to the list.
7357 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7359 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7360 (proc_prettyprint_signal): Likewise.
7361 (proc_prettyprint_faultset): Likewise.
7362 (proc_prettyprint_fault): Likewise.
7363 (proc_prettyprint_actionset): Likewise.
7364 (proc_prettyprint_flags): Move to new proc-flags.c section.
7365 (proc_prettyfprint_flags): New prototype.
7366 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7367 (proc_syscall, proc_cursig): Likewise.
7368 (proc_set_kill_on_last_close): Likewise.
7369 (proc_unset_kill_on_last_close): Likewise.
7370 (proc_set_watchpoint): Make static.
7371 (proc_delete_dead_threads): Likewise.
7372 (procfs_set_watchpoint): Likewise.
7373 (_initialize_procfs): Add prototype.
7374 * proc-events.c: Include proc-utils.h.
7375 (init_syscall_table): Make static.
7376 * proc-api.c (_initialize_proc_api): Add prototype.
7377 * proc-flags.c: Include proc-utils.h.
7379 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7381 * configure.ac: Add AC_ARG_PROGRAM.
7382 * configure: Regenerate.
7384 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7386 Fix DW_AT_lower_bound defaults for DWARF-4+.
7387 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7388 high. New variable low_default_is_valid. Implement DWARF-4+
7389 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7390 no default by the DWARF standard.
7392 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7393 Maciej W. Rozycki <macro@codesourcery.com>
7395 * infrun.c (handle_inferior_event): Move the check for return
7396 trampolines ahead of the check for function trampolines.
7397 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7398 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7399 (mips_str_mips16_ret_stub): Likewise.
7400 (mips_str_call_fp_stub): Likewise.
7401 (mips_str_call_stub): Likewise.
7402 (mips_str_fn_stub): Likewise.
7403 (mips_str_pic): Likewise.
7404 (mips_in_frame_stub): New function.
7405 (mips_unwind_pc): Return the return address rather than the PC
7406 if the PC of an intermediate frame is inside a call thunk.
7407 (mips_is_stub_suffix): New function.
7408 (mips_is_stub_mode): Likewise.
7409 (mips_get_mips16_fn_stub_pc): Likewise.
7410 (mips_skip_mips16_trampoline_code): Update to handle all the
7411 currently generated stub types. Don't recurse into __fn_stub
7412 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7413 Use cooked register accesses.
7414 (mips_in_return_stub): Reintroduce function.
7415 (mips_skip_trampoline_code): Traverse trampolines recursively.
7416 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7418 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7422 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7424 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7425 * features/arm-with-m-vfp-d16.xml: New file. Describes
7426 Cortex-M with VFPv4-sp-d16 FPU register layout.
7427 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7428 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7429 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7430 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7431 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7433 2012-04-25 Doug Evans <dje@google.com>
7435 * cli/cli-decode.c (print_doc_line): Use stream instead of
7438 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7440 * features/arm-with-iwmmxt.c: Regenerate.
7441 * features/arm-with-m-fpa-layout.c: Likewise.
7442 * features/arm-with-m.c: Likewise.
7443 * features/arm-with-neon.c: Likewise.
7444 * features/arm-with-vfpv2.c: Likewise.
7445 * features/arm-with-vfpv3.c: Likewise.
7446 * features/mips-dsp-linux.c: Likewise.
7447 * features/mips-linux.c: Likewise.
7448 * features/mips64-dsp-linux.c: Likewise.
7449 * features/mips64-linux.c: Likewise.
7450 * features/s390-linux32.c: Likewise.
7451 * features/s390-linux32v1.c: Likewise.
7452 * features/s390-linux32v2.c: Likewise.
7453 * features/s390-linux64.c: Likewise.
7454 * features/s390-linux64v1.c: Likewise.
7455 * features/s390-linux64v2.c: Likewise.
7456 * features/s390x-linux64.c: Likewise.
7457 * features/s390x-linux64v1.c: Likewise.
7458 * features/s390x-linux64v2.c: Likewise.
7459 * features/tic6x-c62x-linux.c: Likewise.
7460 * features/tic6x-c62x.c: Likewise.
7461 * features/tic6x-c64x-linux.c: Likewise.
7462 * features/tic6x-c64x.c: Likewise.
7463 * features/tic6x-c64xp-linux.c: Likewise.
7464 * features/tic6x-c64xp.c: Likewise.
7465 * target-descriptions.c: Only generate `field_type' and `type'
7466 variables when needed.
7468 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7470 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7472 2012-04-25 Doug Evans <dje@google.com>
7474 Initial pass at Go language support.
7476 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7478 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7479 (YYFILES): Add go-exp.c.
7480 (YYOBJ): Add go-exp.o.
7481 (local-maintainer-clean): Delete go-exp.c.
7482 * defs.h (enum language): Add language_go.
7483 * dwarf2read.c: #include "go-lang.h".
7484 (fixup_go_packaging): New function.
7485 (process_full_comp_unit): Call it when processing Go CUs.
7486 (dwarf2_physname): Add Go support.
7487 (read_file_scope): Handle missing language spec for GNU Go.
7488 (set_cu_language): Handle DW_LANG_Go.
7489 * go-exp.y: New file.
7490 * go-lang.h: New file.
7491 * go-lang.c: New file.
7492 * go-typeprint.c: New file.
7493 * go-valprint.c: New file.
7494 * symtab.c: #include "go-lang.h".
7495 (symbol_set_language): Handle language_go.
7496 (symbol_find_demangled_name, symbol_set_names): Ditto.
7497 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7499 2012-04-24 Jim Meyering <meyering@redhat.com>
7501 avoid a few strncpy-induced buffer overruns
7502 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7503 fname and psargs before trying to concatenate.
7504 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7505 "name" before applying strchr.
7507 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7509 * CONTRIBUTE: Use unified diff instead of context diff when
7512 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7514 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7515 code. Handle JR.HB correctly.
7517 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7520 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7521 with the other MIPS16 helpers.
7523 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7525 * observer.sh: Conditionally declare `args', thus cleaning up
7526 unused instances of this variable.
7528 2012-04-24 Yao Qi <yao@codesourcery.com>
7530 Revert this patch to allow breakpoint always-inserted
7532 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7533 * breakpoint.c: Include record.h.
7534 (breakpoints_always_inserted_mode): Return false when the record
7537 * breakpoint.c (iterate_over_bp_locations): New.
7538 * breakpoint.h: Declare.
7539 New typedef walk_bp_location_callback.
7540 * record.c (record_open): Call record_init_record_breakpoints.
7541 (record_sync_record_breakpoints): New.
7542 (record_init_record_breakpoints): New.
7543 * NEWS: Mention supporting breakpoint always-inserted mode in
7546 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7548 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7551 2012-04-24 Yao Qi <yao@codesourcery.com>
7553 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7554 (is_catchpoint): ... it.
7555 (print_one_breakpoint_location): Caller update.
7556 * breakpoint.h: Update declaration.
7558 2012-04-23 David S. Miller <davem@davemloft.net>
7560 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7562 2012-04-23 Tom Tromey <tromey@redhat.com>
7564 * buildsym.c (add_free_pendings): Remove.
7565 * buildsym.h (add_free_pendings): Remove.
7567 2012-04-23 Doug Evans <dje@google.com>
7569 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7570 attr.u.unsnd instead of attr.u.addr.
7571 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7572 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7574 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7575 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7577 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7579 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7581 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7582 (mips_o32_return_value): Likewise.
7583 (mips_o64_return_value): Likewise.
7585 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7587 * ada-lang.c (ada_evaluate_subexp): Add cases for
7588 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7589 their treatment in eval.c.
7591 2012-04-21 David S. Miller <davem@davemloft.net>
7593 * sparc-tdep.c (X_DISP10): Define.
7594 (sparc_analyze_control_transfer): Handle compare-and-branch.
7596 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7598 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7599 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7601 2012-04-20 Nigel Stephens <nigel@mips.com>
7602 Maciej W. Rozycki <macro@codesourcery.com>
7604 * mips-tdep.c (mips_float_register_p): New function.
7605 (mips_convert_register_float_case_p): Use mips_float_register_p.
7606 (mips_register_type): Likewise.
7607 (mips_print_register): Likewise.
7608 (print_gp_register_row): Likewise.
7609 (mips_print_registers_info): Likewise.
7611 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7613 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7616 2012-04-20 Andrew Pinski <apinski@cavium.com>
7618 * MAINTAINERS (Write After Approval): Add myself to the list.
7620 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7622 * MAINTAINERS: Update my e-mail address.
7624 2012-04-20 Pedro Alves <palves@redhat.com>
7626 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7628 * configure: Regenerate.
7630 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7632 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7634 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7636 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7638 Fix compilation compatibility with python-2.4
7639 * python/py-type.c (convert_field): Cast ADDRSTRING for
7640 PyObject_SetAttrString as non-const. New comment.
7642 2012-04-19 Tom Tromey <tromey@redhat.com>
7644 * top.c (quit_target): Use all_cleanups.
7645 * main.c (captured_command_loop): Use all_cleanups.
7646 * exceptions.c (throw_exception): Use all_cleanups.
7648 2012-04-19 Pedro Alves <palves@redhat.com>
7650 * Makefile.in (GNULIB_BUILDDIR): New.
7651 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7652 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7653 (CLEANDIRS). Remove gnulib/import.
7654 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7656 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7657 (gnulib/import/Makefile): Replace gnulib/import with
7658 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7659 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7660 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7661 acx_configure_dir.m4.
7662 * acinclude.m4: Include acx_configure_dir.m4.
7663 * acx_configure_dir.m4: New file.
7664 * aclocal.m4: Regenerate.
7665 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7666 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7667 (GNULIB): New variable.
7668 (GNULIB_STDINT_H): Adjust.
7669 (AC_OUTPUT): Don't output gnulib/Makefile.
7670 * gdb/defs.h: Include build-gnulib/config.h.
7671 * aclocal.m4: Regenerate.
7672 * config.in: Regenerate.
7673 * configure: Regenerate.
7675 * gnulib/Makefile.in: New file.
7676 * gnulib/configure.ac: New file.
7677 * gnulib/aclocal.m4: New file.
7678 * gnulib/config.in: New file.
7679 * gnulib/configure: New file.
7680 * gnulib/: Re-run gnulib-tool to adjust.
7682 2012-04-19 Doug Evans <dje@google.com>
7684 * cleanups.h (struct cleanup): Move to cleanups.c.
7685 (make_cleanup_dtor_ftype): New typedef.
7686 (make_cleanup_dtor): Use it.
7687 (ALL_CLEANUPS): Replace with ...
7688 (all_cleanups): ... this. Declare. All uses updated.
7689 * cleanups.c: #include "gdb_assert.h".
7690 (sentinel_cleanup): New static global.
7691 (SENTINEL_CLEANUP): Define.
7692 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7693 (make_my_cleanup2): Assert result is non-NULL.
7694 (all_cleanups): New function.
7695 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7698 2012-04-19 Pedro Alves <palves@redhat.com>
7700 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7701 Adjust paths to gnulib imported files.
7703 2012-04-19 Pedro Alves <palves@redhat.com>
7705 * gnulib/: Move whole directory ...
7706 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7707 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7708 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7709 (aclocal_m4_deps): Adjust.
7710 * aclocal.m4: Regenerate.
7711 * configure: Regenerate.
7712 * configure.ac: Adjust AC_OUTPUT output.
7714 2012-04-19 Yao Qi <yao@codesourcery.com>
7716 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7718 * vec.c: Move it ...
7719 * common/vec.c: ... here.
7720 * vec.h: Move it ...
7721 * common/vec.h: ... here.
7723 2012-04-19 Yao Qi <yao@codesourcery.com>
7725 * gdb-code-style.el: New.
7727 2012-04-18 Pedro Alves <palves@redhat.com>
7729 Update gnulib from latest git.
7730 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7732 * gnulib/Makefile.am: Update.
7733 * gnulib/dummy.c: Update.
7734 * gnulib/extra/arg-nonnull.h: Update.
7735 * gnulib/extra/c++defs.h: Update.
7736 * gnulib/extra/update-copyright: Update.
7737 * gnulib/extra/warn-on-use.h: Update.
7738 * gnulib/inttypes.in.h: Update.
7739 * gnulib/m4/00gnulib.m4: Update.
7740 * gnulib/m4/extensions.m4: Update.
7741 * gnulib/m4/gnulib-cache.m4: Update.
7742 * gnulib/m4/gnulib-common.m4: Update.
7743 * gnulib/m4/gnulib-comp.m4: Update.
7744 * gnulib/m4/gnulib-tool.m4: Update.
7745 * gnulib/m4/include_next.m4: Update.
7746 * gnulib/m4/inttypes-pri.m4: Update.
7747 * gnulib/m4/inttypes.m4: Update.
7748 * gnulib/m4/longlong.m4: Update.
7749 * gnulib/m4/memchr.m4: Update.
7750 * gnulib/m4/memmem.m4: Update.
7751 * gnulib/m4/mmap-anon.m4: Update.
7752 * gnulib/m4/multiarch.m4: Update.
7753 * gnulib/m4/onceonly.m4: Update.
7754 * gnulib/m4/stddef_h.m4: Update.
7755 * gnulib/m4/stdint.m4: Update.
7756 * gnulib/m4/string_h.m4: Update.
7757 * gnulib/m4/warn-on-use.m4: Update.
7758 * gnulib/m4/wchar_h.m4: Update.
7759 * gnulib/m4/wchar_t.m4: Update.
7760 * gnulib/m4/wint_t.m4: Update.
7761 * gnulib/memchr.c: Update.
7762 * gnulib/memmem.c: Update.
7763 * gnulib/stddef.in.h: Update.
7764 * gnulib/stdint.in.h: Update.
7765 * gnulib/str-two-way.h: Update.
7766 * gnulib/string.in.h: Update.
7767 * gnulib/wchar.in.h: Update.
7769 * gnulib/extra/arg-nonnull.h: Delete.
7770 * gnulib/extra/c++defs.h: Delete.
7771 * gnulib/extra/warn-on-use.h: Delete.
7772 * gnulib/m4/wchar_h.m4: Delete.
7773 * gnulib/m4/wint_t.m4: Delete.
7774 * gnulib/wchar.in.h: Delete.
7776 * gnulib/extra/snippets/arg-nonnull.h: New.
7777 * gnulib/extra/snippets/c++defs.h: New.
7778 * gnulib/extra/snippets/warn-on-use.h: New.
7780 * aclocal.m4: Regenerate.
7781 * config.in: Regenerate.
7782 * configure: Regenerate.
7783 * gnulib/Makefile.in: Regenerate.
7785 2012-04-18 Pedro Alves <palves@redhat.com>
7787 Reimport the update-copyright module from gnulib
7788 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7790 * configure: Regenerate.
7791 * gnulib/Makefile.am: Update.
7792 * gnulib/Makefile.in: Regenerate.
7793 * gnulib/extra/update-copyright: Update.
7794 * gnulib/m4/gnulib-cache.m4: Update.
7795 * gnulib/m4/gnulib-comp.m4: Update.
7797 2012-04-18 Tristan Gingold <gingold@adacore.com>
7799 * configure.ac (aix): Put -lpthread into libs.
7800 * configure: Regenerate.
7802 2012-04-18 Tom Tromey <tromey@redhat.com>
7804 * linespec.c (convert_linespec_to_sals): Don't use
7806 (compare_msymbols): Arguments are minsym_and_objfile, not
7807 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7809 2012-04-18 Pedro Alves <palves@redhat.com>
7811 Revert gnulib/ part of:
7812 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7813 Copyright year update in most files (performed by copyright.sh).
7815 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7817 Fix 64-bit constants on 32-bit hosts.
7818 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7819 from unsigned long to ULONGEST.
7820 (read_signed_leb128): Change declaration return type from long to
7822 (dwarf2_const_value_attr): Change declaration parameter value from long
7824 (dwarf2_compute_name): Change variable value from long to LONGEST.
7825 (read_unsigned_leb128): Change return type, variable result and some
7826 casts from unsigned long to ULONGEST.
7827 (read_signed_leb128): Change return type, variable result and some
7828 casts from long to LONGEST.
7829 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7830 value from long to LONGEST.
7831 (dwarf2_const_value): Change variable value from long to LONGEST.
7832 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7833 plongest and hex_string.
7834 * symtab.h (struct general_symbol_info): Change ivalue from long to
7835 LONGEST, remove the comment.
7836 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7837 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7839 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7842 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7843 * ada-lang.c (ada_discrete_type_high_bound)
7844 (ada_discrete_type_low_bound): Fix function comment. Use
7845 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7846 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7847 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7848 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7849 Use TYPE_FIELD_ENUMVAL.
7850 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7851 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7852 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7853 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7855 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7856 * dwarf2read.c (process_enumeration_scope): Likewise.
7857 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7859 (class StructMainTypePrettyPrinter): Support also
7860 FIELD_LOC_KIND_ENUMVAL.
7861 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7863 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7864 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7865 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7866 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7868 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7869 accommodate enumval.
7870 (struct call_site): Adjust loc_kind to accommodate enumval.
7871 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7872 (TYPE_FIELD_ENUMVAL): New macros.
7873 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7874 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7876 * p-typeprint.c (pascal_type_print_base): Likewise.
7877 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7879 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7880 * python/py-type.c (convert_field): New variable addrstring. Use
7881 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7882 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7883 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7884 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7886 * valprint.c (generic_val_print): Likewise.
7888 2012-04-17 Doug Evans <dje@google.com>
7890 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7892 * dwarf2read.c: Whitespace fixes.
7893 (lookup_signatured_type): Tweak comment.
7894 (get_die_type_at_offset): Fix comment.
7896 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7898 * xcoffread.c (xcoff_secnum_to_sections): New function.
7899 (secnum_to_section, secnum_to_bfd_section): Reimplement
7900 using xcoff_secnum_to_sections. Rename "secnum" parameter
7902 (RECORD_MINIMAL_SYMBOL): Delete.
7903 (record_minimal_symbol): New function.
7904 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7905 by call to record_minimal_symbol and set misc_func_recorded
7906 to 1. Set last_csect_sec to the XCOFF section index instead
7907 of GDB's section_offset index. Update calls to
7908 prim_record_minimal_symbol_and_info to pass the BFD section
7911 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7913 * xcoffread.c (read_xcoff_symtab): Delete variables
7914 last_csect_val and last_csect_sec and associated code.
7916 2012-04-17 Doug Evans <dje@google.com>
7918 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7919 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7920 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7921 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7923 * cleanups.h: New file.
7924 * cleanups.c: New file.
7925 * Makefile.in (SFILES): Add cleanups.c.
7926 (HFILES_NO_SRCDIR): Add cleanups.h.
7927 (COMMON_OBS): Add cleanups.o.
7928 * defs.h (struct cleanup): Moved to cleanups.h.
7929 (do_cleanups,do_final_cleanups): Ditto.
7930 (discard_cleanups,discard_final_cleanups): Ditto
7931 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7932 (save_cleanups,save_final_cleanups): Ditto.
7933 (restore_cleanups,restore_final_cleanups): Ditto.
7934 (null_cleanup): Ditto.
7935 (make_my_cleanup,make_my_cleanup2): Ditto.
7936 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7937 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7938 (do_cleanups,do_final_cleanups): Ditto.
7939 (discard_cleanups,discard_final_cleanups): Ditto
7940 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7941 (save_cleanups,save_final_cleanups): Ditto.
7942 (restore_cleanups,restore_final_cleanups): Ditto.
7943 (null_cleanup): Ditto.
7944 (make_my_cleanup,make_my_cleanup2): Ditto.
7945 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7947 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7949 (make_cleanup_dyn_string_delete): Ditto.
7950 (make_cleanup_ui_file_delete): Ditto.
7951 (make_cleanup_ui_out_redirect_pop): Ditto.
7952 (make_cleanup_free_section_addr_info): Ditto.
7953 (make_cleanup_restore_integer): Ditto.
7954 (make_cleanup_unpush_target): Ditto.
7955 (make_cleanup_value_free_to_mark): Ditto.
7956 (make_cleanup_value_free): Ditto.
7957 (make_cleanup_free_so): Ditto.
7959 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7961 New option "set debug auto-load".
7962 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7963 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7964 (auto_load_safe_path_vec_update)
7965 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7967 (file_is_auto_load_safe): New parameters debug_fmt and ....
7968 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7969 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7970 caller by explanatory string.
7971 (_initialize_auto_load): Register "set debug auto-load".
7972 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7974 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7975 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7976 by explanatory string.
7977 * main.c (captured_main): Likewise.
7978 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7979 (source_section_scripts): Likewise.
7981 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7983 New option "set auto-load safe-path".
7984 * NEWS: New commands "set auto-load safe-path"
7985 and "show auto-load safe-path".
7986 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7987 (auto_load_safe_path, auto_load_safe_path_vec)
7988 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7989 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7990 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7991 (source_gdb_script_for_objfile): New variable is_safe. Call
7992 file_is_auto_load_safe. Return if it is not.
7993 (struct loaded_script): New field loaded.
7994 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7995 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7996 output "Missing" to "No".
7997 (_initialize_auto_load): New variable cmd. Initialize
7998 auto_load_safe_path. Register "set auto-load safe-path",
7999 "show auto-load safe-path" and "add-auto-load-safe-path".
8000 * auto-load.h (maybe_add_script): Add parameter loaded.
8001 (file_is_auto_load_safe): New declaration.
8002 * config.in: Regenerate.
8003 * configure: Regenerate.
8004 * configure.ac: New parameters --with-auto-load-safe-path
8005 and --without-auto-load-safe-path.
8006 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8007 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8008 * main.c (captured_main): Check file_is_auto_load_safe for
8010 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8011 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8012 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8015 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8017 auto-load: Implementation.
8018 * NEWS: New descriptions for "info auto-load",
8019 "info auto-load gdb-scripts", "info auto-load python-scripts",
8020 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8021 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8022 and "show auto-load-scripts". New description for "set auto-load",
8023 "show auto-load", "set auto-load gdb-scripts",
8024 "show auto-load gdb-scripts", "set auto-load python-scripts",
8025 "show auto-load python-scripts", "set auto-load local-gdbinit",
8026 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8027 "show auto-load libthread-db".
8028 * auto-load.c: Remove include python/python-internal.h. Add includes
8029 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8031 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8032 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8033 (gdbpy_global_auto_load): Rename to ...
8034 (global_auto_load): ... here.
8035 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8036 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8037 (script_language_gdb, source_gdb_script_for_objfile): New.
8038 (struct loaded_script): New field language.
8039 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8041 (maybe_add_script): Add parameter language. Drop redundant
8042 entry.full_path initialization. Initialize entry.language and
8044 (auto_load_objfile_script): Change parameter suffix to language.
8045 Remove the call of maybe_add_script.
8046 Call language->source_script_for_objfile.
8047 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8049 (collect_matching_scripts): Adjust it for
8050 struct collect_matching_scripts_data.
8051 (auto_load_info_scripts_pattern_nl): New variable.
8052 (info_auto_load_scripts): Rename to ...
8053 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8054 for struct collect_matching_scripts_data.
8055 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8056 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8057 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8058 (auto_load_info_cmdlist_get): New.
8059 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8060 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8061 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8062 "info auto-load local-gdbinit".
8063 * auto-load.h (struct script_language): New.
8064 (gdbpy_global_auto_load): Rename to ...
8065 (global_auto_load): ... here.
8066 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8067 (auto_load_local_gdbinit_loaded): New declarations.
8068 (maybe_add_script): New parameter language.
8069 (auto_load_objfile_script): Change parameter suffix to language.
8070 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8071 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8072 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8074 * linux-thread-db.c: Include auto-load.h and ctype.h.
8075 (auto_load_thread_db, show_auto_load_thread_db): New.
8076 (struct thread_db_info): New field filename.
8077 (delete_thread_db_info): Call xfree for FILENAME.
8078 (try_thread_db_load): Initialize FILENAME.
8079 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8080 if !AUTO_LOAD_THREAD_DB.
8081 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8082 (_initialize_thread_db): Install auto_load_thread_db
8083 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8084 as "info auto-load libthread-db".
8085 * main.c (captured_main): Rename gdbpy_global_auto_load to
8086 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8087 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8088 (print_gdb_help): Extend the help for 'local init file'.
8089 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8090 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8091 (auto_load_scripts): Rename to ...
8092 (auto_load_python_scripts): ... here, update the comment.
8093 (gdbpy_load_auto_script_for_objfile): New declaration.
8094 (show_auto_load_python_scripts, script_language_python)
8095 (gdbpy_load_auto_script_for_objfile): New.
8096 (source_section_scripts): Refactor the code.
8097 (load_auto_scripts_for_objfile): Rename to ...
8098 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8099 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8100 (info_auto_load_python_scripts): New.
8101 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8102 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8103 Register "set auto-load-scripts" as its deprecated alias. Register
8104 "info auto-load python-scripts". Register "info auto-load-scripts" as
8105 its deprecated alias.
8106 (load_auto_scripts_for_objfile): Rename to ...
8107 (gdbpy_load_auto_scripts_for_objfile): ... here.
8108 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8109 (gdbpy_load_auto_scripts_for_objfile): ... here.
8111 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8113 auto-load: Move files.
8114 * Makefile.in (SFILES): Add auto-load.c.
8115 (HFILES_NO_SRCDIR): Add auto-load.h.
8116 (COMMON_OBS): Add auto-load.o.
8117 (distclean): Change .gdbinit for gdb-gdb.gdb.
8118 * auto-load.c: New file, with parts from python/py-auto-load.c.
8119 * auto-load.h: New file, with parts from python/python.h.
8120 * configure: Regenerate.
8121 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8122 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8123 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8124 * main.c: Include auto-load.h.
8125 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8126 command.h, observer.h and progspace.h to auto-load.c. Add include
8128 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8129 (struct loaded_script, auto_load_pspace_data)
8130 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8131 (hash_loaded_script_entry, eq_loaded_script_entry)
8132 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8133 (maybe_add_script): Move to auto-load.c.
8134 (source_section_scripts): Change maybe_add_script parameters passing,
8135 use script_not_found_warning_print.
8136 (clear_section_scripts, auto_load_objfile_script)
8137 (auto_load_new_objfile, loaded_script_ptr)
8138 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8139 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8140 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8141 auto_load_new_objfile and info_auto_load_scripts initizations to
8143 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8145 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8148 * charset.c (find_charset_names): Remove variables ix and elt.
8149 Use free_char_ptr_vec.
8150 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8151 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8152 debugdir_end. New variable debugdir_len.
8153 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8154 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8156 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8157 and elt. Use free_char_ptr_vec.
8158 * source.c (add_path): Remove variables argv, arg and argv_index.
8159 New variables dir_vec, back_to, ix and name.
8160 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8161 make_cleanup_freeargv. Remove variable separator. Simplify the code
8162 no longer expecting DIRNAME_SEPARATOR.
8163 (openp): Remove variable p, p1 and len. New variables dir_vec,
8164 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8165 no longer expecting DIRNAME_SEPARATOR.
8166 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8167 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8169 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8170 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8171 (dirnames_to_char_ptr_vec): New functions.
8173 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8176 * source.c (add_path): Remove always true conditional 'p == 0' and
8177 unindent its code block.
8179 2012-04-17 Pedro Alves <palves@redhat.com>
8181 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8182 (FIELD_BITPOS_LVAL): ... this.
8183 (FIELD_BITPOS): New.
8184 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8185 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8186 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8188 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8190 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8191 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8192 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8195 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8197 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8198 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8199 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8200 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8201 * jv-lang.c (java_link_class_type): Likewise, once.
8202 * stabsread.c (read_enum_type): Likewise.
8204 2012-04-16 Yao Qi <yao@codesourcery.com>
8206 * common/agent.c (agent_run_command): Add one more parameter `len'.
8208 * common/agent.h: Update declaration.
8209 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8211 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8213 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8216 * value.c (value_actual_type): New function.
8217 * value.h (value_actual_type): New declaration.
8218 * varobj.c (update_type_if_necessary): New function.
8219 (varobj_create): Call value_actual_type instead of
8221 (install_dynamic_child): distinct changed and type changed MI variable
8223 (update_dynamic_varobj_children): Updated for install_dynamic_child
8224 change. All callers updated.
8225 (varobj_update): Support for MI variable object type change if
8226 the value changed and RTTI is used to determine the type.
8227 (create_child_with_value): Call value_actual_type instead of
8229 (adjust_value_for_child_access): Extended with a new parameter which
8230 specify whether the given value should be casted to enclosing type.
8231 All callers updated.
8233 2012-04-14 Yao Qi <yao@codesourcery.com>
8235 Import gnulib module inttypes from git
8236 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8237 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8238 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8239 gnulib/m4/inttypes-pri.m4
8240 * aclocal.m4, config.in, configure: Regenerated.
8241 * gnulib/Makefile.am: Update.
8242 * gnulib/Makefile.in: Update.
8243 * gnulib/m4/gnulib-cache.m4: Update.
8244 * gnulib/m4/gnulib-comp.m4: Update.
8245 * gnulib/inttypes.in.h: New.
8246 * gnulib/m4/inttypes-pri.m4: New.
8247 * gnulib/m4/inttypes.m4: New.
8249 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8251 * infrun.c (resume): Update PC address to the real PC after
8252 preparing to do displaced stepping.
8254 2012-04-12 Doug Evans <dje@google.com>
8256 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8257 All callers updated.
8259 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8261 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8263 2012-04-12 Doug Evans <dje@google.com>
8265 * dwarf2read.c (create_all_type_units): Renamed from
8266 create_debug_types_hash_table. All callers updated.
8268 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8269 local type_sig to sig_type, type_offset to type_offset_in_tu.
8270 (hash_signatured_type): Renamed from hash_type_signature,
8271 all callers updated.
8272 (eq_signatured_type): Renamed from eq_type_signature,
8273 all callers updated.
8274 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8275 (process_enumeration_scope): Ditto.
8276 (lookup_signatured_type_at_offset): Ditto.
8277 (load_full_type_unit, read_signatured_type): Ditto.
8279 2012-04-12 Yao Qi <yao@codesourcery.com>
8281 * remote.c (async_remote_interrupt): Correct function name in
8283 (async_remote_interrupt_twice): Ditto.
8285 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8287 * source.c (find_and_open_source): Consistently pass resulting
8288 full path through xfullpath.
8290 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8292 Provide more specific displaced-stepping memory error message.
8293 * infrun.c (displaced_step_prepare): New variable status. Call
8294 target_read_memory instead of read_memory, provide more specific
8297 2012-04-11 Tristan Gingold <gingold@adacore.com>
8300 * darwin-nat.c (darwin_execvp): Revert previous patch.
8302 2012-04-11 Tristan Gingold <gingold@adacore.com>
8305 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8308 2012-04-11 Tristan Gingold <gingold@adacore.com>
8310 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8313 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8315 New command 'explore' which helps explore values and types in
8317 * NEWS: Add an entry about the new 'explore' command.
8318 * data-directory/Makefile.in: Add gdb/command/explore.py
8319 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8320 command using the GDB Python API.
8322 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8324 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8325 extension in jump target calculation.
8327 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8329 * mips-tdep.c (mips32_next_pc): Handle JALX.
8331 2012-04-10 Yao Qi <yao@codesourcery.com>
8333 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8335 2012-04-10 Yao Qi <yao@codesourcery.com>
8337 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8338 and gnulib/m4/gnulib-tool.m4.
8340 2012-04-10 Doug Evans <dje@google.com>
8342 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8343 (load_partial_dies): Clarify comment.
8344 (find_partial_die): Support rereading type units.
8345 Clarify CU handling, if we know offset is in CU, don't search for the
8346 containing CU. Add comment regarding memory waste.
8348 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8350 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8351 i386/x32-avx and i386/x32-avx-linux.
8352 (i386/x32-expedite): New.
8353 (i386/x32-linux-expedite): Likewise.
8354 (i386/x32-avx-expedite): Likewise.
8355 (i386/x32-avx-linux-expedite): Likewise.
8356 ($(outdir)/i386/x32.dat): Likewise.
8357 ($(outdir)/i386/x32-linux.dat): Likewise.
8358 ($(outdir)/i386/x32-avx.dat): Likewise.
8359 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8361 * features/i386/x32-avx-linux.xml: New file.
8362 * features/i386/x32-avx.xml: Likewise.
8363 * features/i386/x32-core.xml: Likewise.
8364 * features/i386/x32-linux.xml: Likewise.
8365 * features/i386/x32.xml: Likewise.
8367 * features/i386/x32-avx-linux.c: New. Generated.
8368 * features/i386/x32-avx.c: Likewise.
8369 * features/i386/x32-linux.c: Likewise.
8370 * features/i386/x32.c: Likewise.
8371 * regformats/i386/x32-avx-linux.dat: Likewise.
8372 * regformats/i386/x32-avx.dat: Likewise.
8373 * regformats/i386/x32-linux.dat: Likewise.
8374 * regformats/i386/x32.dat: Likewise.
8376 2012-04-10 Tristan Gingold <gingold@adacore.com>
8378 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8379 code to kill the inferior.
8381 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8383 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8385 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8387 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8388 (yyvsp): New defines.
8389 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8391 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8393 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8395 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8397 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8400 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8402 * sparc64-tdep.c (sparc64_store_arguments)
8403 (sparc64_store_arguments): Fix coding style.
8405 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8407 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8408 complex floats, adjust some related comments and tighten a related
8410 (sparc64_extract_return_value): Handle complex floats.
8412 2012-04-07 Doug Evans <dje@google.com>
8414 * dwarf2read.c (load_partial_dies): Change condition to assert.
8416 2012-04-06 Doug Evans <dje@google.com>
8418 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8421 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8423 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8425 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8426 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8429 2012-04-05 Keith Seitz <keiths@redhat.com>
8431 * linespec.c (decode_compound): Remove.
8432 (enum offset_relative_sign): New enum.
8433 (struct line_offset): New struct.
8434 (struct linespec): New struct.
8435 (struct linespec_state): Move file_symtabs,
8436 user_filename, and user_function into struct linespec.
8437 Make result an anonymous struct holding vectors of
8438 symbolp and minsym_and_objfile_d.
8439 Add language member.
8440 (enum ls_token_type): New enum.
8441 (linespec_keywords): New array.
8442 (struct ls_token): New struct.
8443 (struct ls_parser): New struct.
8444 (linespec_lexer_lex_number): New function.
8445 (linespec_lexer_lex_keyword): New function.
8446 (is_ada_operator): New function.
8447 (skip_quote_char): New function.
8448 (copy_token_string): New function.
8449 (is_closing_quote_enclosed): New function.
8450 (find_parameter_list_end): New function.
8451 (linespec_lexer_lex_string): New function.
8452 (linespec_lexer_lex_one): New function.
8453 (linespec_lexer_consume_token): New function.
8454 (linespec_lexer_peek_token): New function.
8455 (cplusplus_error): Remove unused function.
8456 (find_methods): Update comment.
8457 (find_toplevel_char): Return const.
8458 (is_objc_method_format): Remove unused function.
8459 (find_toplevel_string): New function.
8460 (is_linespec_boundary): Remove.
8461 (symbol_not_found_error): New function.
8462 (find_method_overload_end): Remove function.
8463 (unexpected_linespec_error): New function.
8464 (keep_name_info): Remove.
8465 (linespec_parse_line_offset): New function.
8466 (linespec_parse_basic): New function.
8467 (canonicalize_linespec): New function.
8468 (decode_line_internal): Remove.
8469 (create_sals_line_offset): New function adapted from
8471 (convert_linespec_to_sals): New function.
8472 (parse_linespec): New function.
8473 (linespec_parser_new): New function.
8474 (linespec_state_destructor): Change parameter type to
8475 struct linespec_state *.
8476 Add language parameter.
8477 Remove freeing of moved members.
8478 (linespec_parser_delete): New function.
8479 (decode_line_full): Use parse_linespec and linespec_parser_new.
8480 (decode_line_1): Likewise.
8481 (decode_indirect): Rename to ...
8482 (linespec_expression_to_pc): ... this and rewrite
8483 to simply find CORE_ADDR, storing this result for later
8485 (locate_first_half): Remove.
8486 (deocde_objc): Add parameter LS.
8487 Initialize new struct collect_info members.
8488 Handle minimal symbols, too.
8489 (decode_compound): Delete.
8490 (lookup_prefix_sym): Rewrite.
8491 (compare_msymbols): New function.
8492 (find_method): Rewrite.
8493 Do not call cplusplus_error.
8494 (symtabs_from_filename): Rewrite.
8495 (collect_function_symbols): Delete.
8496 (find_function_symbols): Rewrite without ARGPTR-style
8498 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8499 (decode_dollar): Adapted and renamed to ...
8500 (linespec_parse_variable): ... this.
8501 (find_linespec_symbols): New function.
8502 (decode_label): Adapted and renamed to ...
8503 (find_label_symbols): ... this.
8504 (decode_digits_list_mode): Add and use LS argument.
8505 (decode_digits_ordinary): Likewise.
8506 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8507 If in list mode, allow any symbol class. Otherwise, only
8508 permit LOC_BLOCK symbols.
8509 (minsym_found): Update comments.
8510 (search_minsyms_for_name): Do not convert the matching symbol
8511 into a SAL. Simply push the symbol and objfile into the
8513 (decode_variable): Delete. Contents adapted into
8514 find_linespec_symbols.
8516 * cp-support.c (SKIP_SPACE): Remove.
8517 (operator_tokens): Remove unused global.
8518 (cp_validate_operator): Remove.
8519 * cp-support.h (cp_validate_operator): Remove declaration.
8521 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8523 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8524 for TYPE_VPTR_FIELDNO.
8525 * valprint.c (valprint_check_validity): Make it global, move the
8526 function comment ...
8527 * value.h (valprint_check_validity): ... to this new declaration.
8529 2012-04-02 Tristan Gingold <gingold@adacore.com>
8531 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8532 the STATE32 api for i386 state.
8533 (i386_darwin_store_inferior_registers): Likewise.
8535 2012-04-02 Tristan Gingold <gingold@adacore.com>
8537 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8539 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8542 2012-04-02 Tristan Gingold <gingold@adacore.com>
8545 * darwin-nat.c (darwin_execvp): Set binary preference.
8547 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8549 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8551 2012-03-30 Tom Tromey <tromey@redhat.com>
8553 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8554 of TRY_CATCH. Fix error handling.
8555 * python/py-value.c (convert_value_from_python): Move 'old'
8556 declaration to innermost scope.
8558 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8559 Andrey Smirnov <andrew.smirnov@gmail.com>
8561 -Wshadow warning fix.
8562 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8563 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8564 Adjust code accordingly.
8566 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8568 * ada-lang.c (symbol_completion_add): 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_add): Rename parameter
8577 "wild_match" into wild_match_p. Update code and documentation
8580 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8582 * ada-lang.c (symbol_completion_match): Rename parameter
8583 "encoded" into "encoded_p". Ajust code and documentation
8586 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8587 Andrey Smirnov <andrew.smirnov@gmail.com>
8589 -Wshadow warning fix.
8590 * ada-lang.c (symbol_completion_match): Rename parameter
8591 "wild_match" into "wild_match_p". Adjust code and function
8592 documentation accordingly.
8594 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8595 Andrey Smirnov <andrew.smirnov@gmail.com>
8597 -Wshadow warning fix.
8598 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8599 "symbol_info" into "info". Adjust code accordingly.
8600 (ada_lookup_symbol): Likewise.
8602 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8604 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8605 of this function's documentation.
8607 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8608 Andrey Smirnov <andrew.smirnov@gmail.com>
8610 -Wshadow warning fix.
8611 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8612 variable into "wild_match_p". Adjust code accordingly.
8614 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8615 Andrey Smirnov <andrew.smirnov@gmail.com>
8617 -Wshadow warning fix.
8618 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8619 parameter into "wild_match_p". Adjust code accordingly.
8620 Document this parameter in the function description.
8622 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8623 Andrey Smirnov <andrew.smirnov@gmail.com>
8625 -Wshadow warning fix.
8626 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8627 "wild_match" parameter to "wild_match_p" (-Wshadow).
8629 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8631 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8632 in function documentation.
8634 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8635 Andrey Smirnov <andrew.smirnov@gmail.com>
8637 -Wshadow warning fix.
8638 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8639 variable into wild_match_p. Adjust code accordingly.
8641 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8642 Andrey Smirnov <andrew.smirnov@gmail.com>
8644 * ada-valprint.c (ada_val_print_1): Move the code handling
8645 TYPE_CODE_ENUM inside its own lexical block. Declare
8646 variables len and val there, instead of in the function's
8647 top level block. Avoid declaring deref_val again in a way
8648 that shadows another variable of the same name declared
8649 in one of the up-level blocks. Just re-use the up-level
8652 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8654 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8655 Replace block_found argument by symbol_info. Adjust
8656 implementation accordingly. Add function documentation.
8657 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8659 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8660 * ada-exp.y (write_object_renaming): Adjust to new
8661 ada_lookup_encoded_symbol API.
8663 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8665 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8668 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8670 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8671 (v850_register_name): Add the mpu and fpu register names.
8672 (v850e_register_name): Add the mpu and fpu register names.
8673 (v850e2_register_name): New function.
8674 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8677 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8679 * NEWS: Add entry for Ada varobj support.
8681 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8683 * varobj.c (default_value_is_changeable_p): New function,
8684 extracted from varobj_value_is_changeable_p. Add declaration.
8685 (ada_value_is_changeable_p): New function, extracted from
8686 varobj_value_is_changeable_p. Add declaration.
8687 (struct language_specific): New field "value_is_changeable_p".
8688 (languages): Add entries for new field.
8689 (varobj_create): Set language before calling install_new_value.
8690 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8691 "value_is_changeable_p" language callback.
8693 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8695 * ada-varobj.h, ada-varobj.c: New files.
8696 * Makefile.in (SFILES): Add ada-varobj.c.
8697 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8698 (COMMON_OBS): Add ada-varobj.o.
8700 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8702 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8703 (struct language_specific): New field "value_has_mutated".
8704 (languages): Set field "value_has_mutated" in each entry of array.
8705 (varobj_value_has_mutated): New function.
8706 (varobj_udpdate): Add handling of type mutation.
8707 (value_of_root): Add handling of type mutation.
8708 (ada_value_has_mutated): New function.
8710 2012-03-28 Pedro Alves <palves@redhat.com>
8712 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8713 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8715 2012-03-28 Tom Tromey <tromey@redhat.com>
8717 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8718 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8721 2012-03-28 Tom Tromey <tromey@redhat.com>
8723 * .dir-locals.el: New file.
8725 2012-03-28 Pedro Alves <palves@redhat.com>
8727 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8729 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8731 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8734 2012-03-27 Pedro Alves <palves@redhat.com>
8736 Eliminate struct ui_stream.
8738 * ui-out.h (struct ui_stream): Delete.
8739 (ui_out_field_stream): Adjust prototype.
8740 (ui_out_stream_new, ui_out_stream_delete)
8741 (make_cleanup_ui_out_stream_delete): Delete declarations.
8742 * ui-out.c (ui_out_field_stream): Change prototype to take a
8743 ui_file instead of a ui_stream. Adjust.
8744 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8745 (make_cleanup_ui_out_stream_delete): Delete.
8746 * breakpoint.c (print_breakpoint_location)
8747 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8748 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8749 * disasm.c (dump_insns): Ditto.
8750 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8752 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8753 ui_stream/ui_out_stream_new.
8754 * infcmd.c (print_return_value): Ditto.
8755 * osdata.c (info_osdata_command): Don't allocate a local
8757 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8758 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8759 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8760 allocate a local ui_stream.
8761 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8762 instead of ui_stream/ui_out_stream_new.
8763 (list_args_or_locals): Don't allocate a local ui_stream.
8764 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8765 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8766 ui_stream/ui_out_stream_new.
8767 * cli/cli-setshow.c (do_setshow_command): Ditto.
8769 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8771 * arm-linux-tdep.c (arm_linux_init_abi): Call
8772 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8773 * arm-tdep.c (arm_process_record): New function.
8774 (deallocate_reg_mem): New function.
8775 (decode_insn): New function.
8776 (thumb_record_branch): New function.
8777 (thumb_record_ldm_stm_swi(): New function.
8778 (thumb_record_misc): New function.
8779 (thumb_record_ld_st_stack): New function.
8780 (thumb_record_ld_st_imm_offset): New function.
8781 (thumb_record_ld_st_reg_offset(): New function.
8782 (thumb_record_add_sub_cmp_mov): New function.
8783 (thumb_record_shift_add_sub): New function.
8784 (arm_record_coproc_data_proc): New function.
8785 (arm_record_coproc): New function.
8786 (arm_record_b_bl): New function.
8787 (arm_record_ld_st_multiple): New function.
8788 (arm_record_ld_st_reg_offset): New function.
8789 (arm_record_ld_st_imm_offset): New function.
8790 (arm_record_data_proc_imm): New function.
8791 (arm_record_data_proc_misc_ld_str): New function.
8792 (arm_record_extension_space): New function.
8793 (arm_record_strx): New function.
8794 (sbo_sbz): New function.
8795 (struct insn_decode_record): New structure for arm insn record.
8796 (REG_ALLOC): New macro for reg allocations.
8797 (MEM_ALLOC): New macro for memory allocations.
8798 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8800 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8802 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8803 (store_register): Likewise.
8805 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8807 * MAINTAINERS (Write After Approval): Add myself to the list.
8809 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8811 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8812 Describe also the option "auto".
8814 2012-03-22 Richard Henderson <rth@redhat.com>
8816 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8817 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8819 2012-03-22 Richard Henderson <rth@redhat.com>
8821 * jit.c (jit_read_code_entry): Compute alignment and offset of
8822 int64_t member before computing entry_size.
8824 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8826 Python scripting: Add new method Value.referenced_value to
8827 gdb.Value which can dereference pointer as well as reference
8829 * NEWS: Add entry under 'Python scripting' about the new method
8830 Value.referenced_value on gdb.Value objects.
8831 * python/py-value.c (valpy_referenced_value): New function
8832 defining a new method on gdb.Value objects which can dereference
8833 pointer and reference values.
8835 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8837 * MAINTAINERS (Write After Approval): Add myself to the list.
8839 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8841 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8842 in addition to "main".
8844 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8846 * expression.h (op_name): Add declaration.
8847 * expprint.c (op_name): Remove declaration. Make non-static.
8848 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8850 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8852 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8854 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8855 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8856 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8857 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8858 (linux_nat_get_siginfo): Likewise.
8859 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8860 (linux_nat_get_siginfo): Likewise.
8861 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8862 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8863 * procfs.c (gdb_siginfo_t): Likewise.
8865 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8867 * .gitignore: Ignore more files.
8869 2012-03-20 Pedro Alves <palves@redhat.com>
8871 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8874 2012-03-20 Yao Qi <yao@codesourcery.com>
8876 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8879 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8881 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8882 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8883 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8885 * dwarf2expr.h (cu_offset, sect_offset): New types.
8886 (struct dwarf_expr_context_funcs) <dwarf_call>
8887 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8889 (struct dwarf_expr_context) <len>: Improve the comment.
8890 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8891 cu_offset and sect_offset.
8892 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8893 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8894 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8895 * dwarf2loc.h: Include dwarf2expr.h.
8896 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8898 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8899 Improve the comment.
8900 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8901 (struct signatured_type, struct line_header, struct partial_die_info)
8902 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8903 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8904 (get_die_type_at_offset, create_cus_from_index)
8905 (create_signatured_type_table_from_index, dw2_get_file_names)
8906 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8907 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8908 (create_debug_types_hash_table, process_psymtab_comp_unit)
8909 (load_partial_comp_unit, create_all_comp_units)
8910 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8911 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8912 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8913 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8914 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8915 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8916 (find_partial_die, read_attribute_value, lookup_die_type)
8917 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8918 (is_ref_attr): New function comment.
8919 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8920 Use cu_offset and sect_offset.
8921 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8922 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8923 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8924 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8925 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8926 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8927 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8930 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8933 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8934 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8936 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8938 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 * NEWS: Describe new options --init-command=FILE, -ix and
8941 --init-eval-command=COMMAND, -iex.
8942 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8943 CMDARG_INIT_COMMAND.
8944 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8945 "init-command", "init-eval-command", "ix" and "iex" to the variable
8946 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8947 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8948 (print_gdb_help): Describe --init-command=FILE, -ix and
8949 --init-eval-command=COMMAND, -iex.
8951 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8954 * main.c (struct cmdarg): Move it here from main. Add more comments.
8955 (cmdarg_s, VEC (cmdarg_s)): New.
8956 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8957 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8958 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8959 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8962 2012-03-19 Tom Tromey <tromey@redhat.com>
8964 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8966 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8969 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8972 2012-03-16 Chris January <chris.january@allinea.com>
8974 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8977 2012-03-16 Chris January <chris.january@allinea.com>
8979 * source.c (add_path): Use memmove instead of strcpy because the
8982 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8984 * value.h (set_value_parent): Add declaration.
8985 * value.c (set_value_parent): New function.
8986 (value_address): If VALUE->PARENT is not NULL, then use it as
8987 the base address instead of VALUE->LOCATION.address.
8988 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8989 the same as OBJ's address. Adjust V's offset accordingly.
8992 2012-03-16 Gary Benson <gbenson@redhat.com>
8994 PR breakpoints/10738
8995 * dwarf2read.c (use_deprecated_index_sections): New global.
8996 (struct partial_die_info): New member may_be_inlined.
8997 (read_partial_die): Set may_be_inlined where appropriate.
8998 (add_partial_subprogram): Add partial symbols for partial
8999 DIEs that may be inlined.
9000 (new_symbol_full): Add inlined subroutines to the current
9002 (write_psymtabs_to_index): Bump version number.
9003 (dwarf2_read_index): Read only version 6 indices unless
9004 use_deprecated_index_sections is set.
9005 * linespec.c (symbol_and_data_callback): New structure.
9006 (iterate_inline_only): New function.
9007 (iterate_over_all_matching_symtabs): New argument
9008 "include_inline". If nonzero, also call the callback for
9009 symbols representing inlined subroutines.
9010 (lookup_prefix_sym): Pass extra argument to the above.
9011 (find_function_symbols): Likewise.
9012 (add_matching_symbols_to_info): Likewise.
9013 * NEWS: Mention that GDB can now set breakpoints on inlined
9016 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9018 * p-typeprint.c (pascal_type_print_method_args):
9019 Fix display of parameter of methods.
9021 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9023 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9024 Add missing prototype.
9026 2012-03-16 Yao Qi <yao@codesourcery.com>
9027 Jan Kratochvil <jan.kratochvil@redhat.com>
9029 Fix false compilation warning.
9030 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9032 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9033 Pedro Alves <pedro@codesourcery.com>
9035 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9036 (arm_register_g_packet_guesses): New function.
9037 (arm_gdbarch_init): Don't force a target description with
9038 registers when the executable is detected as M-profile. Instead
9039 set gdbarch->tdep->is_m. Register `g' packet guesses.
9040 (_initialize_arm_tdep): Initialize the new target description.
9041 * features/arm-with-m-fpa-layout.xml: New description.
9042 * features/arm-with-m-fpa-layout.c: New, generated.
9044 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9046 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9047 Update function description.
9048 (insert_bp_location): Do not wipe bl->target_info out.
9049 * mem-break.c: #include "gdb_string.h".
9050 (default_memory_insert_breakpoint): Do not call target_read_memory
9051 with a pointer to the breakpoint's shadow_contents buffer. Use
9052 a local buffer instead.
9053 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9055 2012-03-15 Tom Tromey <tromey@redhat.com>
9057 * NEWS: Mention "info vtbl", not "info vtable".
9058 * cp-support.c (info_vtbl_command): Fix comment.
9059 (_initialize_cp_support): Fix text.
9061 2012-03-15 Tom Tromey <tromey@redhat.com>
9063 * cp-valprint.c (cp_print_value_fields): Use
9064 print_function_pointer_address for vtable slot.
9066 2012-03-15 Tom Tromey <tromey@redhat.com>
9068 * gnu-v3-abi.c (struct value_and_voffset): New.
9069 (hash_value_and_voffset, eq_value_and_voffset)
9070 (compare_value_and_voffset, compute_vtable_size)
9071 (print_one_vtable, gnuv3_print_vtable): New functions.
9072 (init_gnuv3_ops): Initialize 'print_vtable' field.
9073 * cp-support.c (info_vtbl_command): New function.
9074 (_initialize_cp_support): Add "info vtbl".
9075 * cp-abi.h (cplus_print_vtable): Declare.
9076 (struct cp_abi_ops) <print_vtable>: New field.
9077 * cp-abi.c (cplus_print_vtable): New function.
9080 2012-03-15 Tom Tromey <tromey@redhat.com>
9082 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9083 iterate_over_symbols.
9085 2012-03-14 Doug Evans <dje@google.com>
9087 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9088 DW_OP_GNU_parameter_ref.
9090 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9092 Fix double prompt of 'interpreter-exec mi'.
9093 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9094 (mi_interpreter_resume): use it.
9095 (mi_execute_command_input_handler): New function.
9096 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9097 mi_execute_command_input_handler.
9099 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9101 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9103 (darwin_debug_port_info): Make static.
9104 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9105 * machoread.c (_initialize_machoread): Add prototype.
9106 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9107 (i386_darwin_set_control, i386_darwin_get_control)
9108 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9109 i386_darwin_get_status, i386_darwin_get_control):
9110 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9112 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9114 * ax-gdb.c (gen_usual_unary): Remove special handling of
9115 enum and bool types.
9117 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9119 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9121 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9123 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9125 2012-03-13 Chris January <chris.january@allinea.com>
9127 * aix-thread.c (fill_sprs): Store the floating point registers
9128 at the correct offsets into vals.
9130 2012-03-13 Doug Evans <dje@google.com>
9132 * NEWS: Mention symbol-reloading has been deleted.
9133 * symfile.c (symbol_reloading): Delete.
9134 (show_symbol_reloading): Delete.
9135 (_initialize_symfile): Delete set/show symbol-reloading.
9137 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9138 read_in_chain until we have successfully read it in.
9139 (load_full_comp_unit): Ditto.
9140 (read_signatured_type): Add comment.
9142 2012-03-13 Chris January <chris.january@allinea.com>
9144 * stabsread.c (fix_common_block): Change type of valu argument
9147 2012-03-13 Chris January <chris.january@allinea.com>
9149 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9152 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9154 * common/linux-procfs.c (linux_proc_get_int): New, from
9155 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9157 (linux_proc_get_tgid): Only call linux_proc_get_int.
9158 (linux_proc_get_tracerpid): New.
9159 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9160 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9161 linux_proc_pid_has_state.
9162 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9163 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9164 (linux_ptrace_attach_warnings): New.
9165 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9167 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9168 (linux_nat_attach): New variables ex, buffer, message and message_s.
9169 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9171 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9173 * Makefile.in (linux-ptrace.o): New.
9174 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9176 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9177 * common/linux-ptrace.c: New file.
9178 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9179 * config/arm/linux.mh: Likewise.
9180 * config/i386/linux.mh: Likewise.
9181 * config/i386/linux64.mh: Likewise.
9182 * config/ia64/linux.mh: Likewise.
9183 * config/m32r/linux.mh: Likewise.
9184 * config/m68k/linux.mh: Likewise.
9185 * config/mips/linux.mh: Likewise.
9186 * config/pa/linux.mh: Likewise.
9187 * config/powerpc/linux.mh: Likewise.
9188 * config/powerpc/ppc64-linux.mh: Likewise.
9189 * config/powerpc/spu-linux.mh: Likewise.
9190 * config/s390/s390.mh: Likewise.
9191 * config/sparc/linux.mh: Likewise.
9192 * config/sparc/linux64.mh: Likewise.
9193 * config/xtensa/linux.mh: Likewise.
9194 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9195 common/linux-procfs.c.
9196 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9198 2012-03-13 Hui Zhu <teawater@gmail.com>
9199 Pedro Alves <palves@redhat.com>
9201 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9202 CREATE_BREAKPOINT_FLAGS_INSERTED.
9203 (create_breakpoint_sal, create_breakpoints_sal)
9204 (base_breakpoint_create_breakpoints_sal)
9205 (tracepoint_create_breakpoints_sal)
9206 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9208 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9209 (ftrace_command, strace_command): Adjust.
9210 (create_tracepoint_from_upload): Pass
9211 CREATE_BREAKPOINT_FLAGS_INSERTED.
9212 * breakpoint.h (enum breakpoint_create_flags): New.
9213 (create_breakpoint): New flags parameter.
9214 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9215 * python/py-breakpoint.c (bppy_init): Adjust.
9216 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9217 * spu-tdep.c (spu_catch_start): Adjust.
9219 2012-03-13 Pedro Alves <palves@redhat.com>
9220 Hui Zhu <teawater@gmail.com>
9221 Yao Qi <yao@codesourcery.com>
9223 * remote.c (struct remote_state): New field `starting_up'.
9224 (remote_start_remote): Set and clear it.
9225 (remote_can_download_tracepoint): If starting up, return false.
9227 2012-03-13 Yao Qi <yao@codesourcery.com>
9229 * inferior.h (struct inferior): Remove fields any_syscall_count,
9230 syscalls_counts and total_syscalls_count. Move them to new
9231 struct catch_syscall_inferior_data in breakpoint.c.
9232 * breakpoint.c: Call DEF_VEC_I(int).
9233 (struct catch_syscall_inferior_data): New.
9234 (get_catch_syscall_inferior_data): New.
9235 (catch_syscall_inferior_data_cleanup): New.
9236 (insert_catch_syscall): Update to access data in
9237 struct catch_syscall_inferior_data.
9238 (insert_catch_syscall): Likewise.
9239 (remove_catch_syscall): Likewise.
9240 (remove_catch_syscall): Likewise.
9241 (is_syscall_catchpoint_enabled): Likewise.
9242 (add_catch_command): Likewise.
9243 (_initialize_breakpoint): Register cleanup.
9244 * breakpoint.h: Removed DEF_VEC_I(int).
9245 * dwarf2loc.c: Call DEF_VEC_I(int).
9246 * mi/mi-main.c: Likewise.
9248 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9250 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9252 2012-03-12 Chris January <chris.january@allinea.com>
9254 * aix-thread.c (_initialize_aix_thread): Add prototype.
9255 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9256 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9258 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9260 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9261 include of "amd64-nat.h".
9263 2012-03-12 Tom Tromey <tromey@redhat.com>
9265 * buildsym.c (record_pending_block): Now static.
9266 * buildsym.h: (record_pending_block): Remove.
9268 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9270 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9272 2012-03-09 Tom Tromey <tromey@redhat.com>
9274 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9275 producer_is_gxx_lt_4_6>: New fields.
9276 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9278 2012-03-09 Tom Tromey <tromey@redhat.com>
9280 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9282 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9284 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9287 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9289 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9291 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9293 Fix -Wmissing-prototypes build.
9294 * arm-linux-nat.c (get_thread_id): Make it static.
9295 * xtensa-linux-nat.c (get_thread_id): Likewise.
9297 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9299 * server.c (process_point_options): If a conditional expression
9300 is found, only print a message if remote_debug is nonzero.
9302 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9304 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9305 of internal error for unknown/unsupported types.
9307 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9309 Fix CU relative vs. absolute DIE offsets.
9310 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9311 offset to offset_in_cu.
9312 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9314 (dwarf2_fetch_die_location_block): Rename parameter offset to
9315 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9317 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9319 * libunwind-frame.c: Rename to ...
9320 * ia64-libunwind-tdep.c: ... here.
9321 * libunwind-frame.h: Rename to ...
9322 * ia64-libunwind-tdep.h: ... here.
9323 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9324 ia64-libunwind-tdep.h.
9325 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9326 * README (--with-libunwind): Rename to ...
9327 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9328 * config.in: Regenerate.
9329 * configure: Regenerate.
9330 * configure.ac: New option --with-libunwind-ia64, make the
9331 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9332 Remove AC_DEFINE for HAVE_LIBUNWIND.
9333 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9334 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9335 Rename libunwind-frame in the general comment.
9336 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9337 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9338 Move forward declarations inside #ifndef. Rename libunwind-frame in
9339 the general comment.
9340 * ia64-tdep.c: Rename libunwind-frame.h #include to
9341 ia64-libunwind-tdep.h.
9342 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9343 (ia64_libunwind_descr): Rename libunwind-frame to
9344 ia64-libunwind-tdep in these function comments.
9345 * ia64-tdep.h: Rename libunwind-frame.h #include to
9346 ia64-libunwind-tdep.h.
9347 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9348 ia64-libunwind-tdep in that data comment.
9350 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9352 * libunwind-frame.h (struct frame_unwind): New declaration.
9354 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9356 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9357 "set breakpoint condition-evaluation" command.
9359 2012-03-08 Tristan Gingold <gingold@adacore.com>
9361 * sparc-stub.c: Move to stubs/
9362 * sh-stub.c: Likewise.
9363 * m68k-stub.c: Likewise.
9364 * m32r-stub.c: Likewise.
9365 * i386-stub.c: Likewise.
9367 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9369 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9370 linux_get_siginfo_type.
9372 * m68klinux-nat.c: Include "gdb_proc_service.h".
9373 (PTRACE_GET_THREAD_AREA): Define.
9374 (ps_get_thread_area): New function.
9376 2012-03-08 Yao Qi <yao@codesourcery.com>
9378 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9380 (remote_query_attached): Likewise.
9381 (remote_static_tracepoint_marker_at): Likewise.
9382 (remote_set_permissions): Likewise.
9383 (remote_detach_1, extended_remote_attach_1): Likewise.
9384 (send_g_packet, remote_vkill): Likewise.
9385 (extended_remote_disable_randomization): Likewise.
9386 (remote_add_target_side_condition): Likewise.
9387 (remote_insert_breakpoint): Likewise.
9388 (remote_remove_breakpoint): Likewise.
9389 (remote_insert_watchpoint): Likewise.
9390 (remote_remove_watchpoint): Likewise.
9391 (remote_insert_hw_breakpoint): Likewise.
9392 (remote_insert_hw_breakpoint): Likewise.
9393 (remote_remove_hw_breakpoint): Likewise.
9394 (remote_download_command_source): Likewise.
9395 (remote_download_tracepoint): Likewise.
9396 (remote_download_trace_state_variable): Likewise.
9397 (remote_disable_tracepoint): Likewise.
9398 (remote_trace_set_readonly_regions): Likewise.
9399 (remote_get_tracepoint_status): Likewise.
9400 (remote_trace_find): Likewise.
9401 (remote_get_trace_state_variable_value): Likewise.
9402 (remote_set_disconnected_tracing): Likewise.
9403 (remote_set_circular_trace_buffer): Likewise.
9404 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9405 (remote_use_agent): Likewise.
9406 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9409 2012-03-07 Pedro Alves <palves@redhat.com>
9411 * NEWS: Mention QProgramSignals.
9412 * inferior.h (update_signals_program_target): Declare.
9413 * infrun.c: (update_signals_program_target): New.
9414 (handle_command): Update the target of the new program signals
9416 * remote.c (PACKET_QProgramSignals): New enum.
9417 (last_program_signals_packet): New global.
9418 (remote_program_signals): New.
9419 (remote_start_remote): Update the target with the program signals
9421 (remote_protocol_features): Add entry for QPassSignals.
9422 (remote_open_1): Free anc clear last_program_signals_packet.
9423 (init_remote_ops): Install remote_program_signals.
9424 * target.c (update_current_target): Adjust.
9425 (target_program_signals): New.
9426 * target.h (struct target_ops) <to_program_signals>: New field.
9427 (target_program_signals): Declare.
9429 2012-03-07 Pedro Alves <palves@redhat.com>
9431 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9434 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9436 * m68klinux-nat.c (getregs_supplies): Make static.
9437 (getfpregs_supplies): Likewise.
9438 (have_ptrace_getregs): Likewise.
9440 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9442 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9443 in call to get_die_type_at_offset.
9445 2012-03-06 Stan Shebs <stan@codesourcery.com>
9447 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9448 * mi/mi-cmd-disas.c: Ditto.
9449 * mi/mi-cmd-env.c: Ditto.
9450 * mi/mi-cmd-file.c: Ditto.
9451 * mi/mi-cmd-stack.c: Ditto.
9452 * mi/mi-cmd-target.c: Ditto.
9453 * mi/mi-cmd-var.c: Ditto.
9454 * mi/mi-cmds.c: Ditto.
9455 * mi/mi-cmds.h: Ditto.
9456 * mi/mi-console.c: Ditto.
9457 * mi/mi-getopt.c: Ditto.
9458 * mi/mi-getopt.h: Ditto.
9459 * mi/mi-interp.c: Ditto.
9460 * mi/mi-main.c: Ditto.
9461 * mi/mi-out.c: Ditto.
9462 * mi/mi-parse.c: Ditto.
9463 * mi/mi-parse.h: Ditto.
9464 * mi/mi-symbol-cmds.c: Ditto.
9466 * mi/mi-getopt.h: Move mi_opt struct up.
9467 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9469 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9471 2012-03-06 Tom Tromey <tromey@redhat.com>
9473 * proc-service.c (ps_pglobal_lookup): Set the current program
9476 2012-03-06 Pedro Alves <palves@redhat.com>
9478 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9480 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9482 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9484 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9487 * common/linux-osdata.c (linux_common_core_of_thread): New function
9489 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9490 call by linux_common_core_of_thread.
9491 (linux_nat_core_of_thread_1): Remove.
9492 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9493 * linux-thread-db.c: Include linux-osdata.h.
9494 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9495 linux_common_core_of_thread.
9497 2012-03-05 Tom Tromey <tromey@redhat.com>
9499 * value.c (value_primitive_field): Don't fetch contents for
9502 2012-03-05 Tom Tromey <tromey@redhat.com>
9504 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9506 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9508 * s390-nat.c: Include "gregset.h".
9510 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9512 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9513 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9514 (libunwind_load): New variable so_error, use it for dlerror. Try to
9515 load also LIBUNWIND_SO_7.
9517 2012-03-05 Pedro Alves <palves@redhat.com>
9519 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9520 is not NULL, and remove resulting dead code.
9522 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9524 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9525 prologue to sh_analyze_prologue.
9526 (sh_analyze_prologue): Make better use of such an upper limit, and
9527 generally be more cautious about accessing memory.
9529 2012-03-05 Tom Tromey <tromey@redhat.com>
9531 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9532 _initialize_ia64_hpux_tdep.
9534 2012-03-05 Pedro Alves <palves@redhat.com>
9538 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9539 the register state is clear, supply explicit zero, instead of
9540 marking the register unavailable.
9542 2012-03-05 Tristan Gingold <gingold@adacore.com>
9544 * NEWS: Mention OpenVMS ia64 new target.
9546 2012-03-05 Tristan Gingold <gingold@adacore.com>
9548 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9549 (ia64_unw_accessors, ia64_unw_rse_accessors)
9550 (ia64_libunwind_descr): Declare.
9551 * ia64-vms-tdep.c: New file.
9552 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9553 (ia64_libunwind_descr): Make them public.
9554 * configure.tgt: Add ia64-*-*vms*.
9555 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9556 (ALLDEPFILES): Add ia64-vms-tdep.c
9558 2012-03-05 Tristan Gingold <gingold@adacore.com>
9560 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9561 * remote.c (PACKET_qXfer_uib): New enum value.
9562 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9563 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9564 (_initialize_remote): Call add_packet_config_cmd for
9567 2012-03-05 Tristan Gingold <gingold@adacore.com>
9569 * osabi.c (gdb_osabi_names): Add OpenVMS.
9570 (generic_elf_osabi_sniffer): Likewise.
9571 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9573 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9575 Removed unused code.
9576 * libunwind-frame.c (libunwind_frame_unwind)
9577 (libunwind_frame_base_address): Remove.
9578 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9580 2012-03-04 Yao Qi <yao@codesourcery.com>
9582 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9583 remove trailing new line.
9584 (agent_run_command, agent_run_command): Add _ markup.
9585 (agent_capability_check): Likewise.
9587 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9589 * breakpoint.c (set_condition_evaluation_mode): Set
9590 CONDITION_EVALUATION_MODE unconditionally.
9592 2012-03-03 Yao Qi <yao@codesourcery.com>
9594 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9595 * common/agent.h: Update declaration.
9596 * inf-child.c (inf_child_use_agent): New.
9597 (inf_child_can_use_agent): New.
9598 (inf_child_target): Initialize fields `to_use_agent'
9599 and `to_can_use_agent'.
9600 * agent.c (agent_new_objfile): New.
9601 (_initialize_agent): Add agent_new_objfile to new_objfile
9604 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9606 (linux_target_install_ops): Initialize field
9607 `to_static_tracepoint_markers_by_strid'.
9608 * remote.c (free_current_marker): Move it to ...
9609 * tracepoint.c (free_current_marker): ... here. New.
9610 (cleanup_target_stop): New.
9611 * tracepoint.h: Declare free_current_marker.
9612 * NEWS: Add one entry about `info static-tracepoint-marker'.
9614 2012-03-03 Yao Qi <yao@codesourcery.com>
9616 * common/agent.c (agent_loaded_p): New.
9617 (agent_look_up_symbols): New global.
9618 * common/agent.h: Declare agent_loaded_p.
9620 2012-03-03 Yao Qi <yao@codesourcery.com>
9622 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9623 (agent_capability_check, agent_capability_invalidate): New.
9624 (symbol_list): New array element.
9625 * common/agent.h (enum agent_capa): New.
9626 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9628 2012-03-03 Yao Qi <yao@codesourcery.com>
9630 * target.h (struct target_ops) <to_use_agent>: New field.
9631 (struct target_ops) <to_can_use_agent>: New field.
9632 (target_use_agent, target_can_use_agent): New macro.
9633 * target.c (update_current_target): Update.
9634 * remote.c: New enum `PACKET_QAgent'.
9635 (remote_protocol_features): Add a new element.
9636 (remote_use_agent, remote_can_use_agent): New.
9637 (init_remote_ops): Initialize field `can_use_agent' with
9638 remote_can_use_agent. Intiailize field `use_agent' with
9640 * common/agent.c (use_agent): New global.
9641 * common/agent.h: Declare it.
9642 * tracepoint.c (info_static_tracepoint_markers_command): Add
9644 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9645 (COMMON_OBS): Add common/agent.o and agent.o
9646 (common-agent.o): New rule.
9649 2012-03-03 Yao Qi <yao@codesourcery.com>
9651 * common/agent.c: New.
9652 * common/agent.h: New.
9653 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9655 * configure, configh.in: Regenerated.
9657 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9659 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9660 unless it exists for this architecture.
9662 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9664 * language.h (struct language_defn): New "method" la_read_var_value.
9665 * findvar.c: #include "language.h".
9666 (default_read_var_value): Renames read_var_value. Rewrite
9667 function description.
9668 (read_var_value): New function.
9669 * value.h (default_read_var_value): Add prototype.
9670 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9672 (ada_language_defn): Add entry for la_read_var_value.
9673 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9674 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9675 language_defn structures to add entry for new la_read_var_value
9678 2012-03-02 Tom Tromey <tromey@redhat.com>
9679 Pedro Alves <palves@redhat.com>
9681 PR breakpoints/13776:
9682 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9684 (delete_longjmp_breakpoint_at_next_stop): New.
9685 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9686 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9687 before deleting the inferior. Add comments.
9688 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9689 breakpoints immediately, but only on next stop. Move that code
9690 next to where we mark other breakpoints for deletion.
9692 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9694 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9696 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9699 2012-03-02 Pedro Alves <palves@redhat.com>
9701 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9703 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9705 Fix -Wmissing-prototypes build.
9706 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9707 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9708 (gdbsim_has_memory): Likewise.
9710 2012-03-02 Yao Qi <yao@codesourcery.com>
9712 Fix -Wmissing-prototypes build.
9713 * charset.c (phony_iconv_open): Make static.
9714 (phony_iconv_close, phony_iconv): Likewise.
9715 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9716 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9718 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9719 * ser-mingw.c (create_select_thread): Make static.
9720 * windows-termcap.c (tgetent): New prototype.
9721 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9723 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9725 Fix -Wmissing-prototypes build.
9726 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9727 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9728 (_initialize_loadable): New prototypes.
9730 2012-03-02 Doug Evans <dje@google.com>
9732 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9733 abbrev table, read_comp_unit will do it.
9735 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9737 Fix -Wmissing-prototypes build.
9738 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9739 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9740 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9741 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9742 (_initialize_arm_symbian_tdep): New prototype.
9743 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9744 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9745 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9747 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9748 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9750 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9751 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9752 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9754 * moxie-tdep.c (moxie_process_record): Likewise.
9755 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9756 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9757 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9758 (_initialize_rl78_tdep): New prototype.
9759 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9760 (_initialize_rx_tdep): New prototype.
9761 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9762 (_initialize_darwin_solib): New prototype.
9763 * solib-spu.c: Include solib-spu.h.
9764 (_initialize_spu_solib): New prototype.
9765 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9766 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9767 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9768 (tic6x_software_single_step): Make it static.
9769 (_initialize_tic6x_tdep): New prototype.
9771 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9773 Fix -Wmissing-prototypes build.
9774 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9775 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9777 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9779 Fix -Wmissing-prototypes build.
9780 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9781 (frv_have_stopped_data_address): Remove.
9783 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9785 Fix -Wmissing-prototypes build.
9786 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9787 * sh-tdep.c: Include sh64-tdep.h.
9788 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9789 * sh64-tdep.c: Include sh64-tdep.h.
9790 * sh64-tdep.h: New file.
9792 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9794 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9796 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9798 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9799 sp_regnum once the gdbarch_init_osabi hook has been called.
9801 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9803 * mips-tdep.c (mips32_bc1_pc): New function.
9804 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9805 BPOSGE32 and BPOSGE64 instructions.
9806 (deal_with_atomic_sequence): Likewise.
9807 (mips32_instruction_has_delay_slot): Likewise.
9809 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9810 Chris Dearman <chris@mips.com>
9811 Maciej W. Rozycki <macro@codesourcery.com>
9812 Joseph Myers <joseph@codesourcery.com>
9814 * features/mips-dsp.xml: New file.
9815 * features/mips64-dsp.xml: New file.
9816 * features/mips-dsp-linux.xml: New file.
9817 * features/mips64-dsp-linux.xml: New file.
9818 * features/Makefile (WHICH): Add mips-dsp-linux and
9820 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9821 * features/mips-dsp-linux.c: New file.
9822 * features/mips64-dsp-linux.c: New file.
9823 * regformats/mips-dsp-linux.dat: New file.
9824 * regformats/mips64-dsp-linux.dat: New file.
9825 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9827 (mips64_linux_register_addr): Likewise.
9828 (mips64_linux_regsets_fetch_registers): Likewise.
9829 (mips64_linux_regsets_store_registers): Likewise.
9830 (mips64_linux_fetch_registers): Update call to
9831 mips64_linux_regsets_fetch_registers.
9832 (mips64_linux_store_registers): Update call to
9833 mips64_linux_regsets_store_registers.
9834 (mips_linux_read_description): Probe for DSP registers.
9835 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9836 and initialize_tdesc_mips64_dsp_linux.
9837 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9838 Remove padding of no longer used embedded register slots.
9839 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9840 (MIPS_RESTART_REGNUM): Redefine enum value.
9841 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9843 (mips_tx39_reg_names): Likewise.
9844 (mips_linux_reg_names): New array of register names for Linux
9846 (mips_register_name): Check for a null pointer in
9847 mips_processor_reg_names and return an empty string.
9848 (mips_register_type): Exclude embedded registers for the IRIX
9850 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9851 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9853 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9854 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9855 (mips_gdbarch_init): Likewise. Initialize internal register
9856 indices for the Linux ABI. Use dynamic numbers to refer to
9857 registers, as applicable, while parsing the target description.
9858 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9860 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9862 * frame.h (read_frame_register_unsigned): Fix typo in function
9865 2012-03-01 Pedro Alves <palves@redhat.com>
9867 * jit-reader.in [!__cplusplus]
9868 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9870 2012-03-01 Pedro Alves <palves@redhat.com>
9872 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9873 * configure: Regenerate.
9875 2012-03-01 Pedro Alves <palves@redhat.com>
9877 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9878 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9879 (ftrace_command, strace_command): Make static.
9880 * d-lang.c (_initialize_d_language): Declare.
9881 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9882 * dwarf2loc.c (_initialize_dwarf2loc):
9883 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9884 * exec.c (exec_get_section_table): Make static.
9885 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9886 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9887 * inferior.c (remove_inferior_command, add_inferior_command)
9888 (clone_inferior_command): Make static.
9889 * linux-nat.c (linux_nat_thread_address_space)
9890 (linux_nat_core_of_thread): Make static.
9891 * linux-tdep.c (_initialize_linux_tdep): Declare.
9892 * objc-lang.c (_initialize_objc_lang): Declare.
9893 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9895 (_initialize_opencl_language): Declare.
9896 * record.c (_initialize_record): Declare.
9897 * remote.c (demand_private_info, remote_get_tib_address)
9898 (remote_supports_cond_tracepoints)
9899 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9901 * skip.c (_initialize_step_skip): Declare.
9902 * symtab.c (skip_prologue_using_lineinfo): Make static.
9903 * tracepoint.c (delete_trace_state_variable)
9904 (trace_variable_command, delete_trace_variable_command)
9905 (get_uploaded_tsv, find_matching_tracepoint_location)
9906 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9908 * value.c (pack_unsigned_long): Make static.
9909 * varobj.c (varobj_ensure_python_env): Make static.
9910 * windows-tdep.c (_initialize_windows_tdep): Declare.
9911 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9913 2012-03-01 Pedro Alves <palves@redhat.com>
9915 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9917 (linux_init_abi): Install it as has_shared_address_space gdbarch
9920 2012-03-01 Pedro Alves <palves@redhat.com>
9922 * observer.c (observer_test_first_notification_function)
9923 (observer_test_second_notification_function)
9924 (observer_test_third_notification_function): Add declarations.
9926 2012-03-01 Pedro Alves <palves@redhat.com>
9928 * common/signals.c (default_target_signal_to_host)
9929 (default_target_signal_from_host): Move ...
9930 * arch-utils.c: ... here.
9931 * arch-utils.h (default_target_signal_to_host)
9932 (default_target_signal_from_host): Declare.
9934 * common/signals.c (target_signal_from_command): Move ...
9935 * infrun.c: ... here.
9936 * inferior.h (target_signal_from_command): Declare.
9937 * target.h (target_signal_from_command)
9938 (default_target_signal_from_host, default_target_signal_to_host):
9939 Delete declarations.
9941 * common/signals.c (_initialize_signals): Delete.
9943 2012-03-01 Pedro Alves <palves@redhat.com>
9945 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9946 both __cplusplus and !__cplusplus.
9948 2012-03-01 Pedro Alves <palves@redhat.com>
9950 * psymtab.c (find_and_open_source): Delete declaration.
9951 * source.c (find_and_open_source): Move comment ...
9952 * source.h (find_and_open_source): ... to this new declaration.
9954 2012-03-01 Pedro Alves <palves@redhat.com>
9956 * inline-frame.c: Include inline-frame.h.
9958 2012-03-01 Pedro Alves <palves@redhat.com>
9960 * tui/tui-data.c (set_gen_win_origin): Delete.
9961 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9962 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9964 2012-03-01 Pedro Alves <palves@redhat.com>
9966 * remote.c (encode_actions): Delete declaration.
9967 * tracepoint.c (encode_actions): Make extern.
9968 * tracepoint.h (encode_actions): Declare.
9970 2012-03-01 Pedro Alves <palves@redhat.com>
9972 * python/py-breakpoint.c: Include python.h.
9973 * python/py-continueevent.c (create_continue_event_object): Make
9975 * python/py-lazy-string.c (stpy_get_type): Make static.
9976 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9978 * python/py-utils.c (unicode_to_target_python_string): Make
9980 * python/py-value.c: Include python.h.
9982 2012-03-01 Pedro Alves <palves@redhat.com>
9984 * inferior.c (delete_threads_of_inferior): Delete.
9986 2012-03-01 Pedro Alves <palves@redhat.com>
9988 Import fallback definitions from glibc.
9990 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9991 ps_prochandle): Forward declare.
9992 (ps_err_e): Use glibc's comments.
9993 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9994 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9995 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9996 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9997 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9998 (struct ps_prochandle): Adjust comment.
10000 2012-03-01 Pedro Alves <palves@redhat.com>
10002 * ada-lang.c (ada_modulus_from_name): Delete.
10003 * ada-lex.l (lexer_init): Make static.
10005 2012-03-01 Pedro Alves <palves@redhat.com>
10009 * frame.c (read_frame_register_unsigned): New.
10010 * frame.h (read_frame_register_unsigned): Declare.
10011 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10013 (print_i387_control_word): New parameter `control_p'. Handle it.
10014 (i387_print_float_info): Handle unavailable float registers.
10016 2012-03-01 Keith Seitz <keiths@redhat.com>
10018 * linespec.c (decode_line_2): Sort the list of methods
10019 alphabetically before presenting the user with a selection
10022 2012-03-01 Doug Evans <dje@google.com>
10024 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10025 has_namespace_info.
10026 (dwarf2_read_abbrevs): Remove corresponding initialization.
10028 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10030 * NEWS: Mention new python command class gdb.COMMAND_USER.
10031 * cli/cli-cmds.c (show_user): Print error when used on a python
10033 (init_cli_cmds): Update documentation strings for "show user" and
10034 "set/show max-user-call-depth" to clarify that it does not apply to
10036 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10038 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10040 * top.c (execute_command): Only execute a user-defined command as a
10041 legacy macro if c->user_commands is set.
10043 2012-03-01 Tom Tromey <tromey@redhat.com>
10045 * valprint.h (struct generic_val_print_decorations): New.
10046 (generic_val_print): Declare.
10047 * valprint.c (generic_val_print): New function.
10048 * p-valprint.c (p_decorations): New global.
10049 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10050 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10051 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10052 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10053 * m2-valprint.c (m2_decorations): New global.
10054 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10055 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10056 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10057 TYPE_CODE_ERROR>: Call generic_val_print.
10058 * f-valprint.c (f_decorations): New global.
10059 (f_val_print): Use print_function_pointer_address.
10060 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10061 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10062 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10064 * c-valprint.c (c_decorations): New global.
10065 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10066 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10067 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10068 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10069 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10070 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10073 2012-03-01 Tom Tromey <tromey@redhat.com>
10075 * valprint.c (val_print): Update.
10076 * p-valprint (pascal_val_print): Return void.
10077 * p-lang.h (pascal_val_print): Return void.
10078 * m2-valprint.c (m2_val_print): Return void.
10079 * m2-lang.h (m2_val_print): Return void.
10080 * language.h (struct language_defn) <la_val_print>: Return void.
10081 * language.c (unk_lang_val_print): Return void.
10082 * jv-valprint.c (java_val_print): Return void.
10083 * jv-lang.h (java_val_print): Return void.
10084 * f-valprint.c (f_val_print): Return void.
10085 * f-lang.h (f_val_print): Return void.
10086 * d-valprint.c (d_val_print): Return void.
10087 (dynamic_array_type): Update.
10088 * d-lang.h (d_val_print): Return void.
10089 * c-valprint.c (c_val_print): Return void.
10090 * c-lang.h (c_val_print): Return void.
10091 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10093 * ada-lang.h (ada_val_print): Return void.
10095 2012-03-01 Tom Tromey <tromey@redhat.com>
10097 * value.h (val_print): Return void.
10098 * valprint.c (val_print): Return void.
10100 2012-03-01 Tom Tromey <tromey@redhat.com>
10102 * value.h (common_val_print): Return void.
10103 * valprint.c (common_val_print): Return void.
10105 2012-03-01 Tom Tromey <tromey@redhat.com>
10107 * value.h (value_print): Return void.
10108 * valprint.c (value_print): Return void.
10109 * p-valprint.c (pascal_value_print): Return void.
10110 * p-lang.h (pascal_value_print): Return void.
10111 * language.h (struct language_defn) <la_value_print>: Return
10113 * language.c (unk_lang_value_print): Return void.
10114 * jv-valprint.c (java_value_print): Return void.
10115 * jv-lang.h (java_value_print): Return void.
10116 * f-valprint.c (c_value_print): Don't declare.
10118 * c-valprint.c (c_value_print): Return void.
10119 * c-lang.h (c_value_print): Return void.
10120 * ada-valprint.c (ada_value_print): Return void.
10121 * ada-lang.h (ada_value_print): Return void.
10123 2012-03-01 Tom Tromey <tromey@redhat.com>
10125 * value.c (value_primitive_field): Handle virtual base classes.
10127 2012-03-01 Tom Tromey <tromey@redhat.com>
10129 * gdbtypes.h (struct vbase): Remove.
10131 2012-03-01 Tom Tromey <tromey@redhat.com>
10133 * c-valprint.c (print_function_pointer_address): Move...
10134 * valprint.c: ... here. Make non-static.
10135 * m2-valprint.c (print_function_pointer_address): Remove.
10136 * valprint.h (print_function_pointer_address): Declare.
10138 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10140 * NEWS: Document the fact that one can provide a condition when
10141 creating an Ada exception catchpoint.
10143 2012-03-01 Tom Tromey <tromey@redhat.com>
10145 * valprint.c (val_print_type_code_flags): Fix placement of
10148 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10150 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10151 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10152 environment variable before calling update-copyright.
10154 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10156 * gnulib/extra/update-copyright: Update to the latest from
10157 gnulib's git repository.
10158 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10159 variable to 2 instead of 1.
10161 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10163 * varobj.c (c_value_of_variable): Remove dead code.
10165 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10167 * ada-lex.p (processId): Do not modify already encoded IDs.
10168 Update function documentation.
10170 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10172 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10173 "name" with "struct symbol *name_sym".
10174 * ada-exp.y (write_var_or_type): Update call to
10175 ada_find_renaming_symbol.
10176 "name" with "struct symbol *name_sym". Adjust Implementation
10177 accordingly. Adjust the function documentation.
10179 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10181 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10182 * ada-lang.c (ada_find_any_type): Add advance declaration.
10183 Make static. Replace ada_find_any_symbol by
10184 ada_find_any_type_symbol.
10185 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10186 Improve function description. Make static.
10187 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10188 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10190 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10192 * ada-lang.c (struct tag_args): Delete.
10193 (ada_get_tsd_type): Function body moved up in source file.
10194 (ada_tag_name_1, ada_tag_name_2): Delete.
10195 (ada_get_tsd_from_tag): New function.
10196 (ada_tag_name_from_tsd): New function.
10197 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10198 to determine the tag name.
10200 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10202 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10204 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10207 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10209 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10211 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10213 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10216 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10218 * ada-lang.c (constrained_packed_array_type): If there is a
10219 parallel XA type, use it to determine the array index type.
10221 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10223 * ada-valprint.c (ada_val_print_1): If our value is a reference
10224 to an array descriptor, dereference it before converting it
10227 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10229 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10230 creating fixed value.
10231 (ada_value_ind, ada_coerce_ref, assign_component)
10232 (ada_evaluate_subexp): Remove call to unwrap_value before
10233 call to ada_to_fixed_value.
10235 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10237 * ada-lang.c (to_fixed_array_type): Set result's type name.
10239 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10241 * ada-lang.c (catch_ada_exception_command_split): Add new
10242 argument cond_string. Add support for condition at end of
10243 "catch exception" commands.
10244 (ada_decode_exception_location): Add new argument cond_string.
10245 Update call to catch_ada_exception_command_split.
10246 (create_ada_exception_catchpoint): Add new argument cond_string.
10247 Set the breakpoint condition if needed.
10248 (catch_ada_exception_command): Update call to
10249 ada_decode_exception_location.
10250 (ada_decode_assert_location): Add function documentation.
10251 Add support for condition at end of "catch assert" command.
10252 (catch_assert_command): Update calls to ada_decode_assert_location
10253 and create_ada_exception_catchpoint.
10255 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10257 Fix disp-step-syscall.exp: fork: single step over fork.
10258 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10259 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10260 comment, change parameters gdbarch and ptid to regcache. Remove
10261 parameter regcache, initialize gdbarch from regcache here.
10262 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10264 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10266 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10267 'syscall'. Make the 'int' check more strict.
10269 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10271 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10272 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10273 (i386_linux_intx80_sysenter_syscall_record): ... here.
10274 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10275 Use the renamed function name.
10277 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10279 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10280 * breakpoint.c (until_break_command): Likewise.
10281 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10282 * infcall.c (call_function_by_hand): Likewise.
10283 * infcmd.c (finish_forward): Likewise.
10284 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10286 2012-02-28 Tristan Gingold <gingold@adacore.com>
10288 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10289 avoid variable assignments inside condition.
10291 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10293 Fix static analysis issue found by cppcheck.
10294 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10295 uninitialized BUF for size 2.
10297 2012-02-27 Chris Dearman <chris@mips.com>
10298 Nathan Froyd <froydnj@codesourcery.com>
10299 Maciej W. Rozycki <macro@codesourcery.com>
10301 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10302 (mips16_instruction_has_delay_slot): Likewise.
10303 (mips_segment_boundary): Likewise.
10304 (mips_adjust_breakpoint_address): Likewise.
10305 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10307 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10308 Maciej W. Rozycki <macro@codesourcery.com>
10310 * infrun.c (handle_inferior_event): Don't proceed through
10311 shared library trampolines if stepping at the machine
10314 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10316 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10319 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10321 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10322 (sh_stub_unwind_sniffer): New functions.
10323 (sh_stub_unwind): New variable.
10324 (sh_gdbarch_init): Wire everything.
10326 2012-02-27 Pedro Alves <palves@redhat.com>
10328 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10329 (linux_nat_post_attach_wait): Adjust to use
10330 linux_proc_pid_is_stopped.
10331 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10332 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10333 based on pid_is_stopped from both linux-nat.c and
10334 gdbserver/linux-low.c, and renamed.
10336 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10338 * remote.c (remote_watchpoint_addr_within_range): New function.
10339 (init_remote_ops): Use it.
10341 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10343 * target.h (target_watchpoint_addr_within_range): Document macro.
10345 2012-02-24 Pedro Alves <palves@redhat.com>
10347 * stack.c (set_last_displayed_sal): Issue internal_error instead
10348 of warning, and issue it after clearing the last displayed sal.
10350 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10351 Pedro Alves <palves@redhat.com>
10353 * breakpoint.c (until_break_command): Install breakpoints after
10354 all frame manipulations.
10356 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10358 * remote.c (remote_supports_cond_breakpoints): New forward
10360 (remote_add_target_side_condition): New function.
10361 (remote_insert_breakpoint): Add target-side breakpoint
10362 conditional if supported.
10363 (remote_insert_hw_breakpoint): Likewise.
10364 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10367 * target.c (update_current_target): Inherit
10368 to_supports_evaluation_of_breakpoint_conditions.
10369 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10371 * target.h (struct target_ops)
10372 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10373 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10375 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10376 (condition_evaluation_both, condition_evaluation_auto,
10377 condition_evaluation_host, condition_evaluation_target,
10378 condition_evaluation_enums, condition_evaluation_mode_1,
10379 condition_evaluation_mode): New static globals.
10380 (translate_condition_evaluation_mode): New function.
10381 (breakpoint_condition_evaluation_mode): New function.
10382 (gdb_evaluates_breakpoint_condition_p): New function.
10383 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10384 (mark_breakpoint_modified): New function.
10385 (mark_breakpoint_location_modified): New function.
10386 (set_condition_evaluation_mode): New function.
10387 (show_condition_evaluation_mode): New function.
10388 (bp_location_compare_addrs): New function.
10389 (get_first_location_gte_addr): New helper function.
10390 (set_breakpoint_condition): Free condition bytecode if locations
10391 has become unconditional. Call mark_breakpoint_modified (...).
10392 (condition_command): Call update_global_location_list (1) for
10394 (breakpoint_xfer_memory): Use is_breakpoint (...).
10395 (is_breakpoint): New function.
10396 (parse_cond_to_aexpr): New function.
10397 (build_target_condition_list): New function.
10398 (insert_bp_location): Handle target-side conditional
10399 breakpoints and call build_target_condition_list (...).
10400 (update_inserted_breakpoint_locations): New function.
10401 (insert_breakpoint_locations): Handle target-side conditional
10403 (bpstat_check_breakpoint_conditions): Add comment.
10404 (bp_condition_evaluator): New function.
10405 (bp_location_condition_evaluator): New function.
10406 (print_breakpoint_location): Print information on where the condition
10408 (print_one_breakpoint_location): Likewise.
10409 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10410 breakpoint location.
10411 (force_breakpoint_reinsertion): New functions.
10412 (update_global_location_list): Handle target-side breakpoint
10414 Reinsert locations that are already inserted if conditions have
10416 (bp_location_dtor): Free agent expression bytecode.
10417 (disable_breakpoint): Call mark_breakpoint_modified (...).
10418 Call update_global_location_list (...) with parameter 1 for breakpoints.
10419 (disable_command): Call mark_breakpoint_location_modified (...).
10420 Call update_global_location_list (...) with parameter 1 for breakpoints.
10421 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10422 (enable_command): mark_breakpoint_location_modified (...).
10423 (_initialize_breakpoint): Update documentation and add
10424 condition-evaluation breakpoint subcommand.
10426 * breakpoint.h: Include ax.h.
10427 (condition_list): New data structure.
10428 (condition_status): New enum.
10429 (bp_target_info) <cond_list>: New field.
10430 (bp_location) <condition_changed, cond_bytecode>: New fields.
10431 (is_breakpoint): New prototype.
10433 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10435 * remote.c (remote_state) <cond_breakpoints>: New field.
10436 (PACKET_ConditionalBreakpoints): New enum.
10437 (remote_cond_breakpoint_feature): New function.
10438 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10439 (remote_supports_cond_breakpoints): New function.
10440 (_initialize_remote): Add new packet configuration for
10441 target-side conditional breakpoints.
10443 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10445 * NEWS: Mention target-side conditional breakpoint support,
10446 new condition-evaluation breakpoint subcommand and remote
10449 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10451 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10454 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10456 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10457 (after_prologue): Remove.
10459 2012-02-23 Tom Tromey <tromey@redhat.com>
10461 * jv-valprint.c (java_val_print): Remove dead code.
10463 2012-02-23 Tristan Gingold <gingold@adacore.com>
10465 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10466 known_tasks_element and known_tasks_length fields.
10467 (read_known_tasks_array): Change argument type. Use pointer type
10468 and number of elements from DATA. Adjust.
10469 (read_known_tasks_list): Likewise.
10470 (get_known_tasks_addr): Remove.
10471 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10472 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10473 type and array length. Merge former get_known_tasks_addr code.
10475 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10478 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10479 it after set_momentary_breakpoint.
10481 2012-02-22 Sterling Augustine <saugustine@google.com>
10484 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10486 2012-02-22 Gary Benson <gbenson@redhat.com>
10488 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10489 (find_slot_in_mapped_hash): Likewise.
10491 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10494 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10495 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10496 * configure: Regenerate.
10498 2012-02-21 Tristan Gingold <gingold@adacore.com>
10499 Pedro Alves <palves@redhat.com>
10501 * ia64-tdep.c: Do not include libunwind-ia64.h.
10502 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10503 Include libunwind-ia64.h instead of libunwind.h.
10504 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10505 for libunwind.h existence.
10506 * configure, config.in: Regenerate.
10508 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10510 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10511 instead of value_rtti_target_type.
10512 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10513 instead of value_rtti_target_type.
10514 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10515 value_rtti_target_type.
10516 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10517 (value_rtti_target_type): Rename to ...
10518 (value_rtti_indirect_type): ... here and make it indirect. Update
10520 * value.c (readjust_indirect_value_type): New function.
10521 (coerce_ref): Support for enclosing type setting for references
10522 with readjust_indirect_value_type.
10523 * value.h (readjust_value_type): New declaration.
10524 (value_rtti_target_type): Rename to ...
10525 (value_rtti_indirect_type): ... here.
10527 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10529 * MAINTAINERS (Write After Approval): Add myself to the list.
10531 2012-02-20 Doug Evans <dje@google.com>
10533 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10534 Rename objfile_p_char parameter to objfilep.
10535 (build_objfile_section_table): Result is now void. All callers
10537 * objfiles.h (struct objfile): Tweak comments, whitespace.
10538 (build_objfile_section_table): Update.
10540 * elfread.c (elf_symfile_segments): Fix warning text.
10542 2012-02-20 Tom Tromey <tromey@redhat.com>
10545 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10546 particular set of file names once.
10547 (dw2_map_symbol_filenames): Likewise.
10549 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10552 * main.c (write_files): Remove the declaration.
10553 (external_editor_command): Move the declaration ...
10554 [GDBTK] (external_editor_command): ... here. Fix the comment.
10556 2012-02-20 Tom Tromey <tromey@redhat.com>
10558 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10561 2012-02-20 Tristan Gingold <gingold@adacore.com>
10563 * darwin-nat.h (enum darwin_msg_state): Add comments.
10565 2012-02-20 Tristan Gingold <gingold@adacore.com>
10567 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10570 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10572 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10573 between function description and implementation.
10575 2012-02-17 Tom Tromey <tromey@redhat.com>
10578 * python/py-event.c (event_object_getset): New global.
10579 (event_object_type): Reference it.
10580 * python/py-type.c (field_object_getset): New global.
10581 (field_object_type): Reference it.
10582 * python/python-internal.h (gdb_py_generic_dict): Declare.
10583 * python/py-utils.c (gdb_py_generic_dict): New function.
10585 2012-02-17 Tristan Gingold <gingold@adacore.com>
10587 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10589 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10591 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10592 TYPE_CALLING_CONVENTION annotation.
10594 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10596 * MAINTAINERS: Add rx to target ISA section.
10597 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10598 (ALLDEPFILES): Add rx-tdep.c.
10600 2012-02-16 Tom Tromey <tromey@redhat.com>
10602 * symfile.c (symbol_file_add_main_1): Use inferior's
10604 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10605 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10607 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10609 (follow_exec): Use inferior's symfile_flags.
10610 * inferior.h (struct inferior) <symfile_flags>: New field.
10612 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10615 * remote-sim.c (gdbsim_create_inferior): Call error() when
10616 sim_create_inferior() fails.
10618 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10620 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10622 2012-02-16 Tom Tromey <tromey@redhat.com>
10625 * thread.c (struct current_thread_cleanup) <was_removable>: New
10627 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10628 (make_cleanup_restore_current_thread): Initialize new field.
10630 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10632 * MAINTAINERS: Add rl78 to target ISA section.
10633 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10634 (ALLDEPFILES): Add rl78-tdep.c.
10635 * NEWS: Mention rl78 as a new target.
10637 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10639 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10641 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10643 2012-02-15 Tom Tromey <tromey@redhat.com>
10646 * infcmd.c (registers_info): Print just the current register's
10649 2012-02-15 Tom Tromey <tromey@redhat.com>
10651 * python/py-symbol.c (sympy_value): Use _().
10653 2012-02-15 Pedro Alves <palves@redhat.com>
10655 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10656 output to be like native targets'.
10657 (remote_pid_to_str): Special case the null ptid.
10659 2012-02-14 Stan Shebs <stan@codesourcery.com>
10661 * NEWS: Mention enable count command.
10662 * breakpoint.h (struct breakpoint): New field enable_count.
10663 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10664 (enable_breakpoint): Add arg to call.
10665 (struct disp_data): New struct.
10666 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10667 (do_map_enable_once_breakpoint): Create a struct and pass it.
10668 (do_map_enable_delete_breakpoint): Ditto.
10669 (do_map_enable_count_breakpoint): New function.
10670 (enable_count_command): New function.
10671 (bpstat_stop_status): Decrement enable_count.
10672 (print_one_breakpoint_location): Report enable count.
10673 (_initialize_breakpoint): Add enable count command.
10675 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10677 * rl78-tdep.c (reggroups.h): Include.
10678 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10679 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10680 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10681 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10682 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10683 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10684 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10685 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10686 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10687 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10688 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10689 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10690 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10691 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10692 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10693 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10694 beginning of register list.
10695 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10696 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10697 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10698 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10699 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10700 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10701 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10702 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10703 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10704 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10705 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10706 the pseudo registers. Rearrange other pseudo registers too so
10707 that the bank registers appear at the end.
10708 (rl78_register_type): Account for the fact that the byte sized
10709 bank registers are now pseudo-registers.
10710 (rl78_register_name): Rearrange the register name array. Make
10711 initial set of raw banked registers inaccessible.
10712 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10713 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10714 case for copying bytes back and forth between raw and pseudo
10715 versions of the banked registers. Update other cases to reflect
10717 (rl78_return_value): Update to account for changed names of
10719 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10720 rl78_register_sim_regno().
10722 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10724 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10725 the name parameter being passed to find_pc_partial_function().
10727 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10729 * MAINTAINERS: Step down from being ia64 target maintainer.
10731 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10733 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10734 compilation warning.
10736 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10738 Fix crash on loaded shlibs without loaded exec_bfd.
10739 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10740 (set_section_command): Replace exec_bfd by p->bfd.
10742 2012-02-10 Tom Tromey <tromey@redhat.com>
10744 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10745 when we have a C++ qualified name.
10747 2012-02-10 Pedro Alves <palves@redhat.com>
10749 * inferior.c (inferior_pid_to_str): New.
10750 (print_inferior, inferior_command): Use it.
10752 2012-02-10 Pedro Alves <palves@redhat.com>
10754 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10756 * configure: Regenerate.
10758 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10760 * linespec.c (decode_line_internal): Fix comment correctness.
10762 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10765 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10766 * amd64bsd-nat.c: Add support for debug registers (adapted from
10768 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10769 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10770 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10771 (amd64bsd_dr_get_control): New functions.
10772 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10773 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10774 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10775 watchpoints initialization.
10776 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10778 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10780 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10782 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10784 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10786 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10788 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10790 * language.h (symbol_name_cmp_ftype): Renames
10791 symbol_name_match_p_ftype.
10792 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10793 la_get_symbol_name_match_p.
10794 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10795 ada_get_symbol_name_match_p. Update comment.
10796 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10797 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10798 Renames symbol_name_match_p. Update field type.
10799 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10800 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10801 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10802 "la_get_symbol_name_cmp" in comments.
10803 * language.c: Likewise.
10805 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10807 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10809 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10810 (amd64_sol2_gregset32_reg_offs): Likewise.
10812 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10814 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10815 of the returned BFD is allocated by GDB.
10817 2012-02-07 Tom Tromey <tromey@redhat.com>
10820 * python/python-internal.h (frame_object_type): Declare.
10821 * python/py-symbol.c (sympy_needs_frame): New function.
10822 (sympy_value): New function.
10823 (symbol_object_getset): Add "needs_frame".
10824 (symbol_object_methods): Add "value".
10825 * python/py-frame.c (frame_object_type): No longer static.
10827 2012-02-07 Tom Tromey <tromey@redhat.com>
10830 * python/py-symbol.c (sympy_line): New function.
10831 (symbol_object_getset): Add "line".
10833 2012-02-07 Tom Tromey <tromey@redhat.com>
10835 * charset.c (find_charset_names): Check 'in' against NULL.
10837 2012-02-06 Doug Evans <dje@google.com>
10839 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10840 and fields.name members from char * to const char *. All uses updated.
10841 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10842 from char * to const char *. All uses updated.
10843 (type_name_no_tag): Update.
10844 (lookup_unsigned_typename, lookup_signed_typename): Update.
10845 * gdbtypes.c (type_name_no_tag): Change result type
10846 from char * to const char *. All callers updated.
10847 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10848 name parameter from char * to const char *.
10849 * symtab.h (struct cplus_specific): Change type of demangled_name
10850 member from char * to const char *. All uses updated.
10851 (struct general_symbol_info): Change type of name and
10852 mangled_lang.demangled_name members from char * to const char *.
10854 (symbol_get_demangled_name, symbol_natural_name): Update.
10855 (symbol_demangled_name, symbol_search_name): Update.
10856 * symtab.c (symbol_get_demangled_name): Change result type
10857 from char * to const char *. All callers updated.
10858 (symbol_natural_name, symbol_demangled_name): Ditto.
10859 (symbol_search_name): Ditto.
10860 (completion_list_add_name): Change type of symname,sym_text,
10861 text,word parameters from char * to const char *.
10862 (completion_list_objc_symbol): Change type of sym_text,
10863 text,word parameters from char * to const char *.
10864 * ada-lang.c (find_struct_field): Change type of name parameter
10865 from char * to const char *.
10866 (encoded_ordered_before): Similarly for N0,N1 parameters.
10867 (old_renaming_is_invisible): Similarly for function_name parameter.
10868 (ada_type_name): Change result type from char * to const char *.
10869 All callers updated.
10870 * ada-lang.h (ada_type_name): Update.
10871 * buildsym.c (hashname): Change type of name parameter
10872 from char * to const char *.
10873 * buildsym.h (hashname): Update.
10874 * dbxread.c (end_psymtab): Change type of include_list parameter
10875 from char ** to const char **.
10876 * dwarf2read.c (determine_prefix): Change result type
10877 from char * to const char *. All callers updated.
10878 * f-lang.c (find_common_for_function): Change type of name, funcname
10879 parameters from char * to const char *.
10880 * f-lang.c (find_common_for_function): Update.
10881 * f-valprint.c (list_all_visible_commons): Change type of funcname
10882 parameters from char * to const char *.
10883 * gdbarch.sh (static_transform_name): Change type of name parameter
10884 and result from char * to const char *.
10885 * gdbarch.c: Regenerate.
10886 * gdbarch.h: Regenerate.
10887 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10888 of name parameter from char * to const char *.
10889 * jv-lang.c (java_primitive_type_from_name): Ditto.
10890 (java_demangled_signature_length): Similarly for signature parameter.
10891 (java_demangled_signature_copy): Ditto.
10892 (java_demangle_type_signature): Ditto.
10893 * jv-lang.h (java_primitive_type_from_name): Update.
10894 (java_demangle_type_signature): Update.
10895 * objc-lang.c (specialcmp): Change type of a,b parameters
10896 from char * to const char *.
10897 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10898 from char * to const char *. All callers updated.
10899 * p-lang.h (is_pascal_string_type): Update.
10900 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10901 of name parameter from char * to const char *.
10902 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10903 * utils.c (fprintf_symbol_filtered): Ditto.
10904 * defs.h (fprintf_symbol_filtered): Update.
10905 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10906 * stabsread.h (end_psymtab): Update.
10907 * stack.c (find_frame_funname): Change type of funname parameter
10908 from char ** to const char **.
10909 * stack.h (find_frame_funname): Update.
10910 * typeprint.c (type_print): Change type of varstring parameter
10911 from char * to const char *.
10912 * value.h (type_print): Update.
10913 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10914 from char * to const char *. All callers updated.
10915 (xcoff_end_psymtab): Change type of include_list parameter
10916 from char ** to const char **. All callers updated.
10917 (swap_sym): Similarly for name parameter. All callers updated.
10918 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10920 (process_coff_symbol): Use xstrdup.
10921 * stabsread.c (stabs_method_name_from_physname): Renamed from
10922 update_method_name_from_physname. Change result type from void
10923 to char *. All callers updated.
10924 (read_member_functions): In has_destructor case, store name in objfile
10925 obstack instead of malloc space. In !has_stub case, fix mem leak.
10927 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10929 * configure: Rebuild.
10930 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10933 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10935 * configure.tgt (rl78-*-elf): New target.
10936 * rl78-tdep.c: New file.
10938 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10940 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10941 and continue the loop. Add QUIT statement.
10943 2012-02-03 Tom Tromey <tromey@redhat.com>
10946 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10947 bfd_lookup_symbol_from_symtab.
10948 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10949 gdb_bfd_lookup_symbol_from_symtab.
10951 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10953 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10954 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10955 symbol. Add assertion that sym2 is never NULL.
10957 2012-02-02 Doug Evans <dje@google.com>
10959 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10960 "name" parameter to const char ** from char **. All callers updated.
10961 (find_pc_partial_function): Ditto.
10962 (cache_pc_function_name): Change type to const char * from char *.
10963 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10964 (find_pc_partial_function): Update.
10965 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10966 type of "name" parameter to const char * from char *.
10968 * arch-utils.c (generic_in_solib_return_trampoline): Change
10969 type of "name" parameter to const char * from char *.
10970 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10971 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10972 type of "name" parameter to const char * from char *.
10973 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10974 * gdbarch.c: Regenerate.
10975 * gdbarch.h: Regenerate.
10976 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10977 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10978 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10979 type of "name" parameter to const char * from char *.
10980 * skip.c (skip_function_pc): Ditto.
10981 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10982 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10983 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10984 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10985 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10986 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10987 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10988 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10989 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10991 2012-02-02 Pedro Alves <palves@redhat.com>
10993 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10994 the current inferior has no execution. Make sure the current
10995 remote process matches gdb's current inferior.
10997 2012-02-02 Tom Tromey <tromey@redhat.com>
11000 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11003 2012-02-02 Tom Tromey <tromey@redhat.com>
11006 * symtab.c (lookup_language_this): Set block_found.
11008 2012-02-01 Tom Tromey <tromey@redhat.com>
11011 * jit.c (struct jit_inferior_data): Rewrite.
11012 (struct jit_objfile_data): New.
11013 (get_jit_objfile_data): New function.
11014 (add_objfile_entry): Update.
11015 (jit_read_descriptor): Return int. Replace descriptor_addr
11016 argument with inf_data. Update. Don't call error.
11017 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11019 (jit_inferior_init): Don't look up descriptor. Don't call error.
11020 (jit_reset_inferior_data_and_breakpoints)
11021 (jit_inferior_created_observer): Remove.
11022 (jit_inferior_exit_hook): Update.
11023 (jit_executable_changed_observer): Remove.
11024 (jit_event_handler): Update.
11025 (free_objfile_data): Reset inferior data if needed.
11026 (_initialize_jit): Update.
11028 2012-02-01 Tom Tromey <tromey@redhat.com>
11030 * jit.c (bfd_open_from_target_memory): Move higher in file.
11032 2012-02-01 Tristan Gingold <gingold@adacore.com>
11034 * libunwind-frame.c (libunwind_load): Display message if dlopen
11037 2012-02-01 Gary Benson <gbenson@redhat.com>
11039 * symtab.h (symbol_found_callback_ftype): New typedef.
11040 (iterate_over_symbols): Use the above.
11041 * symtab.c (iterate_over_symbols): Likewise.
11042 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11043 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11044 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11045 (iterate_name_matcher): Document return values.
11046 (collect_one_symbol): Likewise.
11047 (collect_function_symbols): Likewise.
11048 (collect_symbols): Likewise.
11050 2012-02-01 Tom Tromey <tromey@redhat.com>
11052 * ada-lang.c (resolve_subexp): Update.
11053 (ada_lookup_symbol_list): Add 'full_search' argument.
11054 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11055 ada_lookup_symbol_list.
11056 (ada_lookup_encoded_symbol): Update.
11057 (get_var_value): Update.
11058 * ada-exp.y (block_lookup): Update.
11059 (write_var_or_type): Update.
11060 (write_name_assoc): Update.
11061 * ada-lang.h (ada_lookup_symbol_list): Update.
11063 2012-01-31 Tom Tromey <tromey@redhat.com>
11065 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11068 2012-01-31 Doug Evans <dje@google.com>
11070 * symtab.h: Remove outdated comment.
11071 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11073 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11075 Fix build error in Darwin port.
11076 * i386-darwin-nat.c: Include i386-nat.h.
11078 2012-01-30 Tom Tromey <tromey@redhat.com>
11080 PR breakpoints/13568:
11081 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11082 argument. Check for recursive includes.
11083 (dwarf_decode_macros): Create an include hash.
11085 2012-01-30 Michael Eager <eager@eagercon.com>
11087 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11088 * ppc-linux-tdep.c: Include glibc-tdep.h.
11089 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11090 (powerpc_linux_in_plt_stub): New function.
11091 (powerpc_linux_in_dynsym_resolve_code): New function.
11092 (ppc_skip_trampoline_code): New function.
11093 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11094 Use glibc_skip_solib_resolver.
11096 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11098 Code cleanup: Make 1440 bytes of data segment read-only.
11099 * arch-utils.c (endian_enum): Make it const char *const [].
11100 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11102 * breakpoint.c (always_inserted_enums): Likewise.
11103 * cli/cli-cmds.c (script_ext_enums): Likewise.
11104 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11105 enumlist parameter const char *const *.
11106 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11107 const char *const *.
11108 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11109 parameter const char *const *.
11110 * cris-tdep.c (cris_modes): Make it const char *const [].
11111 * filesystem.c (target_file_system_kinds): Likewise.
11112 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11113 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11114 (can_use_displaced_stepping_enum, scheduler_enums)
11115 (exec_direction_names): Likewise.
11116 * language.c (_initialize_language): Make the type_or_range_names and
11117 case_sensitive_names variables const char *const [].
11118 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11119 * python/python.c (python_excp_enums): Likewise.
11120 * remote.c (interrupt_sequence_modes): Likewise.
11121 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11122 * serial.c (logbase_enums): Likewise.
11123 * sh-tdep.c (sh_cc_enum): Likewise.
11124 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11126 * symtab.c (multiple_symbols_modes): Likewise.
11127 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11129 * utils.c (internal_problem_modes): Likewise.
11131 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11133 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11134 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11137 2012-01-27 Doug Evans <dje@google.com>
11139 * configure.ac (with_python): Fix absolute path handling for win32.
11140 * configure: Regenerate.
11142 2012-01-26 Doug Evans <dje@google.com>
11144 * symtab.c: Whitespace cleanup, no code changes.
11146 * symtab.c (lookup_symbol_in_language): Improve comment.
11147 (lookup_symbol_aux): Fix comment.
11149 * psymtab.c (add_psymbol_to_list): Result is now "void".
11150 * psympriv.h (add_psymbol_to_list): Update.
11152 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11154 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11156 Do not open script filenames twice.
11157 * cli/cli-cmds.c (source_script_from_stream): Pass to
11158 source_python_script also STREAM.
11159 * python/py-auto-load.c (source_section_scripts): Pass to
11160 source_python_script_for_objfile also STREAM.
11161 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11163 * python/python-internal.h (source_python_script_for_objfile): New
11164 parameter file, rename parameter file to filename.
11165 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11166 instead if !_WIN32. Update the function comment.
11167 (source_python_script, source_python_script_for_objfile)
11168 (source_python_script): New parameter file, rename parameter file to
11169 filename. Pass FILENAME to python_run_simple_file.
11170 * python/python.h (source_python_script): New parameter file, rename
11171 parameter file to filename.
11173 2012-01-26 Pedro Alves <palves@redhat.com>
11175 * corelow.c (core_has_fake_pid): Delete.
11176 (core_close): Delete references to `core_has_fake_pid'.
11177 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11178 (core_open): Delete references to `core_has_fake_pid'.
11179 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11180 the removed global.
11182 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11184 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11185 Remove language parameter from name_matcher. Adjust the comment.
11186 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11187 Remove language parameter.
11188 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11189 * linespec.c (iterate_name_matcher): Likewise.
11190 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11191 name_matcher. Adjust call accordingly.
11192 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11193 (maintenance_check_symtabs): Adjust type of parameter "fun".
11194 * psymtab.h (maintenance_check_symtabs): Likewise.
11196 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11198 * language.h (symbol_name_match_p_ftype): New typedef.
11199 (struct language_defn): Replace field la_symbol_name_compare
11200 by la_get_symbol_name_match_p.
11201 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11202 (ada_language_defn): Use it.
11203 * linespec.c (struct symbol_matcher_data): New type.
11204 (iterate_name_matcher): Rewrite.
11205 (iterate_over_all_matching_symtabs): Pass a pointer to
11206 a symbol_matcher_data struct to expand_symtabs_matching
11207 instead of just the lookup name.
11208 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11209 opencl-lang.c, p-lang.c, language.c: Delete field
11210 la_symbol_name_compare, and replace by NULL for new field
11211 la_get_symbol_name_match_p.
11212 * symfile.h (struct quick_symbol_functions): Update comment.
11214 2012-01-25 Tom Tromey <tromey@redhat.com>
11216 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11219 2012-01-24 Tom Tromey <tromey@redhat.com>
11222 * solib.c (update_solib_list): Update the program space's
11223 added_solibs and deleted_solibs fields.
11224 * progspace.h (struct program_space) <added_solibs,
11225 deleted_solibs>: New fields.
11226 (clear_program_space_solib_cache): Declare.
11227 * progspace.c (release_program_space): Call
11228 clear_program_space_solib_cache.
11229 (clear_program_space_solib_cache): New function.
11230 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11231 bpstat_stop_status. Use handle_solib_event.
11232 * breakpoint.c: Include gdb_regex.h.
11233 (print_solib_event): New function.
11234 (bpstat_print): Use print_solib_event.
11235 (bpstat_stop_status): Add special case for bp_shlib_event.
11236 (handle_solib_event): New function.
11237 (bpstat_what): Use handle_solib_event.
11238 (struct solib_catchpoint): New.
11239 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11240 (breakpoint_hit_catch_solib, check_status_catch_solib)
11241 (print_it_catch_solib, print_one_catch_solib)
11242 (print_mention_catch_solib, print_recreate_catch_solib): New
11244 (catch_solib_breakpoint_ops): New global.
11245 (catch_load_or_unload, catch_load_command_1)
11246 (catch_unload_command_1): New functions.
11247 (internal_bkpt_check_status): Add special case for
11249 (internal_bkpt_print_it): Use print_solib_event.
11250 (initialize_breakpoint_ops): Initialize
11251 catch_solib_breakpoint_ops.
11252 (_initialize_breakpoint): Register "catch load" and "catch
11254 * breakpoint.h (handle_solib_event): Declare.
11255 * NEWS: Add entry for "catch load" and "catch unload".
11257 2012-01-24 Tom Tromey <tromey@redhat.com>
11259 * ada-lang.c: Include gdb_vecs.h.
11260 * charset.c: Include gdb_vecs.h.
11261 * tracepoint.h: Include gdb_vecs.h.
11262 * gdb_vecs.h: New file.
11264 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11266 * breakpoint.c (breakpoint_hit_catch_fork)
11267 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11268 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11269 * infrun.c (inferior_has_forked, inferior_has_vforked)
11270 (inferior_has_execd, inferior_has_called_syscall): Delete.
11271 (handle_syscall_event): Get syscall_number from the execution
11272 control state's wait status.
11273 (wait_for_inferior): Don't clear syscall_number.
11275 2012-01-24 Pedro Alves <palves@redhat.com>
11277 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11278 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11279 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11280 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11282 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11283 false for events other than TARGET_SIGNAL_TRAP.
11284 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11285 Add `ws' parameter.
11286 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11287 events other than TARGET_SIGNAL_TRAP.
11288 (tracepoint_breakpoint_hit): Add `ws' parameter.
11289 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11291 (bpstat_stop_status): Same.
11292 (pc_at_non_inline_function): Same.
11293 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11294 to pass the current event's waitstatus to bpstat_stop_status
11295 and pc_at_non_inline_function.
11297 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11300 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11301 Update the function comment for it.
11302 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11303 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11306 2012-01-24 Pedro Alves <palves@redhat.com>
11308 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11309 outside `bs->stop' block.
11310 (bpstat_what): Rework bp_shlib_event handling.
11311 (internal_bkpt_check_status): If the breakpoint is a
11312 bp_shlib_event, then set bs->stop and bs->print if
11313 stop_on_solib_events is set.
11315 2012-01-24 Gary Benson <gbenson@redhat.com>
11317 Delete #if 0'd out code.
11318 * stack.c (print_frame_label_vars): Remove.
11319 (catch_info): Likewise.
11320 (_initialize_stack): Remove "info catch" command.
11321 * NEWS: Mention the above.
11323 2012-01-24 Pedro Alves <palves@redhat.com>
11325 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11327 (remote_notice_new_inferior): If the remote end doesn't support
11328 the multiprocess extensions, then the PID is fake.
11329 (add_current_inferior_and_thread): New.
11330 (remote_start_remote): Use it.
11331 (extended_remote_attach_1): Adjust.
11332 (extended_remote_create_inferior_1): Use
11333 add_current_inferior_and_thread.
11335 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11337 Fix watchpoints to be specific for each inferior.
11338 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11339 current_program_space.
11340 * i386-nat.c (i386_inferior_data_cleanup): New.
11341 (i386_inferior_data_get): Replace variable inf_data_local by an
11342 inferior_data call.
11343 (i386_use_watchpoints): Initialize i386_inferior_data.
11344 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11345 specific iterate_over_lwps.
11347 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11349 Fix watchpoints across inferior fork.
11350 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11351 comment for linux_nat_iterate_watchpoint_lwps.
11352 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11353 linux_nat_iterate_watchpoint_lwps.
11354 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11355 * i386-linux-nat.c (update_debug_registers_callback): Update the
11356 comment for linux_nat_iterate_watchpoint_lwps.
11357 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11358 linux_nat_iterate_watchpoint_lwps.
11359 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11360 * i386-nat.c: Include inferior.h.
11361 (dr_mirror): Remove.
11362 (i386_inferior_data, struct i386_inferior_data)
11363 (i386_inferior_data_get): New.
11364 (i386_debug_reg_state): Use i386_inferior_data_get.
11365 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11366 (i386_insert_watchpoint, i386_remove_watchpoint)
11367 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11368 (i386_remove_hw_breakpoint): New variable state, use
11369 i386_debug_reg_state instead of DR_MIRROR.
11370 * linux-nat.c (delete_lwp): New declaration.
11371 (num_lwps): Move here from downwards.
11372 (delete_lwp_cleanup): New.
11373 (linux_child_follow_fork): Create new child_lp, call
11374 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11376 (num_lwps): Move upwards.
11377 (linux_nat_iterate_watchpoint_lwps): New.
11378 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11379 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11381 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11385 2012-01-23 Pedro Alves <palves@redhat.com>
11387 * top.c (caution): Rename to ...
11388 (confirm): ... this.
11389 (show_caution): Rename to ...
11390 (show_confirm): ... this.
11391 (quit_cover): Adjust.
11392 (init_main): Adjust.
11393 * top.h (caution): Rename to ...
11394 (confirm): ... this.
11395 * utils.c (internal_vproblem, defaulted_query): Adjust.
11397 2012-01-23 Pedro Alves <palves@redhat.com>
11399 * top.c (caution): Update comment.
11400 (execute_command): Don't consider the current value of `caution'.
11402 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11404 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11406 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11408 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11409 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11410 * target.c (target_fileio_pwrite): Remove buffer address from
11412 (target_fileio_pread): Likewise.
11414 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11416 * NEWS: Document remote "info proc" and "generate-core-file".
11418 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11420 * gdbarch.sh (find_memory_regions): New callback.
11421 * gdbarch.c, gdbarch.h: Regenerate.
11423 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11424 callback before falling back to target method.
11426 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11427 (linux_target_install_ops): No longer install it.
11429 * linux-tdep.c (linux_find_memory_regions): New function.
11430 (linux_init_abi): Install it.
11432 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11434 * gdbarch.sh (make_corefile_notes): New architecture callback.
11435 * gdbarch.c: Regenerate.
11436 * gdbarch.h: Likewise.
11438 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11439 before target_make_corefile_notes. If NULL is returned, the
11440 target does not support core file generation.
11442 * linux-nat.c: Include "linux-tdep.h".
11443 (find_signalled_thread, find_stop_signal): Remove.
11444 (linux_nat_do_thread_registers): Likewise.
11445 (struct linux_nat_corefile_thread_data): Likewise.
11446 (linux_nat_corefile_thread_callback): Likewise.
11447 (iterate_over_spus): Likewise.
11448 (struct linux_spu_corefile_data): Likewise.
11449 (linux_spu_corefile_callback): Likewise.
11450 (linux_spu_make_corefile_notes): Likewise.
11451 (linux_nat_collect_thread_registers): New function.
11452 (linux_nat_make_corefile_notes): Replace contents by call to
11453 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11454 as native-only callback.
11456 * linux-tdep.h: Include "bfd.h".
11457 (struct regcache): Add forward declaration.
11458 (linux_collect_thread_registers_ftype): New typedef.
11459 (linux_make_corefile_notes): Add prototype.
11460 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11461 "regset.h", and "elf-bfd.h".
11462 (find_signalled_thread, find_stop_signal): New functions.
11463 (linux_spu_make_corefile_notes): Likewise.
11464 (linux_collect_thread_registers): Likewise.
11465 (struct linux_corefile_thread_data): New data structure.
11466 (linux_corefile_thread_callback): New funcion.
11467 (linux_make_corefile_notes): Likewise.
11468 (linux_make_corefile_notes_1): Likewise.
11469 (linux_init_abi): Install it.
11471 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11473 * gdbarch.sh (info_proc): New callback.
11474 * gdbarch.c, gdbarch.h: Regenerate.
11476 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11477 before falling back to the target info_proc callback.
11479 * linux-nat.c: Do not include "cli/cli-utils.h".
11480 (linux_nat_info_proc): Remove.
11481 (linux_target_install_ops): No longer install it.
11483 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11484 (read_mapping): New function.
11485 (linux_info_proc): Likewise.
11486 (linux_init_abi): Install it.
11488 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11490 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11491 * infcmd.c: (info_proc_cmd_1): New function.
11492 (info_proc_cmd): New function, moved here from equivalent routine
11493 orignally in linux-nat.c.
11494 (info_proc_cmd_mappings): Likewise.
11495 (info_proc_cmd_stat): Likewise.
11496 (info_proc_cmd_status): Likewise.
11497 (info_proc_cmd_cwd): Likewise.
11498 (info_proc_cmd_cmdline): Likewise.
11499 (info_proc_cmd_exe): Likewise.
11500 (info_proc_cmd_all): Likewise.
11501 (_initialize_infcmd): Install "info proc" command and subcommands.
11503 * target.h (struct target_ops): Add to_info_proc.
11504 (target_info_proc): Add prototype.
11505 * target.c (target_info_proc): New function.
11507 * procfs.c (procfs_info_proc): Add prototype.
11508 (info_proc_cmd): Rename into ...
11509 (procfs_info_proc): ... this. Update argument types as appropriate
11510 for a to_info_proc implementation. Handle "what" argument.
11511 (procfs_target): Install procfs_info_proc.
11512 (_initialize_procfs): No longer install "info proc" command.
11514 * linux-nat.c: (enum info_proc_what): Remove.
11515 (linux_nat_info_proc_cmd_1): Rename into ...
11516 (linux_nat_info_proc): ... this. Update argument types as appropriate
11517 for a to_info_proc implementation.
11518 (linux_nat_info_proc_cmd): Remove.
11519 (linux_nat_info_proc_cmd_mappings): Likewise.
11520 (linux_nat_info_proc_cmd_stat): Likewise.
11521 (linux_nat_info_proc_cmd_status): Likewise.
11522 (linux_nat_info_proc_cmd_cwd): Likewise.
11523 (linux_nat_info_proc_cmd_cmdline): Likewise.
11524 (linux_nat_info_proc_cmd_exe): Likewise.
11525 (linux_nat_info_proc_cmd_all): Likewise.
11526 (linux_target_install_ops): Install linux_nat_info_proc.
11527 (_initialize_linux_nat): No longer install "info proc" command
11530 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11532 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11533 * config.in, configure: Regenerate.
11535 * target.h (struct target_ops): Add to_fileio_readlink.
11536 (target_fileio_readlink): Add prototype.
11537 * target.c (target_fileio_readlink): New function.
11539 * inf-child.c: Conditionally include <sys/param.h>.
11540 (inf_child_fileio_readlink): New function.
11541 (inf_child_target): Install it.
11543 * remote.c (PACKET_vFile_readlink): New enum value.
11544 (remote_hostio_readlink): New function.
11545 (init_remote_ops): Install it.
11546 (_initialize_remote): Handle vFile:readlink packet type.
11548 2012-01-20 Pedro Alves <palves@redhat.com>
11549 Ulrich Weigand <ulrich.weigand@linaro.org>
11551 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11552 * config.in, configure: Regenerate.
11554 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11555 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11556 (target_fileio_open): Add prototype.
11557 (target_fileio_pwrite): Likewise.
11558 (target_fileio_pread): Likewise.
11559 (target_fileio_close): Likewise.
11560 (target_fileio_unlink): Likewise.
11561 (target_fileio_read_alloc): Likewise.
11562 (target_fileio_read_stralloc): Likewise.
11564 * target.c: Include "gdb/fileio.h".
11565 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11566 (default_fileio_target): New function.
11567 (target_fileio_open): Likewise.
11568 (target_fileio_pwrite): Likewise.
11569 (target_fileio_pread): Likewise.
11570 (target_fileio_close): Likewise.
11571 (target_fileio_unlink): Likewise.
11572 (target_fileio_close_cleanup): Likewise.
11573 (target_fileio_read_alloc_1): Likewise.
11574 (target_fileio_read_alloc): Likewise.
11575 (target_fileio_read_stralloc): Likewise.
11577 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11578 <fcntl.h>, and <unistd.h>.
11579 (inf_child_fileio_open_flags_to_host): New function.
11580 (inf_child_errno_to_fileio_error): Likewise.
11581 (inf_child_fileio_open): Likewise.
11582 (inf_child_fileio_pwrite): Likewise.
11583 (inf_child_fileio_pread): Likewise.
11584 (inf_child_fileio_close): Likewise.
11585 (inf_child_fileio_unlink): Likewise.
11586 (inf_child_target): Install to_fileio routines.
11588 * remote.c (init_remote_ops): Install to_fileio routines.
11590 2012-01-20 Pedro Alves <palves@redhat.com>
11591 Ulrich Weigand <ulrich.weigand@linaro.org>
11593 * remote.c (remote_multi_process_p): Only check for multi-process
11594 protocol feature, do not check for extended protocol.
11595 (remote_supports_multi_process): Check for extended protocol here.
11596 (set_general_process): Likewise.
11597 (extended_remote_kill): Likewise.
11598 (remote_pid_to_str): Likewise.
11599 (remote_query_supported): Always query multiprocess mode.
11601 2012-01-20 Pedro Alves <palves@redhat.com>
11602 Ulrich Weigand <ulrich.weigand@linaro.org>
11604 * inferior.h (struct inferior): Add fake_pid_p.
11605 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11606 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11607 magic_null_ptid since the remote side doesn't provide a real PID.
11609 2012-01-19 Tom Tromey <tromey@redhat.com>
11611 * NEWS: Combine the two Python sections.
11613 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11615 * target.h (target_close): Update comment on the target's unpush state.
11617 2012-01-19 Pedro Alves <palves@redhat.com>
11619 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11620 linux_nat_async directly instead of going through the target
11622 * target.c (unpush_target): Close target after unpushing it, not
11625 2012-01-19 Gary Benson <gbenson@redhat.com>
11627 * mdebugread.c (sort_blocks): Replace integer constants with ones
11628 derived from FIRST_LOCAL_BLOCK.
11630 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11631 Jan Kratochvil <jan.kratochvil@redhat.com>
11634 * symfile.c (find_separate_debug_file): New function.
11635 (terminate_after_last_dir_separator): Likewise.
11636 (find_separate_debug_file_by_debuglink): Also try realpath.
11637 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11638 * configure: Regenerate.
11639 * config.in: Regenerate.
11641 2012-01-18 Doug Evans <dje@google.com>
11643 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11644 (main.o): Remove rule.
11645 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11646 (--with-sysroot): Rewrite.
11647 * configure: Regenerate.
11648 * config.in: Regenerate.
11650 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11652 * parse.c (initialize_expout): New function.
11653 (reallocate_expout): Likewise.
11654 (parse_exp_in_context): Use `initialize_expout' and
11655 `reallocate_expout' when appropriate.
11657 2012-01-18 Pedro Alves <palves@redhat.com>
11659 * record.c (struct record_breakpoint, record_breakpoint_p)
11660 (record_breakpoints): New.
11661 (record_insert_breakpoint, record_remove_breakpoint): Manage
11662 record breakpoints list. Only remove breakpoints from the
11663 inferior if they had been inserted there in the first place.
11665 2012-01-17 Doug Evans <dje@google.com>
11667 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11668 if we know we don't have a file name to look for.
11670 2012-01-17 Pedro Alves <palves@redhat.com>
11672 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11673 the frame's stop reason is UNWIND_UNAVAILABLE.
11675 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11677 Fix compilation error.
11678 * m2-exp.y (yyerror): Use ANSI C prototype.
11680 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11682 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11683 (growbuf_by_size): Likewise.
11684 (yyerror): Likewise.
11685 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11686 (modblock): Remove variable (was #if 0'ed).
11687 (parse_number): Convert prototype from K&R to ANSI C.
11688 (yyerror): Likewise.
11689 * objc-exp.y (parse_number): Likewise.
11690 (yyerror): Likewise.
11691 (yylex): Remove #if 0'ed code.
11692 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11693 (yyerror): Likewise.
11695 2012-01-16 Tom Tromey <tromey@redhat.com>
11698 * symtab.h (compare_filenames_for_search): Declare.
11699 * symtab.c (compare_filenames_for_search): New function.
11700 (iterate_over_some_symtabs): Use it.
11701 * symfile.h (struct quick_symbol_functions)
11702 <map_symtabs_matching_filename>: Change spec.
11703 * psymtab.c (partial_map_symtabs_matching_filename): Use
11704 compare_filenames_for_search. Update for new spec.
11705 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11706 compare_filenames_for_search. Update for new spec.
11707 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11709 2012-01-16 Tom Tromey <tromey@redhat.com>
11712 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11713 (struct main_type) <flag_flag_enum>: New field.
11714 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11715 * NEWS: Add entries.
11716 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11718 * python/lib/gdb/printing.py (_EnumInstance): New class.
11719 (FlagEnumerationPrinter): Likewise.
11721 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11723 * breakpoint.c (create_sals_from_address_default): New function.
11724 (create_breakpoints_sal_default): Likewise.
11725 (decode_linespec_default): Likewise.
11726 (is_marker_spec): Removed.
11727 (strace_marker_p): New function.
11728 (init_breakpoint_sal): Using `strace_marker_p' instead of
11730 (create_breakpoint): Call method `create_sals_from_address' from
11731 breakpoint_ops, replacing code that created SALs conditionally
11732 on the type of the breakpoint. Call method `create_breakpoints_sal',
11733 replacing code that created breakpoints conditionally on the type
11735 (base_breakpoint_create_sals_from_address): New function.
11736 (base_breakpoint_create_breakpoints_sal): Likewise.
11737 (base_breakpoint_decode_linespec): Likewise.
11738 (base_breakpoint_ops): Add methods
11739 `base_breakpoint_create_sals_from_address',
11740 `base_breakpoint_create_breakpoints_sal' and
11741 `base_breakpoint_decode_linespec'.
11742 (bkpt_create_sals_from_address): New function.
11743 (bkpt_create_breakpoints_sal): Likewise.
11744 (bkpt_decode_linespec): Likewise.
11745 (tracepoint_create_sals_from_address): Likewise.
11746 (tracepoint_create_breakpoints_sal): Likewise.
11747 (tracepoint_decode_linespec): Likewise.
11748 (strace_marker_create_sals_from_address): Likewise.
11749 (strace_marker_create_breakpoints_sal): Likewise.
11750 (strace_marker_decode_linespec): Likewise.
11751 (strace_marker_breakpoint_ops): New variable.
11752 (addr_string_to_sals): Remove `marker_spec'. Call method
11753 `decode_linespec' from breakpoint_ops, replacing code that decoded
11754 an address string into a SAL. Use `strace_marker_p' instead of
11756 (strace_command): Decide whether we are dealing with a static
11757 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11758 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11759 * breakpoint.h (linespec_result, linespec_sals): New forward
11761 (breakpoint_ops) <create_sals_from_address>,
11762 <create_breakpoints_sal>, <decode_linespec>: New methods.
11764 2012-01-14 Doug Evans <dje@google.com>
11766 * NEWS: Update text for "maint set python print-stack".
11767 It is deprecated in gdb 7.4 and deleted in 7.5.
11769 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11771 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11772 including curses.h.
11774 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11776 * configure: Regenerate.
11777 * config.in: Regenerate.
11779 2012-01-12 Keith Seitz <keiths@redhat.com>
11782 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11783 (ANONYMOUS_UNION_NAME): Define.
11784 (is_path_expr_parent): New function.
11785 (get_path_expr_parent): New function.
11786 (is_anonymous_child): New function.
11787 (create_child_with_value): If the child is anonymous and without
11788 a name, assign an object name to it.
11789 (c_describe_child): Use get_path_expr_parent to determine
11790 the parent expression.
11791 If there field represents an anonymous struct or union and
11792 has no name, set an appropriate display name and expression.
11793 (cplus_describe_child): Likewise.
11795 2012-01-12 Pedro Alves <palves@redhat.com>
11797 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11798 available when %ebp is found to be zero (outermost).
11800 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11802 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11803 an internal gdb_static_assert.
11804 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11806 2012-01-11 Tom Tromey <tromey@redhat.com>
11809 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11810 catch" and "catch throw".
11812 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11814 * blockframe.c (block_innermost_frame): Start search from selected
11815 frame, if present, or otherwise the current frame.
11817 * c-exp.y (variable): Update innermost_block for
11818 'block COLONCOLON NAME' clause.
11819 * m2-exp.y (variable): Ditto.
11820 * objc-exp.y (variable): Ditto.
11822 2012-01-10 Tom Tromey <tromey@redhat.com>
11825 * python/python.c (finish_python_initialization): Set sys.argv.
11827 2012-01-10 Doug Evans <dje@google.com>
11829 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11830 "want_line_info". All callers updated.
11831 (dwarf_decode_lines_1): New function.
11832 (handle_DW_AT_stmt_list): Add function comment.
11833 New arg "want_line_info". All callers updated.
11834 (read_file_scope,read_type_unit_scope): Move comment from
11835 handle_DW_AT_stmt_list to here.
11837 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11839 Fix regression after libiberty/ update for GCC PR 6057 and others.
11840 * c-exp.y (operator) <OPERATOR DELETE>
11841 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11842 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11843 (make_builtin_type, make_name): New variable i, add gdb_assert.
11844 (operator) <OPERATOR NEW>: Update ARGS to 3.
11845 (operator) <OPERATOR DELETE>: Add trailing space.
11846 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11847 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11848 * cp-support.c (cp_canonicalize_string): Check NULL from
11849 cp_comp_to_string, call warning and return.
11851 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11853 Fix duplicate .o files after omitting libbfd.a.
11854 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11855 (SFILES): Add corelow.c.
11856 (COMMON_OBS): Add corelow.o.
11857 (ALLDEPFILES): Remove corelow.c.
11858 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11859 * config/alpha/alpha-osf3.mh: Likewise.
11860 * config/alpha/fbsd.mh: Likewise.
11861 * config/arm/nbsdaout.mh: Likewise.
11862 * config/arm/nbsdelf.mh: Likewise.
11863 * config/i386/i386gnu.mh: Likewise.
11864 * config/ia64/hpux.mh: Likewise.
11865 * config/ia64/linux.mh: Likewise.
11866 * config/m32r/linux.mh: Likewise.
11867 * config/m68k/linux.mh: Likewise.
11868 * config/mips/irix5.mh: Likewise.
11869 * config/mips/irix6.mh: Likewise.
11870 * config/pa/hpux.mh: Likewise.
11871 * config/pa/linux.mh: Likewise.
11872 * config/powerpc/aix.mh: Likewise.
11873 * config/sparc/linux.mh: Likewise.
11874 * config/sparc/linux64.mh: Likewise.
11875 * config/sparc/sol2.mh: Likewise.
11876 * config/vax/vax.mh: Likewise.
11877 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11878 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11879 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11880 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11881 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11882 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11883 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11884 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11885 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11886 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11887 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11888 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11889 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11890 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11891 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11892 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11893 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11894 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11895 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11896 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11897 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11898 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11899 corelow.o from gdb_target_obs.
11900 * corefile.c (core_target): Update the comment on NULL value.
11901 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11902 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11903 MATCHES. Drop YUMMY set on NULL.
11904 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11905 reclaim CORE_DATA if it is already NULL.
11907 2012-01-09 Doug Evans <dje@google.com>
11909 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11910 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11912 2012-01-09 Keith Seitz <keiths@redhat.com>
11914 * breakpoint.c (wrapper.h): Don't include.
11916 2012-01-09 Keith Seitz <keiths@redhat.com>
11918 * Makefile.in (SFILES): Remove wrapper.c.
11919 (HFILES_NO_SRCDIR): Remove wrapper.h.
11920 (COMMON_OBS): Remove wrapper.o.
11921 * cli/cli-interp.c: Don't inlude wrapper.h.
11922 * corelow.c: Likewise.
11923 (core_open): Replace gdb_target_find_new_threads with
11924 TRY_CATCH around target_find_new_threads.
11925 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11926 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11927 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11928 evaluate_expression.
11929 (varobj_set_value): Likewise for evaluate_expression and
11931 (install_new_variable): Likewise for value_fetch_lazy.
11932 (adjust_value_for_child_access): Likewise for value_ind.
11933 (c_describe_child): Likewise for value_subscript and
11935 (c_value_of_root): Likewise for evaluate_expression.
11936 * wrapper.c: Remove.
11937 * wrapper.h: Remove.
11939 2012-01-09 Doug Evans <dje@google.com>
11941 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11942 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11943 "abfd" args with "section". All callers updated.
11944 Error checking code moved ...
11945 (error_check_comp_unit_head): ... here. New function.
11946 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11947 Delete arg "abfd". New arg "type_offset". All callers updated.
11948 (create_debug_types_hash_table): Simplify by using
11949 read_and_check_type_unit_head.
11951 * parser-defs.h (namecopy): Delete.
11952 * parse.c (namecopy, namecopy_size): Move into copy_name.
11954 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11956 Partially fix duplicate .o files after omitting libbfd.a.
11957 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11958 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11959 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11960 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11961 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11962 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11963 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11965 2012-01-09 Pedro Alves <palves@redhat.com>
11967 * MAINTAINERS: Update my email address.
11969 2012-01-08 Doug Evans <dje@google.com>
11971 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11972 n_type_units. Rename type_comp_units to all_type_units.
11974 (add_signatured_type_cu_to_table): Renamed from
11975 add_signatured_type_cu_to_list. All callers updated.
11977 * gdbtypes.h (struct cplus_struct_type): Delete member
11978 nfn_fields_total. All uses removed.
11980 2012-01-06 Doug Evans <dje@google.com>
11982 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11984 (dwarf2_find_comp_unit): Delete.
11985 (process_psymtab_comp_unit): Make result "void".
11986 Delete args buffer, info_ptr, buffer_size, and replace with
11987 "section". All callers updated.
11988 (dwarf2_build_psymtabs_hard): Simplify.
11990 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11991 Thiago Jung Bauermann <bauerman@br.ibm.com>
11993 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11994 before `struct gdb_exception'.
11995 * breakpoint.c (update_global_location_list_nothrow)
11996 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11997 * cp-abi.c (value_rtti_type): Likewise.
11998 * cp-support.c (cp_validate_operator): Likewise.
11999 * infrun.c (insert_exception_resume_breakpoint)
12000 (check_exception_resume, keep_going): Likewise.
12001 * mi-interp.c (mi_breakpoint_created)
12002 (mi_breakpoint_modified): Likewise.
12003 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12004 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12005 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12007 2012-01-05 Doug Evans <dje@google.com>
12009 * dwarf2read.c (statement_prologue): Delete, unused.
12011 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12012 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12014 * dwarf2read.c (comp_unit_header): Delete, unused.
12016 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12018 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12019 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12021 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12023 * infrun.c (normal_stop): Don't skip calling the normal_stop
12024 observers if the thread was doing a multi-step, but stopped for
12025 some reason other than stepping.
12027 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12029 * cli/cli-decode.h: Add comments.
12030 (CMD_LIST_AMBIGUOUS): Moved to command.h
12031 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12032 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12033 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12034 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12035 (add_com, add_com_alias, add_info, add_info_alias)
12036 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12038 * command.h: Add and adjust comments.
12039 (CMD_LIST_AMBIGUOUS): Moved here.
12040 (help_cmd, help_cmd_list): Delete declarations.
12042 2012-01-04 Doug Evans <dje@google.com>
12044 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12045 All callers updated.
12046 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12047 Replace all arguments with "per_cu". All callers updated.
12049 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12051 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12052 New arg "per_cu". All callers updated.
12054 Delete #if 0'd out code.
12055 * language.c (binop_result_type): Delete.
12056 (simple_type, ordered_type, same_type, integral_type): Delete.
12057 (numeric_type, character_type, string_type, boolean_type): Delete.
12058 (float_type, structured_type): Delete.
12059 * language.h: Update.
12061 2012-01-04 Tom Tromey <tromey@redhat.com>
12063 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12065 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12067 * corefile.c (close_exec_file): Delete.
12068 (reopen_exec_file): Remove commented out code that seems related
12069 to close_exec_file, which is being deleted here.
12070 * inferior.h (close_exec_file): Delete.
12071 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12073 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12075 * ada-lang.c: #include "cli/cli-utils.h".
12076 (get_selections): Use skip_spaces.
12077 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12078 (catch_ada_exception_command_split): Use skip_spaces.
12079 (ada_decode_assert_location): Likewise.
12081 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12083 * linespec.c (decode_line_internal): Check for C++ or Java
12084 compound constructs only if the current language is C, C++
12087 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12090 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12091 Joel Brobecker <brobecker@adacore.com>
12092 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12093 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12095 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12096 fall through into AT_ENTRY_POINT.
12097 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12098 DUMMY_ADDR with it.
12099 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12100 PPC_INSN_SIZE skip to 3 times.
12102 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12104 * linespec.c (add_minsym): Preserve function descriptors.
12106 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12108 * breakpoint.c (all_locations_are_pending): Consider locations
12109 in program spaces executing during startup pending as well.
12111 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12113 Copyright year update in most files of the GDB Project.
12115 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12117 * copyright.sh: Delete.
12118 * copyright.py: Rewrite.
12120 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12122 * gnulib/extra/update-copyright: New file, imported from gnulib.
12124 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12126 * README (Copyright and License Notices): New section.
12128 2012-01-03 Tom Tromey <tromey@redhat.com>
12131 * python/py-value.c (valpy_dereference, valpy_get_address
12132 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12133 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12134 (valpy_absolute, valpy_richcompare): Free intermediate values.
12136 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12138 * ada-lang.c: Reformat the copyright notice.
12140 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12142 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12143 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12144 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12145 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12146 Revert this part of:
12147 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12148 Build gdb directly from *.o files not using libgdb.a.
12149 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12151 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12153 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12154 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12155 Reformat the copyright header.
12157 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12159 Revert this part of:
12160 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12161 Remove the gdbtui binary.
12162 * gdb.c (main): Remove args.interpreter_p initialization.
12163 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12164 * main.h (struct captured_main_args): Remove interpreter_p.
12166 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12168 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12170 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12172 * top.c (print_gdb_version): Update copyright year.
12174 2012-01-02 Yao Qi <yao@codesourcery.com>
12176 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12178 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12179 Joel Brobecker <brobecker@adacore.com>
12181 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12182 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12184 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12185 fall through into AT_ENTRY_POINT.
12186 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12187 DUMMY_ADDR with it.
12188 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12189 PPC_INSN_SIZE skip to 3 times.
12191 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12193 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12195 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12197 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12199 Build gdb directly from *.o files not using libgdb.a.
12200 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12201 (COMMON_OBS): Remove solib-target.o.
12202 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12203 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12204 (LIBGDB_OBS, libgdb.a): Move it above.
12205 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12206 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12207 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12208 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12209 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12210 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12211 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12212 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12213 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12214 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12215 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12216 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12217 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12218 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12219 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12220 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12221 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12222 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12223 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12224 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12225 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12226 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12227 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12228 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12229 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12230 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12231 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12233 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12235 Remove the gdbtui binary.
12236 * .gitignore (/gdbtui): Remove.
12237 * Makefile.in (TUI): Remove.
12238 (SUBDIR_TUI_OBS): Remove tui-main.o.
12239 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12240 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12241 (tui-main.o): Remove.
12242 (all_object_files): Remove tui-main.o.
12243 * NEWS: New note for the gdbtui removal.
12244 * configure: Rebuilt.
12245 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12246 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12247 CONFIG_UNINSTALL respectively.
12248 * gdb.c (main): Remove args.interpreter_p initialization.
12249 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12250 * main.h (struct captured_main_args): Remove interpreter_p.
12251 * tui/tui-main.c: Remove.
12253 2012-01-01 Doug Evans <dje@google.com>
12255 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12256 (dwarf2_physname, read_import_statement): Ditto.
12257 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12258 (process_structure_scope read_subroutine_type): Ditto.
12259 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12260 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12261 (dwarf2_fetch_die_location_block): Ditto.
12262 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12264 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12265 All callers updated.
12266 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12267 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12268 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12270 * dwarf2read.c (load_cu): Move assert to more useful location.
12272 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12273 All callers updated.
12275 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12276 (dwarf2_elf_names): Minor reformat.
12277 (dwarf2_per_cu_data): Tweak comment.
12278 (dwarf2_read_section): Fix comment.
12279 (create_all_comp_units): Fix comment.
12280 (load_full_comp_unit): Fix comment.
12281 (process_full_comp_unit): Fix comment.
12282 (read_signatured_type): Fix comment.
12284 For older changes see ChangeLog-2011.
12290 version-control: never