1 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
4 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
6 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
7 * dwarf2read.c (extract_cu_value): Remove the function.
8 (create_cus_from_index_list): Make the return type void, inline the
9 extract_cu_value caller, include new gdb_static_assert.
10 (create_cus_from_index): Make the return type void, update the function
11 comment, update the create_cus_from_index_list caller.
12 (create_signatured_type_table_from_index): Make the return type void,
13 inline the extract_cu_value caller, include new gdb_static_assert.
14 (dwarf2_read_index): Update the create_cus_from_index and
15 create_signatured_type_table_from_index caller.
16 * printcmd.c (ui_printf): Remove conditionalizations for
18 * config.in: Regenerate.
19 * configure: Regenerate.
21 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
23 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
24 Update the comment for checked_producer.
25 (check_producer): New forward declaration.
26 (producer_is_gcc_lt_4_3): New function.
27 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
28 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
30 2012-12-07 Tom Tromey <tromey@redhat.com>
32 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
34 * c-exp.y (typebase): Add completion productions.
35 * completer.c (expression_completer): Handle tag completion.
36 * expression.h (parse_expression_for_completion): Add argument.
37 * f-lang.c (f_make_symbol_completion_list): Add 'code'
39 * language.h (struct language_defn)
40 <la_make_symbol_completion_list>: Add 'code' argument.
41 * parse.c (expout_tag_completion_type, expout_completion_name):
43 (mark_struct_expression): Add assertion.
44 (mark_completion_tag): New function.
45 (parse_exp_in_context): Initialize new globals.
46 (parse_expression_for_completion): Add 'code' argument. Handle
48 * parser-defs.h (mark_completion_tag): Declare.
49 * symtab.c (default_make_symbol_completion_list_break_on): Add
50 'code' argument. Update.
51 (default_make_symbol_completion_list): Add 'code' argument.
52 (make_symbol_completion_list): Update.
53 (make_symbol_completion_type): New function.
54 * symtab.h (default_make_symbol_completion_list_break_on)
55 (default_make_symbol_completion_list): Update.
56 (make_symbol_completion_type): Declare.
58 2012-12-07 Tom Tromey <tromey@redhat.com>
60 * expression.h (parse_expression_for_completion): Rename
61 from parse_field_expression.
62 (parse_completion): Rename from in_parse_field.
63 * c-exp.y (lex_one_token): Update.
64 * completer.c (expression_completer): Update.
65 * go-exp.y (lex_one_token): Update.
66 * p-exp.y (yylex): Update.
67 * parse.c (parse_completion): Rename from in_parse_field.
68 (parse_exp_in_context): Update.
69 (parse_expression_for_completion): Rename from
70 parse_field_expression. Update.
72 2012-12-07 Tom Tromey <tromey@redhat.com>
74 * typeprint.c (_initialize_typeprint): Set completer
75 for "whatis" and "ptype".
77 2012-12-07 Joel Brobecker <brobecker@adacore.com>
79 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
80 "sim/common/cgen-fpu.h". Remove invalid entries
81 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
82 which actually have an FSF copyright header.
84 2012-12-07 Joel Brobecker <brobecker@adacore.com>
86 * osf-share/AT386/cma_thread_io.h: Delete.
87 * osf-share/HP800/cma_thread_io.h: Delete.
88 * osf-share/README: Delete.
89 * osf-share/RIOS/cma_thread_io.h: Delete.
90 * osf-share/cma_attr.h: Delete.
91 * osf-share/cma_deb_core.h: Delete.
92 * osf-share/cma_debug_client.h: Delete.
93 * osf-share/cma_errors.h: Delete.
94 * osf-share/cma_handle.h: Delete.
95 * osf-share/cma_init.h: Delete.
96 * osf-share/cma_list.h: Delete.
97 * osf-share/cma_mutex.h: Delete.
98 * osf-share/cma_sched.h: Delete.
99 * osf-share/cma_semaphore_defs.h: Delete.
100 * osf-share/cma_sequence.h: Delete.
101 * osf-share/cma_stack.h: Delete.
102 * osf-share/cma_stack_int.h: Delete.
103 * osf-share/cma_tcb_defs.h: Delete.
104 * osf-share/cma_util.h: Delete.
105 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
107 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
108 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
109 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
111 2012-12-06 Pedro Alves <palves@redhat.com>
112 Tom Tromey <tromey@redhat.com>
114 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
116 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
119 * mi/mi-cmd-var.c (varobj_update_one): Take value of
120 attribute "dynamic" and "displayhint" from printed child,
121 not the root variable.
123 2012-12-06 Joel Brobecker <brobecker@adacore.com>
125 * aix-thread.c (getthrds): Fix type of 4th parameter.
126 (get_signaled_thread): Change type of variable ktid to tid_t.
128 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
130 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
131 value of get_frame_block.
133 2012-12-05 Pierre Muller <muller@sourceware.org>
135 Avoid memory leaks on struct cmd_list_element.doc field.
136 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
137 if flags contains DOC_ALLOCATED.
138 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
140 (delete_cmd): Handle DOC_ALLOCATED flag.
141 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
142 in flags filed of struct cmd_list_element.
143 (struct cmd_list_element): Document new flag item.
145 2012-12-04 Doug Evans <dje@google.com>
147 * symmisc.c: Whitespace fixes.
149 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
151 * i386-tdep.c (i386_skip_prologue): Using symbol table
152 to find the end of prologue for clang compiled binaries.
153 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
154 to find the end of prologue for clang compiled binaries.
156 2012-12-03 Doug Evans <dje@google.com>
158 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
159 (dw2_find_symbol_file): Delete unused local file_data.
161 2012-12-03 Tom Tromey <tromey@redhat.com>
163 * ada-exp.y (write_object_renaming, write_var_or_type)
164 (write_ambiguous_var, write_var_from_sym): Make blocks const.
165 * ada-lang.c (replace_operator_with_call)
166 (find_old_style_renaming_symbol): Make blocks const.
167 * ada-lang.h (ada_find_renaming_symbol): Update.
168 (struct ada_symbol_info) <block>: Now const.
169 * breakpoint.c (watch_command_1): Update.
170 * breakpoint.h (struct watchpoint) <exp_valid_block,
171 cond_exp_valid_block>: Now const.
172 * c-exp.y (classify_inner_name, classify_name): Make block
174 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
176 * expression.h (innermost_block, parse_exp_1): Update.
177 (union exp_element) <block>: Now const.
178 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
179 (lookup_struct): Make block argument const.
180 * gdbtypes.h (lookup_template_type): Update.
181 * go-exp.y (classify_name, classify_packaged_name)
182 (package_name_p): Make block argument const.
183 * objc-lang.c (lookup_struct_typedef): Make block argument const.
184 * objc-lang.h (lookup_struct_typedef): Update.
185 * parse.c (parse_exp_in_context, parse_exp_1)
186 (write_exp_elt_block): Make block arguments const.
187 (expression_context_block, innermost_block): Now const.
188 * parser-defs.h (write_exp_elt_block): Update.
189 (expression_context_block, innermost_block, block_found): Now
191 * printcmd.c (struct display) <block>: Now const.
192 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
193 * valops.c (address_of_variable): Make block argument const.
194 * value.h (value_of_variable): Update.
195 * varobj.c (struct varobj_root) <valid_block>: Now const.
197 2012-11-30 Yao Qi <yao@codesourcery.com>
199 * breakpoint.c (print_one_breakpoint_location): Indent code.
201 2012-11-30 Yao Qi <yao@codesourcery.com>
203 * breakpoint.c (print_one_breakpoint_location): Combine two
204 blocks handling 'hit count' together.
206 2012-11-30 Yao Qi <yao@codesourcery.com>
208 * infrun.c (error_is_running, ensure_not_running): Move them
210 * infcmd.c (error_is_running, ensure_not_running): ... here.
212 * inferior.h: Remove declarations of error_is_running and
215 2012-11-30 Yao Qi <yao@codesourcery.com>
217 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
220 2012-11-30 Yao Qi <yao@codesourcery.com>
222 * infrun.c: Make the declaration of 'init_infwait_state'
224 (init_infwait_state): Make it 'static'.
226 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
228 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
229 return value to void to avoid compiler warning.
231 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
233 * opencl-lang.c (opencl_print_type): New function.
234 (opencl_language_arch_info): Install it.
236 2012-11-29 Tom Tromey <tromey@redhat.com>
238 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
240 * common/common-utils.c (xasprintf, xvasprintf): Remove.
241 * common/common-utils.h (xasprintf, xvasprintf): Remove.
243 2012-11-29 Jerome Guitton <guitton@adacore.com>
245 * ada-lang.c (ada_is_interface_tag): New function.
246 (ada_is_ignored_field): Add interface tags to the list
249 2012-11-29 Jerome Guitton <guitton@adacore.com>
251 * ada-lang.h (ada_tag_value_at_base_address): New function
253 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
255 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
256 relocate the class-wide value if need be.
257 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
258 Let ada_tag_value_at_base_address relocate the class-wide access/ref
259 before dereferencing it.
260 * ada-valprint.c (ada_val_print_1): Relocate to base address
261 before displaying the content of an interface-wide ref.
263 2012-11-29 Jerome Guitton <guitton@adacore.com>
265 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
267 2012-11-29 Joel Brobecker <brobecker@adacore.com>
271 2012-11-29 Yao Qi <yao@codesourcery.com>
272 Tom Tromey <tromey@redhat.com>
274 * eval.c (evaluate_subexp_standard): Get the correct pointer
275 type for TYPE_CODE_MEMBERPTR.
277 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
279 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
280 since now it is being done by binutils' powerpc_init_dialect().
282 2012-11-28 Tom Tromey <tromey@redhat.com>
285 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
286 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
288 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
289 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
290 (gdb_bfd_openr_next_archived_file): Use it.
292 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
294 * configure.ac: Check for linux/perf_event.h.
295 * config.in: Regenerated.
296 * configure: Regenerated.
298 2012-11-28 Yao Qi <yao@codesourcery.com>
300 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
301 abbreviate 'delete tracepoints' to 'delete tr'.
302 * corefile.c (_initialize_core): Call add_alias_cmd to
303 abbreviate 'set gnutarget' to 'set g'.
304 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
305 'show convenience' to 'show conv'.
307 2012-11-27 Joel Brobecker <brobecker@adacore.com>
309 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
310 call to sparc_supply_fpregset.
311 (fill_fpregset): Fix first parameter in call to
312 sparc_collect_fpregset.
314 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
315 Kazu Hirata <kazu@codesourcery.com>
316 Yao Qi <yao@codesourcery.com>
318 * objfiles.c (init_entry_point_info): Call
319 gdbarch_convert_from_func_ptr_addr and
320 gdbarch_addr_bits_remove here ...
321 (entry_point_address_query): ... instead of here.
322 * solib-svr4.c (exec_entry_point): Call
323 gdbarch_addr_bits_remove.
324 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
327 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
328 Yao Qi <yao@codesourcery.com>
330 * eval.c (evaluate_subexp_standard): Add handling of
331 TYPE_CODE_MEMBERPTR when calling functions. Correct the
332 result of ptype for calling a TYPE_CODE_METHODPTR.
334 2012-11-27 Yao Qi <yao@codesourcery.com>
336 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
340 2012-11-26 Alexander Larsson <alexl@redhat.com>
341 Jan Kratochvil <jan.kratochvil@redhat.com>
342 Tom Tromey <tromey@redhat.com>
344 * NEWS: Mention mini debuginfo feature.
345 * minidebug.c: New file.
346 * configure.ac: Check for lzma.
347 * configure, config.in: Rebuild.
348 * Makefile.in (LIBLZMA): New variable.
349 (CLIBS): Include LIBLZMA.
350 (SFILES): Mention minidebug.c.
351 (COMMON_OBS): Mention minidebug.o.
352 * symfile.c (read_symbols): New function.
353 (syms_from_objfile, reread_symbols): Call it.
354 * symfile.h (find_separate_debug_file_in_section): Declare.
356 2012-11-26 Keith Seitz <keiths@redhat.com>
358 * exec.c (exec_file_attach): Move cleanup after verifying that
359 memory has in fact been allocated.
361 2012-11-26 Tom Tromey <tromey@redhat.com>
363 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
364 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
366 * skip.c (skip_info): Use SYMBOL_SYMTAB.
368 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
369 Pedro Alves <palves@redhat.com>
371 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
372 size parameter passed to readlink by one byte.
373 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
374 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
375 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
376 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
379 2012-11-26 Yao Qi <yao@codesourcery.com>
381 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
382 extraneous parentheses.
384 2012-11-26 Yao Qi <yao@codesourcery.com>
386 * remote.c (remote_start_remote): Typo fix.
388 2012-11-23 David S. Miller <davem@davemloft.net>
390 * sparc-tdep.h (struct sparc_fpregset): New data structure.
391 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
392 sparc32_sol2_fpregset): Declare new globals.
393 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
395 * sparc64-tdep.h (sparc64_supply_fpregset,
396 sparc64_collect_fpregset): Likewise.
397 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
399 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
400 (sparc_fpregset): Declare new global.
401 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
403 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
405 (fill_fpregset): Likewise.
406 (_initialize_sparc_linux_nat): Set sparc_fpregset to
407 sparc32_bsd_fpregset.
408 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
409 sparc32_bsd_fpregset down into handler.
410 (sparc32_linux_collect_core_fpregset): Likewise.
411 * sparc-nat.c (sparc_fpregset): Define.
412 (sparc_supply_fpregset): Add 'fpregset' argument.
413 (sparc_collect_fpregset): Likewise.
414 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
415 into fpregset handler.
416 (sparc_store_inferior_registers): Likewise.
417 (_initialize_sparc_nat): Set sparc_fpregset to
418 sparc32_sunos4_fpregset if NULL.
419 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
421 (fill_fpregset): Likewise.
422 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
423 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
424 use it to compute offsets.
425 (sparc32_collect_fpregset): Likewise.
426 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
427 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
429 (fill_fpregset): Likewise.
430 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
432 (sparc64_linux_collect_core_fpregset): Likewise.
433 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
434 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
435 use it to compute offsets.
436 (sparc64_collect_fpregset): Likewise.
437 (sparc64_bsd_fpregset): Define.
438 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
439 sparc64_bsd_fpregset down into handler.
440 (sparc64fbsd_collect_fpregset): Likewise.
441 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
442 and pass sparc{32,64}_bsd_fpregset down into handler.
443 (sparc64nbsd_collect_fpregset): Likewise.
444 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
445 sparc64_bsd_fpregset down into handler.
446 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
447 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
448 to sparc32_bsd_fpregset.
449 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
450 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
451 (sparc32nbsd_supply_fpregset): Likewise.
453 2012-11-21 Tom Tromey <tromey@redhat.com>
455 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
457 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
459 * c-typeprint.c (c_type_print_base): Update.
461 2012-11-21 Yao Qi <yao@codesourcery.com>
464 * gdbarch.sh (smash_text_address): Remove.
465 * gdbarch.c, gdbarch.h: Regenerate.
466 * arm-tdep.c (arm_smash_text_address): Remove.
467 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
468 * hppa-tdep.c (hppa_smash_text_address): Remove.
469 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
470 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
472 * coffread.c (coff_symtab_read): Caller update.
473 * dbxread.c (process_one_symbol): Likewise.
474 * elfread.c (record_minimal_symbol): Likewise.
475 * somread.c (som_symtab_read): Likewise.
477 2012-11-20 Pierre Muller <muller@sourceware.org>
479 ARI fixes: sprintf rule.
480 Replace sprintf function calls for char arrays by
481 calls to xsnprintf calls.
482 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
483 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
484 (arm_neon_quad_read, arm_pseudo_read): Ditto.
485 (arm_neon_quad_write, arm_pseudo_write): Ditto.
486 * breakpoint.c (condition_completer): Ditto.
487 (create_tracepoint_from_upload): Ditto.
488 * dwarf2read.c (file_full_name): Ditto.
489 * gcore.c (gcore_command): Ditto.
490 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
491 * go32-nat.c (go32_sysinfo): Ditto.
492 * interps.c (interp_set): Ditto.
493 * m32c-tdep.c (make_types): Ditto.
494 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
495 * remote-m32r-sdi.c (m32r_open): Ditto.
496 * sol-thread.c (td_err_string): Ditto.
497 (td_state_string, solaris_pid_to_str): Ditto.
498 * symtab.c (gdb_mangle_name): Ditto.
499 * cli/cli-script.c (execute_control_command): Ditto.
500 (define_command, document_command): Ditto.
501 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
502 * tui/tui-stack.c (tui_make_status_line): Ditto.
503 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
505 2012-11-20 Mike Frysinger <vapier@gentoo.org>
507 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
508 it when looking at ptr->func.
509 * command.h (complete_on_cmdlist): Add a fourth arg.
510 * completer.c (complete_line_internal): Add local ignore_help_classes,
511 and set it to 1 when reason is not handle_help. Pass this down to
512 lookup_cmd_1 and complete_on_cmdlist.
514 2012-11-20 Tom Tromey <tromey@redhat.com>
516 * completer.c (count_struct_fields): Remove.
517 (expression_completer): Don't call count_struct_fields.
519 2012-11-20 Pedro Alves <palves@redhat.com>
521 * annotate.c (breakpoints_changed): Rename to ...
522 (annotate_breakpoints_changed): ... this.
523 (annotate_stopped, breakpoint_changed): Adjust caller.
524 * annotate.h (breakpoints_changed): Rename to ...
525 (annotate_breakpoints_changed): ... this.
526 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
527 (do_map_commands_command, init_raw_breakpoint, clear_command)
528 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
530 2012-11-20 David S. Miller <davem@davemloft.net>
532 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
533 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
535 (get_cores_used_by_process): Update comment.
537 2012-11-20 Yao Qi <yao@codesourcery.com>
539 * objfiles.c (init_entry_point_info): Remove trailing spaces.
541 2012-11-20 Yao Qi <yao@codesourcery.com>
543 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
544 to deprecated_context_hook.
546 2012-11-19 Yao Qi <yao@codesourcery.com>
548 * infrun.c (infwait_state): Add static.
550 2012-11-16 Keith Seitz <keiths@redhat.com>
553 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
554 parameter and pass it to lookup_symbol_file.
555 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
556 to search base classes.
557 (cp_lookup_symbol_namespace): Likewise.
558 (lookup_namespace_scope): Likewise.
559 (lookup_symbol_file): Add SEARCH parameter.
560 If SEARCH is non-zero and no symbol is found, lookup the class
561 and call cp_lookup_nested_symbol.
562 (find_symbol_in_baseclass): New function.
563 (cp_lookup_nested_symbol): Do not let
564 cp_lookup_symbol_in_namespace search through base classes.
565 Do that later when there is no global symbol match.
567 2012-11-16 Doug Evans <dje@google.com>
569 * main.c (gdb_datadir_provided): New static global.
570 (get_init_files): If --data-directory is provided,
571 and SYSTEM_GDBINIT lives in data-directory, look for it there.
574 2012-11-15 Pierre Muller <muller@sourceware.org>
576 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
577 * gdb_stat.h: Delete. Moved to common directory.
578 * common/gdb_stat.h: New file.
579 * gdb_wait.h: Delete. Moved to common directory.
580 * common/gdb_wait.h: New file.
581 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
583 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
585 (stat.h rule): Adapt to new gdb_stat.h location.
586 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
588 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
591 2012-11-15 Pierre Muller <muller@sourceware.org>
593 * configure.ac (AC_HEADER_STAT): Remove.
594 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
595 and corresponding code.
596 * configure: Regenerate.
597 * config.in: Regenerate.
599 2012-11-15 Pierre Muller <muller@sourceware.org>
601 ARI xasprintf rule fixes.
602 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
603 instead of xasprintf.
604 (open_and_init_dwp_file): Ditto.
606 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
608 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
611 2012-11-14 Tom Tromey <tromey@redhat.com>
613 * configure, config.in: Rebuild.
614 * configure.ac: Don't check for ctype.h, time.h.
615 * expprint.c: Don't use HAVE_CTYPE_H.
617 2012-11-13 Tom Tromey <tromey@redhat.com>
619 * gdbarch.h, gdbarch.c: Rebuild.
620 * gdbarch.sh (set_target_gdbarch): Rename from
621 deprecated_target_gdbarch_select_hack.
622 * arch-utils.c (gdbarch_update_p): Update.
623 (set_gdbarch_from_file): Update.
625 2012-11-14 Pierre Muller <muller@sourceware.org>
627 * MAINTAINERS (Responsible Maintainers/misc): Add myself
628 as responsible of contrib/ari directory.
630 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
631 Yao Qi <yao@codesourcery.com>
633 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
635 (arm_m_exception_cache, arm_m_exception_this_id)
636 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
637 (arm_m_exception_unwind): New.
638 (arm_gdbarch_init): Register arm_m_exception_unwind.
640 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
642 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
643 parameter COUNT, for pattern filling of memory regions.
646 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
648 * disasm.h (DISASSEMBLY_FILENAME): New macro.
649 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
650 to print_source_lines ().
651 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
653 * source.c (print_source_lines_base): Prefix source line with
654 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
656 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
658 * symtab.h (print_source_lines_flags): New enum.
659 * source.c (print_source_lines_base): Change noerror to flags.
660 (print_source_lines): Change noerror to flags.
662 2012-11-13 Pierre Muller <muller@sourceware.org>
664 ARI fixes: Avoid sprintf function use rule.
665 * charset.c (convert_between_encodings): Use xsnprintf.
666 * cli-out.c (cli_field_int): Likewise.
667 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
668 * expprint.c (op_name_standard): Likewise.
669 * frv-tdep.c (set_variant_num_gprs): Likewise.
670 (set_variant_num_fprs): Likewise.
671 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
672 * nto-tdep.c (nto_find_and_open_solib): Likewise.
673 (nto_init_solib_absolute_prefix): Likewise.
674 * source.c (init_source_path): Likewise.
675 (print_source_lines_base): Likewise.
676 * valprint.c (print_wchar): Likewise.
677 * mi/mi-out.c (mi_field_int): Likewise.
678 windows-nat.c (windows_pid_to_exec_file): Likewise.
679 (windows_create_inferior): Likewise.
680 (_initialize_check_for_gdb_ini): Likewise.
682 2012-11-12 Joel Brobecker <brobecker@adacore.com>
684 * frame.h (deprecated_frame_register_read): Renames
686 * frame.c (deprecated_frame_register_read): Renames
687 frame_register_read. Update all callers.
688 * i386-tdep.c: Update all callers of frame_register_read.
689 * infcmd.c: Likewise.
691 * mips-tdep.c: Likewise.
692 * mt-tdep.c: Likewise.
693 * sh64-tdep.c: Likewise.
695 2012-11-12 Joel Brobecker <brobecker@adacore.com>
697 * frame.h (frame_register_read): Remove FIXME comment.
698 * frame.c (frame_register_read): Add suggestion explaining
699 which function to use in place of this one.
701 2012-11-12 Tom Tromey <tromey@redhat.com>
703 * python/python.c (start_type_printers): Initialize 'result_obj'.
705 2012-11-12 Tom Tromey <tromey@redhat.com>
708 * data-directory/Makefile.in (PYTHON_FILES): Add
710 * python/lib/gdb/command/type_printers.py: New file.
711 * python/lib/gdb/command/types.py (TypePrinter): New class.
712 (_get_some_type_recognizers, get_type_recognizers,
713 apply_type_recognizers, register_type_printer): New
715 * python/py-objfile.c (objfile_object) <type_printers>: New
717 (objfpy_dealloc): Decref new field.
718 (objfpy_new): Set new field.
719 (objfpy_get_type_printers, objfpy_set_type_printers): New
721 (objfile_to_objfile_object): Set new field.
722 (objfile_getset): Add "type_printers".
723 * python/py-progspace.c (pspace_object) <type_printers>: New
725 (pspy_dealloc): Decref new field.
726 (pspy_new): Set new field.
727 (pspy_get_type_printers, pspy_set_type_printers): New functions.
728 (pspace_to_pspace_object): Set new field.
729 (pspace_getset): Add "type_printers".
730 * python/python.c (start_type_printers, apply_type_printers,
731 free_type_printers): New functions.
732 (_initialize_python): Set gdb.type_printers.
733 * python/python.h (start_type_printers, apply_type_printers,
734 free_type_printers): Declare.
735 * typeprint.c (type_print_raw_options, default_ptype_flags):
736 Update for new fields.
737 (do_free_global_table, create_global_typedef_table,
738 find_global_typedef): New functions.
739 (find_typedef_in_hash): Use find_global_typedef.
740 (whatis_exp): Use create_global_typedef_table. Change cleanup
742 * typeprint.h (struct type_print_options) <global_typedefs,
743 global_printers>: New fields.
745 2012-11-12 Tom Tromey <tromey@redhat.com>
747 * c-typeprint.c (find_typedef_for_canonicalize,
748 print_name_maybe_canonical): New functions.
749 (c_print_type): Look up type name.
750 (cp_type_print_derivation_info): Add flags argument. Use
751 print_name_maybe_canonical.
752 (cp_type_print_method_args): Add wrapping.
753 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
754 (c_type_print_template_args): New function.
755 (c_type_print_base): Change wrapping. Use
756 print_name_maybe_canonical.
757 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
759 * gdbtypes.c (types_equal): No longer static.
760 * gdbtypes.h (types_equal): Declare.
761 * typeprint.c (type_print_raw_options, default_ptype_flags):
763 (struct typedef_hash_table): New.
764 (hash_typedef_field, eq_typedef_field,
765 recursively_update_typedef_hash, add_template_parameters,
766 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
767 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
768 copy_typedef_hash, find_typedef_in_hash): New functions.
769 * typeprint.h (struct type_print_options) <local_typedefs>:
771 (recursively_update_typedef_hash, add_template_parameters,
772 create_typedef_hash, free_typedef_hash,
773 make_cleanup_free_typedef_hash, copy_typedef_hash,
774 find_typedef_in_hash): Declare.
776 2012-11-12 Tom Tromey <tromey@redhat.com>
778 * cp-support.c (inspect_type,
779 replace_typedefs_qualified_name, replace_typedefs): Add
780 finder, data arguments. Call as needed.
781 (cp_canonicalize_string_full): New function.
782 (cp_canonicalize_string_no_typedefs): Rewrite.
783 * cp-support.h (canonicalization_ftype): New typedef.
784 (cp_canonicalize_string_full): Declare.
786 2012-11-12 Tom Tromey <tromey@redhat.com>
789 * c-typeprint.c (c_type_print_base): Handle print_method and
790 print_typedefs flags.
791 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
792 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
794 * typeprint.c (type_print_raw_options, default_ptype_flags):
795 Update for new field.s
796 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
797 (setprinttypelist, showprinttypelist, print_methods,
798 print_typedefs): New globals.
799 (set_print_type, show_print_type, set_print_type_methods,
800 show_print_type_methods, set_print_type_typedefs,
801 show_print_type_typedefs): New functions.
802 (_initialize_typeprint): Update documentation. Add "print
803 type methods" and "print type typedefs" parameters.
804 * typeprint.h (struct type_print_options) <print_methods,
805 print_typedefs>: New fields.
807 2012-11-12 Tom Tromey <tromey@redhat.com>
809 * c-typeprint.c (cp_type_print_method_args): Add flags
810 argument. Call c_print_type, not type_print.
811 (c_type_print_base): Call c_print_type, not type_print.
814 2012-11-12 Tom Tromey <tromey@redhat.com>
816 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
817 to type-printing functions.
818 * ada-lang.h (ada_print_type): Add argument.
819 * ada-typeprint.c (print_array_type, print_variant_clauses,
820 print_variant_part, print_selected_record_field_types,
821 print_record_field_types, print_unchecked_union_type,
822 print_func_type, ada_print_type): Add flags argument.
823 (ada_print_typedef): Update.
824 * c-exp.y (OPERATOR conversion_type_id): Update.
825 * c-lang.h (c_print_type, c_type_print_base): Update.
826 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
827 c_type_print_modifier, c_type_print_args,
828 c_type_print_varspec_suffix, c_type_print_base): Add flags
830 * cp-valprint.c (cp_print_class_member): Update.
831 * dwarf2read.c (dwarf2_compute_name): Update.
832 * f-lang.h (f_print_type): Add argument.
833 * f-typeprint.c (f_print_type): Add flags argument.
834 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
835 * go-lang.h (go_print_type): Add argument.
836 * go-typeprint.c (go_print_type): Add flags argument.
837 * jv-lang.h (java_print_type): Add argument.
838 * jv-typeprint.c (java_type_print_base, java_print_type): Add
840 * language.c (unk_lang_print_type): Add flags argument.
841 * language.h (struct language_defn) <la_print_type>: Add flags
843 (LA_PRINT_TYPE): Likewise.
844 * m2-lang.h (m2_print_type): Add argument.
845 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
846 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
847 m2_unbounded_array, m2_record_fields): Add flags argument.
848 * p-lang.h (pascal_print_type, pascal_type_print_base,
849 pascal_type_print_varspec_prefix): Add argument.
850 * p-typeprint.c (pascal_print_type,
851 pascal_type_print_varspec_prefix, pascal_print_func_args,
852 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
854 * symmisc.c (print_symbol): Update.
855 * typeprint.c (type_print_raw_options, default_ptype_flags):
857 (type_print): Update.
858 * typeprint.h (struct type_print_options): New.
859 (type_print_raw_options): Declare.
860 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
862 2012-11-10 Keith Seitz <keiths@redhat.com>
864 * breakpoint.c (clear_command): Add cleanup for
865 sals.sals if an argument is given.
867 * linespec.c (parse_linespec): Do cleanups after
868 parsing a convenience variable.
870 2012-11-10 Keith Seitz <keiths@redhat.com>
873 * c-valprint.c (c_val_print): For character arrays
874 with "print null" option on, print ellipses if
875 the output is truncated and the next character is not \000.
876 * valprint.c (MAX_WCHARS): Define.
877 (WCHAR_BUFLEN): Likewise.
878 (WCHAR_BUFLEN_MAX): Likewise.
879 (struct converted_character): New structure.
880 (count_next_character): New function.
881 (print_converted_chars_to_obstack): New function.
882 (generic_printstr): Rewrite using count_next_character
883 and print_converted_chars_to_obstack.
885 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
887 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
888 while executing the gdb command.
889 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
890 are called from prompt_for_continue.
891 * tui/tui-io.c (tui_redisplay_readline): Likewise.
893 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
897 * tui/tui.c (tui_rl_command_key): Do not call execute_command
898 but insert the command to execute in readline's buffer.
900 2012-11-09 Tom Tromey <tromey@redhat.com>
902 * gdbarch.sh (target_gdbarch): Remove macro.
903 (get_target_gdbarch): Rename to target_gdbarch.
904 * gdbarch.c, gdbarch.h: Rebuild.
905 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
906 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
907 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
908 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
909 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
910 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
911 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
912 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
913 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
914 procfs.c, progspace.c, ravenscar-thread.c, record.c,
915 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
916 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
917 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
918 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
919 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
920 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
921 target-descriptions.c, target.c, target.h, tracepoint.c,
922 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
923 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
924 python/py-inferior.c, python/python.c: Update.
926 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
928 * source.c (print_source_lines_base): Add fullname field giving
929 full path to file in mi output.
930 * NEWS: Mention the new fullname field.
932 2012-11-09 Yao Qi <yao@codesourcery.com>
934 * NEWS: Mention the fix to the ambiguity of 'fo' command.
936 2012-11-09 Pedro Alves <palves@redhat.com>
940 * infrun.c: Include target-descriptions.h.
941 (follow_exec): Fetch new target description.
943 2012-11-09 Yao Qi <yao@codesourcery.com>
945 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
948 2012-11-09 Yao Qi <yao@codesourcery.com>
950 * breakpoint.c: Declare set_tracepoint_count.
951 (install_breakpoint): Call set_tracepoint_count if B is a
953 (trace_command): Don't call set_tracepoint_count. Re-indent.
954 (strace_command, ftrace_command):
955 (create_tracepoint_from_upload): Likewise.
957 2012-11-09 Pedro Alves <palves@redhat.com>
959 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
960 (get_target_gdbarch) <gdbarch.h>: New function.
961 (startup_gdbarch) <gdbarch.h>: Declare.
962 <gdbarch.c> (target_gdbarch): Delete.
963 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
964 current inferior's gdbarch.
965 <gdbarch.c> (get_target_gdbarch): New function.
966 * inferior.c: Include target-descriptions.h.
967 (free_inferior): Free target description info.
968 (add_inferior_with_spaces): Set the inferior's initial
970 (clone_inferior_command): Copy the original inferior's target
971 description if it was user specified.
972 (initialize_inferiors): Add comment.
973 * inferior.h (struct target_desc_info): Forward declare.
974 (struct inferior) <gdbarch>: New field.
975 * linux-nat.c: Include target-descriptions.h.
976 (linux_child_follow_fork): Copy the parent's architecture and
977 target description to the child.
978 * target-descriptions.c: Include inferior.h.
979 (struct target_desc_info): New structure, holding the equivalents
981 (target_desc_fetched, current_target_desc)
982 (target_description_filename): ... these removed globals.
983 (get_tdesc_info, target_desc_info_from_user_p)
984 (copy_inferior_target_desc_info, target_desc_info_free): New.
985 (target_desc_fetched, current_target_desc)
986 (target_description_filename): Reimplemented as convenience
988 (tdesc_filename_cmd_string): New global.
989 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
990 tdescs filename ..." commands to the per-inferior equivalent.
991 (show_tdesc_filename_cmd): Get the value to show from the
992 per-inferior description filename.
993 (_initilize_target_descriptions): Change the "set/show tdesc
994 filename" commands' variable.
995 * target-descriptions.h (struct target_desc, struct target_desc_info)
996 (struct inferior): Forward declare.
997 (target_find_description, target_clear_description)
998 (target_current_description): Adjust comments.
999 (copy_inferior_target_desc_info, target_desc_info_free)
1000 (target_desc_info_from_user_p). Declare.
1002 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1004 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1005 (tui_target_wait_hook): Remove.
1006 (tui_install_hooks): Install the about_to_proceed observer.
1007 (tui_remove_hooks): And remove it here.
1009 2012-11-08 Tom Tromey <tromey@redhat.com>
1011 * linux-tdep.c (linux_make_siginfo_note): New function.
1012 (linux_make_corefile_notes): Use it.
1013 * corelow.c (get_core_siginfo): New function.
1014 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1016 2012-11-08 Tom Tromey <tromey@redhat.com>
1019 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1020 (zlib_decompress_section): Remove.
1021 (gdb_bfd_map_section): Only check for compressed section
1022 in mmap case. Use bfd_get_full_section_contents.
1023 * osabi.c (check_note): Add 'sectsize' argument. Read
1025 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1026 section data. Update for check_note change.
1027 * xcoffread.c (xcoff_initial_scan): Use
1028 bfd_get_full_section_contents.
1029 * py-auto-load.c (auto_load_section_scripts): Use
1030 bfd_get_full_section_contents.
1031 * contrib/cc-with-tweaks.sh: Add -Z option.
1033 2012-11-08 Tom Tromey <tromey@redhat.com>
1035 * python/py-bpevent.c: Include defs.h.
1036 * python/py-continueevent.c: Include defs.h.
1037 * python/py-event.c: Include defs.h.
1038 * python/py-event.h: Don't include defs.h.
1039 * python/py-events.h: Don't include defs.h.
1040 * python/py-evts.c: Include defs.h.
1041 * python/py-exitedevent.c: Include defs.h.
1042 * python/py-newobjfileevent.c: Include defs.h.
1043 * python/py-signalevent.c: Include defs.h.
1044 * python/py-stopevent.c: Include defs.h.
1045 * python/py-threadevent.c: Include defs.h.
1047 2012-11-08 Pierre Muller <muller@sourceware.org>
1049 * update-web-ari.sh (print_heading): Add number of files
1051 (nb_files): New variable counting the number of sources
1052 files found by gdb_find.sh script.
1053 (debug_awk): New variable to allow extra debug output.
1054 (indexes): Add more information if DEBUG_AWK is set.
1056 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1058 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1059 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1060 following the change in PLT call stubs on linker.
1062 2012-11-08 Pierre Muller <muller@sourceware.org>
1064 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1065 as default language.
1066 (AWK): Use = instead of == for sh test to avoid warning.
1067 (Linux rule): Correct [:digit] into [[:digit:]].
1068 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1069 (vasprintf rule): Adapt to common subdirectory moves.
1070 (xasprintf rule): Idem.
1071 (xvasprintf rule): Idem.
1072 (var_boolean rule): Accept occurence in == or != test.
1074 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1076 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1078 * tui/tui-hooks.c (tui_inferior_exit): New function.
1079 (tui_detach_hook): Remove.
1080 (tui_install_hooks): Install the inferior exit observer.
1081 (tui_remove_hooks): Remove it.
1083 2012-11-08 Yao Qi <yao@codesourcery.com>
1086 * source.c (_initialize_source): Call add_com_alias to abbreviate
1087 'forward-search' as 'fo'.
1089 2012-11-07 Pedro Alves <palves@redhat.com>
1091 * arm-tdep.c: Make defs.h be the first include.
1092 * coff-pe-read.c: Ditto.
1094 * go32-nat.c: Ditto.
1095 * i386-nat.c: Ditto.
1096 * ppcnbsd-nat.c: Ditto.
1097 * ada-varobj.h: Don't include defs.h.
1098 * i386-darwin-tdep.h: Ditto.
1099 * i386-nat.h: Ditto.
1101 2012-11-07 Pedro Alves <palves@redhat.com>
1103 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1106 2012-11-07 Pierre Muller <muller@sourceware.org>
1108 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1109 File already uses "gdb_dirent.h" header.
1111 2012-11-07 Yao Qi <yao@codesourcery.com>
1113 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1116 2012-11-06 Tom Tromey <tromey@redhat.com>
1118 * target.h (inferior_has_forked, inferior_has_vforked)
1119 (inferior_has_execd, inferior_has_called_syscall): Remove
1122 2012-11-06 Pierre Muller <muller@sourceware.org>
1124 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1125 add missing internalization markup.
1127 2012-11-06 Pedro Alves <palves@redhat.com>
1131 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1133 2012-11-06 Pierre Muller <muller@sourceware.org>
1135 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1138 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1140 * gnulib/update-gnulib.sh: New script.
1142 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1144 * MAINTAINERS: Update my email address.
1146 2012-11-05 Tom Tromey <tromey@redhat.com>
1148 * frame.c (put_frame_register): Don't use temporary buffer.
1150 2012-11-05 Pedro Alves <palves@redhat.com>
1152 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1153 child. Clear 'pending_detach'.
1154 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1155 'pending_detach' in the vfork parent.
1157 2012-11-05 Doug Evans <dje@google.com>
1159 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1160 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1161 * dwarf2read.c: #include "elf-bfd.h".
1162 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1163 (dwop_section_names): Renamed from dwo_section names. All uses
1164 updated. Add entries for .debug_cu_index, .debug_tu_index.
1165 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1167 (struct dwp_sections): New type.
1168 (struct virtual_dwo_sections): New type.
1169 (struct dwp_hash_table): New type.
1170 (struct dwp_file): New type.
1171 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1172 read in. Handle DWOs coming from DWP files.
1173 (lookup_dwo_file_slot): New function.
1174 (dwarf2_locate_dwo_sections): Move definition closer to use.
1175 (create_dwo_debug_info_hash_table_reader): Renamed from
1176 create_debug_info_hash_table_reader. All callers updated.
1177 (create_dwo_debug_info_hash_table): Renamed from
1178 create_debug_info_hash_table. All callers updated.
1179 (create_dwp_hash_table): New function.
1180 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1181 (lookup_dwo_in_dwp): New function.
1182 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1183 is_dwp. All callers updated.
1184 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1185 (open_and_init_dwo_file): Renamed from init_dwo_file.
1186 All callers updated.
1187 (lookup_dwo_file): Delete.
1188 (dwarf2_locate_dwp_sections): New function.
1189 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1190 (allocate_dwp_loaded_cutus_table): New function.
1191 (open_and_init_dwp_file): New function.
1192 (lookup_dwo_cutu): New function.
1193 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1195 2012-11-03 Yao Qi <yao@codesourcery.com>
1198 * breakpoint.c (trace_pass_set_count): Call
1199 observer_notify_breakpoint_modified instead of
1200 observer_notify_tracepoint_modified.
1201 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1203 2012-11-02 Tom Tromey <tromey@redhat.com>
1205 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1206 argument to complete_on_enum.
1208 2012-11-02 Tom Tromey <tromey@redhat.com>
1210 * configure: Rebuild.
1211 * configure.ac (build_warnings): Add -Wempty-body.
1212 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1213 * remote.c (handle_notification): Use braces for empty 'else' body.
1214 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1216 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1218 * solib-som.c (som_relocate_section_addresses): Use braces
1219 for empty 'else' body.
1220 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1221 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1223 2012-11-02 Pedro Alves <palves@redhat.com>
1227 * infrun.c (handle_inferior_event)
1228 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1229 null_ptid before handling a vfork child exec or exit. Switch to
1230 the event ptid afterwards.
1232 2012-11-02 Yao Qi <yao@codesourcery.com>
1234 * std-operator.def: Remove OP_LABELED.
1235 * eval.c: Remove the declaration of 'get_label'.
1236 (get_label): Remove.
1237 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1239 Remove local variable 'variantno' and related code.
1240 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1242 * expprint.c (print_subexp_standard): Likewise.
1243 (dump_subexp_body_standard): Likewise.
1244 * parse.c (operator_length_standard): Likewise.
1246 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1248 Incorporate ARI web page generator into GDB sources.
1249 * contrib/ari/create-web-ari-in-src.sh: New file.
1250 * contrib/ari/gdb_ari.sh: New file.
1251 * contrib/ari/gdb_find.sh: New file.
1252 * contrib/ari/update-web-ari.sh: New file.
1254 2012-10-31 Tom Tromey <tromey@redhat.com>
1256 * gdbarch.c: Rebuild.
1257 * gdbarch.sh: Remove references to gdbarch_swap.
1258 * corelow.c (core_open): Remove obsolete comment.
1260 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1263 * c-typeprint.c (c_print_type): Don't print a space for vector
1264 types, this is handled within the suffix.
1265 (c_type_print_varspec_suffix): Add a space to vector suffix.
1267 2012-10-26 Pedro Alves <palves@redhat.com>
1269 * amd64-tdep.c (amd64_relocate_instruction): Use
1270 store_unsigned_integer instead of memcpy.
1271 * i386-tdep.c (i386_relocate_instruction): Ditto.
1273 2012-10-26 Pedro Alves <palves@redhat.com>
1275 * infrun.c (handle_inferior_event): Merge handling of
1276 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1279 2012-10-26 Pedro Alves <palves@redhat.com>
1281 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1284 2012-10-26 Pedro Alves <palves@redhat.com>
1286 * target.c (target_waitstatus_to_string): Handle
1287 TARGET_WAITKIND_VFORK_DONE.
1289 2012-10-26 Pedro Alves <palves@redhat.com>
1291 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1292 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1294 2012-10-24 Tristan Gingold <gingold@adacore.com>
1296 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1299 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1301 * ravenscar-thread.c (ravenscar_wait): Only update the list
1302 of threads and inferior_ptid if the inferior is still alive.
1304 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1306 * ada-lang.c (is_known_support_routine): Use lbasename when
1307 matching the symtab's filename against
1308 known_runtime_file_name_patterns.
1310 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1312 * ada-lang.c (ada_same_array_size_p): New function.
1313 (ada_promote_array_of_integrals): New function.
1314 (coerce_for_assign): Add handling of arrays where the elements
1315 are integrals of a smaller size than the size of the target
1318 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1320 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1321 against maximum exponent value.
1323 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1325 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1328 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1330 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1331 strip typedef layer when computing the fixed type's field type,
1332 only when computing its size.
1334 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1337 * i386-tdep.c (i386_return_value): Handle complex double and long
1340 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1342 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1343 New local variable args_len.
1344 Quote the name of the executable when computing the command line.
1346 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1351 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1353 * amd64-tdep.c (amd64_classify): Classify complex types.
1354 (amd64_return_value): Handle the COMPLEX_X87 class.
1356 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1358 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1359 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1361 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1363 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1365 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1366 to amd64_windows_auto_wide_charset.
1368 2012-10-23 Yao Qi <yao@codesourcery.com>
1370 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1371 * event-top.h: Remove its declaration.
1372 (async_request_quit): Call mark_async_signal_handler instead of
1373 mark_async_signal_handler_wrapper.
1374 (async_do_nothing, async_disconnect): Likewise.
1375 (async_stop_sig): Likewise.
1376 * remote.c (handle_remote_sigint): Likewise.
1377 (handle_remote_sigint_twice): Likewise.
1379 2012-10-23 Yao Qi <yao@codesourcery.com>
1381 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1382 with 'static struct async_signal_handler *'.
1383 (sighup_token, sigquit_token, sigstp_token): Likewise.
1385 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1387 * gdbarch.sh (function_list): Use 'pstring' when printing
1388 a variable which could return NULL.
1389 * gdbarch.c: Regenerate.
1391 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1392 Tom Tromey <tromey@redhat.com>
1394 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1395 inneffective if condition by gdb assertion. Add function
1396 description comment.
1398 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1400 * parser-defs.h (struct exp_descriptor): Document constraint
1401 on return value for "op_name" callbacks.
1403 2012-10-18 Tom Tromey <tromey@redhat.com>
1405 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1406 * symtab.c (iterate_over_some_symtabs): Constify.
1407 * source.h (symtab_to_fullname): Return 'const char *'.
1408 * source.c (symtab_to_fullname): Return 'const char *'.
1409 * python/py-symtab.c (stpy_fullname): Constify.
1410 * cli/cli-cmds.c (edit_command): Constify.
1411 * breakpoint.c (print_breakpoint_location)
1412 (update_static_tracepoint): Constify.
1414 2012-10-18 Tom Tromey <tromey@redhat.com>
1416 * breakpoint.c (compare_breakpoints): Fix comparison.
1418 2012-10-18 Tom Tromey <tromey@redhat.com>
1420 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1421 gdb_wchar_t to convert_between_encodings.
1423 2012-10-17 Yao Qi <yao@codesourcery.com>
1425 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1426 more parameter 'inferior'.
1427 * corefile.c (write_memory_with_notification): Caller update.
1429 * mi/mi-cmd-var.c: Include "mi-main.h".
1430 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1431 to 1 and restore it later.
1432 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1433 and "data-write-memory-bytes.
1434 * mi/mi-interp.c: Include objfiles.h.
1435 (mi_interpreter_init): Call observer_attach_memory_changed.
1436 (mi_memory_changed): New.
1437 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1440 * NEWS: Mention new MI notification "memory-changed".
1442 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1444 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1446 2012-10-15 Doug Evans <dje@google.com>
1448 New option -nh: inhibit loading of ~/.gdbinit.
1449 * NEWS: Mention -nh.
1450 * main.c (captured_main): Recognize and process -nh.
1451 (print_gdb_help): Mention -nh.
1452 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1454 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1458 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1460 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1461 nor pc_regnum_from_eax.
1462 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1463 nor pc_regnum_from_eax.
1465 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1467 Fix entry values resolving in inlined frames.
1468 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1469 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1472 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1474 * configure.ac: Build with -DMS_WIN64 if building with Python
1475 enabled using GCC on amd64-windows.
1476 * configure: Regenerate.
1478 2012-10-15 Tom Tromey <tromey@redhat.com>
1481 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1484 2012-10-15 Tom Tromey <tromey@redhat.com>
1487 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1489 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1491 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1492 reset thread numbering back to 1.
1494 2012-10-11 Doug Evans <dje@google.com>
1496 PR breakpoints/14643.
1497 * linespec.c (struct ls_parser): New member keyword_ok.
1498 (linespec_lexer_lex_string): Add comment.
1499 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1501 (parse_linespec): Set keyword_ok.
1503 2012-10-10 Doug Evans <dje@google.com>
1505 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1506 "0x" prefix on address in log message.
1508 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1509 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1510 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1511 (lookup_dwo_file): Add const to dwo_name parameter.
1512 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1514 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1516 Fix crash during stepping on ppc32.
1517 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1520 2012-10-03 Doug Evans <dje@google.com>
1523 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1525 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1527 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1528 output and use uint32_t not long to ensure 4 byte size.
1530 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1532 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1535 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1537 * target.c (simple_search_memory): Include access length in
1540 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1541 Edjunior Machado <emachado@linux.vnet.ibm.com>
1544 * solib.c (solib_find): Prevent GDB from loading native libraries when
1545 debugging a cross-target corefile.
1547 2012-09-28 selven <pcthegreat@gmail.com>
1549 Make definition match declaration.
1551 * regcache.c (regcache_register_status): Change return type to
1552 enum register_status.
1554 2012-09-28 Yao Qi <yao@codesourcery.com>
1556 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1557 write_memory_with_notification instead of write_memory.
1558 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1559 instead of target_write_memory.
1561 2012-09-28 Yao Qi <yao@codesourcery.com>
1563 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1564 when the length of content is not an even number.
1566 2012-09-27 Tom Tromey <tromey@redhat.com>
1568 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1569 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1571 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1573 * sol-thread.c (sol_thread_fetch_registers)
1574 (sol_thread_store_registers): Delete commented out code.
1576 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1578 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1579 Move these functions to sparc-sol-thread.c.
1580 * sparc-sol-thread.c: New file.
1581 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1582 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1584 * configure: Regenerate.
1586 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1588 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1589 Remove commented-out code.
1591 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1593 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1594 Enable this code for sparc hosts only.
1596 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1598 * procfs.h (procfs_find_LDT_entry): Add declaration.
1599 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1600 function procfs_find_LDT_entry.
1602 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1604 * procfs.c (proc_get_LDT_entry): Make static.
1606 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1608 * procfs.c (proc_find_memory_regions): Fix declaration.
1610 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1612 * amd64-tdep.c (amd64_return_value): Revert previous change
1613 that used TYPE_LENGTH directly.
1614 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1615 (bfin_store_return_value): Likewise.
1616 * cris-tdep.c (cris_store_return_value): Likewise.
1617 (cris_extract_return_value): Likewise.
1618 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1619 * hppa-tdep.c (hppa64_return_value): Likewise.
1620 * lm32-tdep.c (lm32_store_return_value): Likewise.
1621 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1622 * spu-tdep.c (spu_value_from_register): Likewise.
1623 * vax-tdep.c (vax_return_value): Likewise.
1625 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1627 * gdbtypes.c (lookup_array_range_type): Expand parameters
1628 LOW_BOUND and HIGH_BOUND to LONGEST.
1629 (lookup_string_range_type): Likewise.
1630 * gdbtypes.h (lookup_array_range_type): Likewise.
1631 (lookup_string_range_type): Likewise.
1632 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1633 Expand HIGHBOUND to ssize_t.
1634 (value_string): Likewise.
1635 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1636 (value_string): Likewise.
1638 2012-09-27 Yao Qi <yao@codesourcery.com>
1640 PR breakpoints/13898
1641 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1642 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1643 per breakpoint type.
1645 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1647 * procfs.c: Add gdb_bfd header.
1648 * rs6000-nat.c: Likewise.
1649 * solib-pa64.c: Likewise.
1650 * spu-linux-nat.c: Likewise.
1651 * windows-nat.c: Likewise.
1653 2012-09-26 Tom Tromey <tromey@redhat.com>
1655 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1657 2012-09-26 Tom Tromey <tromey@redhat.com>
1659 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1660 (read_common_block): Handle child DIEs with
1661 DW_AT_data_member_location.
1662 (new_symbol_full): Add special case for common blocks.
1664 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1665 Tom Tromey <tromey@redhat.com>
1667 * dwarf2read.c (read_common_block): Rewrite.
1668 (new_symbol_full): Handle DW_TAG_common_block.
1669 * f-lang.c (head_common_list, find_common_for_function):
1671 * f-lang.h (struct common_entry, struct saved_f77_common,
1672 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1673 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1674 BLANK_COMMON_NAME_LOCAL): Remove.
1675 (struct common_block): New.
1676 * f-valprint.c (list_all_visible_commons): Remove.
1677 (info_common_command_for_block): New function.
1678 (info_common_command): Use it.
1679 * stack.c (iterate_over_block_locals): Special case for
1680 COMMON_BLOCK_DOMAIN.
1681 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1683 (struct general_symbol_info) <value.common_block>: New field.
1684 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1686 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1687 Tom Tromey <tromey@redhat.com>
1689 * f-lang.c (allocate_saved_bf_node,
1690 allocate_saved_function_node, allocate_saved_f77_common_node,
1691 allocate_common_entry_node, tail_common_list, current_common,
1692 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1693 tmp_bf_ptr, add_common_block, add_common_entry,
1694 find_first_common_named, patch_common_entries,
1695 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1696 global_remote_debug, get_bf_for_fcn, saved_function_list,
1697 saved_function_list_end, clear_function_list, struct saved_fcn,
1698 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1699 SAVED_BF, SAVED_BF_PTR): Remove.
1700 * f-lang.h (tail_common_list, current_common,
1701 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1702 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1703 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1704 real_main_c_value): Remove.
1705 * f-valprint.c (there_is_a_visible_common_named): Remove.
1707 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1709 * breakpoint.c (update_global_location_list): Ignore previous
1710 duplicate status of a breakpoint when starting a new scan for
1711 duplicate breakpoints.
1713 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1714 PR breakpoints/14419
1715 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1716 support LLVM compiler.
1718 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1720 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1721 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1722 (bfin_store_return_value): Likewise.
1723 * cris-tdep.c (cris_store_return_value): Likewise.
1724 (cris_extract_return_value): Likewise.
1725 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1726 * hppa-tdep.c (hppa64_return_value): Likewise.
1727 * lm32-tdep.c (lm32_store_return_value): Likewise.
1728 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1729 * spu-tdep.c (spu_value_from_register): Likewise.
1730 * vax-tdep.c (vax_return_value): Likewise.
1732 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1734 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1735 parameter LEN to ssize_t.
1737 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1739 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1741 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1743 (alpha_store_return_value): Likewise.
1744 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1745 (amd64_push_arguments): Likewise.
1746 * ax-gdb.c (gen_trace_static_fields): Likewise.
1747 (gen_traced_pop): Likewise.
1748 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1749 * breakpoint.c (update_watchpoint): Likewise.
1750 * findcmd.c (parse_find_args): Use local variable for type
1752 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1753 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1754 (h8300_store_return_value): Likewise.
1755 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1756 Use i386_darwin_arg_type_alignment directly.
1757 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1758 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1759 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1760 (m68hc11_extract_return_value): Likewise.
1761 * mep-tdep.c (mep_push_dummy_call): Likewise.
1762 * printcmd.c (float_type_from_length): Likewise.
1763 * s390-tdep.c (s390_value_from_register): Likewise.
1764 * stack.c (read_frame_arg): Likewise.
1765 * tracepoint.c (encode_actions_1): Likewise.
1766 * valops.c (value_fetch_lazy): Use local variable for type
1767 instead of length. Use TYPE_LENGTH directly.
1768 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1770 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1772 * symtab.c (skip_prologue_sal): Fix typo in comment.
1774 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1776 * linespec.c (create_sals_line_offset): Fix typo in comment.
1778 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1780 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1781 use plongest to print the array size.
1783 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1785 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1786 * p-valprint.c (pascal_type_print_base): Likewise.
1788 2012-09-22 Yao Qi <yao@codesourcery.com>
1790 * remote.c (remote_get_trace_status): Remove setting default
1791 values of fields of 'ts'.
1793 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1795 Fix internal error on canonicalization of clang types.
1796 * cp-name-parser.y (operator): New comment at make_operator call for
1797 new, delete, new[] and delete[].
1798 (exp): Use "sizeof ". Add new comment at make_operator call.
1800 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 Fix disassemble without parameters in tailcall frame.
1803 * cli/cli-cmds.c (disassemble_current_function): Use
1804 get_frame_address_in_block.
1806 2012-09-21 Tom Tromey <tromey@redhat.com>
1808 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1809 TYPE_CODE_UNION>: Unify, removing a goto.
1811 2012-09-21 Tom Tromey <tromey@redhat.com>
1813 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1815 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1817 * findvar.c (read_frame_register_value): Mark the result value as
1818 optimized out if any of the input registers have been optimized out.
1820 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1822 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1824 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1826 * eval.c (evaluate_subexp_standard): Eliminate single-use
1829 2012-09-21 Yao Qi <yao@codesourcery.com>
1831 * mi/mi-interp.c: Declare mi_record_changed.
1832 (mi_interpreter_init): Call observer_attach_record_changed.
1833 (mi_record_changed): New.
1834 * record.c (record_open): Call observer_notify_record_changed.
1835 (cmd_record_stop): Call observer_notify_record_changed.
1838 2012-09-20 Tom Tromey <tromey@redhat.com>
1841 * python/python.c (finalize_python): New function.
1842 (_initialize_python): Make a final cleanup.
1844 2012-09-19 Doug Evans <dje@google.com>
1846 * buildsym.h (param_symbols): Delete, unused.
1847 (context_stack): Delete member "params", unused.
1848 * buildsym.c (push_context): Update.
1849 * dwarf2read.c (read_func_scope): Update.
1851 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1853 * sh-tdep.c (sh_register_convert_to_virtual)
1854 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1855 all callers. Just do a memcpy if not the little-endian case.
1857 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1858 set_gdbarch_double_format and set_gdbarch_long_double_format.
1859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1860 set_gdbarch_double_format.
1861 * sh-tdep.c (sh_gdbarch_init): Likewise.
1863 * NEWS: Document the removal of SH's 'regs' command.
1864 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1867 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1869 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1872 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1874 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1875 language when iterating over symbols.
1877 2012-09-18 Yao Qi <yao@codesourcery.com>
1879 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1880 (mi_interpreter_init): Call observer_attach_tsv_created and
1881 observer_attach_tsv_deleted.
1882 (mi_tsv_created, mi_tsv_deleted): New.
1883 * tracepoint.c (delete_trace_state_variable): Call
1884 observer_notify_tsv_deleted.
1885 (trace_variable_command): Call observer_notify_tsv_created.
1886 (delete_trace_variable_command): Call
1887 observer_notify_tsv_deleted.
1888 (create_tsv_from_upload): Call observer_notify_tsv_created.
1891 2012-09-18 Yao Qi <yao@codesourcery.com>
1893 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1894 if traceframe changed.
1895 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1897 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1898 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1899 'traceframe_changed'.
1900 (mi_traceframe_changed): New.
1901 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1903 * NEWS: Mention the new MI notification.
1905 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1907 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1909 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1912 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1913 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1914 Extend code also for PaX support. Convert all gdb_assert to warning
1917 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1919 Implement auto-load user conveniences suggested by Doug Evans.
1920 * auto-load.c: Include top.h.
1921 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1922 (_initialize_auto_load): New variable scripts_directory_help. Mention
1923 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1924 scripts-directory. Document in online help one can use also files for
1925 set auto-load safe-path.
1926 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1927 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1929 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1931 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1934 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1936 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1937 ELTLEN and use TYPE_LENGTH directly.
1938 (m2_val_print): Likewise.
1939 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1940 variable LEN and use TYPE_LENGTH directly.
1941 (m68k_svr4_store_return_value): Likewise.
1942 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1943 ARGLEN and use TYPE_LENGTH directly.
1944 (mips_o64_push_dummy_call): Likewise.
1945 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1946 variable LENGTH and use TYPE_LENGTH directly.
1947 (s390_function_arg_float): Likewise.
1948 (s390_function_arg_integer): Likewise.
1949 (s390_push_dummy_call): Likewise.
1950 (s390_return_value_convention): Likewise.
1951 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1952 TYPE_LENGTH directly.
1954 2012-09-17 Yao Qi <yao@codesourcery.com>
1956 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1957 Update comment to add_setshow_integer_cmd.
1958 * cli/cli-setshow.c (do_set_command): Handle case
1959 'var_zuinteger_unlimited'.
1960 (do_show_command): Likewise.
1961 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1962 for command 'remotetimeout'.
1963 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1965 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1966 for command 'set listsize'.
1968 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1970 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1973 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1977 (frame_pop): Drop also TAILCALL_FRAME frames.
1978 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1980 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 Pedro Alves <palves@redhat.com>
1984 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1985 function start if we are already at function start. Both for
1986 reverse-next and for reverse-step into function without line number
1989 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 Code cleanup - rename 'inline' depth to 'artificial' depth.
1992 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1993 frame_id_artificial_p, extend the comment.
1994 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1995 * frame.c (fprint_frame_id): Rename at a user, change debug output
1996 text to "artificial=".
1997 (skip_inlined_frames): Rename to ...
1998 (skip_artificial_frames): ... here. Extend the comment.
1999 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2000 (frame_id_inlined_p): Rename to ...
2001 (frame_id_artificial_p): ... here. Rename at a user.
2002 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2003 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2005 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2007 (frame_id_inlined_p): Rename to ...
2008 (frame_id_artificial_p): ... here.
2009 * inline-frame.c (inline_frame_this_id): Rename at a user.
2011 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2013 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2014 vector variables using vector_size syntax rather than array
2017 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2019 * valarith.c (value_concat): Replace unsafe ALLOCA with
2022 2012-09-14 Pedro Alves <palves@redhat.com>
2024 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2026 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2028 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2029 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2030 data-directory as appropriate.
2032 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2034 * printcmd.c (ui_printf): Eliminate single-use variable
2037 2012-09-14 Yao Qi <yao@codesourcery.com>
2038 Pedro Alves <palves@redhat.com>
2040 * valops.c (value_assign): Move observer_notify_target_changed
2041 below to replace reinit_frame_cache.
2043 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2045 Refactor Python "gdb" module into a proper Python package, by
2046 introducing a new "_gdb" module for code implemented in C, and
2047 using reload/__import__ instead of exec.
2048 * python/lib/gdb/__init__.py: Import * from _gdb.
2049 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2050 prompt_hook, sys.argv): Moved from finish_python_initialization.
2051 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2052 (packages, auto_load_packages): New list and function replacing
2053 module_dict and auto-loading code, using __file__ instead of
2054 gdb.PYTHONDIR and reload/__import__ instead of exec.
2055 (GdbSetPythonDirectory): Replacing function of the same name
2056 from finish_python_initialization, using reload/__import__ instead
2057 of exec, as well as call auto_load_packages.
2058 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2059 gdb_python_module and not gdb_module.
2060 * python/python-internal.h (gdb_python_module): Declare.
2061 * python/python.c (gdb_python_module): New global.
2062 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2063 (_initialize_python): Rename gdb module to _gdb.
2064 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2065 (finish_python_initialization): Move Python code to
2066 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2069 2012-09-13 Pedro Alves <palves@redhat.com>
2071 * Makefile.in (COMMON_OBS): Add registry.o.
2072 * registry.c: New file.
2073 * registry.h (struct registry_container): Declare.
2074 (registry_data_callback): New typedef.
2075 (struct registry_data, struct registry_data_registration, struct
2076 registry_data_registry): New type.
2077 (register_data_with_cleanup, registry_alloc_data)
2078 (registry_callback_adaptor, registry_clear_data)
2079 (registry_container_free_data, registry_set_data, registry_data):
2081 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2082 the new common structures and functions.
2083 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2086 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2088 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2089 there is an error inserting hardware breakpoints and use the
2090 error message from the target.
2092 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2093 Catch this exception and print the error message contained within. Do not
2094 print the default hardware error breakpoint message in this case.
2096 2012-09-12 Doug Evans <dje@google.com>
2098 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2101 2012-09-11 Doug Evans <dje@google.com>
2103 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2104 .gdb_index symbol attributes if there are none.
2106 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2108 * symtab.h (struct minimal_symbol) [has_size]: New field.
2109 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2110 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2111 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2112 minimal symbols if the symbol's size is actually known.
2113 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2114 of msymbol's size field. Add comment.
2115 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2116 SET_MSYMBOL_SIZE to set the minimal symbol size.
2118 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2120 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2121 minimal_symbol struct object, rather than setting some of its
2124 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2126 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2127 passed_a_ptr flag when displaying typedef types.
2129 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2131 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2132 the optimized_out flag is preserved.
2134 2012-09-10 Anthony Green <green@moxielogic.com>
2136 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2137 prologue changes in GCC.
2139 2012-09-10 Keith Seitz <keiths@redhat.com>
2142 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2143 (BOOL_CONVERSION_BADNESS): ... this.
2144 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2145 (rank_one_type): Allow all boolean conversions
2146 permitted by the standard.
2148 2012-09-06 Tom Tromey <tromey@redhat.com>
2150 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2151 Don't decref py_objfile.
2153 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2155 Do not enable -lmcheck by default when Python is enabled with
2157 * configure.ac: (python_has_threads) New variable, by testing
2158 if WITH_THREAD is defined in Python.h.
2159 Move --enable-lmcheck after --with-python.
2160 Do not enable -lmcheck by default if python_has_threads=yes.
2161 Warn if --enable-lmcheck and python_has_threads=yes.
2162 * configure: Regenerate.
2164 2012-08-31 Yao Qi <yao@codesourcery.com>
2166 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2167 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2168 Update some commands.
2169 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2170 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2173 2012-08-31 Yao Qi <yao@codesourcery.com>
2175 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2177 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2179 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2181 2012-08-29 Doug Evans <dje@google.com>
2183 * main.c (print_gdb_help): Remove reference to
2184 --use-deprecated-index-sections.
2186 2012-08-28 Yao Qi <yao@codesourcery.com>
2188 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2189 (init_cmds): Call add_setshow_uinteger_cmd for command
2190 'max-user-call-depth'.
2191 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2192 declaration of 'max_user_call_depth'.
2193 * frame.c (backtrace_limit): Add 'unsigned'.
2194 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2196 * remote.c (remoteaddresssize): Add 'unsigned'.
2197 (remote_address_masked): Change local var 'address_size' to
2199 (_initialize_remote): Call add_setshow_uinteger_cmd for
2200 'remoteaddresssize'.
2201 * top.c (history_size): Add 'unsigned'.
2202 (show_commands): Change local variables to 'unsigned'.
2203 (set_history_size_command): Don't check history_size is negative.
2204 Adjust the condition to call unstifle_history and set history_size
2207 2012-08-28 Pedro Alves <palves@redhat.com>
2211 * infcmd.c (default_print_one_register_info): New, factored out
2212 from default_print_registers_info.
2213 (default_print_registers_info): Use it. Mark value unavailable if
2215 (registers_info): Print user registers with
2216 default_print_one_register_info.
2218 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2221 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2222 is not NULL before referencing it.
2224 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2226 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2227 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2230 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2231 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 * auto-load.c (auto_load_objfile_script): Rename to ...
2234 (auto_load_objfile_script_1): ... here, change variable realname to
2235 parameter realname, document it, add return value, add variable retval.
2236 (auto_load_objfile_script): New function.
2238 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2241 followed by a whitespace.
2243 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2246 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2247 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2248 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2251 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2253 * memattr.c (create_mem_region): Fix memory region overlapping
2256 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2258 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2259 with xmalloc/cleanup.
2260 * mt-tdep.c (mt_push_dummy_call): Likewise.
2261 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2262 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2264 2012-08-24 Yao Qi <yao@codesourcery.com>
2266 * jv-exp.y (push_expression_name): Add "." at the end of error
2269 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2271 Document how to return from "python-interactive" to GDB.
2272 * python/python.c (_initialize_python): Update documentation.
2274 2012-08-23 Pedro Alves <palves@redhat.com>
2276 * infrun.c (_initialize_infrun) <handle command help text>:
2277 Mention that multiple signals are supported.
2279 2012-08-23 Pedro Alves <palves@redhat.com>
2281 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2284 2012-08-23 Yao Qi <yao@codesourcery.com>
2286 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2287 (tfind_1): Don't call registers_changed, set_traceframe_num,
2288 and clear_traceframe_info.
2289 Call set_current_traceframe.
2290 (set_current_traceframe): call set_traceframe_num.
2292 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2294 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2295 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2297 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2299 Enable readline in Python in a GDB-specific way and block the
2300 standard Python readline module to prevent conflicts with GDB.
2301 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2302 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2303 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2304 * python/py-gdb-readline.c: New file.
2305 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2307 * python/python.c (_initialize_python): Call
2308 gdbpy_initialize_gdb_readline.
2310 2012-08-22 Keith Seitz <keiths@redhat.com>
2312 * defs.h: Include build-gnulib/config.h
2314 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2316 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2319 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2321 Add a new "python-interactive" command that starts a standard
2322 Python interactive prompt with "pi" as alias, and add "py" as
2323 an alias to "python".
2324 * NEWS: Mention the new commands.
2325 * python/python.c (eval_python_command): New function.
2326 (python_interactive_command): For "python-interactive" with
2327 arguments, call eval_python_command. For "python-interactive"
2328 without arguments, call PyRun_InteractiveLoop.
2329 (_initialize_python): Add "python-interactive" command with
2330 "pi" as alias, and add "py" as an alias to "python".
2332 2012-08-22 Tom Tromey <tromey@redhat.com>
2334 * defs.h (quit_flag): Don't declare.
2335 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2336 (QUIT): Use new functions.
2337 * event-top.c (command_handler): Use clear_quit_flag.
2338 (handle_sigint): Use set_quit_flag.
2339 (async_request_quit): Use check_quit_flag. Don't check
2341 * exceptions.c (throw_exception): Use clear_quit_flag.
2342 * main.c (captured_main): Use clear_quit_flag.
2343 * python/python.c (clear_quit_flag, set_quit_flag)
2344 (check_quit_flag): New functions.
2345 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2347 * remote.c (remote_wait_as): Use check_quit_flag,
2349 (remote_start_remote): Call QUIT.
2350 * symfile.c (load_progress): Use check_quit_flag.
2351 * top.c (command_loop): Use clear_quit_flag.
2352 (command_line_input): Call QUIT.
2353 * utils.c (quit_flag): Conditionally define.
2354 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2356 (prompt_for_continue): Call QUIT. Use quit, not
2358 * remote-mips.c (mips_expect_timeout): Call QUIT.
2359 * monitor.c (monitor_expect): Call QUIT.
2361 2012-08-22 Tom Tromey <tromey@redhat.com>
2363 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2364 (async_init_signals): Update.
2365 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2366 (SIGWINCH_HANDLER_BODY): Remove.
2368 2012-08-22 Tom Tromey <tromey@redhat.com>
2370 * jit.c (jit_object_close_impl): Don't malloc the objfile
2372 * objfiles.c (allocate_objfile): Don't malloc the objfile
2374 (free_objfile): Don't free the objfile name.
2375 * objfiles.h (struct objfile) <name>: Update comment.
2376 * symfile.c (reread_symbols): Fix reference counting. Don't
2377 malloc objfile name.
2379 2012-08-22 Tom Tromey <tromey@redhat.com>
2381 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2382 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2383 (symfile_bfd_open): Likewise.
2384 (generic_load): Likewise.
2385 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2386 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2388 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2390 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2391 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2392 (pmon_load_fast): Likewise.
2393 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2394 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2395 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2396 (macho_check_dsym): Likewise.
2397 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2398 (m32r_upload_command): Likewise.
2399 * gdb_bfd.h (gdb_bfd_cache): Declare.
2400 * gdb_bfd.c (struct gdb_bfd_data): New.
2401 (gdb_bfd_cache): New global.
2402 (struct gdb_bfd_cache_search): New.
2403 (hash_bfd): New function.
2405 (gdb_bfd_open): Likewise.
2406 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2407 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2409 * exec.c (exec_file_attach): Use gdb_bfd_open.
2410 * dsrec.c (load_srec): Use gdb_bfd_open.
2412 2012-08-22 Tom Tromey <tromey@redhat.com>
2414 * dwarf2read.c (macro_start_file): Update.
2415 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2416 (free_objfile_per_bfd_storage): Destroy macro_cache.
2417 (allocate_objfile, free_objfile): Update.
2418 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2420 (struct objfile) <macro_cache>: Remove.
2421 * symfile.c (reread_symbols): Update.
2422 * symmisc.c (print_symbol_bcache_statistics): Update.
2423 (print_objfile_statistics): Update.
2425 2012-08-22 Tom Tromey <tromey@redhat.com>
2427 * elfread.c (elf_symtab_read): Update.
2428 * objfiles.c (objfiles_bfd_data): New global.
2429 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2430 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2431 (allocate_objfile, free_objfile): Update.
2432 (_initialize_objfiles): Initialize objfiles_bfd_data.
2433 * objfiles.h (struct objfile_per_bfd_storage): New.
2434 (struct objfile) <per_bfd>: New field.
2435 <filename_cache>: Remove.
2436 (set_objfile_per_bfd): Declare.
2437 * symfile.c (reread_symbols): Update. Call
2438 set_objfile_per_bfd.
2439 (allocate_symtab): Update.
2440 * symmisc.c (print_symbol_bcache_statistics): Update.
2441 (print_objfile_statistics): Print the size of the BFD obstack.
2443 2012-08-22 Tom Tromey <tromey@redhat.com>
2445 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2446 * gdb_bfd.c: Use DEFINE_REGISTRY.
2447 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2448 (gdb_bfd_ref): Call bfd_alloc_data.
2449 (gdb_bfd_unref): Call bfd_free_data.
2451 2012-08-22 Tom Tromey <tromey@redhat.com>
2453 * registry.h (struct registry_fields): New.
2454 (REGISTRY_FIELDS): Redefine.
2455 (REGISTRY_ACCESS_FIELD): New macro.
2456 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2459 2012-08-22 Tom Tromey <tromey@redhat.com>
2461 * auto-load.c (_initialize_auto_load): Update.
2462 * solib-svr4.c (_initialize_svr4_solib): Update
2463 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2464 * solib-darwin.c (_initialize_darwin_solib): Update.
2465 * registry.h: New file.
2466 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2467 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2468 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2469 (register_program_space_data_with_cleanup)
2470 (register_program_space_data, program_space_alloc_data)
2471 (clear_program_space_data, set_program_space_data)
2472 (program_space_data): Don't declare.
2473 * progspace.c: Use DEFINE_REGISTRY.
2474 (struct program_space_data, struct
2475 program_space_data_registration, struct
2476 program_space_data_registry, program_space_data_registry)
2477 (register_program_space_data_with_cleanup)
2478 (register_program_space_data, program_space_alloc_data)
2479 (program_space_free_data, clear_program_space_data)
2480 (set_program_space_data, program_space_data): Remove.
2481 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2482 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2483 (register_objfile_data_with_cleanup, register_objfile_data)
2484 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2486 * objfiles.c: Use DEFINE_REGISTRY.
2487 (struct objfile_data, struct objfile_data_registration, struct
2488 objfile_data_registry, objfile_data_registry)
2489 (register_objfile_data_with_cleanup, register_objfile_data)
2490 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2491 (set_objfile_data, objfile_data): Remove.
2492 (_initialize_objfiles): Update.
2493 * jit.c (_initialize_jit): Update.
2494 * inflow.c (_initialize_inflow): Update.
2495 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2496 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2497 (register_inferior_data_with_cleanup, register_inferior_data)
2498 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2500 * inferior.c: Use DEFINE_REGISTRY.
2501 (struct inferior_data, struct inferior_data_registration, struct
2502 inferior_data_registry, inferior_data_registry)
2503 (register_inferior_data_with_cleanup, register_inferior_data)
2504 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2505 (set_inferior_data, inferior_data): Remove.
2506 * auxv.c (_initialize_auxv): Update.
2507 * ada-lang.c (_initialize_ada_language): Update.
2508 * breakpoint.c (_initialize_breakpoint): Update.
2509 * i386-nat.c (i386_use_watchpoints): Update.
2511 2012-08-22 Tom Tromey <tromey@redhat.com>
2513 * exec.c (exec_close, exec_file_attach): Update.
2514 (add_to_section_table): Initialize 'key' field.
2515 (add_target_sections, remove_target_sections): Add 'key' argument.
2516 * exec.h (add_target_sections, remove_target_sections): Add
2518 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2519 (reload_shared_libraries_1): Update.
2520 * target.h (struct target_section) <key>: New field.
2522 2012-08-22 Tom Tromey <tromey@redhat.com>
2524 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2526 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2528 * symfile.c (allocate_symtab): Use host_address_to_string
2529 function instead of cast of pointer to long which is not
2530 compatible with x86_64-w64-mingw32 build.
2532 2012-08-19 Andrew Pinski <apinski@cavium.com>
2534 * mips-tdep.c (is_octeon): New function.
2535 (is_octeon_bbit_op): New function.
2536 (mips32_next_pc): Handle Octeon's bbit instructions.
2537 (mips32_instruction_has_delay_slot): Likewise.
2539 2012-08-19 Andrew Pinski <apinski@cavium.com>
2541 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2542 before the function.
2544 2012-08-19 Andrew Pinski <apinski@cavium.com>
2546 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2548 2012-08-19 Keith Seitz <keiths@redhat.com>
2551 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2552 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2554 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2556 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2557 The typo broke "make TAGS".
2559 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2563 2012-08-17 Keith Seitz <keiths@redhat.com>
2566 * gdbtypes.c (strict_type_checking): New variable.
2567 (show_strict_type_checking): New function.
2568 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2569 if strict type checking is disabled.
2570 (_initialize_gdbtypes): Add "check type" subcommand.
2571 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2573 2012-08-17 Keith Seitz <keiths@redhat.com>
2575 * language.h (type_mode): Remove.
2576 (type_check): Remove.
2577 (struct language_defn): Remove la_type_check.
2578 (STRICT_TYPE): Remove unused macro.
2579 (type_error): Remove.
2580 * language.c (set_type_range_case): Renamed to ...
2581 (set_range_case): ... this. Update all callers.
2582 Remove type_mode/type_check.
2583 (type_mode): Remove.
2584 (type_check): Remove.
2585 (show_type_command): Remove.
2586 (set_type_command): Remove.
2587 (language_info): Remove type checking output.
2588 (type_error): Remove unused function.
2589 (range_error): Update comment.
2590 (unknown_language_defn): Remove la_type_check.
2591 (auto_language_defn): Likewise.
2592 (local_language_defn): Likewise.
2593 (_initialize_language): Remove "check type" subcommand.
2594 * ada-lang.c (ada_language_defn): Remove la_type_check.
2595 * c-lang.c (c_language_defn): Likewise.
2596 (cplus_language_defn): Likewise.
2597 (asm_language_defn): Likewise.
2598 (minimal_language_defn): Likewise.
2599 * d-lang.c (d_language_defn): Likewise.
2600 * f-lang.c (f_language_defn): Likewise.
2601 * go-lang.c (go_language_defn): Likewise.
2602 * jv-lang.c (java_language_defn): Likewise.
2603 * m2-lang.c (m2_language_defn): Likewise.
2604 * objc-lang.c (objc_language_defn): Likewise.
2605 * opencl-lang.c (opencl_language_defn): Likewise.
2606 * p-lang.c (pascal_language_defn): Likewise.
2608 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2610 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2612 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2614 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2616 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2617 using the regache. Use ia64_hpux_get_register_from_save_state_t
2618 to access the bsp and bspstore registers if not.
2620 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2622 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2623 * breakpoint.c (detach_breakpoints): Change pid parameter into
2624 a ptid. Adjust code accordingly.
2625 * infrun.c (handle_inferior_event): Delete variable child_pid.
2626 Update call to detach_breakpoints to pass the child ptid for
2628 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2629 assert that inferior_ptid's lwp is zero.
2630 (linux_handle_extended_wait): Update call to detach_breakpoints.
2631 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2634 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2636 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2637 parent, only call detach_breakpoints if tts.tts_event ==
2640 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2642 * dwarf2-frame.c (dwarf2_frame_cache): Use
2643 get_frame_address_in_block instead of get_frame_pc as
2644 the bound for executing the frame's FDE.
2646 2012-08-16 Yao Qi <yao@codesourcery.com>
2648 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2649 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2650 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2651 (c_type_print_varspec_suffix): Likewise.
2652 * eval.c (evaluate_subexp_standard): Likewise.
2653 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2654 (f_type_print_varspec_suffix): Likewise.
2655 * gdbtypes.c (is_scalar_type): Likewise.
2656 (recursive_dump_type): Likewise.
2657 * infcall.c (value_arg_coerce): Likewise.
2658 * m2-valprint.c (m2_val_print): Likewise.
2659 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2660 (pascal_type_print_varspec_suffix): Likewise.
2661 (pascal_type_print_base): Likewise.
2662 * p-valprint.c (pascal_val_print): Likewise.
2663 (pascal_val_print): Likewise.
2664 * valops.c (value_slice): Likewise.
2665 * valprint.c (scalar_type_p): Likewise.
2666 * valarith.c (value_bitstring_subscript): Remove.
2667 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2668 Remove comment on TYPE_CODE_BITSTRING.
2670 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2671 TYPE_CODE_BITSTRING.
2673 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2676 2012-08-16 Yao Qi <yao@codesourcery.com>
2678 * tracepoint.c (trace_find_none_command): Remove.
2679 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2681 2012-08-16 Yao Qi <yao@codesourcery.com>
2683 * remote.c (handle_notification): Remove parameter 'length'.
2684 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2686 2012-08-15 Keith Seitz <keiths@redhat.com>
2688 * gdbtypes.c (opaque_type_resolution): Make static.
2689 Add missing comment.
2690 (overload_debug): Add missing comment.
2691 (show_opaque_type_resolution): Likewise.
2692 (show_overload_debug): Likewise.
2693 (print_bit_vector): Remove unnecessary forward declaration.
2694 (print_arg_types): Likewise.
2695 (dump_fn_fieldlists): Likewise.
2696 (print_cplus_stuff): Likewise.
2698 2012-08-15 Tom Tromey <tromey@redhat.com>
2700 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2701 (gdb_bfd_ref): Initialize new field.
2702 (gdb_bfd_unref): Unref the archive BFD.
2703 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2706 2012-08-15 Tom Tromey <tromey@redhat.com>
2709 * python/py-bpevent.c (create_breakpoint_event_object): Update
2711 * python/py-event.c (evpy_add_attribute): Update comment.
2712 * python/py-exitedevent.c (create_exited_event_object): Fix
2713 reference counting and error handling.
2714 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2715 Fix reference counting.
2716 * python/py-signalevent.c (create_signal_event_object): Fix
2717 reference counting and error handling.
2718 * python/py-stopevent.c (emit_stop_event): Fix reference
2720 * python/py-threadevent.c (get_event_thread): Return a
2722 * python/py-type.c (convert_field): Fix reference counting.
2724 2012-08-15 Tom Tromey <tromey@redhat.com>
2726 * dwarf2read.c (dwarf_decode_macro_bytes)
2727 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2730 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2732 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2733 stepi, nexti, finish, next, step, jump, and continue commands.
2734 * infrun.c (_initialize_infrun): Update help text for the handle
2737 2012-08-14 Doug Evans <dje@google.com>
2739 * gdbtypes.c (struct extra): Delete, unused.
2741 * gdbtypes.c: Whitespace cleanup.
2742 (address_space_name_to_int): Remove "extern" from definition.
2743 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2745 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2746 TYPE_POINTER_TYPE (type).
2748 2012-08-14 Gary Benson <gbenson@redhat.com>
2750 * solib-svr4.c (svr4_free_library_list): Use free_so.
2752 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2754 * .gitignore: Add go-exp.c.
2756 2012-08-13 Doug Evans <dje@google.com>
2758 * value.c (show_convenience): Tweak comment.
2759 (_initialize_values): Mention convenience functions in the help text
2760 for "show convenience".
2762 2012-08-13 Yao Qi <yao@codesourcery.com>
2764 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2765 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2767 * eval.c (evaluate_subexp_standard): Likewise.
2768 * expprint.c (print_subexp_standard): Likewise.
2769 (dump_subexp_body_standard): Likewise.
2770 * parse.c (operator_length_standard): Likewise.
2772 2012-08-13 Yao Qi <yao@codesourcery.com>
2774 * std-operator.def: Remove OP_BITSTRING.
2775 * breakpoint.c (watchpoint_exp_is_const): Update.
2776 * eval.c (evaluate_subexp_standard): Remove handling to
2778 * expprint.c (print_subexp_standard): Likewise.
2779 (dump_subexp_body_standard): Likewise.
2780 * parse.c (operator_length_standard): Likewise.
2781 * valops.c (value_bitstring): Remove.
2782 * value.h: Remove the declaration of 'value_bitstring'.
2784 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2786 * linespec.c (find_methods): Remove unused variables `i1' and
2788 (decode_line_full): Likewise for `arg_start'.
2790 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2792 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2793 (zlib_decompress_section): Likewise for `section_data'.
2794 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2796 2012-08-10 Doug Evans <dje@google.com>
2798 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2799 * NEWS: Document them.
2800 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2802 * python/py-type.c (typy_array_1): New function.
2803 (typy_array): Call it.
2804 (typy_vector): New function.
2805 (type_object_methods): Add "vector".
2806 * python/lib/gdb/function/__init__.py: New file.
2807 * python/lib/gdb/function/strfns.py: New file.
2809 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2811 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2812 for TYPE_FIELD_BITPOS.
2813 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2815 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2818 * common/vec.h (VEC_merge): Define.
2819 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2820 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2821 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2822 * completer.c: Include gdb_signals.h.
2823 (signal_completer): Define.
2824 * completer.h (signal_completer): Add prototype.
2825 * infcmd.c (_initialize_infcmd): Assign the command
2826 completer for "signal" to handle_completer.
2827 * infrun.c: Include completer.h.
2828 (handle_completer): Define.
2829 (_initialize_infrun): Declare a new local variable c. Store the
2830 result of add_com("handle") to it. Assign the command
2831 completer for "handle" to handle_completer.
2833 2012-08-09 Yao Qi <yao@codesourcery.com>
2835 * cli/cli-decode.c (set_cmd_prefix): New.
2836 (lookup_cmd_for_prefixlist): New.
2837 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2838 of each cmd_list_element in *prefixlist.
2839 (add_setshow_cmd_full): set_cmd_prefix.
2840 (add_alias_cmd): Likewise.
2841 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2842 Declare 'auto_boolean_enums'.
2843 * cli/cli-setshow.c: Include "observer.h".
2844 (notify_command_param_changed_p): New.
2845 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2847 (do_setshow_command): Split it to ...
2848 (do_set_command, do_show_command): ... them. New.
2849 (do_set_command): Call observer_notify_command_param_changed if
2850 notify_command_param_changed_p returns true.
2851 (cmd_show_list): Caller update.
2852 * auto-load.c (set_auto_load_cmd): Likewise.
2853 * remote.c (show_remote_cmd): Likewise.
2854 * cli/cli-setshow.h: Update declarations.
2855 * top.c (execute_command): Call do_set_command and do_show_command.
2857 * NEWS: Mention new MI notification.
2858 * mi/mi-interp.c: Declare mi_command_param_changed.
2859 (mi_interpreter_init): Attach mi_command_param_changed to
2860 observer command_param_changed.
2861 (mi_command_param_changed): New.
2862 Remove mi_suppress_breakpoint_notifications.
2863 Define global variable mi_suppress_notification.
2864 (mi_breakpoint_created): Update.
2865 (mi_breakpoint_deleted): Likewise.
2866 (mi_breakpoint_modified): Likewise.
2867 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2868 'gdb-set' and set mi_suppress_notification.
2869 * mi/mi-main.h: (mi_suppress_notification): New struct.
2871 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2872 Jan Kratochvil <jan.kratochvil@redhat.com>
2874 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2876 2012-08-09 Yao Qi <yao@codesourcery.com>
2878 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2879 (skiplist): Move it to skip.c.
2880 (init_cmd_lists): Remove code setting enablebreaklist and
2882 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2883 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2885 * gdbcmd.h: Likewise.
2886 * skip.c (_initialize_step_skip): Move 'skiplist' from
2889 2012-08-09 Yao Qi <yao@codesourcery.com>
2891 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2892 * gnu-nat.c, symfile.c: Likewise.
2894 2012-08-08 Aaron Gamble <agamble@google.com>
2896 * utils.c (prompt_for_continue_wait_time): New static global.
2897 (make_command_stats_cleanup): Initialize it.
2898 (report_command_stats): Subtract time waiting for user.
2899 (prompt_for_continue): Track time waiting for user.
2900 (defaulted_query): Track time waiting for user.
2902 2012-08-08 Doug Evans <dje@google.com>
2904 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2906 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2907 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2908 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2909 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2910 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2911 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2913 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2914 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2915 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2916 (dump_prefix_expression): Handle OP_TYPE.
2918 2012-08-08 Keith Seitz <keiths@redhat.com>
2920 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2923 2012-08-08 Doug Evans <dje@google.com>
2925 * linux-thread-db.c: #include "gdb_vecs.h".
2926 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2928 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2929 (thread_db_load_search): Use a vector to iterate over path elements.
2930 Handle text appearing after "$pdir".
2932 * gdb_string.h: Moved to ...
2933 * common/gdb_string.h: ... here.
2934 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2935 gdb_string.h and gdb_assert.h.
2937 2012-08-08 Yao Qi <yao@codesourcery.com>
2939 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2940 (tic6x_value_to_register): Likewise.
2941 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2942 and set_gdbarch_value_to_register.
2944 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2945 Jean-Marc Saffroy <saffroy@gmail.com>
2948 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2949 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2950 * gcore.c (gcore_create_callback): New function comment. Add modified
2951 parameter. Only write modified regions. Set SEC_READONLY exactly
2952 according to MODIFIED.
2953 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2954 the passed modified value to FUNC.
2955 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2956 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2957 first. New variables modified and has_anonymous. Parse the lines of
2958 smaps file. Add the passed MODIFIED value to FUNC.
2959 * procfs.c (find_memory_regions_callback): Add the passed modified
2962 2012-08-06 Tom Tromey <tromey@redhat.com>
2964 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2965 (dwarf2_frame_cache): Use it.
2966 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2967 cache initialization constraint.
2969 2012-08-06 Tom Tromey <tromey@redhat.com>
2972 * varobj.c (update_dynamic_varobj_children): Don't call
2975 2012-08-06 Tom Tromey <tromey@redhat.com>
2978 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2980 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2982 * NEWS: New entry for 'cd' default parameters.
2983 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2985 2012-08-03 Tom Tromey <tromey@redhat.com>
2987 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2990 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2992 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2993 to attempting lseek/write.
2994 (inf_child_fileio_pread): Likewise for pread.
2996 2012-08-02 Yao Qi <yao@codesourcery.com>
2998 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2999 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3000 add_setshow_zinteger_cmd.
3001 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3002 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3003 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3004 instead of add_setshow_zinteger_cmd.
3005 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3006 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3007 instead of add_setshow_zinteger_cmd.
3008 * frame.c (frame_debug): Add 'unsigned'.
3009 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3010 add_setshow_zinteger_cmd.
3011 * frame.h: Update the declaration of 'frame_debug'.
3012 * gdbtypes.c (overload_debug): Add 'unsigned'.
3013 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3014 add_setshow_zinteger_cmd.
3015 * inferior.h: Update declaration of 'debug_infrun'.
3016 * infrun.c (debug_infrun): Add 'unsigned'.
3017 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3018 add_setshow_zinteger_cmd.
3019 * jit.c (jit_debug): Add 'unsigned'.
3020 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3021 add_setshow_zinteger_cmd.
3022 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3023 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3024 instead of add_setshow_zinteger_cmd.
3025 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3026 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3027 add_setshow_zinteger_cmd.
3028 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3029 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3030 instead of add_setshow_zinteger_cmd.
3031 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3032 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3033 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3034 intead of add_setshow_zinteger_cmd.
3035 * mips-tdep.c (mips_debug): Add 'unsigned'.
3036 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3037 instead of add_setshow_zinteger_cmd.
3038 * monitor.c (monitor_debug): Add 'unsigned'.
3039 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3040 add_setshow_zinteger_cmd.
3041 * observer.c (observer_debug): Add 'unsigned'.
3042 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3043 add_setshow_zinteger_cmd.
3044 * parse.c (expressiondebug): Add 'unsigned'.
3045 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3046 add_setshow_zinteger_cmd.
3047 * record.c (record_debug): Add 'unsigned'.
3048 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3049 add_setshow_zinteger_cmd.
3050 * record.h: Update the declaration of 'record_debug'.
3051 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3052 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3053 add_setshow_zinteger_cmd.
3054 * serial.c (global_serial_debug_p): Add 'unsigned'.
3055 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3056 add_setshow_zinteger_cmd.
3057 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3058 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3059 add_setshow_zinteger_cmd.
3060 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3061 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3062 add_setshow_zinteger_cmd.
3063 * target.c (targetdebug): Add 'unsigned'.
3064 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3065 add_setshow_zinteger_cmd.
3066 * valops.c (overload_debug): Add 'unsigned'.
3067 * varobj.c (varobjdebug): Add 'unsigned'.
3068 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3069 add_setshow_zinteger_cmd.
3070 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3071 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3072 instead of add_setshow_zinteger_cmd.
3074 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3075 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3076 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3077 instead of add_setshow_zinteger_cmd.
3078 * gdbarch.c, gdbarch.h: Re-generated.
3080 2012-08-02 Yao Qi <yao@codesourcery.com>
3082 * nto-tdep.c: Don't include cli/cli-decode.h and
3084 (_initialize_nto_tdep): Remove.
3085 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3087 Remove macro nto_internal_debugging.
3089 2012-08-01 Richard Henderson <rth@redhat.com>
3091 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3092 (mep-*-*) [gdb_target_obs]: Likewise.
3094 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3096 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3097 linux_get_siginfo_type.
3099 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3101 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3103 (call_function_by_hand) <ON_STACK>: Call write_memory with
3104 gdbarch_breakpoint_from_pc, if possible.
3105 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3108 2012-07-31 Yao Qi <yao@codesourcery.com>
3110 * tracepoint.c: Add 'static' for some variables.
3112 2012-07-31 Yao Qi <yao@codesourcery.com>
3114 * go32-nat.c: Declare _initialize_go32_nat.
3115 * ser-go32.c: Declare _initialize_ser_dos.
3116 * top.c (do_chdir_cleanup): Add 'static'.
3118 2012-07-30 Keith Seitz <keiths@redhat.com>
3120 * linespec.c (linespec_lex_number): A number followed
3121 by quotes is a valid number, too.
3123 2012-07-30 Tom Tromey <tromey@redhat.com>
3125 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3127 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3129 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3130 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3132 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3134 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3135 invalid or reevaluated to prevent prevent references to possibly
3136 delete'd type objects being left in the varobj.
3138 2012-07-27 Tom Tromey <tromey@redhat.com>
3139 Jan Kratochvil <jan.kratochvil@redhat.com>
3141 * copying.awk: Print buffer-read-only and vi ro markers.
3142 * copying.c: Rebuild.
3143 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3144 * gdbarch.c, gdbarch.h: Rebuild.
3145 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3146 buffer-read-only and vi ro markers.
3147 * features/arm-with-iwmmxt.c: Rebuild.
3148 * features/arm-with-m-fpa-layout.c: Rebuild.
3149 * features/arm-with-m-vfp-d16.c: Rebuild.
3150 * features/arm-with-m.c: Rebuild.
3151 * features/arm-with-neon.c: Rebuild.
3152 * features/arm-with-vfpv2.c: Rebuild.
3153 * features/arm-with-vfpv3.c: Rebuild.
3154 * features/i386/amd64-avx-linux.c: Rebuild.
3155 * features/i386/amd64-avx.c: Rebuild.
3156 * features/i386/amd64-linux.c: Rebuild.
3157 * features/i386/amd64.c: Rebuild.
3158 * features/i386/i386-avx-linux.c: Rebuild.
3159 * features/i386/i386-avx.c: Rebuild.
3160 * features/i386/i386-linux.c: Rebuild.
3161 * features/i386/i386-mmx-linux.c: Rebuild.
3162 * features/i386/i386-mmx.c: Rebuild.
3163 * features/i386/i386.c: Rebuild.
3164 * features/i386/x32-avx-linux.c: Rebuild.
3165 * features/i386/x32-avx.c: Rebuild.
3166 * features/i386/x32-linux.c: Rebuild.
3167 * features/i386/x32.c: Rebuild.
3168 * features/mips-dsp-linux.c: Rebuild.
3169 * features/mips-linux.c: Rebuild.
3170 * features/mips64-dsp-linux.c: Rebuild.
3171 * features/mips64-linux.c: Rebuild.
3172 * features/rs6000/powerpc-32.c: Rebuild.
3173 * features/rs6000/powerpc-32l.c: Rebuild.
3174 * features/rs6000/powerpc-403.c: Rebuild.
3175 * features/rs6000/powerpc-403gc.c: Rebuild.
3176 * features/rs6000/powerpc-405.c: Rebuild.
3177 * features/rs6000/powerpc-505.c: Rebuild.
3178 * features/rs6000/powerpc-601.c: Rebuild.
3179 * features/rs6000/powerpc-602.c: Rebuild.
3180 * features/rs6000/powerpc-603.c: Rebuild.
3181 * features/rs6000/powerpc-604.c: Rebuild.
3182 * features/rs6000/powerpc-64.c: Rebuild.
3183 * features/rs6000/powerpc-64l.c: Rebuild.
3184 * features/rs6000/powerpc-7400.c: Rebuild.
3185 * features/rs6000/powerpc-750.c: Rebuild.
3186 * features/rs6000/powerpc-860.c: Rebuild.
3187 * features/rs6000/powerpc-altivec32.c: Rebuild.
3188 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3189 * features/rs6000/powerpc-altivec64.c: Rebuild.
3190 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3191 * features/rs6000/powerpc-cell32l.c: Rebuild.
3192 * features/rs6000/powerpc-cell64l.c: Rebuild.
3193 * features/rs6000/powerpc-e500.c: Rebuild.
3194 * features/rs6000/powerpc-e500l.c: Rebuild.
3195 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3196 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3197 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3198 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3199 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3200 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3201 * features/rs6000/powerpc-vsx32.c: Rebuild.
3202 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3203 * features/rs6000/powerpc-vsx64.c: Rebuild.
3204 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3205 * features/rs6000/rs6000.c: Rebuild.
3206 * features/s390-linux32.c: Rebuild.
3207 * features/s390-linux32v1.c: Rebuild.
3208 * features/s390-linux32v2.c: Rebuild.
3209 * features/s390-linux64.c: Rebuild.
3210 * features/s390-linux64v1.c: Rebuild.
3211 * features/s390-linux64v2.c: Rebuild.
3212 * features/s390x-linux64.c: Rebuild.
3213 * features/s390x-linux64v1.c: Rebuild.
3214 * features/s390x-linux64v2.c: Rebuild.
3215 * features/tic6x-c62x-linux.c: Rebuild.
3216 * features/tic6x-c62x.c: Rebuild.
3217 * features/tic6x-c64x-linux.c: Rebuild.
3218 * features/tic6x-c64x.c: Rebuild.
3219 * features/tic6x-c64xp-linux.c: Rebuild.
3220 * features/tic6x-c64xp.c: Rebuild.
3222 2012-07-27 Tom Tromey <tromey@redhat.com>
3224 * c-exp.y (classify_name): Avoid assignment in condition.
3226 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3228 * amd64-windows-tdep.c: Include "frame.h".
3229 (amd64_windows_skip_trampoline_code): New function.
3230 (amd64_windows_init_abi): Add trampoline registration.
3232 2012-07-27 Yao Qi <yao@codesourcery.com>
3234 * tracepoint.c (cur_traceframe_number): Remove.
3235 (set_tfile_traceframe): Remove.
3236 (tfile_trace_find, tfile_fetch_registers): Update callers.
3237 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3238 (tfile_open, tfile_trace_find): Likewise.
3240 2012-07-27 Yao Qi <yao@codesourcery.com>
3242 * thread.c (switch_to_thread): Don't call registers_changed.
3244 2012-07-26 Tom Tromey <tromey@redhat.com>
3246 * Makefile.in (SFILES): Remove objc-exp.y.
3247 (YYFILES): Remove objc-exp.c.
3248 (YYOBJ): Remove objc-exp.o.
3249 (local-maintainer-clean): Don't mention objc-exp.c.
3250 * c-exp.y: Include objc-lang.h.
3251 (%union) <class>: New field.
3252 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3253 (exp): Clone subscript production for OBJC_LBRAC. Add various
3254 Objective C productions.
3255 (msglist, msgarglist, msgarg): New productions.
3256 (array_mod, func_mod, operator): Clone productions for
3258 (parse_string_or_char): Handle '@' strings.
3259 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3260 (classify_name): Check la_name_of_this. Recognize ObjC class
3262 * objc-exp.y: Remove.
3263 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3264 * objc-lang.h (objc_parse, objc_error): Don't declare.
3266 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3268 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3270 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3272 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3275 2012-07-26 Tom Tromey <tromey@redhat.com>
3277 * copying.c: Rebuild.
3278 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3281 2012-07-26 Tom Tromey <tromey@redhat.com>
3283 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3285 (print_objfile_statistics): Likewise.
3286 (maintenance_print_symbols): Likewise.
3287 (maintenance_print_msymbols): Likewise.
3288 (maintenance_print_objfiles): Likewise.
3289 * psymtab.c (print_partial_symbols): Call QUIT.
3290 (maintenance_print_psymbols): Likewise. Don't modify
3292 * copying.c (show_copying_command): Don't modify immediate_quit.
3293 (show_warranty_command): Likewise.
3294 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3296 2012-07-26 Keith Seitz <keiths@redhat.com>
3298 * linespec.c (linespec_lexer_lex_number): The input
3299 is also a valid number if the next character is a comma
3302 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3304 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3307 2012-07-26 Tristan Gingold <gingold@adacore.com>
3309 * machoread.c: Include gdb_bfd.h.
3311 2012-07-26 Tristan Gingold <gingold@adacore.com>
3313 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3316 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3320 (dwarf2_evaluate_loc_desc): Likewise.
3321 (dwarf2_loc_desc_needs_frame): Likewise.
3322 (locexpr_describe_location_1): Likewise.
3323 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3325 (struct dwarf2_loclist_baton): Likewise.
3326 * dwarf2read.c (struct dwarf_block): Likewise.
3327 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3328 (decode_locdesc): Expand SIZE and I to size_t.
3330 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3332 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3334 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3336 * doublest.c (convert_doublest_to_floatformat): If the exponent
3337 is too small, treat the value as zero. If the exponent is too
3338 large, treat the value as infinity.
3340 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3342 * configure.ac: Add --enable-lmcheck configure option.
3343 * configure: Regenerate.
3345 2012-07-25 Tom Tromey <tromey@redhat.com>
3347 * NEWS: Mention maint info bfds.
3348 * gdb_bfd.c (all_bfds): New global.
3349 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3350 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3353 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3355 * configure.tgt: Add v850*-*-rtems*.
3357 2012-07-25 Tom Tromey <tromey@redhat.com>
3359 * macrotab.c (macro_bcache_str): Remove cast.
3361 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3363 * linespec.c (linespec_lexer_lex_number): Update comments,
3364 change the return and add check to make sure the input is
3365 the decimal numbers.
3366 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3367 false, call linespec_lexer_lex_string.
3369 2012-07-24 Tom Tromey <tromey@redhat.com>
3371 * symfile.c (symbol_file_add): Don't open BFD twice.
3373 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3375 * breakpoint.c (create_breakpoint): Store condition for pending
3378 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3380 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3381 (m68k_return_value): Handle complex types like structures.
3382 (m68k_svr4_return_value): Likewise.
3384 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3386 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3387 parameters to bfd_get_section_name.
3389 2012-07-24 Yao Qi <yao@codesourcery.com>
3391 * cli/cli-setshow.c: Handle case 'var_uinteger'
3392 and 'var_zuninteger' together. Handle case 'var_integer' and
3393 'var_zinteger' together.
3395 2012-07-23 Keith Seitz <keiths@redhat.com>
3397 * linespec.c (convert_linespec_to_sal): Don't add
3398 any symbols to the result vector if symbol_to_sal
3401 2012-07-23 Keith Seitz <keiths@redhat.com>
3403 * linespec.c (decode_objc): Record the function name
3406 2012-07-23 Tom Tromey <tromey@redhat.com>
3408 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3410 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3411 (map_vmap): Acquire a reference to the BFD.
3413 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3415 * p-valprint.c (pascal_object_print_value): Replace potentially
3416 unsafe alloca with xmalloc/xfree.
3417 * valops.c (search_struct_method): Likewise.
3419 2012-07-23 Tom Tromey <tromey@redhat.com>
3421 * solib-svr4.c (enable_break): Update.
3422 * bfd-target.h (target_bfd_reopen): Update documentation.
3424 2012-07-23 Tom Tromey <tromey@redhat.com>
3426 * symfile.c (separate_debug_file_exists): Update.
3427 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3428 (reread_symbols): Update.
3429 * elfread.c (build_id_verify): Update.
3430 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3431 bfd_open_maybe_remote.
3433 2012-07-23 Tom Tromey <tromey@redhat.com>
3435 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3437 2012-07-23 Tom Tromey <tromey@redhat.com>
3439 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3441 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3443 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3444 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3446 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3447 * objfiles.c (allocate_objfile): Acquire a new reference.
3448 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3449 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3450 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3451 a cleanup for 'nbfd'.
3452 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3454 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3455 make a cleanup for 'abfd'.
3456 (symbol_file_add): Make a BFD cleanup.
3458 2012-07-23 Tom Tromey <tromey@redhat.com>
3460 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3461 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3462 * corelow.c (core_open): Use gdb_bfd_fopen.
3463 * dsrec.c (load_srec): Use gdb_bfd_openr.
3464 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3465 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3466 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3467 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3468 (gdb_bfd_fdopenr): New functions.
3469 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3470 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3471 (gdb_bfd_fdopenr): Declare.
3472 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3473 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3474 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3475 gdb_bfd_openr_next_archived_file.
3476 (macho_check_dsym): Use gdb_bfd_openr.
3477 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3478 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3479 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3480 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3482 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3483 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3484 gdb_bfd_openr_next_archived_file.
3485 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3487 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3489 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3490 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3491 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3492 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3493 (symfile_bfd_open): Use gdb_bfd_fopen.
3494 (generic_load): Use gdb_bfd_openr.
3495 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3497 2012-07-23 Tom Tromey <tromey@redhat.com>
3499 * bfd-target.c (target_bfd_reopen): Update.
3500 * cli/cli-dump.c (bfd_openr_with_cleanup)
3501 (bfd_openw_with_cleanup): Update.
3502 * corelow.c (core_open): Update.
3503 * dsrec.c (load_srec): Update.
3504 * exec.c (exec_file_attach): Update.
3505 * gcore.c (create_gcore_bfd): Update.
3506 * gdb_bfd.c (gdb_bfd_ref): Return void.
3507 (gdb_bfd_open): Update.
3508 * gdb_bfd.h (gdb_bfd_ref): Return void.
3510 * jit.c (jit_bfd_try_read_symtab): Update.
3511 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3512 * machoread.c (macho_symfile_read_all_oso): Update.
3513 (macho_check_dsym): Update.
3514 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3515 * remote-m32r-sdi.c (m32r_load): Update.
3516 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3517 * rs6000-nat.c (add_vmap): Update.
3518 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3520 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3521 * solib-spu.c (spu_bfd_open): Update.
3522 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3523 * spu-linux-nat.c (spu_bfd_open): Update.
3524 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3525 (generic_load): Update.
3526 * windows-nat.c (windows_make_so): Update.
3528 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3530 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3532 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3534 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3535 SIGTRAMP_FRAME unwinding.
3537 2012-07-20 Doug Evans <dje@google.com>
3539 * NEWS: Document new options "set/show use-deprecated-index-sections",
3540 and delete reference to --use-deprecated-index-sections.
3541 * symfile.h (use_deprecated_index_sections): Delete.
3542 * dwarf2read.c (use_deprecated_index_sections): Make static.
3543 (read_index_from_section): Update wording of how to load
3544 deprecated index sections.
3545 (_initialize_dwarf2_read): New options
3546 "set/show use-deprecated-index-sections".
3547 * main.c (captured_main): Delete --use-deprecated-index-sections.
3549 2012-07-20 Pedro Alves <palves@redhat.com>
3554 * infrun.c (handle_inferior_event) <new thread>: Don't special
3555 case minus_one_ptid.
3556 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3557 * linux-thread-db.c (thread_get_info_callback): Don't return early
3558 if the thread is zombie.
3559 (thread_from_lwp): Change return type to void. Rewrite stale
3561 (attach_thread): Don't return early if the thread is zombie,
3562 instead set its "dying" flag.
3563 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3564 (find_new_threads_callback): Don't return early if the thread is
3567 2012-07-20 Pedro Alves <palves@redhat.com>
3569 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3570 * target.c (target_wait): Likewise.
3571 (str_comma_list_concat_elem, do_option, target_options_to_string):
3573 * target.h (target_options_to_string): Declare.
3575 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 Tom Tromey <tromey@redhat.com>
3578 * dwarf2read.c (dwarf_decode_macros)
3579 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3580 DW_MACRO_GNU_transparent_include_alt>: New cases.
3581 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3582 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3584 2012-07-20 Tom Tromey <tromey@redhat.com>
3586 * dwarf2read.c (try_open_dwo_file): Don't call
3587 gdb_bfd_stash_filename.
3589 2012-07-20 Pedro Alves <palves@redhat.com>
3591 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3592 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3593 (i386_process_record): Tweak description comments.
3595 2012-07-20 Pedro Alves <palves@redhat.com>
3597 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3598 (i386_process_record): Use record_read_memory.
3599 * record.c (record_read_memory): New function.
3600 (record_arch_list_add_mem, record_exec_insn): Use
3602 * record.h (record_read_memory): Declare.
3604 2012-07-20 Yao Qi <yao@codesourcery.com>
3606 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3609 2012-07-19 Pedro Alves <palves@redhat.com>
3611 * record.c (record_resume): Ask the target beneath to report all
3614 2012-07-19 Doug Evans <dje@google.com>
3616 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3617 there's no section at address zero.
3618 (dwarf2_record_block_ranges): Ditto.
3620 2012-07-19 Yao Qi <yao@codesourcery.com>
3622 * command.h, remote.c: Fix a typo in comment.
3624 2012-07-19 Tom Tromey <tromey@redhat.com>
3627 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3628 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3629 OP_DECLTYPE>: New cases.
3630 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3631 (type_exp): Add new productions.
3632 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3634 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3636 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3637 OP_DECLTYPE>: New case.
3638 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3640 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3641 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3643 2012-07-19 Tom Tromey <tromey@redhat.com>
3645 * c-exp.y (enum token_flags): New.
3646 (struct token) <cxx_only>: Remove.
3648 (tokentab3, tokentab2, ident_tokens): Update.
3649 (lex_one_token): Update. Handle FLAG_SHADOW.
3651 2012-07-19 Tom Tromey <tromey@redhat.com>
3653 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3654 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3655 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3656 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3657 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3658 type_exp production where appropriate.
3659 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3660 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3661 <UNOP_MEMVAL_TYPE>: New case.
3662 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3663 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3664 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3665 <UNOP_MEMVAL_TYPE>: New case.
3666 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3667 UNOP_REINTERPRET_CAST>: Update.
3668 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3669 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3670 UNOP_REINTERPRET_CAST>: Update.
3671 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3672 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3673 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3676 2012-07-19 Yao Qi <yao@codesourcery.com>
3677 Jan Kratochvil <jan.kratochvil@redhat.com>
3679 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3680 and case 'var_optional_filename' together.
3681 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3682 instead of add_setshow_optional_filename_cmd for setshow command
3683 'args'. Set completer for 'set args'.
3685 2012-07-18 Doug Evans <dje@google.com>
3687 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3688 * common/gdb_vecs.c: New file, contents from utils.c.
3689 * common/host-defs.h: New file, contents from defs.h.
3690 * utils.h: New file, contents from defs.h.
3691 * defs.h: Move all declarations of objects defined in utils.c
3692 to utils.h (except QUIT() and related).
3693 #include "utils.h", "host-defs.h".
3694 * probe.h (probe_p): Move here from gdb_vecs.h.
3695 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3696 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3697 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3698 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3699 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3700 (COMMON_OBS): Add gdb_vecs.o.
3701 (gdb_vecs.o): New rule.
3703 2012-07-18 Keith Seitz <keiths@redhat.com>
3705 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3706 parameter. If non-zero, use SYMNAME as the canonical name
3709 (convert_linespec_to_sals): Use add_sal_to_sals for
3711 (decode_line_full): No need to "fill in missing canonical names"
3712 anymore. Simply make cleanups for the allocated names.
3714 2012-07-18 Keith Seitz <keiths@redhat.com>
3716 * linespec.c (struct linespec): Constify expression,
3717 source_filename, function_name, and label_name.
3718 (symbol_not_found_error): Make all parameters const.
3719 (linespec_parser_delete): No need to check for NULL
3720 when using xfree. Cast const char * to char * for xfree.
3722 2012-07-18 Keith Seitz <keiths@redhat.com>
3724 * breakpoint.c (invalid_thread_id_error): New function.
3725 (find_condition_and_thread): Use invalid_thread_id_error.
3726 (watch_command_1): Likewise.
3728 2012-07-18 Tom Tromey <tromey@redhat.com>
3730 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3731 * contrib/cc-with-tweaks.sh: New file.
3733 2012-07-18 Tom Tromey <tromey@redhat.com>
3735 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3736 (locate_dwz_sections): Recognize .gdb_index.
3737 (create_cus_from_index_list): New function.
3738 (create_cus_from_index): Use it. Handle .dwz data.
3739 (read_index_from_section): New function, extracted from
3741 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3744 2012-07-18 Tom Tromey <tromey@redhat.com>
3746 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3747 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3748 <is_dwz>: New field.
3749 (struct dwz_file): New.
3750 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3751 (locate_dwz_sections, dwarf2_get_dwz_file)
3752 (get_abbrev_section_for_cu): New functions.
3753 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3754 (read_and_check_type_unit_head): Add abbrev_section argument.
3755 (create_debug_types_hash_table): Update.
3756 (init_cutu_and_read_dies): Use proper abbrev section.
3757 (init_cutu_and_read_dies_no_follow): Likewise.
3758 (set_partial_user): Do nothing if PST==NULL.
3759 (read_comp_units_from_section): New function.
3760 (create_all_comp_units): Use it.
3761 (scan_partial_symbols, partial_die_parent_scope): Update.
3762 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3763 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3764 (find_partial_die): Add offset_in_dwz argument. Update.
3765 (guess_partial_die_structure_name, fixup_partial_die): Update.
3766 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3767 DW_FORM_GNU_strp_alt.
3768 (read_indirect_string_from_dwz): New function.
3769 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3770 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3771 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3772 (follow_die_offset): Add offset_in_dwz argument.
3773 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3774 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3775 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3776 Handle new macro forms.
3777 (dwarf_decode_macros): Update.
3778 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3779 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3780 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3781 (create_debug_types_hash_table): Use correct abbrev section.
3782 (get_debug_line_section): New function.
3783 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3784 (process_full_comp_unit): Pass 'required' argument to
3785 end_symtab_get_static_block.
3786 * buildsym.h (end_symtab_get_static_block): Update.
3787 * buildsym.c (end_symtab_get_static_block): Add 'required'
3789 (end_symtab, end_expandable_symtab): Update.
3791 2012-07-18 Tom Tromey <tromey@redhat.com>
3793 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3795 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3796 (zlib_decompress_section): Remove.
3797 (dwarf2_read_section): Use gdb_bfd_map_section.
3798 (munmap_section_buffer): Remove.
3799 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3800 munmap_section_buffer.
3801 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3802 (struct gdb_bfd_section_data): New.
3803 (free_one_bfd_section): New function.
3804 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3805 (get_section_descriptor, zlib_decompress_section)
3806 (gdb_bfd_map_section): New functions.
3807 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3809 2012-07-18 Tom Tromey <tromey@redhat.com>
3811 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3813 2012-07-18 Tom Tromey <tromey@redhat.com>
3815 * gdb_bfd.c (struct gdb_bfd_data): New.
3816 (gdb_bfd_cache): New global.
3817 (struct gdb_bfd_cache_search): New.
3818 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3819 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3820 * gdb_bfd.h (gdb_bfd_open): Declare.
3822 2012-07-18 Tom Tromey <tromey@redhat.com>
3824 * utils.c (make_cleanup_bfd_unref): Rename from
3825 make_cleanup_bfd_close.
3826 * defs.h (make_cleanup_bfd_unref): Rename from
3827 make_cleanup_bfd_close.
3828 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3829 (bfd_openw_with_cleanup): Update.
3830 * corelow.c (core_open): Update.
3831 * dsrec.c (load_srec): Update.
3832 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3833 * remote-m32r-sdi.c (m32r_load): Update.
3834 * remote-mips.c (mips_load_srec): Update.
3835 (pmon_load_fast): Update.
3836 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3838 (darwin_bfd_open): Update.
3839 * solib.c (solib_bfd_fopen): Update.
3840 * symfile-mem.c (symbol_file_add_from_memory): Update.
3841 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3842 (symfile_bfd_open): Update.
3843 (generic_load): Update.
3845 2012-07-18 Tom Tromey <tromey@redhat.com>
3847 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3848 (pmon_load_fast): Likewise.
3849 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3850 (m32r_upload_command): Likewise.
3851 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3852 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3853 Use make_cleanup_bfd_close.
3855 2012-07-18 Tom Tromey <tromey@redhat.com>
3857 * symfile.c (symfile_bfd_open): Don't copy name. Call
3858 gdb_bfd_stash_filename.
3859 (load_command): Open the new BFD before freeing the old.
3860 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3861 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3862 Call gdb_bfd_stash_filename.
3863 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3864 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3865 gdb_bfd_stash_filename.
3866 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3867 Free found_pathname.
3868 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3869 gdb_bfd_stash_filename.
3870 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3871 * machoread.c (macho_add_oso_symfile): Call
3872 gdb_bfd_stash_filename.
3873 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3874 gdb_bfd_stash_filename.
3875 (macho_check_dsym): Don't copy filename. Call
3876 gdb_bfd_stash_filename.
3877 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3878 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3879 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3880 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3881 * exec.c (exec_close): Don't free the BFD's filename.
3882 (exec_file_attach): Don't copy the filename. Call
3883 gdb_bfd_stash_filename.
3884 * corelow.c (core_close): Don't free the BFD's filename.
3885 (core_open): Call gdb_bfd_stash_filename.
3886 * corefile.c (reopen_exec_file): Remove #if 0 code.
3887 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3889 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3891 2012-07-18 Tom Tromey <tromey@redhat.com>
3893 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3895 (free_dwo_file): Use gdb_bfd_unref.
3896 * cli/cli-dump.c: Include gdb_bfd.h.
3897 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3898 (bfd_openr_with_cleanup): Likewise.
3899 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3901 * utils.c: Include gdb_bfd.h.
3902 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3903 * symfile.c: Include gdb_bfd.h.
3904 (separate_debug_file_exists): Use gdb_bfd_unref.
3905 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3906 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3907 (generic_load): Use gdb_bfd_ref.
3908 (reread_symbols): Use gdb_bfd_unref.
3909 * symfile-mem.c: Include gdb_bfd.h.
3910 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3911 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3912 * solib.c: Include gdb_bfd.h.
3913 (solib_bfd_fopen): Use gdb_bfd_ref.
3914 (solib_bfd_open): Use gdb_bfd_unref.
3915 (free_so_symbols): Use gdb_bfd_unref.
3916 (reload_shared_libraries_1): Use gdb_bfd_unref.
3917 * solib-spu.c: Include gdb_bfd.h.
3918 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3919 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3921 * solib-frv.c: Include gdb_bfd.h.
3922 (enable_break2): Use gdb_bfd_unref.
3923 * solib-dsbt.c: Include gdb_bfd.h.
3924 (enable_break2): Use gdb_bfd_unref.
3925 * solib-darwin.c: Include gdb_bfd.h.
3926 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3928 (darwin_bfd_open): Use gdb_bfd_unref.
3929 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3930 * remote-mips.c: Include gdb_bfd.h.
3931 (mips_load_srec): Use gdb_bfd_ref.
3932 (pmon_load_fast): Use gdb_bfd_ref.
3933 * remote-m32r-sdi.c: Include gdb_bfd.h.
3934 (m32r_load): Use gdb_bfd_ref.
3935 * record.c: Include gdb_bfd.h.
3936 (record_save_cleanups): Use gdb_bfd_unref.
3937 (cmd_record_save): Use gdb_bfd_unref.
3938 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3940 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3941 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3942 * objfiles.c: Include gdb_bfd.h.
3943 (free_objfile): Use gdb_bfd_unref.
3944 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3946 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3947 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3948 (macho_check_dsym): Likewise.
3949 * m32r-rom.c: Include gdb_bfd.h.
3950 (m32r_load): Use gdb_bfd_ref.
3951 (m32r_upload_command): Use gdb_bfd_ref.
3952 * jit.c: Include gdb_bfd.h.
3953 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3954 * gdb_bfd.h: New file.
3955 * gdb_bfd.c: New file.
3956 * gcore.c: Include gdb_bfd.h.
3957 (create_gcore_bfd): Use gdb_bfd_ref.
3958 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3959 (gcore_command): Use gdb_bfd_unref.
3960 * exec.c: Include gdb_bfd.h.
3961 (exec_close): Use gdb_bfd_unref.
3962 (exec_close_1): Use gdb_bfd_unref.
3963 (exec_file_attach): Use gdb_bfd_ref.
3964 * elfread.c: Include gdb_bfd.h.
3965 (build_id_verify): Use gdb_bfd_unref.
3966 * dsrec.c: Include gdb_bfd.h.
3967 (load_srec): Use gdb_bfd_ref.
3968 * corelow.c: Include gdb_bfd.h.
3969 (core_close): Use gdb_bfd_unref.
3970 (core_open): Use gdb_bfd_ref.
3971 * bfd-target.c: Include gdb_bfd.h.
3972 (target_bfd_xclose): Use gdb_bfd_unref.
3973 (target_bfd_reopen): Use gdb_bfd_ref.
3974 * Makefile.in (SFILES): Add gdb_bfd.c.
3975 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3976 (COMMON_OBS): Add gdb_bfd.o.
3978 2012-07-18 Keith Seitz <keiths@redhat.com>
3980 * breakpoint.c (find_condition_and_thread): Initialize
3982 (create_breakpiont): find_condition_and_thread will now
3983 initialize COND_STRING, THREAD, and REST (and TASK).
3984 (addr_string_to_sals): Likewise.
3986 2012-07-18 Pedro Alves <palves@redhat.com>
3988 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3989 Pull the single step breakpoints out of the target.
3991 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3993 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3994 * stap-probe.c (compile_probe_arg): Likewise.
3996 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3998 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3999 (elf_compile_to_ax): Likewise.
4000 * infrun.c (insert_exception_resume_from_probe): Likewise.
4001 (check_exception_resume): Remove `objfile' variable.
4002 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4003 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4004 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4005 (compare_entries): Rename to...
4006 (compare_probes): ...this. Adjust function to work with
4007 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4009 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4011 (print_ui_out_info): Adjust argument to be `struct probe *'.
4012 (info_probes_for_ops): Adjust internal computations to use
4014 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4015 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4016 gen_info_probes_table_values>: Remove `objfile' argument.
4017 (struct probe) <objfile>: New field.
4018 (find_probe_by_pc): Remove `objfile' argument.
4019 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4020 (stap_get_probe_argument_count): Likewise.
4021 (stap_get_arg): Likewise.
4022 (stap_evaluate_probe_argument): Likewise.
4023 (stap_compile_to_ax): Likewise.
4024 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4025 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4026 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4027 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4028 sym_compile_to_ax>: Likewise.
4030 2012-07-18 Terry Guo <terry.guo@arm.com>
4033 * defs.h (GDB_MI_MSG_WIDTH): New.
4034 * ser_base (ser_base_read_error_fd): New function.
4035 (do_ser_base_readchar): Poll error file descriptor as well as
4037 (generic_readchar): Refactor error handling.
4039 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4041 * NEWS: Create a new section for the next release branch.
4042 Rename the section of the current branch, now that it has
4045 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4047 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4048 * version.in: Bump version to 7.5.50.20120718-cvs.
4050 2012-07-17 Keith Seitz <keiths@redhat.com>
4052 * linespec.c (linespec_parse_line_offset): Make parameter
4055 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4058 * f-valprint.c (info_common_command): New variable frame_id.
4059 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4060 * printcmd.c (print_variable_and_value): Extend function comment.
4061 Add comment for invalidated FRAME.
4062 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4063 FI form FRAME_ID after each print_frame_local_vars.
4064 (struct print_variable_and_value_data): Change frame to frame_id.
4065 (do_print_variable_and_value): New variable frame, initialize it from
4066 p->frame_id. Add comment for invalidated FRAME.
4067 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4068 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4069 for invalidated FRAME.
4071 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4072 Pedro Alves <palves@redhat.com>
4074 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4077 2012-07-16 Tom Tromey <tromey@redhat.com>
4079 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4081 2012-07-15 Doug Evans <dje@google.com>
4083 * dwarf2read.c (stmt_list_hash): New struct.
4084 (type_unit_group): Embed "per_cu" member, remove pointer.
4085 New union member "t", move member "tus" into it, all uses updated.
4086 New member "hash", replaces member "line_offset, all uses updated.
4087 (quick_file_names): Replace member "offset" with "hash", all uses
4089 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4090 (hash_file_name_entry, eq_file_name_entry): Call them.
4091 (hash_type_unit_group, eq_type_unit_group): Ditto.
4092 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4093 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4094 (dw2_get_file_names): Update.
4095 (create_type_unit_group): Replace "per_cu" arg with "cu".
4096 All callers updated. Fix "quick" (.gdb_index) handling.
4097 (get_type_unit_group): Replace "per_cu" arg with "cu".
4098 All callers updated.
4099 (build_type_unit_groups): Don't reset tu_stats.
4101 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4102 "tab_cur_size". Change member "tab" to be a htab_t.
4103 (create_filename_seen_cache): Update.
4104 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4105 (filename_seen): Update.
4107 2012-07-13 Doug Evans <dje@google.com>
4109 * symtab.c (filename_seen): Update comment.
4111 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4112 Doug Evans <dje@google.com>
4114 * buildsym.c (end_symtab_1): Split it to ...
4115 (end_symtab_get_static_block): ... this ...
4116 (end_symtab_from_static_block): ... and this function.
4117 (end_symtab, end_expandable_symtab): Call them.
4118 * buildsym.h (end_symtab_get_static_block)
4119 (end_symtab_from_static_block): New declarations.
4120 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4121 Set its valid CU ranges.
4123 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4125 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4126 DW_OP_GNU_parameter_ref.
4128 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4130 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4131 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4133 2012-07-13 Doug Evans <dje@google.com>
4135 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4136 (filename_seen_cache): New struct.
4137 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4138 (create_filename_seen_cache): New function.
4139 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4140 (filename_seen): Delete arg "first". New arg "cache". All callers
4142 (output_source_filename_data): New struct.
4143 (output_source_filename): Delete arg "first". New arg "data".
4144 All callers updated.
4145 (sources_info): Delete local "first". New locals "data", "cleanups".
4146 Rewrite to use filename_seen_cache.
4147 (add_partial_filename_data): Delete member "first". New member
4148 "filename_seen_cache". All uses updated.
4149 (make_source_files_completion_list): Rewrite to use
4150 filename_seen_cache.
4152 2012-07-12 Doug Evans <dje@google.com>
4154 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4156 2012-07-10 Doug Evans <dje@google.com>
4159 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4160 all_type_unit_groups, type_unit_groups, tu_stats.
4161 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4162 All uses updated. Add type_unit_group to union "s".
4163 (type_unit_group): New struct.
4164 (IS_TYPE_UNIT_GROUP): New macro.
4165 (abbrev_table): Delete unused member "section".
4166 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4167 (dw2_get_cu): Assert not used with type_unit_group.
4168 (dw2_get_primary_cu): New function.
4169 (dw2_build_type_unit_groups_reader): New function.
4170 (dw2_build_type_unit_groups): New function.
4171 (dw2_get_file_names): Assert not called on type units.
4172 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4173 Redo loop to iterate over type unit groups instead of type units.
4174 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4175 (read_abbrev_offset): New function.
4176 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4178 (create_partial_symtab): New function.
4179 (process_psymtab_comp_unit_reader): Assert not used with type units.
4180 Call create_partial_symtab.
4181 (process_psymtab_type_unit): Delete.
4182 (hash_type_unit_group, eq_type_unit_group): New functions.
4183 (allocate_type_unit_groups_table): New function.
4184 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4185 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4186 (create_type_unit_group, get_type_unit_group): New functions.
4187 (tu_abbrev_offset): New struct.
4188 (sort_tu_by_abbrev_offset): New function.
4189 (add_type_unit_group_to_table): New function.
4190 (build_type_unit_groups): New function.
4191 (build_type_psymtabs_reader): New function.
4192 (build_type_psymtab_dependencies): New function.
4193 (build_type_psymtabs): Rewrite.
4194 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4195 is seen in a type unit.
4196 (process_queue): Move symtab expansion debugging printfs here.
4197 Call process_full_type_unit for type units.
4198 (compute_symtab_includes): Assert not called for type units.
4199 (process_cu_includes): Don't call compute_symtab_includes for
4201 (process_full_type_unit): New function.
4202 (process_imported_unit_die): Flag an error if called for type units.
4203 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4204 updated. Assert not called for type units.
4205 (read_file_scope): Call dwarf2_start_symtab.
4206 (setup_type_unit_groups): New function.
4207 (read_type_unit_scope): Rewrite.
4208 (abbrev_table_read_table): Initialize abbrev_table->offset.
4209 (abbrev_table_free_cleanup): New function.
4210 (dwarf2_start_symtab): New function.
4211 (load_full_type_unit): Assert not called for type unit groups.
4212 * buildsym.c (finish_block_internal): New arg "expandable".
4213 All callers updated.
4214 (start_symtab): Move most contents to ...
4215 (restart_symtab): ... here. New function.
4216 (reset_symtab_globals): New function.
4217 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4218 Call reset_symtab_globals.
4219 (end_symtab, end_expandable_symtab): New functions.
4220 (set_missing_symtab, augment_type_symtab): New functions.
4221 * buildsym.h (end_expandable_symtab): Declare.
4222 (augment_type_symtab, restart_symtab): Declare.
4223 * psympriv.h (struct partial_symtab): New member "anonymous".
4224 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4226 (read_psymtabs_with_filename): Ditto.
4227 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4228 (expand_symtabs_matching_via_partial): Ditto.
4229 (dump_psymtab): Update.
4230 * dictionary.c (dict_add_pending): New function.
4231 * dictionary.h (dict_add_pending): Declare.
4233 2012-07-09 Doug Evans <dje@google.com>
4235 * buildsym.c (start_subfile): Remove unnecessary check for
4238 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4240 * dwarf2read.c (load_full_type_unit): Simplify.
4242 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4243 to struct signatured_type **. All uses updated.
4245 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4246 All callers updated.
4248 2012-07-09 Tom Tromey <tromey@redhat.com>
4250 * c-exp.y (check_parameter_typelist): New function.
4251 (parameter_typelist): Call it.
4252 * eval.c (make_params): Handle '(void)' case.
4253 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4256 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4258 * common/linux-ptrace.c: Include gdb_assert.h.
4259 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4260 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4262 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4264 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4265 * linux-nat.c (linux_child_post_attach)
4266 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4268 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4270 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4271 nptl <2.7 bug workaround for core files.
4273 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4275 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4277 (save_siginfo): Remove.
4278 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4280 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4281 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4282 * linux-nat.h (struct lwp_info): Remove field siginfo.
4284 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4286 Code cleanup for the next patch.
4287 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4288 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4290 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4291 (ia64_linux_stopped_data_address):
4292 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4294 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4295 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4296 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4299 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4302 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4303 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4305 2012-07-06 Tom Tromey <tromey@redhat.com>
4307 * c-exp.y (DOTDOTDOT): New token.
4308 (func_mod, exp): Use parameter_typelist.
4309 (parameter_typelist): New production.
4310 (tokentab3): Add "..." token.
4311 * eval.c (make_params): Handle varargs.
4312 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4315 2012-07-06 Tom Tromey <tromey@redhat.com>
4318 * c-exp.y (%union) <tvec>: Change type.
4319 (func_mod): Now uses <tvec> type.
4320 (exp): Update for tvec change.
4321 (direct_abs_decl): Push the typelist.
4322 (func_mod): Return a typelist.
4323 (nonempty_typelist): Update for tvec change.
4324 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4325 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4326 * parse.c (pop_type_list): New function.
4327 (push_typelist): New function.
4328 (follow_types): Handle tp_function_with_arguments.
4329 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4330 (enum type_pieces) <tp_function_with_arguments>: New constant.
4331 (union type_stack_elt) <typelist_val>: New field.
4332 (push_typelist): Declare.
4334 2012-07-06 Tom Tromey <tromey@redhat.com>
4336 * c-exp.y (%union) <type_stack>: New field.
4337 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4338 (ptr_operator_ts): New production.
4340 * parse.c (type_stack_reserve): New function.
4341 (check_type_stack_depth): Use it.
4342 (pop_type_stack, append_type_stack, push_type_stack)
4343 (get_type_stack, type_stack_cleanup): New functions.
4344 (follow_types): Handle tp_type_stack.
4345 (_initialize_parse): Simplify initialization.
4346 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4348 (union type_stack_elt) <stack_val>: New field.
4349 (get_type_stack, append_type_stack, push_type_stack)
4350 (type_stack_cleanup): Declare.
4352 2012-07-06 Tom Tromey <tromey@redhat.com>
4354 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4356 (struct type_stack): New.
4357 * parse.c (type_stack, type_stack_size, type_stack_depth):
4359 (type_stack): New global.
4360 (parse_exp_in_context, check_type_stack_depth)
4361 (insert_into_type_stack, insert_type, push_type, push_type_int)
4362 (insert_type_address_space, pop_type, pop_type_int)
4363 (_initialize_parse): Update.
4365 2012-07-06 Tom Tromey <tromey@redhat.com>
4367 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4370 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4372 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4374 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4375 Jan Kratochvil <jan.kratochvil@redhat.com>
4377 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4378 alloca with xmalloc/xfree.
4380 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4382 * MAINTAINERS (Write After Approval): Add myself to the list.
4384 2012-07-05 Doug Evans <dje@google.com>
4386 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4388 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4390 * ax-gdb.c (cli/cli-utils.h): New include.
4391 (linespec.h): Ditto.
4392 (agent_eval_command_one): New function.
4393 (agent_command_1): Ditto.
4394 (agent_command): Call function agent_command_1.
4395 (agent_eval_command): Ditto.
4396 (_initialize_ax_gdb): Change help for "maint agent"
4397 and "maint agent-eval".
4399 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4401 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4402 * cli/cli-utils.c (check_for_argument): New function.
4403 * cli/cli-utils.h (check_for_argument): Ditto.
4405 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4407 * NEWS: Mention x32 ABI support.
4409 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4411 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4412 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4414 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4415 and pc_regnum_from_eax to -1. Update SP regnum from
4416 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4419 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4422 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4424 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4425 * dwarf2expr.h: Include gdbtypes.h.
4426 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4427 these forward declarations.
4428 (cu_offset, sect_offset): Move these ...
4429 * gdbtypes.h: Remove include dwarf2expr.h.
4430 (cu_offset, sect_offset): ... here.
4432 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4434 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4435 (amd64_linux_sigtramp_code): This.
4436 (amd64_x32_linux_sigtramp_code): New.
4437 (LINUX_SIGTRAMP_LEN): Updated.
4438 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4440 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4442 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4444 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4446 * config.in: Regenerate.
4447 * configure: Regenerate.
4448 * configure.ac: Remove check for gnu/libc-version.h.
4449 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4451 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4452 variables libc_version, libc_major and libc_minor. Replace sscanf by
4453 inferior_has_bug. Extend the comment.
4455 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4457 * linux-thread-db.c (inferior_has_bug): New function.
4458 (thread_db_find_new_threads_silently): Return boolean as checked by
4459 inferior_has_bug, describe it in the comments.
4460 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4461 earlier. Abort the initialization if it returned non-zero.
4462 (thread_db_new_objfile): Exclude debug files.
4463 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4466 2012-07-02 Doug Evans <dje@google.com>
4468 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4469 related to queue management.
4471 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4472 instead of "debug dwarf2-die" in debugging printfs.
4473 (create_debug_info_hash_table_reader): Ditto.
4474 (create_debug_info_hash_table): Ditto.
4475 (init_dwo_file): Ditto.
4476 (init_cutu_and_read_dies): Add debugging printf.
4477 (init_cutu_and_read_dies_no_follow): Ditto.
4478 (process_psymtab_comp_unit_reader): Ditto.
4480 2012-07-02 Stan Shebs <stan@codesourcery.com>
4482 Add target-side support for dynamic printf.
4483 * NEWS: Mention the additional style.
4484 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4485 (struct bp_location): New field cmd_bytecode.
4486 * breakpoint.c: Include format.h.
4487 (disconnected_dprintf): New global.
4488 (parse_cmd_to_aexpr): New function.
4489 (build_target_command_list): New function.
4490 (insert_bp_location): Call it.
4491 (remove_breakpoints_pid): Skip dprintf breakpoints.
4492 (print_one_breakpoint_location): Ditto.
4493 (dprintf_style_agent): New global.
4494 (dprintf_style_enums): Add dprintf_style_agent.
4495 (update_dprintf_command_list): Add agent case.
4496 (agent_printf_command): New function.
4497 (_initialize_breakpoint): Add new commands.
4498 * common/ax.def (printf): New bytecode.
4499 * ax.h (ax_string): Declare.
4500 * ax-gdb.h (gen_printf): Declare.
4501 * ax-gdb.c: Include cli-utils.h, format.h.
4502 (gen_printf): New function.
4503 (maint_agent_print_command): New function.
4504 (_initialize_ax_gdb): Add maint agent-printf command.
4505 * ax-general.c (ax_string): New function.
4506 (ax_print): Add printf disassembly.
4507 * Makefile.in (SFILES): Add format.c
4508 (COMMON_OBS): Add format.o.
4509 * common/format.h: New file.
4510 * common/format.c: New file.
4511 * printcmd.c: Include format.h.
4512 (ui_printf): Call parse_format_string.
4513 * remote.c (remote_state): New field breakpoint_commands.
4514 (PACKET_BreakpointCommands): New enum.
4515 (remote_breakpoint_commands_feature): New function.
4516 (remote_protocol_features): Add new BreakpointCommands entry.
4517 (remote_can_run_breakpoint_commands): New function.
4518 (remote_add_target_side_commands): New function.
4519 (remote_insert_breakpoint): Call it.
4520 (remote_insert_hw_breakpoint): Ditto.
4521 (_initialize_remote): Add new packet configuration for
4522 target-side breakpoint commands.
4523 * target.h (struct target_ops): New field
4524 to_can_run_breakpoint_commands.
4525 (target_can_run_breakpoint_commands): New macro.
4526 * target.c (update_current_target): Handle
4527 to_can_run_breakpoint_commands.
4529 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4531 Execute -ix and -iex only after system and user gdbinit files.
4532 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4533 processing down after gdbinit files.
4535 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4537 Add fnmatch-gnu module.
4538 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4539 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4540 * gnulib/aclocal.m4: Regenerate.
4541 * gnulib/config.in: Regenerate.
4542 * gnulib/configure: Regenerate.
4543 * gnulib/import/dummy.c: Remove.
4544 * gnulib/import/Makefile.am: Regenerate.
4545 * gnulib/import/Makefile.in: Likewise.
4546 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4547 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4548 * gnulib/import/alloca.c: New file.
4549 * gnulib/import/alloca.in.h: Likewise.
4550 * gnulib/import/config.charset: Likewise.
4551 * gnulib/import/fnmatch.c: Likewise.
4552 * gnulib/import/fnmatch.in.h: Likewise.
4553 * gnulib/import/fnmatch_loop.c: Likewise.
4554 * gnulib/import/localcharset.c: Likewise.
4555 * gnulib/import/localcharset.h: Likewise.
4556 * gnulib/import/m4/alloca.m4: Likewise.
4557 * gnulib/import/m4/codeset.m4: Likewise.
4558 * gnulib/import/m4/configmake.m4: Likewise.
4559 * gnulib/import/m4/fcntl-o.m4: Likewise.
4560 * gnulib/import/m4/fnmatch.m4: Likewise.
4561 * gnulib/import/m4/glibc21.m4: Likewise.
4562 * gnulib/import/m4/localcharset.m4: Likewise.
4563 * gnulib/import/m4/locale-fr.m4: Likewise.
4564 * gnulib/import/m4/locale-ja.m4: Likewise.
4565 * gnulib/import/m4/locale-zh.m4: Likewise.
4566 * gnulib/import/m4/mbrtowc.m4: Likewise.
4567 * gnulib/import/m4/mbsinit.m4: Likewise.
4568 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4569 * gnulib/import/m4/mbstate_t.m4: Likewise.
4570 * gnulib/import/m4/stdbool.m4: Likewise.
4571 * gnulib/import/m4/wchar_h.m4: Likewise.
4572 * gnulib/import/m4/wctype_h.m4: Likewise.
4573 * gnulib/import/m4/wint_t.m4: Likewise.
4574 * gnulib/import/mbrtowc.c: Likewise.
4575 * gnulib/import/mbsinit.c: Likewise.
4576 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4577 * gnulib/import/mbsrtowcs-state.c: Likewise.
4578 * gnulib/import/mbsrtowcs.c: Likewise.
4579 * gnulib/import/ref-add.sin: Likewise.
4580 * gnulib/import/ref-del.sin: Likewise.
4581 * gnulib/import/stdbool.in.h: Likewise.
4582 * gnulib/import/streq.h: Likewise.
4583 * gnulib/import/strnlen1.c: Likewise.
4584 * gnulib/import/strnlen1.h: Likewise.
4585 * gnulib/import/verify.h: Likewise.
4586 * gnulib/import/wchar.in.h: Likewise.
4587 * gnulib/import/wctype.in.h: Likewise.
4589 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4591 Support shell wildcards for 'set auto-load safe-path'.
4592 * auto-load.c: Include fnmatch.h.
4593 (filename_is_in_dir): Rename to ...
4594 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4595 it. Update function comment. Rename dir_len to pattern_len. New
4596 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4597 messages. Use gdb_filename_fnmatch.
4598 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4600 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4601 * defs.h (gdb_filename_fnmatch): New declaration.
4602 * utils.c: Include fnmatch.h.
4603 (gdb_filename_fnmatch): New function.
4605 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4607 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4608 `-probe' and `-probe-stap' options.
4610 2012-07-01 Yao Qi <yao@codesourcery.com>
4612 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4613 always_inserted_off, and always_inserted_enums.
4614 Change always_inserted_mode's type to 'enum auto_boolean'.
4615 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4617 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4618 of add_setshow_enum_cmd.
4619 * infrun.c: Remove can_use_displaced_stepping_auto,
4620 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4621 can_use_displaced_stepping_enum.
4622 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4623 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4624 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4625 add_setshow_enum_cmd.
4627 2012-06-30 Doug Evans <dje@google.com>
4629 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4630 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4631 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4633 2012-06-29 Doug Evans <dje@google.com>
4635 * linespec.c: #include "stack.h".
4636 (decode_line_with_current_source): Moved here from symtab.c and
4637 renamed from decode_line_spec. All callers updated.
4638 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4639 renamed from decode_line_spec_1. All callers updated.
4640 * linespec.h (decode_line_with_current_source): Move declaration here
4641 from symtab.h and renamed from decode_line_spec.
4642 (decode_line_with_last_displayed): Move declaration here from symtab.h
4643 and renamed from decode_line_spec_1.
4644 * macrocmd.c: #include "linespec.h".
4645 * symtab.c: Remove #include "linespec.h".
4647 2012-06-28 Doug Evans <dje@google.com>
4649 * dwarf2read.c (get_cu_length): New function.
4650 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4651 (create_debug_types_hash_table): Ditto.
4652 (init_cutu_and_read_dies): Ditto.
4653 (init_cutu_and_read_dies_no_follow): Ditto.
4655 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4657 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4658 (struct abbrev_table): Define.
4659 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4661 (init_cutu_and_read_dies): Update.
4662 (abbrev_table_alloc_abbrev): New function. Replaces
4663 dwarf_alloc_abbrev. All callers updated.
4664 (abbrev_table_add_abbrev): New function.
4665 (abbrev_table_lookup_abbrev): New function. Replaces
4666 dwarf2_lookup_abbrev. All callers updated.
4667 (abbrev_table_read_table): New function. Contents moved here from
4668 dwarf2_read_abbrevs.
4669 (dwarf2_read_abbrevs): Call it.
4670 (abbrev_table_free): New function.
4671 (dwarf2_free_abbrev_table): Call it.
4673 2012-06-28 Stan Shebs <stan@codesourcery.com>
4675 * osdata.c (info_osdata_command): Filter out "Title" columns
4677 * common/linux-osdata.c (struct osdata_type): Add title field.
4678 (osdata_table): Add titles to each entry.
4679 (linux_command_xfer_osdata): Add a column for title data.
4681 2012-06-28 Stan Shebs <stan@codesourcery.com>
4683 Make logging work for MI.
4685 * interps.h (interp_set_logging_ftype): New typedef.
4686 (struct interp_procs): New field set_logging_proc.
4687 (current_interp_set_logging): Declare.
4688 * interps.c (current_interp_set_logging): New function.
4689 * cli/cli-logging.c: Include interps.h.
4690 (set_logging_redirect): Call current_interp_set_logging.
4691 (pop_output_files): Ditto.
4692 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4693 * mi/mi-console.h (mi_console_set_raw): Declare.
4694 * mi/mi-console.c (mi_console_set_raw): New function.
4695 * mi/mi-interp.c (saved_raw_stdout): New global.
4696 (mi_set_logging): New function.
4697 (_initialize_mi_interp): Add it to interp procs.
4699 2012-06-28 Doug Evans <dje@google.com>
4701 * symtab.c (lookup_symbol_aux_objfile): Use
4702 ALL_OBJFILE_PRIMARY_SYMTABS.
4704 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4706 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4708 * common/buffer.c: Include inttypes.h and stdint.h.
4709 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4711 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4712 Pedro Alves <palves@redhat.com>
4714 * gdbthread.h (ALL_THREADS): New macro.
4715 (thread_list): Declare.
4716 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4717 going, but instead fall through to the stepping handling.
4718 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4719 the passed in signal. Adjust debug output.
4720 (resume_callback): Rename to ...
4721 (linux_nat_resume_callback): ... this. Pass the thread's last
4722 stop signal, if in "pass" state.
4723 (linux_nat_resume): Adjust to rename.
4724 (stop_wait_callback): New assertion. Don't respawn signals;
4725 instead let the LWP remain with SIGNALLED set.
4726 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4727 * remote.c (append_pending_thread_resumptions): New.
4728 (remote_vcont_resume): Call it.
4729 * target.h (target_resume): Extend comment.
4731 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4733 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4735 2012-06-27 Doug Evans <dje@google.com>
4737 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4738 Delete have_addr_base, unused. All uses updated.
4739 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4740 (dwarf2_get_pc_bounds): Add ranges_base.
4741 (dwarf2_record_block_ranges): Ditto.
4743 2012-06-27 Tom Tromey <tromey@redhat.com>
4746 * varobj.c (varobj_create): Update.
4747 (varobj_set_value): Update.
4748 * tracepoint.c (validate_actionline): Update.
4749 (encode_actions_1): Update.
4750 * parse.c (parse_exp_1): Add 'pc' argument.
4751 (parse_exp_in_context): Add 'pc' argument. Change how
4752 expression_context_pc is set.
4753 (parse_expression): Update.
4754 (parse_field_expression): Update.
4755 * expression.h (parse_exp_1): Update.
4756 * eval.c (parse_to_comma_and_eval): Update.
4757 * breakpoint.c (set_breakpoint_condition): Update.
4758 (update_watchpoint): Update.
4759 (init_breakpoint_sal): Update
4760 (find_condition_and_thread): Update.
4761 (watch_command_1): Update.
4762 (update_breakpoint_locations): Update.
4763 * ada-lang.c (ada_read_renaming_var_value): Update.
4764 (create_excep_cond_exprs): Update.
4766 2012-06-27 Doug Evans <dje@google.com>
4768 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4771 2012-06-26 Doug Evans <dje@google.com>
4773 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4775 (error_check_comp_unit_head): New arg abbrev_section. All callers
4777 (read_and_check_comp_unit_head): Ditto.
4778 (read_and_check_type_unit_head): Ditto.
4780 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4782 New attribute 'last' for gdb.Symtab_and_line.
4783 * NEWS (Python Scripting): Add entry about the new attribute.
4784 * python/py-symtab.c (salpy_get_last): New function which
4785 implements the get method for the 'last' attribute of
4786 gdb.Symtab_and_line.
4787 (sal_object_getset): Add entry for the 'last' attribute.
4789 2012-06-26 Doug Evans <dje@google.com>
4791 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4792 (dwo_sections): Add macinfo, macro.
4793 (dwarf2_locate_dwo_sections): Watch for macro sections.
4794 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4795 All callers updated. Handle DWO files.
4797 * NEWS: Mention new options "set debug dwarf2-read" and
4798 "set debug symtab-create".
4799 * dwarf2read.c (dwarf2_read_debug): New static global.
4800 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4801 (process_queue): Ditto.
4802 (process_full_comp_unit): Ditto.
4803 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4804 * elfread.c (elf_symfile_read): Add debugging printf.
4805 * minsyms.c (install_minimal_symbols): Ditto.
4806 * psymtab.c (allocate_psymtab): Ditto.
4807 * symfile.c (allocate_symtab): Ditto.
4808 * symtab.c (symtab_create_debug): New global.
4809 (_initialize_symtab): Add new option "set debug symtab-create".
4810 * symtab.h (symtab_create_debug): Declare.
4812 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4813 (lookup_dwo_type_unit): Ditto.
4815 2012-06-26 Roland McGrath <roland@hack.frob.com>
4816 H.J. Lu <hongjiu.lu@intel.com>
4818 * amd64-linux-nat.c: Include <sys/user.h>.
4819 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4820 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4821 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4823 * configure.ac: Check if the fs_base and gs_base members of
4824 `struct user_regs_struct' exist.
4825 * config.in: Regenerated.
4826 * configure: Likewise.
4828 2012-06-25 Michael Eager <eager@eagercon.com>
4831 * python/python.c (gdbpy_write): Check for interrupted output.
4833 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4835 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4836 register as a stack alignment in ARM mode.
4838 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4840 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4841 * gnulib/config.in: Regenerate.
4842 * gnulib/configure: Likewise.
4843 * gnulib/import/m4/extensions.m4: Update it.
4844 * gnulib/import/m4/gnulib-common.m4: Likewise.
4845 * gnulib/import/m4/memmem.m4: Likewise.
4846 * gnulib/import/m4/mmap-anon.m4: Likewise.
4847 * gnulib/import/m4/multiarch.m4: Likewise.
4848 * gnulib/import/stdint.in.h: Likewise.
4850 2012-06-24 Yao Qi <yao@codesourcery.com>
4852 * corefile.c (write_memory_with_notification): New.
4853 * gdbcore.h: Declare write_memory_with_notification.
4854 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4855 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4856 * valops.c (value_assign): Likewise.
4857 * python/py-inferior.c (infpy_write_memory): Call
4858 'write_memory_with_notification'.
4860 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4862 * cc-with-index.sh: Use also -ex "set auto-load no".
4864 2012-06-23 Doug Evans <dje@google.com>
4867 * NEWS: Document additions to .gdb_index.
4868 * dwarf2read.c: #include "gdb/gdb-index.h".
4869 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4870 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4871 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4872 (dwarf2_read_index): Recognize version 7.
4873 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4874 block_kind, domain): All callers updated.
4875 (dw2_find_symbol_file): Handle new index CU values.
4876 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4877 (add_index_entry): New args is_static, kind. All callers updated.
4878 (offset_type_compare, uniquify_cu_indices): New functions
4879 (symbol_kind): New function.
4880 (write_psymtabs_to_index): Remove duplicate CU values.
4881 (write_psymtabs_to_index): Write .gdb_index version 7.
4883 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4885 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4886 * configure: Regenerate.
4888 2012-06-20 Yao Qi <yao@codesourcery.com>
4890 * python/py-inferior.c: Update comments of infpy_read_memory
4891 and infpy_write_memory.
4893 2012-06-19 Tom Tromey <tromey@redhat.com>
4896 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4897 (push_type_address_space): Remove.
4898 * parse.c (insert_into_type_stack): New function.
4899 (insert_type): Likewise.
4900 (insert_type_address_space): Rename from push_type_address_space.
4901 Insert tp_space_identifier.
4902 * c-exp.y (ptr_operator): New production.
4903 (abs_decl): Use ptr_operator.
4904 (space_identifier): Call insert_type_address_space.
4905 (ptype): Don't use const_or_volatile_or_space_identifier.
4906 (const_or_volatile_noopt): Call insert_type.
4907 (conversion_type_id, conversion_declarator): New productions.
4908 (operator): Use conversion_type_id.
4910 2012-06-18 Doug Evans <dje@google.com>
4912 * symtab.h (minimal_symbol): New member created_by_gdb.
4913 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4915 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4916 (search_symbols): Call it instead of lookup_symbol.
4917 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4919 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4920 Adjust address for DW_OP_GNU_addr_index.
4921 * dwarf2expr.h (dwarf_expr_context): Update comment.
4922 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4923 all callers updated. Handle TLS vars described with
4924 DW_OP_GNU_const_index.
4925 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4926 and DW_OP_GNU_const_index.
4927 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4929 * block.c (find_block_in_blockvector): Make explicit the fact that we
4930 ignore GLOBAL_BLOCK.
4932 2012-06-18 Tom Tromey <tromey@redhat.com>
4934 * c-exp.y (operator): Remove trailing space after "delete" and
4937 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4938 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 Switch i386 and derived targets to ON_STACK.
4941 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4942 (amd64_dicos_init_abi): Remove its installment.
4943 * dicos-tdep.c (dicos_init_abi): Remove the
4944 set_gdbarch_call_dummy_location call. Update the comment here.
4945 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4946 (i386_dicos_init_abi): Remove its installment.
4947 * i386-tdep.c (i386_push_dummy_code): New function.
4948 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4949 i386_push_dummy_code.
4951 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4953 Remove stale dummy frames.
4954 * breakpoint.c: Include dummy-frame.h.
4955 (longjmp_breakpoint_ops): New variable.
4956 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4957 bp_longjmp_call_dummy.
4958 (bpstat_what, bptype_string, print_one_breakpoint_location)
4959 (init_bp_location): Support bp_longjmp_call_dummy.
4960 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4961 (set_longjmp_breakpoint_for_call_dummy)
4962 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4964 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4965 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4966 FIXME comment and extend the other comment for bp_call_dummy.
4967 (set_longjmp_breakpoint_for_call_dummy)
4968 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4969 * dummy-frame.c: Include gdbthread.h.
4970 (pop_dummy_frame_bpt): New function.
4971 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4972 (dummy_frame_discard): New function.
4973 (cleanup_dummy_frames): Update the comment about longjmps.
4974 * dummy-frame.h (dummy_frame_discard): New declaration.
4975 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4976 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4977 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4978 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4979 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4980 keep_going if IS_LONGJMP and there is no other reason to stop.
4982 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4984 * remote-sim.c (sim_command_completer): Initialize
4987 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4990 * dwarf2loc.c (call_site_parameter_matches): Support
4991 CALL_SITE_PARAMETER_PARAM_OFFSET.
4992 (needs_dwarf_reg_entry_value): Push stub value.
4993 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4994 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4995 * gdbtypes.h (enum call_site_parameter_kind): New item
4996 CALL_SITE_PARAMETER_PARAM_OFFSET.
4997 (struct call_site.parameter.u): New field param_offset.
4999 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5001 Code cleanup: Generalize call_site.parameter key.
5002 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5003 variable dwarf_reg. New variable kind_u. Update parameters to
5004 push_dwarf_reg_entry_value.
5005 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5006 * dwarf2expr.h (enum call_site_parameter_kind)
5007 (union call_site_parameter_u): Forward declarations.
5008 (struct dwarf_expr_context_funcs): Update parameters and their
5009 description for push_dwarf_reg_entry_value.
5010 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5011 * dwarf2loc.c (call_site_parameter_matches): New function.
5012 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5013 description. Use call_site_parameter_matches.
5014 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5015 Update parameters and their description.
5016 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5017 New variable kind_u. Adjust the caller for updated parameters.
5018 (needs_dwarf_reg_entry_value): Update parameters.
5019 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5020 instead of attr. Update for the changed fields of struct
5021 call_site_parameter.
5022 * gdbtypes.h: Include dwarf2expr.h.
5023 (enum call_site_parameter_kind): New.
5024 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5025 fb_offset into new union u.
5027 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5029 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5030 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5033 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5035 * amd64-linux-nat.c (compat_x32_clock_t): New.
5036 (compat_x32_siginfo_t): Likewise.
5037 (compat_x32_siginfo_from_siginfo): Likewise.
5038 (siginfo_from_compat_x32_siginfo): Likewise.
5039 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5040 and siginfo_from_compat_x32_siginfo for x32.
5042 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5044 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5046 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5048 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5049 instead of gdbarch_ptr_bit.
5050 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5051 (amd64_supply_native_gregset): Likewise.
5052 (amd64_collect_native_gregset): Likewise.
5053 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5054 (amd64_supply_xsave): Likewise.
5055 (amd64_collect_fxsave): Likewise.
5056 (amd64_collect_xsave): Likewise.
5058 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5060 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5061 (amd64_linux_read_description): Check DS segment register for
5064 2012-06-15 Tom Tromey <tromey@redhat.com>
5066 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5067 init_cutu_and_read_dies.
5069 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5071 * MAINTAINERS (Write After Approval): Add myself to the list.
5073 2012-06-15 Tom Tromey <tromey@redhat.com>
5075 * valops.c (value_find_oload_method_list): Now static.
5076 * value.h (value_find_oload_method_list): Don't declare.
5078 2012-06-15 Tom Tromey <tromey@redhat.com>
5080 * valops.c (find_overload_match): Use value_ind.
5082 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5084 * infrun.c (handle_inferior_event): Correct indentation.
5086 2012-06-14 Doug Evans <dje@google.com>
5088 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5089 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5091 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5092 updated. Handle DEBUG_LOC_START_LENGTH.
5093 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5094 (loclist_describe_location): Ditto.
5096 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5099 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5100 after hiding inline functions.
5102 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5104 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5105 _initialize_inf_ttrace.
5107 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5109 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5110 _initialize_hppa_hpux_nat.
5112 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5114 * remote-sim.c (sim_command_completer): Change type of return
5115 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5117 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5118 Jan Kratochvil <jan.kratochvil@redhat.com>
5121 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5122 stack on a 16-byte boundary.
5124 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5126 * jit.c (finalize_symtab): Set function's return type to 'void' by
5129 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5130 H.J. Lu <hongjiu.lu@intel.com>
5132 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5133 Move bits common to both the classic LP64 and the new x32 ILP32
5135 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5136 (amd64_x32_linux_init_abi): New function.
5137 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5140 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5141 * i386-tdep.c (i386_pseudo_register_name): Make public.
5142 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5143 * amd64-tdep.c (amd64_dword_names): Add "eip".
5144 (amd64_x32_pseudo_register_type): New function
5145 (amd64_x32_init_abi): New function.
5147 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5150 * inferior.h (struct inferior_suspend_state): Comment out.
5151 (struct inferior): Comment out the field suspend.
5152 * infrun.c (struct infcall_suspend_state): Comment out the field
5154 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5157 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5159 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5160 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5161 function comment. Return ERROR for unresolved cases. Implement
5162 returning proper NAME.
5163 (yylex): Accept also NAME from classify_inner_name.
5164 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5165 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5167 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5169 2012-06-13 Tom Tromey <tromey@redhat.com>
5171 * breakpoint.c (condition_completer): New function.
5172 (_initialize_breakpoint): Use it.
5173 * value.c (complete_internalvar): New function.
5174 * value.h (complete_internalvar): Declare.
5176 2012-06-13 Tom Tromey <tromey@redhat.com>
5178 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5179 * breakpoint.c (catch_syscall_completer): Return a VEC.
5180 * cli/cli-cmds.c (complete_command): Update.
5181 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5182 (complete_on_enum): Likewise.
5183 * command.h: Include gdb_vecs.h.
5184 (completer_ftype): Change return type.
5185 (complete_on_cmdlist, complete_on_enum): Likewise.
5186 * completer.c (noop_completer, filename_completer)
5187 (location_completer): Return a VEC.
5188 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5190 (expression_completer, complete_line_internal, complete_line)
5191 (command_completer): Return a VEC.
5192 (gdb_completion_word_break_characters, line_completion_function):
5194 * completer.h: Include gdb_vecs.h.
5195 (complete_line, noop_completer, filename_completer)
5196 (expression_completer, location_completer, command_completer):
5198 * f-lang.c (f_word_break_characters): Return a VEC.
5199 * interps.c (interpreter_completer): Return a VEC.
5200 * language.h (struct language_defn)
5201 <la_make_symbol_completion_list>: Return a VEC.
5202 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5203 * symtab.c (free_completion_list): Take a VEC.
5204 (return_val_size, return_val_index): Remove.
5205 (return_val): Now a VEC.
5206 (completion_list_add_name): Update.
5207 (default_make_symbol_completion_list_break_on)
5208 (default_make_symbol_completion_list, make_symbol_completion_list)
5209 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5211 (add_filename_to_list): Update.
5212 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5214 (maybe_add_partial_symtab_filename): Update.
5215 (make_source_files_completion_list): Return a VEC.
5216 * symtab.h (default_make_symbol_completion_list_break_on)
5217 (default_make_symbol_completion_list, make_symbol_completion_list)
5218 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5219 (make_source_files_completion_list): Update.
5221 2012-06-13 Tom Tromey <tromey@redhat.com>
5223 * breakpoint.c (add_catch_command): Use completer_ftype.
5224 * breakpoint.h: Include command.h.
5225 (add_catch_command): Use completer_ftype.
5226 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5227 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5228 Use completer_ftype.
5229 * command.h (completer_ftype): New typedef.
5230 (set_cmd_completer): Use it.
5231 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5234 2012-06-13 Pedro Alves <palves@redhat.com>
5236 Partial revert of previous change.
5238 * serial.c (scb_base): New global.
5239 (serial_for_fd): New.
5240 (serial_open, serial_fdopen_ops): Link new serial in open serials
5242 (do_serial_close): Unlink serial from the open serials chain.
5244 2012-06-12 Pedro Alves <palves@redhat.com>
5246 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5248 (prepare_for_detach): No longer context switch here in non-stop
5250 (fetch_inferior_event): Ditto.
5251 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5252 to the event thread before removing breakpoints. Switch to the
5253 event thread before inserting breakpoints and resuming.
5254 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5255 event thread before resuming.
5256 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5257 Switch to the event thread before removing breakpoints.
5259 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5261 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5262 special characters correctly for the Windows shells. See
5263 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5265 [!__MINGW32__]: Remove extra double quote character from special
5268 2012-06-11 Stan Shebs <stan@codesourcery.com>
5270 * ui-out.h: Remove #if 0 declarations.
5271 * ui-out.c: Remove #if 0 functions.
5273 2012-06-11 Pedro Alves <palves@redhat.com>
5275 * ser-base.c (run_async_handler_and_reschedule): New.
5276 (fd_event, push_event): Use it.
5277 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5278 reference count to 1.
5279 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5281 (serial_is_open, serial_ref, serial_unref): New.
5282 * serial.h (serial_open): Adjust comment.
5283 (serial_is_open): Declare.
5284 (serial_close): Adjust comment.
5285 (serial_ref, serial_unref) Declare.
5286 (struct serial): New field 'refcnt'.
5288 2012-06-11 Pedro Alves <palves@redhat.com>
5290 Remove #if 0'd "connect" command, and unnecessary associated
5291 refcounting and serial reuse bits.
5293 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5294 * serial.c (last_serial_opened): Delete.
5296 (serial_open): Adjust.
5297 (serial_for_fd): Delete.
5298 (serial_fdopen_ops, do_serial_close): Adjust.
5299 (serial_fdopen_ops): Adjust.
5301 2012-06-11 Pedro Alves <palves@redhat.com>
5303 * serial.c (do_serial_close): Remove early return when SCB is
5306 2012-06-11 Tom Tromey <tromey@redhat.com>
5308 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5310 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5312 Fix regression by the "ambiguous linespec" series.
5313 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5314 get_last_displayed_symtab and get_last_displayed_line and depending
5317 2012-06-11 Tom Tromey <tromey@redhat.com>
5319 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5320 (dw2_find_symbol_file): Use it.
5322 2012-06-11 Michael Eager <eager@eagercon.com>
5324 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5325 * mips-linux-tdep.h (mips_signals): New
5327 2012-06-11 Tom Tromey <tromey@redhat.com>
5329 * infrun.c (handle_inferior_event)
5330 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5332 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5333 exception logic in all cases. Update comments.
5334 (insert_longjmp_resume_breakpoint): Set the exception resume
5337 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5339 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5341 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5343 * valarith.c (binop_types_user_defined_p): Fix a typo.
5345 2012-06-08 Yao Qi <yao@codesourcery.com>
5346 Chung-Lin Tang <cltang@codesourcery.com>
5348 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5349 * arch-utils.h: Declare.
5350 * gdbarch.sh: Add return_in_first_hidden_param_p.
5351 * gdbarch.c, gdbarch.h: Regenerated.
5352 * infcall.c (call_function_by_hand): Call
5353 gdbarch_return_in_first_hidden_param_p instead of
5354 language_pass_by_reference.
5356 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5357 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5358 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5359 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5360 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5361 `cplus_return_struct_by_reference'.
5362 (tic6x_return_value): Handle language cplusplus.
5363 (tic6x_return_in_first_hidden_param_p): New.
5364 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5366 2012-06-07 Doug Evans <dje@google.com>
5368 * dwarf2read.c (dwarf2_cu): Add comment.
5370 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5372 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5374 (mips_eabi_push_dummy_call): Likewise.
5375 (mips_n32n64_push_dummy_call): Likewise.
5376 (mips_o32_push_dummy_call): Likewise.
5377 (mips_o64_push_dummy_call): Likewise.
5379 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5381 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5383 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5385 * mips-tdep.c (mips_pseudo_register_type): Use
5386 mips_float_register_p.
5388 2012-06-06 Pedro Alves <palves@redhat.com>
5390 * infrun.c (handle_inferior_event): Remove calls to
5391 reinit_frame_cache that follow a context_switch call.
5393 2012-06-06 Pedro Alves <palves@redhat.com>
5395 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5396 context_switch and remove stale comment.
5398 2012-06-06 Pedro Alves <palves@redhat.com>
5400 * infrun.c (struct execution_control_state): Remove
5401 `new_thread_event' field.
5402 (handle_inferior_event): Simplify new threads handling; don't
5403 resume the inferior if we find a new thread.
5405 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5407 * NEWS: Document the deprecation of SH's 'regs' command.
5408 * inferior.h (all_registers_info): Add function declaration.
5409 * sh-tdep.c (sh_show_regs): Remove variable.
5410 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5411 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5412 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5413 (sh_show_regs_command): Remove functions.
5414 (sh_gdbarch_init): Don't set sh_show_regs.
5415 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5416 'info all-registers'.
5417 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5418 (sh64_show_regs): Remove functions.
5419 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5421 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5423 * configure.ac: Move development=true below AC_INIT.
5424 * configure: Regenerate.
5426 2012-06-05 Stan Shebs <stan@codesourcery.com>
5428 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5431 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5433 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5434 argument as ssize_t.
5435 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5436 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5437 * target.c (target_read_stack, target_write_memory)
5438 (target_write_raw_memory): Likewise.
5439 * target.h (target_read_stack, target_write_memory)
5440 (target_write_raw_memory): Likewise.
5442 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5444 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5445 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5446 * target.c (target_read_memory): Change LEN to ssize_t.
5447 * target.h (target_read_memory): Change LEN to ssize_t.
5449 2012-06-05 Pedro Alves <palves@redhat.com>
5453 * breakpoint.c (until_break_command): Only fetch the selected
5454 frame after decode_line_1.
5456 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5458 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5459 event breakpoint at _start, __start or main if a program
5460 interpreter is not found.
5462 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5464 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5466 * windows-tdep.c: #include "objfiles.h".
5467 (windows_iterate_over_objfiles_in_search_order): New function.
5468 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5469 iterate_over_objfiles_in_search_order gdbarch method to
5470 windows_iterate_over_objfiles_in_search_order.
5471 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5473 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5475 * gdbarch.sh: Add generation of
5476 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5477 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5478 (iterate_over_objfiles_in_search_order): New gdbarch method.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5480 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5482 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5484 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5485 out of lookup_symbol_aux_symtabs.
5486 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5487 call to lookup_symbol_aux_objfile.
5488 (struct global_sym_lookup_data): New type.
5489 (lookup_symbol_global_iterator_cb): New function.
5490 (lookup_symbol_global): Search for symbol using
5491 gdbarch_iterate_over_objfiles_in_search_order and
5492 lookup_symbol_global_iterator_cb.
5493 * findvar.c (struct minsym_lookup_data): New type.
5494 (minsym_lookup_iterator_cb): New function.
5495 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5496 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5497 and minsym_lookup_iterator_cb.
5499 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5501 Revert the following patch:
5502 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5503 try locating the symbol in the symbol's own objfile first, before
5504 extending the search to all objfiles.
5505 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5506 out of lookup_symbol_aux_symtabs.
5507 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5508 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5509 Do not search EXCLUDE_OBJFILE.
5510 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5511 (lookup_symbol_global): Search for matches in the block's objfile
5512 first, before searching all other objfiles.
5514 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5516 * breakpoint.c (find_condition_and_thread): Stop parsing
5517 as soon as the first invalid keyword is found.
5519 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5521 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5523 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5525 * config/djgpp/djcheck.sh: Add copyright header.
5527 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5529 * copyright.py (update_files, main): Fix path to update-copyright
5532 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5534 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5535 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5536 for which a reminder to update by hand is printed.
5538 2012-06-04 Doug Evans <dje@google.com>
5540 * buildsym.c (make_blockvector): Add comment.
5542 2012-06-04 Pedro Alves <palves@redhat.com>
5544 * arch-utils.c (default_gdb_signal_from_target): Delete.
5545 * arch-utils.h (default_gdb_signal_from_target): Delete.
5546 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5547 gdbarch_gdb_signal_from_target_p.
5548 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5550 * gdbarch.h: Regenerate.
5551 * gdbarch.c: Regenerate.
5553 2012-06-04 Pedro Alves <palves@redhat.com>
5555 * gdbarch.sh (gdb_signal_from_target): Mention that the
5556 implementation of the method must be host independent.
5557 * gdbarch.h: Regenerate.
5559 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5561 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5563 (target_read_memory_bfd): New function.
5564 (symbol_file_add_from_memory): Use it.
5566 2012-06-03 Doug Evans <dje@google.com>
5568 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5570 (basic_lookup_transparent_type): Ditto.
5572 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5573 (ALL_PRIMARY_SYMTABS): Use it.
5574 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5575 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5576 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5577 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5578 (basic_lookup_transparent_type): Ditto.
5580 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5582 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5583 it to optimize resolution of demangled name.
5585 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5587 * configure.ac (development): Define new variable.
5588 Call AC_CHECK_LIB for mcheck if $development.
5589 (ERROR_ON_WARNING): Enable it by default only if $development.
5590 * config.in: Regenerate.
5591 * configure: Regenerate.
5593 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5595 * target.c (target_read_memory): Make LEN argument as size_t.
5596 * target.h (target_read_memory): Likewise.
5598 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5600 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5602 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5604 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5605 BookE interface for PowerPC server processors if not available
5606 in the Linux Kernel.
5608 2012-05-31 Keith Seitz <keiths@redhat.com>
5610 * linespec.c (decode_objc): Add cleanup to free
5612 (find_linespec_symbols): Add cleanup to free CLASSES.
5613 * symfile.c (find_separate_debug_file_by_debuglink): Add
5614 cleanup to free DEBUGLINK.
5615 * ui-out.c (clear_header_list): No need to check if
5616 HEADER_NEXT.COLHDR is NULL.
5617 Free HEADER_NEXT.COL_NAME.
5619 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5621 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5624 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5626 * configure.host (gdb_host_cpu): Handle tilegx*.
5627 (gdb_host): Handle tilegx-*-linux*.
5628 * tilegx-linux-nat.c: New file.
5629 * config/tilegx/linux.mh: New file.
5631 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5633 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5634 tilegx-linux-tdep.o.
5635 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5636 tilegx-linux-tdep.c.
5637 * configure.tgt: Handle tilegx-*-linux*.
5638 * tilegx-tdep.h: New file.
5639 * tilegx-tdep.c: New file.
5640 * tilegx-linux-tdep.c: New file.
5641 * regformats/reg-tilegx.dat: New file.
5643 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5645 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5646 accounting of hw watchpoints on ppc.
5648 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5650 * source.c (openp): Expand tilde in path entries.
5652 2012-05-29 Doug Evans <dje@google.com>
5654 * buildsym.c (block_compar): Fix comment.
5655 (end_symtab): Fix and clarify some comments.
5657 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5658 cleanup_undefined_types.
5659 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5660 All callers updated.
5662 2012-05-29 Tom Tromey <tromey@redhat.com>
5664 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5666 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5667 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5669 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5672 2012-05-29 Tristan Gingold <gingold@adacore.com>
5674 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5675 (struct darwin_info): ... New struct.
5676 (solib_darwin_pspace_data): New variable.
5677 (darwin_pspace_data_cleanup): New function.
5678 (get_darwin_info): Likewise.
5679 (darwin_dyld_version_ok, darwin_load_image_infos)
5680 (darwin_solib_get_all_image_info_addr_at_init)
5681 (darwin_solib_read_all_image_info_addr): Add info argument.
5683 (darwin_current_sos): Use per pspace structure.
5684 (darwin_solib_create_inferior_hook): Likewise.
5685 (darwin_clear_solib): Likewise.
5686 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5688 2012-05-28 Pedro Alves <palves@redhat.com>
5690 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5691 block that uses them. Clear ecss before handling each event.
5693 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 * solib-svr4.c (svr4_current_sos): New comment on
5696 svr4_current_sos_via_xfer_libraries fall back.
5698 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5700 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5701 it as a fallback for TYPE_IS_OPAQUE.
5702 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5703 symbols for lookup_symbol.
5705 2012-05-24 John Steele Scott <toojays@toojays.net>
5707 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5708 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5709 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5710 (check_producer): ... this new function, which also checks for ICC
5711 and caches the result.
5712 (producer_is_icc): New function.
5713 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5716 2012-05-24 Pedro Alves <palves@redhat.com>
5720 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5721 (default_gdb_signal_to_target): ... this. Add comment.
5722 (default_gdb_signal_from_host): Rename to ...
5723 (default_gdb_signal_from_target): ... this. Add comment.
5724 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5725 (default_gdb_signal_to_target): ... this.
5726 (default_gdb_signal_from_host): Rename to ...
5727 (default_gdb_signal_from_target): ... this.
5728 * corelow.c (core_open): Adjust to naming change. Replace comment.
5729 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5730 (gdb_signal_from_target): ... this. Adjust to
5731 default_gdb_signal_from_host naming change. Extend comment.
5732 (gdb_signal_to_host): Rename to ...
5733 (gdb_signal_to_target): ... this. Adjust to
5734 default_gdb_signal_to_host naming change.
5735 * gdbarch.h, gdbarch.c: Renegerate.
5737 2012-05-24 Pedro Alves <palves@redhat.com>
5741 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5743 2012-05-24 Pedro Alves <palves@redhat.com>
5747 Replace target_signal with gdb_signal throughout.
5749 2012-05-24 Pedro Alves <palves@redhat.com>
5753 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5754 string, instead of reusing the va_list argument.
5756 2012-05-24 Tom Tromey <tromey@redhat.com>
5758 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5761 2012-05-23 Doug Evans <dje@google.com>
5763 * symtab.c (search_symbols): Formatting fixes.
5764 (print_symbol_info): Formatting fixes.
5766 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5767 int64_t change to leb128 API.
5768 (read_encoded_value, decode_frame_entry_1): Ditto.
5769 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5770 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5771 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5772 (execute_stack_op): Ditto.
5773 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5774 (safe_read_uleb128, safe_read_sleb128): Ditto.
5775 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5776 (dwarf2_compile_expr_to_ax): Ditto.
5777 (locexpr_describe_location_piece): Ditto.
5778 (disassemble_dwarf_expression): Ditto.
5779 (locexpr_describe_location_1): Ditto.
5781 2012-05-23 Stan Shebs <stan@codesourcery.com>
5782 Kwok Cheung Yeung <kcy@codesourcery.com>
5784 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5785 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5786 (mi-cmd-info.o): New rule.
5787 * osdata.h (info_osdata_command): New declaration.
5788 * osdata.c (info_osdata_command): Change to non-static.
5789 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5790 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5791 * mi/mi-cmd-info.c: New file.
5793 2012-05-23 Doug Evans <dje@google.com>
5795 * symtab.c (search_symbols): Pass NULL for file_matcher to
5796 expand_symtabs_matching if there are no files to match.
5798 * gdbtypes.c (lookup_typename): Simplify.
5800 2012-05-23 Pedro Alves <palves@redhat.com>
5802 * arch-utils.h (default_target_signal_to_host): Delete.
5803 * arch-utils.c (default_target_signal_to_host): Delete.
5804 * gdbarch.sh (target_signal_to_host): Remove.
5805 * gdbarch.h, gdbarch.c: Regenerate.
5807 2012-05-22 Doug Evans <dje@google.com>
5809 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5811 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5812 (execute_cfa_program): Update to match API of leb128 functions.
5813 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5815 (read_unsigned_leb128, read_signed_leb128): Delete.
5816 (read_initial_length): Change type of buf argument to
5818 (read_encoded_value): Update to match API of leb128 functions.
5819 (decode_frame_entry): Change result to "const gdb_byte *", and
5820 similarly for "start" parameter.
5821 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5822 (dwarf2_build_frame_info): Change local frame_ptr to
5824 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5825 read_uleb128, read_sleb128. All callers updated.
5826 (safe_skip_leb128): New function.
5827 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5828 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5829 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5830 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5831 read_uleb128, read_sleb128.
5832 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5833 (execute_stack_op): Update to match API of leb128 functions.
5834 * dwarf2expr.h: #include "leb128.h".
5835 (read_uleb128, read_sleb128): Delete.
5836 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5837 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5838 * dwarf2loc.c (debug_loc_kind): New enum.
5839 (decode_debug_loc_addresses): New function.
5840 (decode_debug_loc_dwo_addresses): New function.
5841 (dwarf2_find_location_expression): Rewrite.
5842 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5843 (locexpr_describe_location_piece): Ditto.
5844 (disassemble_dwarf_expression): Ditto.
5845 (locexpr_describe_location_1): Ditto.
5846 (loclist_describe_location): Rewrite.
5847 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5848 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5849 (dwarf2_section_buffer_overflow_complaint): Renamed from
5850 dwarf2_macros_too_long_complaint. All callers updated.
5851 (skip_leb128): Delete.
5852 (init_cu_die_reader): Initialize reader->buffer_end.
5853 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5854 (skip_form_bytes): New arg buffer_end. All callers updated.
5855 Replace call to skip_leb128 with gdb_skip_leb128.
5856 (skip_unknown_opcode): New arg mac_end. All callers updated.
5857 (fill_in_loclist_baton): Initialize baton->from_dwo.
5859 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5861 * mips-linux-nat.c (mips_linux_read_description): Use a more
5862 verbose error message.
5864 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5866 * NEWS: Add MIPS/Linux DSP support.
5867 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5868 (SIGCONTEXT_DSPCTL): New macro.
5869 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5870 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5871 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5872 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5873 (N64_SIGCONTEXT_HI3): Likewise.
5874 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5875 (N64_SIGCONTEXT_LO3): Likewise.
5876 (N64_SIGCONTEXT_DSPCTL): Likewise.
5877 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5878 (mips_linux_o32_sigframe_init): Handle DSP registers.
5879 (mips_linux_n32n64_sigframe_init): Likewise.
5881 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5883 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5886 2012-05-22 Pedro Alves <palves@redhat.com>
5888 * target.h (store_waitstatus): Move declaration ...
5889 * inf-child.h (store_waitstatus): ... here.
5890 * target.c: Move inclusion of gdb_wait.h, and ...
5891 (store_waitstatus): ... this ...
5892 * inf-child.c: ... here.
5893 * linux-nat.c: Include inf-child.h.
5894 * rs6000-nat.c: Include inf-child.h.
5895 * spu-linux-nat.c: Include inf-child.h.
5897 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5899 * tracepoint.c (start_tracing): Add missing i18n markup.
5900 (stop_tracing, set_trace_user): Ditto.
5901 (set_trace_notes, set_trace_stop_notes): Ditto.
5903 2012-05-21 Tom Tromey <tromey@redhat.com>
5906 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5908 * value.h (value_cast_pointers): Update.
5909 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5910 (value_cast): Update.
5911 (update_search_result): New function.
5912 (do_search_struct_field): New, from search_struct_field. Check
5913 for ambiguous results.
5914 (search_struct_field): Rewrite.
5915 * infcall.c (value_arg_coerce): Update.
5916 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5917 value_cast_pointers.
5918 * ada-lang.c (ada_convert_actual): Update.
5920 2012-05-21 Tom Tromey <tromey@redhat.com>
5922 * macroexp.c (macro_stringify): Terminate the string.
5924 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5926 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5928 * auto-load.c (auto_load_expand_dir_vars): New function.
5929 (auto_load_safe_path_vec_update): Use it, remove the
5930 substitute_path_component call thanks to it.
5931 (auto_load_objfile_script): Remove the debug_file_directory processing.
5932 Use auto_load_expand_dir_vars, remove the substitute_path_component
5934 * configure: Regenerate.
5935 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5936 path. Escape $ also for $debugdir.
5937 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5938 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5940 2012-05-20 Doug Evans <dje@google.com>
5942 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5943 before use. Check for symtab->includes == NULL before scanning it.
5945 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5947 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5949 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5951 * NEWS: Add microMIPS support and "set mips compression",
5952 "show mips compression" commands.
5953 * mips-tdep.h (mips_isa): New enum.
5954 (gdbarch_tdep): Add mips_isa.
5955 (mips_pc_is_mips16): Update prototype.
5956 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5957 * mips-tdep.c (mips_compression_mips16): New variable.
5958 (mips_compression_micromips): Likewise.
5959 (mips_compression_strings): Likewise.
5960 (mips_compression_string): Likewise.
5961 (is_mips16_isa, is_micromips_isa): New functions.
5962 (is_mips16_addr): Rename to...
5963 (is_compact_addr): ... this.
5964 (unmake_mips16_addr): Likewise to...
5965 (unmake_compact_addr): ... this.
5966 (make_mips16_addr): Likewise to...
5967 (make_compact_addr): ... this.
5968 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5970 (mips_elf_make_msymbol_special): Handle microMIPS code.
5971 (msymbol_is_special): Rename to...
5972 (msymbol_is_mips16): ... this.
5973 (mips_make_symbol_special, mips_pc_is_mips16): Update
5975 (msymbol_is_mips, msymbol_is_micromips): New functions.
5976 (mips16_to_32_reg): Rename to...
5977 (mips_reg3_to_reg): ... this.
5978 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5979 (mips_pc_isa): Likewise.
5980 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5982 (mips_fetch_instruction): Pass return status instead of printing
5983 an error message if requested. Handle microMIPS code. Bail out
5985 (micromips_op): New macro.
5986 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5987 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5988 (b6s4_op, b7s3_reg): Likewise.
5989 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5990 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5991 (mips_insn_size): New function.
5992 (mips32_next_pc): Update mips_fetch_instruction call.
5993 (micromips_relative_offset7): New function.
5994 (micromips_relative_offset10): Likewise.
5995 (micromips_relative_offset16): Likewise.
5996 (micromips_pc_insn_size): Likewise.
5997 (micromips_bc1_pc): Likewise.
5998 (micromips_next_pc): Likewise.
5999 (unpack_mips16): Update mips_fetch_instruction call.
6000 (extended_mips16_next_pc): Update according to change to
6002 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6004 (mips16_scan_prologue): Update mips_fetch_instruction call.
6005 Update according to change to mips16_to_32_reg.
6006 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6007 (mips_insn16_frame_base_sniffer): Likewise.
6008 (micromips_decode_imm9): New function.
6009 (micromips_scan_prologue): Likewise.
6010 (mips_micro_frame_cache): Likewise.
6011 (mips_micro_frame_this_id): Likewise.
6012 (mips_micro_frame_prev_register): Likewise.
6013 (mips_micro_frame_sniffer): Likewise.
6014 (mips_micro_frame_unwind): New variable.
6015 (mips_micro_frame_base_address): New function.
6016 (mips_micro_frame_base): New variable.
6017 (mips_micro_frame_base_sniffer): New function.
6018 (mips32_scan_prologue): Update mips_fetch_instruction call.
6019 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6020 rather than for MIPS16.
6021 (mips_insn32_frame_base_sniffer): Likewise.
6022 (mips_addr_bits_remove): Handle microMIPS code.
6023 (deal_with_atomic_sequence): Rename to...
6024 (mips_deal_with_atomic_sequence): ... this. Update the type
6025 of the variable used to hold an instruction. Remove the ISA bit
6026 check. Update mips_fetch_instruction call.
6027 (micromips_deal_with_atomic_sequence): New function.
6028 (deal_with_atomic_sequence): Likewise.
6029 (mips_about_to_return): Handle microMIPS code. Update
6030 mips_fetch_instruction call.
6031 (heuristic_proc_start): Check for the standard MIPS ISA rather
6032 than for MIPS16. Update mips_pc_is_mips16 and
6033 mips_fetch_instruction calls. Handle microMIPS code.
6034 (mips_push_dummy_code): Handle microMIPS code.
6035 (mips_eabi_push_dummy_call): Likewise.
6036 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6037 (mips_o64_push_dummy_call): Handle microMIPS code.
6038 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6039 (is_delayed): Remove function.
6040 (mips_single_step_through_delay): Replace the call to is_delayed
6041 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6042 Handle microMIPS code.
6043 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6045 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6047 (micromips_in_function_epilogue_p): New function.
6048 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6050 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6052 (gdb_print_insn_mips): Likewise.
6053 (mips_breakpoint_from_pc): Likewise.
6054 (mips_remote_breakpoint_from_pc): New function.
6055 (mips32_instruction_has_delay_slot): Simplify making use of the
6056 updated mips_fetch_instruction interface.
6057 (micromips_instruction_has_delay_slot): New function.
6058 (mips16_instruction_has_delay_slot): Simplify making use of the
6059 updated mips_fetch_instruction interface.
6060 (mips_adjust_breakpoint_address): Check for the standard MIPS
6061 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6062 calls. Handle microMIPS code.
6063 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6064 (mips_skip_trampoline_code): Handle microMIPS code.
6065 (global_mips_compression): New function.
6066 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6067 file flags. Register the microMIPS remote breakpoint handler
6068 and heuristic frame unwinder.
6069 (show_mips_compression): New function.
6070 (_initialize_mips_tdep): Add the "set mips compression" and
6071 "show mips compression" commands.
6073 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6078 * amd64-darwin-tdep.c:
6079 * arm-symbian-tdep.c:
6083 * bfin-linux-tdep.c:
6090 * dwarf2-frame-tailcall.c:
6119 * microblaze-tdep.c:
6120 * mips-linux-tdep.c:
6128 * python/py-finishbreakpoint.c:
6129 * python/py-inferior.c:
6130 * python/py-infthread.c:
6134 * remote-m32r-sdi.c:
6138 * rs6000-aix-tdep.c:
6164 * amd64-darwin-tdep.c:
6165 * arm-symbian-tdep.c:
6166 * arm-tdep.c: Delete unused variables.
6168 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6170 Rename $ddir to $datadir.
6171 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6172 * auto-load.c (auto_load_safe_path_vec_update)
6173 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6174 * configure: Regenerate.
6175 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6176 Likewise. Remove the 'use $ddir' help string.
6178 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6180 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6181 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6183 2012-05-18 Tom Tromey <tromey@redhat.com>
6186 * valprint.h (struct value_print_options) <symbol_print>: New
6188 * valprint.c (user_print_options): Add default for symbol_print.
6189 (show_symbol_print): New function.
6190 (generic_val_print): Respect symbol_print.
6191 (_initialize_valprint): Add "print symbol" setting.
6192 * f-valprint.c (f_val_print): Respect symbol_print.
6193 * c-valprint.c (c_val_print): Respect symbol_print.
6195 * printcmd.c (print_address_symbolic): Return int. Ignore some
6197 (print_address_demangle): Return int.
6198 * defs.h: (print_address_symbolic): Return int.
6199 * value.h (print_address_demangle): Return int.
6201 2012-05-18 Tom Tromey <tromey@redhat.com>
6203 * valprint.c (val_print_string): Don't print leading space.
6204 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6205 print space before string or vtbl.
6206 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6208 * jv-valprint.c (java_value_print): Print space before string.
6209 * go-valprint.c (print_go_string): Print space before string.
6210 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6211 space before string.
6212 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6213 space before string or vtbl.
6214 * auxv.c (fprint_target_auxv): Print space after address.
6216 2012-05-18 Tom Tromey <tromey@redhat.com>
6218 * printcmd.c (print_address_demangle): Remove special case for 0.
6220 2012-05-18 Tom Tromey <tromey@redhat.com>
6222 * printcmd.c (print_address_demangle): Add 'opts' argument.
6223 * p-valprint.c (pascal_val_print): Update.
6224 * jv-valprint.c (java_val_print): Update.
6226 * valprint.c (generic_val_print): Update.
6227 (print_function_pointer_address): Add 'options' argument. Remove
6228 'addressprint' argument. Update.
6229 * m2-valprint.c (print_unpacked_pointer): Update.
6230 * gnu-v3-abi.c (print_one_vtable): Update.
6231 (gnuv3_print_method_ptr): Update.
6232 * f-valprint.c (f_val_print): Update.
6233 * cp-valprint.c (cp_print_value_fields): Update.
6234 * valprint.h (print_function_pointer_address): Update.
6235 * c-valprint.c (c_val_print): Update.
6237 2012-05-18 Tom Tromey <tromey@redhat.com>
6239 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6240 directly corresponding to the found psymtab.
6241 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6242 (dw2_find_pc_sect_symtab): Use it.
6243 * block.h (blockvector_contains_pc): Declare.
6244 * block.c (find_block_in_blockvector): New function.
6245 (blockvector_for_pc_sect): Use it.
6246 (blockvector_contains_pc): New function.
6248 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6250 * mips-tdep.h (mips_write_pc): New prototype.
6251 * mips-tdep.c (mips_write_pc): Make external, add description.
6252 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6255 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6257 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6259 (mips_unwind_pc, mips_write_pc): Likewise.
6260 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6263 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6265 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6266 proc_warn, proc_error, proc_get_status, proc_flags,
6267 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6268 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6269 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6270 proc_stop_process, proc_wait_for_stop, proc_run_process,
6271 proc_set_traced_signals, proc_set_traced_faults,
6272 proc_set_traced_sysentry, proc_set_traced_sysexit,
6273 proc_set_held_signals, proc_get_held_signals,
6274 proc_get_traced_signals, proc_get_traced_faults,
6275 proc_get_traced_sysentry, proc_get_traced_sysexit,
6276 proc_clear_current_fault, proc_set_current_signal,
6277 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6278 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6279 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6280 proc_get_current_thread, proc_get_current_thread,
6281 proc_get_current_thread, proc_update_threads,
6282 proc_update_threads, proc_update_threads, proc_update_threads,
6283 proc_iterate_over_threads, procfs_find_new_threads,
6284 procfs_pid_to_str): Make static. Remove advance declaration.
6285 (proc_cursig): Make static. Conditionalized defintion on
6286 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6287 (proc_syscall, proc_set_kill_on_last_close,
6288 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6289 proc_get_pending_signals, proc_get_signal_actions,
6290 proc_trace_signal, proc_ignore_signal): Delete.
6292 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6294 * coffread.c (cs_section_address): Passing proper argument for
6295 `bfd_get_section_vma'.
6296 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6297 `bfd_get_section_flags'.
6298 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6299 `bfd_get_section_vma'.
6301 2012-05-16 Tom Tromey <tromey@redhat.com>
6304 * macrotab.h: (macro_define_special): Declare.
6305 (enum macro_special_kind): New.
6306 (struct macro_definition) <argc, replacement>: Update comments.
6307 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6308 (macro_define_object_internal): New function.
6309 (macro_define_object): Use it.
6310 (macro_define_special): New function.
6311 (fixup_definition): New function.
6312 (macro_lookup_definition, foreach_macro_in_scope)
6313 (foreach_macro): Use fixup_definition.
6314 * macroexp.h (macro_stringify): Declare.
6315 * macroexp.c (free_buffer_return_text): New function.
6316 (stringify): Constify "arg".
6317 (macro_stringify): New function.
6318 * dwarf2read.c (macro_start_file): Call macro_define_special.
6320 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6321 Maciej W. Rozycki <macro@mips.com>
6323 * breakpoint.h (bp_location): Add related_address member.
6324 * inferior.h (get_return_value): Take a pointer to struct value
6325 instead of struct type for the function requested.
6326 * value.h (using_struct_return): Likewise.
6327 * gdbarch.sh (return_value): Take a pointer to struct value
6328 instead of struct type for the function requested.
6329 * breakpoint.c (set_breakpoint_location_function): Initialize
6330 related_address for bp_gnu_ifunc_resolver breakpoints.
6331 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6332 requested function's address to gdbarch_return_value.
6333 * eval.c (evaluate_subexp_standard): Pass the requested
6334 function's address to using_struct_return.
6335 * infcall.c (call_function_by_hand): Pass the requested
6336 function's address to using_struct_return and
6337 gdbarch_return_value.
6338 * infcmd.c (get_return_value): Take a pointer to struct value
6339 instead of struct type for the function requested.
6340 (print_return_value): Update accordingly.
6341 (finish_command_continuation): Likewise.
6342 * stack.c (return_command): Pass the requested function's
6343 address to using_struct_return and gdbarch_return_value.
6344 * value.c (using_struct_return): Take a pointer to struct value
6345 instead of struct type for the function requested. Pass the
6346 requested function's address to gdbarch_return_value.
6347 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6348 New function_value member, replacing function_type.
6349 (bpfinishpy_dealloc): Update accordingly.
6350 (bpfinishpy_pre_stop_hook): Likewise.
6351 (bpfinishpy_init): Likewise. Record the requested function's
6353 * mips-tdep.c (mips_fval_reg): New enum.
6354 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6355 words put in GP registers.
6356 (mips_o64_push_dummy_call): Update a comment.
6357 (mips_o32_return_value): Take a pointer to struct value instead
6358 of struct type for the function requested and use it to check if
6359 using the MIPS16 calling convention. Return the designated
6360 general purpose registers for floating-point values returned in
6362 (mips_o64_return_value): Likewise.
6363 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6364 (ppc_sysv_abi_broken_return_value): Likewise.
6365 (ppc64_sysv_abi_return_value): Likewise.
6366 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6367 value instead of struct type for the function requested.
6368 * amd64-tdep.c (amd64_return_value): Likewise.
6369 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6370 * arm-tdep.c (arm_return_value): Likewise.
6371 * avr-tdep.c (avr_return_value): Likewise.
6372 * bfin-tdep.c (bfin_return_value): Likewise.
6373 * cris-tdep.c (cris_return_value): Likewise.
6374 * frv-tdep.c (frv_return_value): Likewise.
6375 * h8300-tdep.c (h8300_return_value): Likewise.
6376 (h8300h_return_value): Likewise.
6377 * hppa-tdep.c (hppa32_return_value): Likewise.
6378 (hppa64_return_value): Likewise.
6379 * i386-tdep.c (i386_return_value): Likewise.
6380 * ia64-tdep.c (ia64_return_value): Likewise.
6381 * iq2000-tdep.c (iq2000_return_value): Likewise.
6382 * lm32-tdep.c (lm32_return_value): Likewise.
6383 * m32c-tdep.c (m32c_return_value): Likewise.
6384 * m32r-tdep.c (m32r_return_value): Likewise.
6385 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6386 * m68k-tdep.c (m68k_return_value): Likewise.
6387 (m68k_svr4_return_value): Likewise.
6388 * m88k-tdep.c (m88k_return_value): Likewise.
6389 * mep-tdep.c (mep_return_value): Likewise.
6390 * microblaze-tdep.c (microblaze_return_value): Likewise.
6391 * mn10300-tdep.c (mn10300_return_value): Likewise.
6392 * moxie-tdep.c (moxie_return_value): Likewise.
6393 * mt-tdep.c (mt_return_value): Likewise.
6394 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6395 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6396 (ppc_sysv_abi_broken_return_value): Likewise.
6397 (ppc64_sysv_abi_return_value): Likewise.
6398 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6399 * rl78-tdep.c (rl78_return_value): Likewise.
6400 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6401 * rx-tdep.c (rx_return_value): Likewise.
6402 * s390-tdep.c (s390_return_value): Likewise.
6403 * score-tdep.c (score_return_value): Likewise.
6404 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6405 (sh_return_value_fpu): Likewise.
6406 * sh64-tdep.c (sh64_return_value): Likewise.
6407 * sparc-tdep.c (sparc32_return_value): Likewise.
6408 * sparc64-tdep.c (sparc64_return_value): Likewise.
6409 * spu-tdep.c (spu_return_value): Likewise.
6410 * tic6x-tdep.c (tic6x_return_value): Likewise.
6411 * v850-tdep.c (v850_return_value): Likewise.
6412 * vax-tdep.c (vax_return_value): Likewise.
6413 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6414 * xtensa-tdep.c (xtensa_return_value): Likewise.
6415 * gdbarch.c: Regenerate.
6416 * gdbarch.h: Regenerate.
6418 2012-05-15 Tom Tromey <tromey@redhat.com>
6420 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6422 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6424 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6425 of command in two error message.
6427 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6429 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6431 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6433 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6435 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6437 * NEWS (show auto-load scripts-directory): Add forgotten command.
6439 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6441 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6444 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6446 * amd64-tdep.c: Include features/i386/x32.c and
6447 features/i386/x32-avx.c.
6448 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6449 initialize_tdesc_x32_avx.
6451 2012-05-14 Stan Shebs <stan@codesourcery.com>
6454 * breakpoint.h (enum bptype): New type bp_dprintf.
6455 (struct breakpoint): New field extra_string.
6456 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6457 (create_breakpoint): Add extra_string arg.
6458 * breakpoint.c (dprintf_breakpoint_ops): New.
6459 (is_breakpoint): Add bp_dprintf.
6460 (bpstat_what): Add dprintf case.
6461 (bptype_string): Ditto.
6462 (print_one_breakpoint_location): Ditto.
6463 (init_bp_location): Ditto.
6464 (bkpt_print_mention): Ditto.
6465 (dprintf_style_enums): New array.
6466 (dprintf_style): New global.
6467 (dprintf_function): New global.
6468 (dprintf_channel): New global.
6469 (update_dprintf_command_list): New function.
6470 (update_dprintf_commands): New function.
6471 (init_breakpoint_sal): Add extra_string argument, handle it.
6472 (create_breakpoint_sal): Add extra_string argument.
6473 (create_breakpoints_sal): Add extra_string argument, update callers.
6474 (find_condition_and_thread): Add extra argument.
6475 (create_breakpoint): Add extra_string argument, record it.
6476 (dprintf_command): New function.
6477 (break_command_1): Add arg to create_breakpoint call.
6478 (handle_gnu_v3_exceptions): Ditto.
6479 (trace_command): Ditto.
6480 (ftrace_command): Ditto.
6481 (strace_command): Ditto.
6482 (bkpt_print_mention): Add dprintf case.
6483 (create_breakpoint_sal_default): Add extra_string argument.
6484 (_initialize_breakpoint): Add new commands.
6485 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6486 * python/py-breakpoint.c (bppy_init): Ditto.
6487 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6489 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6491 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6493 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6495 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6498 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6500 Add a new function gdb.find_pc_line to the Python API.
6501 * NEWS (Python Scripting): Add entry about the new function.
6502 * python/python.c (gdbpy_find_pc_line): New function which
6503 implements gdb.find_pc_line.
6504 (GdbMethods): Add entry for the new function.
6506 2012-05-12 Pedro Alves <palves@redhat.com>
6508 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6509 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6511 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6513 * inferior.c: Include completer.h
6514 (initialize_inferiors): Set completer of add-inferior to
6517 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6519 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6520 gdbarch_ptr_bit for x32 core dump.
6522 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6524 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6525 and features/i386/x32-avx-linux.c.
6527 2012-05-11 Stan Shebs <stan@codesourcery.com>
6528 Kwok Cheung Yeung <kcy@codesourcery.com>
6530 * NEWS: Describe new info os commands.
6531 * common/linux-osdata.c (PID_T, TIME_T): Define.
6532 (MAX_PID_T_STRLEN): New.
6533 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6535 (command_from_pid): Add comment. Change to use PID_T.
6536 (commandline_from_pid): Change to use PID_T.
6537 (user_from_pid): Add comment.
6538 (get_process_owner): Add comment. Change to use PID_T and
6540 (get_number_of_cpu_cores): Add comment.
6541 (get_cores_used_by_process): Add comment. Change to use PID_T and
6543 (linux_xfer_osdata_processes): Change to use PID_T and
6545 (compare_processes): New function.
6546 (linux_xfer_osdata_processgroups): New function.
6547 (linux_xfer_osdata_threads): Change to use PID_T.
6548 (linux_xfer_osdata_fds): New function.
6549 (format_socket_state, print_sockets): New functions.
6550 (union socket_addr): New union.
6551 (linux_xfer_osdata_isockets): New function.
6552 (time_from_time_t, group_from_gid): New functions.
6553 (linux_xfer_osdata_shm): New function.
6554 (linux_xfer_osdata_sem): New function.
6555 (linux_xfer_osdata_msg): New function.
6556 (linux_xfer_osdata_modules): New function.
6557 (osdata_table): Add new entries.
6558 * common/buffer.c (buffer_xml_printf): Add support for long and
6559 long long format specifiers.
6561 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6563 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6564 (tdesc_x32_avx_linux): Likewise.
6566 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6568 Implement multi-component --with-auto-load-dir.
6569 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6571 (--with-auto-load-safe-path): Update the default value description.
6572 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6574 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6575 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6576 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6577 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6578 "set auto-load scripts-directory".
6579 * config.in: Regenerate.
6580 * configure: Regenerate.
6581 * configure.ac (--with-auto-load-dir): New configure option.
6582 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6584 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6586 Provide $ddir substitution for --with-auto-load-safe-path.
6587 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6589 * auto-load.c: Include observer.h.
6590 (auto_load_safe_path_vec_update): Call substitute_path_component for
6591 each component. New variable ddir_subst.
6592 (auto_load_gdb_datadir_changed): New function.
6593 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6594 AUTO_LOAD_SAFE_PATH. New comment.
6595 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6596 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6597 * config.in: Regenerate.
6598 * configure: Regenerate.
6599 * configure.ac (--auto-load-safe-path): Rename
6600 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6601 GDB_DATADIR/auto-load.
6602 * defs.h (substitute_path_component): New declaration.
6603 * top.c: Include observer.h.
6604 (set_gdb_datadir): New function.
6605 (init_main): Install it for "set data-directory".
6606 * utils.c (substitute_path_component): New function.
6608 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6610 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6611 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6612 DEBUG_FILE_DIRECTORY. Handle multiple components of
6613 DEBUG_FILE_DIRECTORY.
6615 2012-05-10 Tom Tromey <tromey@redhat.com>
6617 * dwarf2read.c (recursively_write_psymbols): New function.
6618 (write_psymtabs_to_index): Use it.
6620 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6622 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6623 (load_partial_comp_unit): Update.
6624 (queue_comp_unit): Add argument 'pretend_language'.
6625 (process_queue): Update.
6626 (psymtab_to_symtab_1): Skip dependencies that have a user.
6627 (load_partial_comp_unit_reader): Give meaning to the 'data'
6629 (load_full_comp_unit): Add 'pretend_language' argument.
6630 (process_full_comp_unit): Add 'pretend_language' argument. Set
6632 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6634 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6635 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6637 (prepare_one_comp_unit): Add 'pretend_language' argument.
6639 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6640 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6641 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6642 (dw2_do_instantiate_symtab): Check whether symtab was read in
6644 (dw2_instantiate_symtab): Add assertion. Call
6645 process_cu_includes.
6646 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6647 (partial_symtab_p): New typedef.
6648 (set_partial_user): New function.
6649 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6650 (scan_partial_symbols): Add imported CU to imported_symtabs.
6651 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6652 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6653 (get_symtab, recursively_compute_inclusions)
6654 (compute_symtab_includes, process_cu_includes)
6655 (process_imported_unit_die): New functions.
6656 (process_die) <DW_TAG_imported_unit>: New case.
6657 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6659 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6661 (struct partial_die_info) <locdesc>: Remove.
6663 (process_psymtab_comp_unit): Add 'read_partial' argument.
6665 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6666 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6667 (add_partial_symbol): Update.
6668 (process_die): Handle DW_TAG_partial_unit.
6669 (read_file_scope): Update comment.
6670 (load_partial_dies): Handle DW_TAG_imported_unit.
6671 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6672 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6674 2012-05-10 Tom Tromey <tromey@redhat.com>
6676 * cc-with-dwz.sh: New file.
6678 2012-05-10 Tom Tromey <tromey@redhat.com>
6680 * symtab.h (struct symtab) <includes, user>: New fields.
6681 * block.h (struct block_iterator) <d, idx, which>: New fields.
6682 * block.c (initialize_block_iterator, find_iterator_symtab)
6683 (block_iterator_step, block_iter_name_step)
6684 (block_iter_match_step): New functions.
6685 (block_iterator_first, block_iterator_next)
6686 (block_iter_name_first, block_iter_name_next)
6687 (block_iter_match_first, block_iter_match_next): Rewrite.
6688 (get_block_symtab): New function.
6690 2012-05-10 Tom Tromey <tromey@redhat.com>
6692 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6694 * jit.c (finalize_symtab): Use allocate_global_block,
6696 * buildsym.c (finish_block_internal): New function, from old
6698 (finish_block): Rewrite.
6699 (end_symtab): Use finish_block_internal, set_block_symtab.
6700 * block.h (struct global_block): New.
6701 (allocate_global_block, set_block_symtab): Declare.
6702 * block.c (allocate_global_block, set_block_symtab): New
6705 2012-05-10 Tom Tromey <tromey@redhat.com>
6707 * psymtab.c (partial_map_expand_apply): Add assertion.
6708 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6709 (psymtab_to_symtab): Find unshared psymtab.
6710 (dump_psymtab): Print including psymtabs.
6711 (recursively_search_psymtabs): New function.
6712 (expand_symtabs_matching_via_partial): Use it.
6713 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6715 (enum psymtab_search_status): New.
6717 2012-05-10 Tom Tromey <tromey@redhat.com>
6719 * tracepoint.c (scope_info): Update.
6720 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6721 (find_pc_sect_symtab, search_symbols)
6722 (default_make_symbol_completion_list_break_on)
6723 (make_file_symbol_completion_list): Update.
6724 * symmisc.c (dump_symtab_1): Update.
6725 * stack.c (print_frame_args, iterate_over_block_locals)
6726 (print_frame_labels, iterate_over_block_arg_vars): Update.
6727 * python/py-block.c (block_object) <dict>: Remove.
6729 <iter>: Change type.
6730 (blpy_iter): Update.
6731 (blpy_block_syms_iternext): Update.
6732 * psymtab.c (map_block): Use block iterators.
6733 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6734 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6735 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6736 * infrun.c (check_exception_resume): Update.
6737 * cp-support.c (make_symbol_overload_list_block): Update.
6738 * coffread.c (patch_opaque_types): Update.
6739 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6740 * block.h (struct block_iterator): New.
6741 (block_iterator_first, block_iterator_next, block_iter_name_first)
6742 (block_iter_name_next, block_iter_match_first)
6743 (block_iter_match_next): Declare.
6744 (ALL_BLOCK_SYMBOLS): Redefine.
6745 * block.c (block_iterator_first, block_iterator_next)
6746 (block_iter_name_first, block_iter_name_next)
6747 (block_iter_match_first, block_iter_match_next): New functions.
6748 * ada-lang.c (ada_add_block_symbols)
6749 (ada_make_symbol_completion_list): Use block iterator.
6751 2012-05-10 Tom Tromey <tromey@redhat.com>
6753 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6754 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6755 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6756 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6757 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6760 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6762 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6763 print-file-var-lib2.c, print-file-var-main.c and
6764 print-file-var.exp (located in gdb/testsuite/gdb.base).
6766 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6768 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6769 try locating the symbol in the symbol's own objfile first, before
6770 extending the search to all objfiles.
6771 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6772 out of lookup_symbol_aux_symtabs.
6773 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6774 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6775 Do not search EXCLUDE_OBJFILE.
6776 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6777 (lookup_symbol_global): Search for matches in the block's objfile
6778 first, before searching all other objfiles.
6780 2012-05-10 Tristan Gingold <gingold@adacore.com>
6782 * printcmd.c (set_command): Add pre/post inc/dec.
6784 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6786 * gdb.1: Document -ex option.
6788 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6790 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6791 * inferior.h (AT_SYMBOL): Delete.
6793 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6795 * mips-tdep.c (mips_push_dummy_code): New function.
6796 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6797 ON_STACK and install mips_push_dummy_code as our gdbarch
6798 push_dummy_code routine.
6800 2012-05-09 Pedro Alves <palves@redhat.com>
6802 * target.c (set_maintenance_target_async_permitted): Rename to ...
6803 (set_target_async_command): ... this.
6804 (show_maintenance_target_async_permitted): Rename to ...
6805 (show_target_async_command): ... this.
6806 (initialize_targets): Adjust.
6808 2012-05-08 Doug Evans <dje@google.com>
6810 * go-exp.y (classify_name): Add missing assignment of fields of
6813 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6815 Display the ">" prompt in interactive mode while reading canned
6816 commands, even when the current interpreter is MI.
6818 * interps.c (interp_set_temp): New function.
6820 * interps.h (interp_set_temp): Add prototype.
6822 * cli/cli-script.c (restore_interp): New cleanup function.
6823 (read_command_lines): Temporarily override the current interpreter
6824 with CLI and arrange for restoring the original one.
6826 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6828 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6830 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6832 * probe.c (parse_probes): Move conditional to check for
6833 debuginfo files from here...
6834 * stap-probe.c (stap_get_probes): ... to here.
6836 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6837 H.J. Lu <hongjiu.lu@intel.com>
6839 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6840 `movl %esp, %ebp' for the X32 ABI.
6842 2012-05-07 Tom Tromey <tromey@redhat.com>
6844 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6846 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6847 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6848 (dwarf_stack_op_name): Remove.
6849 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6850 (decode_locdesc): Use get_DW_OP_name.
6851 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6852 (dwarf2_compile_expr_to_ax): Likewise.
6853 (disassemble_dwarf_expression): Likewise.
6854 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6856 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6858 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6859 (sh_linux_sigtramp_cache): New function.
6860 (sh_linux_sigreturn_init): New function.
6861 (sh_linux_rt_sigreturn_init): New function.
6862 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6864 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6866 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6867 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6868 (sh_linux_init_abi): Add init calls to register new tramp_frame
6869 definitions under 32-bit SH, update comments.
6871 2012-05-07 Pedro Alves <palves@redhat.com>
6875 * amd64-linux-tdep.c: Include glibc-tdep.h.
6876 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6877 gdbarch_skip_solib_resolver callback.
6879 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6881 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6882 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6883 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6884 (add_auto_load_safe_path): Change the error message.
6885 (_initialize_auto_load): Change the "safe-path" help text.
6886 * configure: Regenerate
6887 * configure.ac (--without-auto-load-safe-path): Set
6888 WITH_AUTO_LOAD_SAFE_PATH to /.
6890 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6892 * stap-probe.h: Do not include unecessary `probe.h'.
6894 2012-05-05 Alan Modra <amodra@gmail.com>
6896 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6897 bfd_und_section_ptr.
6898 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6899 and bfd_com_section_ptr.
6901 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6903 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6905 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6907 * windows-nat.h (segment_register_p_ftype): New typedef.
6908 (windows_set_segment_register_p): Add declaration.
6909 * windows-nat.c (segment_register_p): New static global.
6910 (windows_set_segment_register_p): New function.
6911 (do_windows_fetch_inferior_registers): Add special handling
6912 for segment registers.
6913 * amd64-windows-nat.c: #include "amd64-tdep.h".
6914 (amd64_windows_segment_register_p): New function.
6915 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6916 * i386-windows-nat.c: #include "i386-tdep.h".
6917 (i386_windows_segment_register_p): New function.
6918 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6920 2012-05-04 Tristan Gingold <gingold@adacore.com>
6922 * printcmd.c (set_command): Emit a warning if the expression is not
6925 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6927 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6930 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6932 * stap-probe.c (stap_is_operator): Change declaration.
6933 (stap_get_opcode): Change return value.
6934 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6935 `stap_parse_argument_1'.
6937 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6939 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6942 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6944 Add two new methods global_block and static_block to gdb.Symtab
6946 * NEWS (Python scripting): Add entry about the new methods.
6947 * python/py-symtab.c (stpy_global_block): New function which
6948 implements the gdb.Symtab.global_block() method.
6949 (stpy_static_block): New function which implements the
6950 gdb.Symtab.static_block() method.
6951 (symtab_object_methods): Add entries for the two new methods.
6953 2012-05-03 Doug Evans <dje@google.com>
6955 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6958 2012-05-03 Yao Qi <yao@codesourcery.com>
6960 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6962 (i386_process_record): Ditto.
6964 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6966 * infcall.c (unwind_on_signal_p): Make static.
6968 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6970 * sol-thread.c (solaris_pid_to_str): Make static.
6971 (_initialize_sol_thread): Add prototype.
6973 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6975 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6977 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6979 * MAINTAINERS: Remove myself.
6981 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6983 Fix --without-auto-load-safe-path for MS-Windows host platform.
6984 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6986 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6988 * gdb_curses.h: Undefine KEY_EVENT before including curses
6989 headers. Move "#undef MOUSE_MOVED" before any curses header
6992 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6994 * features/i386/i386-mmx-linux.c: Regenerate.
6995 * features/rs6000/powerpc-32.c: Likewise.
6996 * features/rs6000/powerpc-32l.c: Likewise.
6997 * features/rs6000/powerpc-403.c: Likewise.
6998 * features/rs6000/powerpc-403gc.c: Likewise.
6999 * features/rs6000/powerpc-405.c: Likewise.
7000 * features/rs6000/powerpc-505.c: Likewise.
7001 * features/rs6000/powerpc-601.c: Likewise.
7002 * features/rs6000/powerpc-602.c: Likewise.
7003 * features/rs6000/powerpc-603.c: Likewise.
7004 * features/rs6000/powerpc-604.c: Likewise.
7005 * features/rs6000/powerpc-64.c: Likewise.
7006 * features/rs6000/powerpc-64l.c: Likewise.
7007 * features/rs6000/powerpc-750.c: Likewise.
7008 * features/rs6000/powerpc-860.c: Likewise.
7009 * features/rs6000/powerpc-e500.c: Likewise.
7010 * features/rs6000/powerpc-e500l.c: Likewise.
7011 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7012 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7013 * features/rs6000/rs6000.c: Likewise.
7015 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7017 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7019 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7020 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7021 (stap_parse_argument) <e>: Likewise.
7022 (handle_stap_probe) <byte_order>: Likewise.
7024 2012-04-30 Doug Evans <dje@google.com>
7026 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7027 init_and_read_dies_worker. All callers updated.
7028 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7029 replaced with init_cutu_and_read_dies.
7030 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7031 (find_partial_die): Remove FIXME. Don't free current CU.
7033 2012-04-30 Sterling Augustine <saugustine@google.com>
7035 * contrib: New directory.
7036 * contrib/test_pubnames_and_indexes.py: New file.
7038 2012-04-30 Doug Evans <dje@google.com>
7040 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7041 All callers updated.
7042 (init_cu_die_reader): Verify the section is non-empty.
7043 (dwarf_decode_line_header): Don't dereference section->asection
7044 until we know the section is present.
7046 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7048 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7051 2012-04-29 Yao Qi <yao@codesourcery.com>
7053 * gdb-code-style.el: New hook gdb-markup-hook
7054 and gdb-comment-hook.
7056 2012-04-28 Doug Evans <dje@google.com>
7058 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7059 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7061 * symfile.h (dwarf2_debug_sections): New member addr.
7062 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7063 (ctx_no_get_addr_index): New function.
7064 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7065 (ctx_no_get_addr_index): Declare.
7066 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7067 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7068 (dwarf_expr_ctx_funcs): Update.
7069 (needs_get_addr_index): New function.
7070 (needs_frame_ctx_funcs): Update.
7071 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7072 * dwarf2read.c: #include "gdbcore.h".
7073 (dwarf2_per_objfile): New members addr, dwo_files.
7074 (dwarf2_elf_names): Add entry for addr.
7075 (struct dwo_section_names): New type.
7076 (dwo_section_names): New static global.
7077 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7078 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7079 old debug_types_section member updated to use this.
7080 Rename member debug_types_section to info_or_types_section,
7082 (signatured_type): Rename member type_offset to type_offset_in_tu,
7083 all uses updated. New member type_offset_in_section.
7084 (struct dwo_sections): New type.
7085 (struct dwo_unit): New type.
7086 (struct dwo_file): New type.
7087 (die_reader_specs): New member dwo_file.
7088 (dwarf2_locate_sections): Watch for .debug_addr.
7089 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7090 (dwarf2_read_section): Get bfd of section from bfd's asection,
7092 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7093 (create_signatured_type_table_from_index): Initialize
7094 sig_type->info_or_types_section.
7095 (dw2_get_file_names): Statement lists for type units with DWO files
7096 live in the DWO file.
7097 (create_debug_types_hash_table): New function.
7098 (create_all_type_units): Rewrite.
7099 (init_cu_die_reader): New arg dwo_file, all callers updated.
7100 (init_and_read_dies_worker): Get section from
7101 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7102 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7103 continue reading the CU/TU from there.
7104 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7105 updated. Get section from this_cu->info_or_types_section.
7106 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7107 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7108 DW_FORM_GNU_str_index.
7109 (hash_dwo_file, eq_dwo_file): New functions.
7110 (allocate_dwo_file_hash_table): New function.
7111 (hash_dwo_unit, eq_dwo_unit): New functions.
7112 (allocate_dwo_unit_table): New function.
7113 (dwarf2_locate_dwo_sections): New function.
7114 (struct create_dwo_info_table_data): New type.
7115 (create_debug_info_hash_table_reader): New function.
7116 (create_debug_info_hash_table): New function.
7117 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7118 (lookup_dwo_file): New function.
7119 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7120 (free_dwo_file, free_dwo_file_cleanup): New functions.
7121 (free_dwo_file_from_slot, free_dwo_files): New functions.
7122 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7123 (dwarf2_record_block_ranges): Ditto.
7124 (read_partial_die): Ditto.
7125 (process_enumeration_scope): Update to use type_offset_in_section.
7126 (read_full_die_1): New function.
7127 (read_full_die): Rewrite.
7128 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7129 DW_FORM_GNU_str_index.
7130 (read_addr_index_1, read_addr_index): New functions.
7131 (read_addr_index_from_leb128): New function.
7132 (struct dwarf2_read_addr_index_data): New type.
7133 (dwarf2_read_addr_index_reader): New function.
7134 (dwarf2_read_addr_index): New function.
7135 (read_str_index): New function.
7136 (leb128_size): New function.
7137 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7138 If processing a type unit from a DWO file, get the line section
7140 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7141 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7142 DW_FORM_GNU_str_index.
7143 (lookup_die_type): Check whether section offset of type's die is
7144 known before looking it up. Remove assert. Condition can
7145 legimately happen for inter-cu type references.
7146 (dwarf_attr_name): Handle Fission attributes.
7147 (dwarf_form_name): Handle Fission forms.
7148 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7149 DW_FORM_GNU_str_index.
7150 (follow_die_sig): Update to use type_offset_in_section.
7151 (decode_locdesc): New case DW_OP_GNU_addr_index.
7152 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7153 DW_FORM_GNU_str_index.
7154 (cu_debug_loc_section): New function.
7155 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7156 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7157 Free DWO files if present.
7158 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7160 Refactor DIE reading.
7161 * dwarf2read.c (dwarf2_per_objfile): Replace members
7162 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7163 (die_reader_specs): New member "die_section". Temporarily make
7164 member "buffer" non-const, pending constifying all info_ptr uses.
7165 (die_reader_func_ftype): New typedef.
7166 (dw2_get_file_names_reader): New function.
7167 (dw2_get_file_names): Rewrite.
7168 (read_and_check_type_unit_head): Rename arg type_offset to
7170 (create_all_type_units): Improve debugging message.
7171 Improve dummy type unit check.
7172 (init_cu_die_reader): New arg "section". All callers updated.
7173 (init_and_read_dies_worker): New function.
7174 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7175 (init_cutu_and_read_dies_no_follow): New function.
7176 (init_cutu_and_read_dies_simple): New function.
7177 (process_psymtab_comp_unit_reader): New function.
7178 (process_psymtab_comp_unit): Delete args section,
7179 is_debug_types_section. Rewrite. All callers updated.
7180 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7181 All callers updated. Rewrite.
7182 (load_partial_comp_unit_reader): New function.
7183 (load_partial_comp_unit): Rewrite.
7184 (skip_children): New arg reader. Delete args buffer, cu.
7185 All callers updated.
7186 (skip_one_die): New arg reader. Delete args buffer, cu.
7187 All callers updated.
7188 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7189 All callers updated.
7190 (load_full_comp_unit_reader): New function.
7191 (load_full_comp_unit): Rewrite.
7192 (read_comp_unit): Delete.
7193 (read_die_and_children_1): Delete, contents moved ...
7194 (read_die_and_children): ... here.
7195 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7196 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7197 All callers updated.
7198 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7199 All callers updated.
7200 (find_partial_die): Rewrite load_all_dies support.
7201 (read_attribute_value): New arg reader. Delete args abfd, cu.
7202 All callers updated.
7203 (read_attribute): New arg reader. Delete args abfd, cu.
7204 All callers updated.
7205 (load_full_type_unit): Add assert.
7206 (read_signatured_type_reader): New function.
7207 (read_signatured_type): Rewrite.
7208 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7209 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7210 All callers updated. Set per_cu->cu = NULL after freeing it.
7211 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7212 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7213 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7214 (set_die_type): Update.
7215 (get_die_type_at_offset): Update.
7216 (read_file_scope): Call prepare_one_comp_unit.
7217 (read_type_unit_scope): Ditto.
7218 (prepare_one_comp_unit): Set producer if present.
7220 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7222 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7223 gettext function on `error'.
7225 2012-04-27 Doug Evans <dje@google.com>
7227 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7230 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7231 Tom Tromey <tromey@redhat.com>
7233 * breakpoint.c (struct breakpoint_objfile_data)
7234 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7235 <exception_probes>: New fields.
7236 (free_breakpoint_probes): New function.
7237 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7238 `_Unwind_DebugHook'.
7239 (create_exception_master_breakpoint): Likewise.
7240 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7241 * infrun.c: Including necessary header files for handling SystemTap
7243 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7244 via SystemTap probes.
7245 (check_exception_resume): Remove `func' argument. Handle exception
7246 unwinding breakpoint set via a SystemTap probe.
7247 (insert_exception_resume_from_probe): New function.
7249 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7250 Tom Tromey <tromey@redhat.com>
7251 Jan Kratochvil <jan.kratochvil@redhat.com>
7253 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7254 (COMMON_OBS): Likewise.
7255 (HFILES_NO_SRCDIR): Add `probe'.
7256 * NEWS: Mention support for static and SystemTap probes.
7257 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7258 SystemTap probes' arguments parser.
7259 * arm-linux-tdep.c: Including headers needed to perform the parsing
7260 of SystemTap probes' arguments.
7261 (arm_stap_is_single_operand): New function.
7262 (arm_stap_parse_special_token): Likewise.
7263 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7264 probes' arguments parser.
7265 * ax-gdb.c (require_rvalue): Removing static declaration.
7266 (gen_expr): Likewise.
7267 * ax-gdb.h (gen_expr): Declaring function.
7268 (require_rvalue): Likewise.
7269 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7270 (bkpt_probe_breakpoint_ops): New variable.
7271 (momentary_breakpoint_from_master): Set the `probe' value.
7272 (add_location_to_breakpoint): Likewise.
7273 (break_command_1): Using proper breakpoint_ops according to the
7274 argument passed by the user in the command line.
7275 (bkpt_probe_insert_location): New function.
7276 (bkpt_probe_remove_location): Likewise.
7277 (bkpt_probe_create_sals_from_address): Likewise.
7278 (bkpt_probe_decode_linespec): Likewise.
7279 (tracepoint_probe_create_sals_from_address): Likewise.
7280 (tracepoint_probe_decode_linespec): Likewise.
7281 (tracepoint_probe_breakpoint_ops): New variable.
7282 (trace_command): Using proper breakpoint_ops according to the
7283 argument passed by the user in the command line.
7284 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7285 static probes on breakpoints and tracepoints.
7286 * breakpoint.h (struct bp_location) <probe>: New field.
7287 * cli-utils.c (skip_spaces_const): New function.
7288 (extract_arg): Likewise.
7289 * cli-utils.h (skip_spaces_const): Likewise.
7290 (extract_arg): Likewise.
7291 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7292 * configure.ac: Append `stap-probe.o' to be generated when ELF
7294 * configure: Regenerate.
7295 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7296 * elfread.c: Include `probe.h' and `arch-utils.h'.
7297 (probe_key): New variable.
7298 (elf_get_probes): New function.
7299 (elf_get_probe_argument_count): Likewise.
7300 (elf_evaluate_probe_argument): Likewise.
7301 (elf_compile_to_ax): Likewise.
7302 (elf_symfile_relocate_probe): Likewise.
7303 (stap_probe_key_free): Likewise.
7304 (elf_probe_fns): New variable.
7305 (elf_sym_fns): Add `sym_probe_fns' value.
7306 (elf_sym_fns_lazy_psyms): Likewise.
7307 (elf_sym_fns_gdb_index): Likewise.
7308 (_initialize_elfread): Initialize objfile cache for static
7310 * gdb_vecs.h (struct probe): New forward declaration.
7311 (probe_p): New VEC declaration.
7312 * gdbarch.c: Regenerate.
7313 * gdbarch.h: Regenerate.
7314 * gdbarch.sh (stap_integer_prefix): New variable.
7315 (stap_integer_suffix): Likewise.
7316 (stap_register_prefix): Likewise.
7317 (stap_register_suffix): Likewise.
7318 (stap_register_indirection_prefix): Likewise.
7319 (stap_register_indirection_suffix): Likewise.
7320 (stap_gdb_register_prefix): Likewise.
7321 (stap_gdb_register_suffix): Likewise.
7322 (stap_is_single_operand): New function.
7323 (stap_parse_special_token): Likewise.
7324 (struct stap_parse_info): Forward declaration.
7325 * i386-tdep.c: Including headers needed to perform the parsing
7326 of SystemTap probes' arguments.
7327 (i386_stap_is_single_operand): New function.
7328 (i386_stap_parse_special_token): Likewise.
7329 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7330 probes' arguments parser.
7331 * i386-tdep.h (i386_stap_is_single_operand): New function.
7332 (i386_stap_parse_special_token): Likewise.
7333 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7334 * mipsread.c (ecoff_sym_fns): Likewise.
7335 * objfiles.c (objfile_relocate1): Support relocation for static
7337 * parse.c (prefixify_expression): Remove static declaration.
7338 (initialize_expout): Likewise.
7339 (reallocate_expout): Likewise.
7340 * parser-defs.h (initialize_expout): Declare function.
7341 (reallocate_expout): Likewise.
7342 (prefixify_expression): Likewise.
7343 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7344 of SystemTap probes' arguments.
7345 (ppc_stap_is_single_operand): New function.
7346 (ppc_stap_parse_special_token): Likewise.
7347 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7348 probes' arguments parser.
7349 * probe.c: New file, for generic statically defined probe support.
7350 * probe.h: Likewise.
7351 * s390-tdep.c: Including headers needed to perform the parsing of
7352 SystemTap probes' arguments.
7353 (s390_stap_is_single_operand): New function.
7354 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7355 probes' arguments parser.
7356 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7357 * stap-probe.c: New file, for SystemTap probe support.
7358 * stap-probe.h: Likewise.
7359 * symfile.h: Include `gdb_vecs.h'.
7360 (struct sym_probe_fns): New struct.
7361 (struct sym_fns) <sym_probe_fns>: New field.
7362 * symtab.c (init_sal): Initialize `probe' field.
7363 * symtab.h (struct probe): Forward declaration.
7364 (struct symtab_and_line) <probe>: New field.
7365 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7367 (stop_tracing): Likewise.
7368 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7370 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7371 Tom Tromey <tromey@redhat.com>
7373 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7374 and to compile agent expressions.
7375 * infrun.c (siginfo_make_value): New argument `ignore'.
7376 (siginfo_funcs): New struct.
7377 (_initialize_infrun): New argument when calling
7378 `create_internalvar_type_lazy'.
7379 * thread.c (thread_id_make_value): New argument `ignore'.
7380 (thread_funcs): New struct.
7381 (_initialize_thread): New argument when calling
7382 `create_internalvar_type_lazy'.
7383 * tracepoint.c (sdata_make_value): New argument `ignore'.
7384 (sdata_funcs): New struct.
7385 (_initialize_tracepoint): New argument when calling
7386 `create_internalvar_type_lazy'.
7387 * value.c (make_value): New struct.
7388 (create_internalvar_type_lazy): New argument `data'.
7389 (compile_internalvar_to_ax): New function.
7390 (value_of_internalvar): Properly handling `make_value' case.
7391 (clear_internalvar): Likewise.
7392 (show_convenience): Adding `TRY_CATCH' block.
7393 * value.h (internalvar_make_value): Delete, replace by...
7394 (struct internalvar_funcs): ... this.
7395 (create_internalvar_type_lazy) <fun>: Delete argument.
7396 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7397 (compile_internalvar_to_ax): New function.
7398 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7399 (tlb_funcs): New struct.
7400 (_initialize_windows_tdep): New argument when calling
7401 `create_internalvar_type_lazy'.
7403 2012-04-27 Mark Wielaard <mjw@redhat.com>
7405 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7406 see whether it is an address or a constant offset from DW_AT_low_pc.
7407 (dwarf2_record_block_ranges): Likewise.
7408 (read_partial_die): Likewise.
7410 2012-04-26 Mark Wielaard <mjw@redhat.com>
7412 * MAINTAINERS (Write After Approval): Add myself to the list.
7414 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7416 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7417 (proc_prettyprint_signal): Likewise.
7418 (proc_prettyprint_faultset): Likewise.
7419 (proc_prettyprint_fault): Likewise.
7420 (proc_prettyprint_actionset): Likewise.
7421 (proc_prettyprint_flags): Move to new proc-flags.c section.
7422 (proc_prettyfprint_flags): New prototype.
7423 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7424 (proc_syscall, proc_cursig): Likewise.
7425 (proc_set_kill_on_last_close): Likewise.
7426 (proc_unset_kill_on_last_close): Likewise.
7427 (proc_set_watchpoint): Make static.
7428 (proc_delete_dead_threads): Likewise.
7429 (procfs_set_watchpoint): Likewise.
7430 (_initialize_procfs): Add prototype.
7431 * proc-events.c: Include proc-utils.h.
7432 (init_syscall_table): Make static.
7433 * proc-api.c (_initialize_proc_api): Add prototype.
7434 * proc-flags.c: Include proc-utils.h.
7436 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7438 * configure.ac: Add AC_ARG_PROGRAM.
7439 * configure: Regenerate.
7441 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7443 Fix DW_AT_lower_bound defaults for DWARF-4+.
7444 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7445 high. New variable low_default_is_valid. Implement DWARF-4+
7446 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7447 no default by the DWARF standard.
7449 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7450 Maciej W. Rozycki <macro@codesourcery.com>
7452 * infrun.c (handle_inferior_event): Move the check for return
7453 trampolines ahead of the check for function trampolines.
7454 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7455 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7456 (mips_str_mips16_ret_stub): Likewise.
7457 (mips_str_call_fp_stub): Likewise.
7458 (mips_str_call_stub): Likewise.
7459 (mips_str_fn_stub): Likewise.
7460 (mips_str_pic): Likewise.
7461 (mips_in_frame_stub): New function.
7462 (mips_unwind_pc): Return the return address rather than the PC
7463 if the PC of an intermediate frame is inside a call thunk.
7464 (mips_is_stub_suffix): New function.
7465 (mips_is_stub_mode): Likewise.
7466 (mips_get_mips16_fn_stub_pc): Likewise.
7467 (mips_skip_mips16_trampoline_code): Update to handle all the
7468 currently generated stub types. Don't recurse into __fn_stub
7469 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7470 Use cooked register accesses.
7471 (mips_in_return_stub): Reintroduce function.
7472 (mips_skip_trampoline_code): Traverse trampolines recursively.
7473 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7475 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7479 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7481 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7482 * features/arm-with-m-vfp-d16.xml: New file. Describes
7483 Cortex-M with VFPv4-sp-d16 FPU register layout.
7484 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7485 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7486 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7487 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7488 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7490 2012-04-25 Doug Evans <dje@google.com>
7492 * cli/cli-decode.c (print_doc_line): Use stream instead of
7495 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7497 * features/arm-with-iwmmxt.c: Regenerate.
7498 * features/arm-with-m-fpa-layout.c: Likewise.
7499 * features/arm-with-m.c: Likewise.
7500 * features/arm-with-neon.c: Likewise.
7501 * features/arm-with-vfpv2.c: Likewise.
7502 * features/arm-with-vfpv3.c: Likewise.
7503 * features/mips-dsp-linux.c: Likewise.
7504 * features/mips-linux.c: Likewise.
7505 * features/mips64-dsp-linux.c: Likewise.
7506 * features/mips64-linux.c: Likewise.
7507 * features/s390-linux32.c: Likewise.
7508 * features/s390-linux32v1.c: Likewise.
7509 * features/s390-linux32v2.c: Likewise.
7510 * features/s390-linux64.c: Likewise.
7511 * features/s390-linux64v1.c: Likewise.
7512 * features/s390-linux64v2.c: Likewise.
7513 * features/s390x-linux64.c: Likewise.
7514 * features/s390x-linux64v1.c: Likewise.
7515 * features/s390x-linux64v2.c: Likewise.
7516 * features/tic6x-c62x-linux.c: Likewise.
7517 * features/tic6x-c62x.c: Likewise.
7518 * features/tic6x-c64x-linux.c: Likewise.
7519 * features/tic6x-c64x.c: Likewise.
7520 * features/tic6x-c64xp-linux.c: Likewise.
7521 * features/tic6x-c64xp.c: Likewise.
7522 * target-descriptions.c: Only generate `field_type' and `type'
7523 variables when needed.
7525 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7527 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7529 2012-04-25 Doug Evans <dje@google.com>
7531 Initial pass at Go language support.
7533 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7535 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7536 (YYFILES): Add go-exp.c.
7537 (YYOBJ): Add go-exp.o.
7538 (local-maintainer-clean): Delete go-exp.c.
7539 * defs.h (enum language): Add language_go.
7540 * dwarf2read.c: #include "go-lang.h".
7541 (fixup_go_packaging): New function.
7542 (process_full_comp_unit): Call it when processing Go CUs.
7543 (dwarf2_physname): Add Go support.
7544 (read_file_scope): Handle missing language spec for GNU Go.
7545 (set_cu_language): Handle DW_LANG_Go.
7546 * go-exp.y: New file.
7547 * go-lang.h: New file.
7548 * go-lang.c: New file.
7549 * go-typeprint.c: New file.
7550 * go-valprint.c: New file.
7551 * symtab.c: #include "go-lang.h".
7552 (symbol_set_language): Handle language_go.
7553 (symbol_find_demangled_name, symbol_set_names): Ditto.
7554 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7556 2012-04-24 Jim Meyering <meyering@redhat.com>
7558 avoid a few strncpy-induced buffer overruns
7559 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7560 fname and psargs before trying to concatenate.
7561 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7562 "name" before applying strchr.
7564 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7566 * CONTRIBUTE: Use unified diff instead of context diff when
7569 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7571 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7572 code. Handle JR.HB correctly.
7574 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7577 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7578 with the other MIPS16 helpers.
7580 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7582 * observer.sh: Conditionally declare `args', thus cleaning up
7583 unused instances of this variable.
7585 2012-04-24 Yao Qi <yao@codesourcery.com>
7587 Revert this patch to allow breakpoint always-inserted
7589 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7590 * breakpoint.c: Include record.h.
7591 (breakpoints_always_inserted_mode): Return false when the record
7594 * breakpoint.c (iterate_over_bp_locations): New.
7595 * breakpoint.h: Declare.
7596 New typedef walk_bp_location_callback.
7597 * record.c (record_open): Call record_init_record_breakpoints.
7598 (record_sync_record_breakpoints): New.
7599 (record_init_record_breakpoints): New.
7600 * NEWS: Mention supporting breakpoint always-inserted mode in
7603 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7605 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7608 2012-04-24 Yao Qi <yao@codesourcery.com>
7610 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7611 (is_catchpoint): ... it.
7612 (print_one_breakpoint_location): Caller update.
7613 * breakpoint.h: Update declaration.
7615 2012-04-23 David S. Miller <davem@davemloft.net>
7617 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7619 2012-04-23 Tom Tromey <tromey@redhat.com>
7621 * buildsym.c (add_free_pendings): Remove.
7622 * buildsym.h (add_free_pendings): Remove.
7624 2012-04-23 Doug Evans <dje@google.com>
7626 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7627 attr.u.unsnd instead of attr.u.addr.
7628 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7629 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7631 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7632 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7634 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7636 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7638 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7639 (mips_o32_return_value): Likewise.
7640 (mips_o64_return_value): Likewise.
7642 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7644 * ada-lang.c (ada_evaluate_subexp): Add cases for
7645 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7646 their treatment in eval.c.
7648 2012-04-21 David S. Miller <davem@davemloft.net>
7650 * sparc-tdep.c (X_DISP10): Define.
7651 (sparc_analyze_control_transfer): Handle compare-and-branch.
7653 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7655 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7656 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7658 2012-04-20 Nigel Stephens <nigel@mips.com>
7659 Maciej W. Rozycki <macro@codesourcery.com>
7661 * mips-tdep.c (mips_float_register_p): New function.
7662 (mips_convert_register_float_case_p): Use mips_float_register_p.
7663 (mips_register_type): Likewise.
7664 (mips_print_register): Likewise.
7665 (print_gp_register_row): Likewise.
7666 (mips_print_registers_info): Likewise.
7668 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7670 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7673 2012-04-20 Andrew Pinski <apinski@cavium.com>
7675 * MAINTAINERS (Write After Approval): Add myself to the list.
7677 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7679 * MAINTAINERS: Update my e-mail address.
7681 2012-04-20 Pedro Alves <palves@redhat.com>
7683 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7685 * configure: Regenerate.
7687 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7689 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7691 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7693 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7695 Fix compilation compatibility with python-2.4
7696 * python/py-type.c (convert_field): Cast ADDRSTRING for
7697 PyObject_SetAttrString as non-const. New comment.
7699 2012-04-19 Tom Tromey <tromey@redhat.com>
7701 * top.c (quit_target): Use all_cleanups.
7702 * main.c (captured_command_loop): Use all_cleanups.
7703 * exceptions.c (throw_exception): Use all_cleanups.
7705 2012-04-19 Pedro Alves <palves@redhat.com>
7707 * Makefile.in (GNULIB_BUILDDIR): New.
7708 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7709 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7710 (CLEANDIRS). Remove gnulib/import.
7711 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7713 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7714 (gnulib/import/Makefile): Replace gnulib/import with
7715 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7716 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7717 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7718 acx_configure_dir.m4.
7719 * acinclude.m4: Include acx_configure_dir.m4.
7720 * acx_configure_dir.m4: New file.
7721 * aclocal.m4: Regenerate.
7722 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7723 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7724 (GNULIB): New variable.
7725 (GNULIB_STDINT_H): Adjust.
7726 (AC_OUTPUT): Don't output gnulib/Makefile.
7727 * gdb/defs.h: Include build-gnulib/config.h.
7728 * aclocal.m4: Regenerate.
7729 * config.in: Regenerate.
7730 * configure: Regenerate.
7732 * gnulib/Makefile.in: New file.
7733 * gnulib/configure.ac: New file.
7734 * gnulib/aclocal.m4: New file.
7735 * gnulib/config.in: New file.
7736 * gnulib/configure: New file.
7737 * gnulib/: Re-run gnulib-tool to adjust.
7739 2012-04-19 Doug Evans <dje@google.com>
7741 * cleanups.h (struct cleanup): Move to cleanups.c.
7742 (make_cleanup_dtor_ftype): New typedef.
7743 (make_cleanup_dtor): Use it.
7744 (ALL_CLEANUPS): Replace with ...
7745 (all_cleanups): ... this. Declare. All uses updated.
7746 * cleanups.c: #include "gdb_assert.h".
7747 (sentinel_cleanup): New static global.
7748 (SENTINEL_CLEANUP): Define.
7749 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7750 (make_my_cleanup2): Assert result is non-NULL.
7751 (all_cleanups): New function.
7752 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7755 2012-04-19 Pedro Alves <palves@redhat.com>
7757 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7758 Adjust paths to gnulib imported files.
7760 2012-04-19 Pedro Alves <palves@redhat.com>
7762 * gnulib/: Move whole directory ...
7763 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7764 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7765 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7766 (aclocal_m4_deps): Adjust.
7767 * aclocal.m4: Regenerate.
7768 * configure: Regenerate.
7769 * configure.ac: Adjust AC_OUTPUT output.
7771 2012-04-19 Yao Qi <yao@codesourcery.com>
7773 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7775 * vec.c: Move it ...
7776 * common/vec.c: ... here.
7777 * vec.h: Move it ...
7778 * common/vec.h: ... here.
7780 2012-04-19 Yao Qi <yao@codesourcery.com>
7782 * gdb-code-style.el: New.
7784 2012-04-18 Pedro Alves <palves@redhat.com>
7786 Update gnulib from latest git.
7787 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7789 * gnulib/Makefile.am: Update.
7790 * gnulib/dummy.c: Update.
7791 * gnulib/extra/arg-nonnull.h: Update.
7792 * gnulib/extra/c++defs.h: Update.
7793 * gnulib/extra/update-copyright: Update.
7794 * gnulib/extra/warn-on-use.h: Update.
7795 * gnulib/inttypes.in.h: Update.
7796 * gnulib/m4/00gnulib.m4: Update.
7797 * gnulib/m4/extensions.m4: Update.
7798 * gnulib/m4/gnulib-cache.m4: Update.
7799 * gnulib/m4/gnulib-common.m4: Update.
7800 * gnulib/m4/gnulib-comp.m4: Update.
7801 * gnulib/m4/gnulib-tool.m4: Update.
7802 * gnulib/m4/include_next.m4: Update.
7803 * gnulib/m4/inttypes-pri.m4: Update.
7804 * gnulib/m4/inttypes.m4: Update.
7805 * gnulib/m4/longlong.m4: Update.
7806 * gnulib/m4/memchr.m4: Update.
7807 * gnulib/m4/memmem.m4: Update.
7808 * gnulib/m4/mmap-anon.m4: Update.
7809 * gnulib/m4/multiarch.m4: Update.
7810 * gnulib/m4/onceonly.m4: Update.
7811 * gnulib/m4/stddef_h.m4: Update.
7812 * gnulib/m4/stdint.m4: Update.
7813 * gnulib/m4/string_h.m4: Update.
7814 * gnulib/m4/warn-on-use.m4: Update.
7815 * gnulib/m4/wchar_h.m4: Update.
7816 * gnulib/m4/wchar_t.m4: Update.
7817 * gnulib/m4/wint_t.m4: Update.
7818 * gnulib/memchr.c: Update.
7819 * gnulib/memmem.c: Update.
7820 * gnulib/stddef.in.h: Update.
7821 * gnulib/stdint.in.h: Update.
7822 * gnulib/str-two-way.h: Update.
7823 * gnulib/string.in.h: Update.
7824 * gnulib/wchar.in.h: Update.
7826 * gnulib/extra/arg-nonnull.h: Delete.
7827 * gnulib/extra/c++defs.h: Delete.
7828 * gnulib/extra/warn-on-use.h: Delete.
7829 * gnulib/m4/wchar_h.m4: Delete.
7830 * gnulib/m4/wint_t.m4: Delete.
7831 * gnulib/wchar.in.h: Delete.
7833 * gnulib/extra/snippets/arg-nonnull.h: New.
7834 * gnulib/extra/snippets/c++defs.h: New.
7835 * gnulib/extra/snippets/warn-on-use.h: New.
7837 * aclocal.m4: Regenerate.
7838 * config.in: Regenerate.
7839 * configure: Regenerate.
7840 * gnulib/Makefile.in: Regenerate.
7842 2012-04-18 Pedro Alves <palves@redhat.com>
7844 Reimport the update-copyright module from gnulib
7845 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7847 * configure: Regenerate.
7848 * gnulib/Makefile.am: Update.
7849 * gnulib/Makefile.in: Regenerate.
7850 * gnulib/extra/update-copyright: Update.
7851 * gnulib/m4/gnulib-cache.m4: Update.
7852 * gnulib/m4/gnulib-comp.m4: Update.
7854 2012-04-18 Tristan Gingold <gingold@adacore.com>
7856 * configure.ac (aix): Put -lpthread into libs.
7857 * configure: Regenerate.
7859 2012-04-18 Tom Tromey <tromey@redhat.com>
7861 * linespec.c (convert_linespec_to_sals): Don't use
7863 (compare_msymbols): Arguments are minsym_and_objfile, not
7864 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7866 2012-04-18 Pedro Alves <palves@redhat.com>
7868 Revert gnulib/ part of:
7869 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7870 Copyright year update in most files (performed by copyright.sh).
7872 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7874 Fix 64-bit constants on 32-bit hosts.
7875 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7876 from unsigned long to ULONGEST.
7877 (read_signed_leb128): Change declaration return type from long to
7879 (dwarf2_const_value_attr): Change declaration parameter value from long
7881 (dwarf2_compute_name): Change variable value from long to LONGEST.
7882 (read_unsigned_leb128): Change return type, variable result and some
7883 casts from unsigned long to ULONGEST.
7884 (read_signed_leb128): Change return type, variable result and some
7885 casts from long to LONGEST.
7886 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7887 value from long to LONGEST.
7888 (dwarf2_const_value): Change variable value from long to LONGEST.
7889 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7890 plongest and hex_string.
7891 * symtab.h (struct general_symbol_info): Change ivalue from long to
7892 LONGEST, remove the comment.
7893 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7894 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7896 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7899 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7900 * ada-lang.c (ada_discrete_type_high_bound)
7901 (ada_discrete_type_low_bound): Fix function comment. Use
7902 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7903 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7904 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7905 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7906 Use TYPE_FIELD_ENUMVAL.
7907 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7908 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7909 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7910 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7912 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7913 * dwarf2read.c (process_enumeration_scope): Likewise.
7914 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7916 (class StructMainTypePrettyPrinter): Support also
7917 FIELD_LOC_KIND_ENUMVAL.
7918 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7920 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7921 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7922 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7923 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7925 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7926 accommodate enumval.
7927 (struct call_site): Adjust loc_kind to accommodate enumval.
7928 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7929 (TYPE_FIELD_ENUMVAL): New macros.
7930 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7931 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7933 * p-typeprint.c (pascal_type_print_base): Likewise.
7934 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7936 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7937 * python/py-type.c (convert_field): New variable addrstring. Use
7938 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7939 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7940 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7941 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7943 * valprint.c (generic_val_print): Likewise.
7945 2012-04-17 Doug Evans <dje@google.com>
7947 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7949 * dwarf2read.c: Whitespace fixes.
7950 (lookup_signatured_type): Tweak comment.
7951 (get_die_type_at_offset): Fix comment.
7953 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7955 * xcoffread.c (xcoff_secnum_to_sections): New function.
7956 (secnum_to_section, secnum_to_bfd_section): Reimplement
7957 using xcoff_secnum_to_sections. Rename "secnum" parameter
7959 (RECORD_MINIMAL_SYMBOL): Delete.
7960 (record_minimal_symbol): New function.
7961 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7962 by call to record_minimal_symbol and set misc_func_recorded
7963 to 1. Set last_csect_sec to the XCOFF section index instead
7964 of GDB's section_offset index. Update calls to
7965 prim_record_minimal_symbol_and_info to pass the BFD section
7968 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7970 * xcoffread.c (read_xcoff_symtab): Delete variables
7971 last_csect_val and last_csect_sec and associated code.
7973 2012-04-17 Doug Evans <dje@google.com>
7975 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7976 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7977 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7978 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7980 * cleanups.h: New file.
7981 * cleanups.c: New file.
7982 * Makefile.in (SFILES): Add cleanups.c.
7983 (HFILES_NO_SRCDIR): Add cleanups.h.
7984 (COMMON_OBS): Add cleanups.o.
7985 * defs.h (struct cleanup): Moved to cleanups.h.
7986 (do_cleanups,do_final_cleanups): Ditto.
7987 (discard_cleanups,discard_final_cleanups): Ditto
7988 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7989 (save_cleanups,save_final_cleanups): Ditto.
7990 (restore_cleanups,restore_final_cleanups): Ditto.
7991 (null_cleanup): Ditto.
7992 (make_my_cleanup,make_my_cleanup2): Ditto.
7993 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7994 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7995 (do_cleanups,do_final_cleanups): Ditto.
7996 (discard_cleanups,discard_final_cleanups): Ditto
7997 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7998 (save_cleanups,save_final_cleanups): Ditto.
7999 (restore_cleanups,restore_final_cleanups): Ditto.
8000 (null_cleanup): Ditto.
8001 (make_my_cleanup,make_my_cleanup2): Ditto.
8002 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8004 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8006 (make_cleanup_dyn_string_delete): Ditto.
8007 (make_cleanup_ui_file_delete): Ditto.
8008 (make_cleanup_ui_out_redirect_pop): Ditto.
8009 (make_cleanup_free_section_addr_info): Ditto.
8010 (make_cleanup_restore_integer): Ditto.
8011 (make_cleanup_unpush_target): Ditto.
8012 (make_cleanup_value_free_to_mark): Ditto.
8013 (make_cleanup_value_free): Ditto.
8014 (make_cleanup_free_so): Ditto.
8016 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8018 New option "set debug auto-load".
8019 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8020 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8021 (auto_load_safe_path_vec_update)
8022 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8024 (file_is_auto_load_safe): New parameters debug_fmt and ....
8025 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8026 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8027 caller by explanatory string.
8028 (_initialize_auto_load): Register "set debug auto-load".
8029 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8031 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8032 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8033 by explanatory string.
8034 * main.c (captured_main): Likewise.
8035 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8036 (source_section_scripts): Likewise.
8038 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8040 New option "set auto-load safe-path".
8041 * NEWS: New commands "set auto-load safe-path"
8042 and "show auto-load safe-path".
8043 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8044 (auto_load_safe_path, auto_load_safe_path_vec)
8045 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8046 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8047 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8048 (source_gdb_script_for_objfile): New variable is_safe. Call
8049 file_is_auto_load_safe. Return if it is not.
8050 (struct loaded_script): New field loaded.
8051 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8052 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8053 output "Missing" to "No".
8054 (_initialize_auto_load): New variable cmd. Initialize
8055 auto_load_safe_path. Register "set auto-load safe-path",
8056 "show auto-load safe-path" and "add-auto-load-safe-path".
8057 * auto-load.h (maybe_add_script): Add parameter loaded.
8058 (file_is_auto_load_safe): New declaration.
8059 * config.in: Regenerate.
8060 * configure: Regenerate.
8061 * configure.ac: New parameters --with-auto-load-safe-path
8062 and --without-auto-load-safe-path.
8063 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8064 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8065 * main.c (captured_main): Check file_is_auto_load_safe for
8067 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8068 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8069 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8072 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8074 auto-load: Implementation.
8075 * NEWS: New descriptions for "info auto-load",
8076 "info auto-load gdb-scripts", "info auto-load python-scripts",
8077 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8078 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8079 and "show auto-load-scripts". New description for "set auto-load",
8080 "show auto-load", "set auto-load gdb-scripts",
8081 "show auto-load gdb-scripts", "set auto-load python-scripts",
8082 "show auto-load python-scripts", "set auto-load local-gdbinit",
8083 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8084 "show auto-load libthread-db".
8085 * auto-load.c: Remove include python/python-internal.h. Add includes
8086 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8088 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8089 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8090 (gdbpy_global_auto_load): Rename to ...
8091 (global_auto_load): ... here.
8092 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8093 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8094 (script_language_gdb, source_gdb_script_for_objfile): New.
8095 (struct loaded_script): New field language.
8096 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8098 (maybe_add_script): Add parameter language. Drop redundant
8099 entry.full_path initialization. Initialize entry.language and
8101 (auto_load_objfile_script): Change parameter suffix to language.
8102 Remove the call of maybe_add_script.
8103 Call language->source_script_for_objfile.
8104 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8106 (collect_matching_scripts): Adjust it for
8107 struct collect_matching_scripts_data.
8108 (auto_load_info_scripts_pattern_nl): New variable.
8109 (info_auto_load_scripts): Rename to ...
8110 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8111 for struct collect_matching_scripts_data.
8112 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8113 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8114 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8115 (auto_load_info_cmdlist_get): New.
8116 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8117 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8118 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8119 "info auto-load local-gdbinit".
8120 * auto-load.h (struct script_language): New.
8121 (gdbpy_global_auto_load): Rename to ...
8122 (global_auto_load): ... here.
8123 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8124 (auto_load_local_gdbinit_loaded): New declarations.
8125 (maybe_add_script): New parameter language.
8126 (auto_load_objfile_script): Change parameter suffix to language.
8127 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8128 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8129 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8131 * linux-thread-db.c: Include auto-load.h and ctype.h.
8132 (auto_load_thread_db, show_auto_load_thread_db): New.
8133 (struct thread_db_info): New field filename.
8134 (delete_thread_db_info): Call xfree for FILENAME.
8135 (try_thread_db_load): Initialize FILENAME.
8136 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8137 if !AUTO_LOAD_THREAD_DB.
8138 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8139 (_initialize_thread_db): Install auto_load_thread_db
8140 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8141 as "info auto-load libthread-db".
8142 * main.c (captured_main): Rename gdbpy_global_auto_load to
8143 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8144 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8145 (print_gdb_help): Extend the help for 'local init file'.
8146 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8147 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8148 (auto_load_scripts): Rename to ...
8149 (auto_load_python_scripts): ... here, update the comment.
8150 (gdbpy_load_auto_script_for_objfile): New declaration.
8151 (show_auto_load_python_scripts, script_language_python)
8152 (gdbpy_load_auto_script_for_objfile): New.
8153 (source_section_scripts): Refactor the code.
8154 (load_auto_scripts_for_objfile): Rename to ...
8155 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8156 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8157 (info_auto_load_python_scripts): New.
8158 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8159 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8160 Register "set auto-load-scripts" as its deprecated alias. Register
8161 "info auto-load python-scripts". Register "info auto-load-scripts" as
8162 its deprecated alias.
8163 (load_auto_scripts_for_objfile): Rename to ...
8164 (gdbpy_load_auto_scripts_for_objfile): ... here.
8165 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8166 (gdbpy_load_auto_scripts_for_objfile): ... here.
8168 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8170 auto-load: Move files.
8171 * Makefile.in (SFILES): Add auto-load.c.
8172 (HFILES_NO_SRCDIR): Add auto-load.h.
8173 (COMMON_OBS): Add auto-load.o.
8174 (distclean): Change .gdbinit for gdb-gdb.gdb.
8175 * auto-load.c: New file, with parts from python/py-auto-load.c.
8176 * auto-load.h: New file, with parts from python/python.h.
8177 * configure: Regenerate.
8178 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8179 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8180 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8181 * main.c: Include auto-load.h.
8182 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8183 command.h, observer.h and progspace.h to auto-load.c. Add include
8185 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8186 (struct loaded_script, auto_load_pspace_data)
8187 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8188 (hash_loaded_script_entry, eq_loaded_script_entry)
8189 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8190 (maybe_add_script): Move to auto-load.c.
8191 (source_section_scripts): Change maybe_add_script parameters passing,
8192 use script_not_found_warning_print.
8193 (clear_section_scripts, auto_load_objfile_script)
8194 (auto_load_new_objfile, loaded_script_ptr)
8195 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8196 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8197 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8198 auto_load_new_objfile and info_auto_load_scripts initizations to
8200 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8202 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8205 * charset.c (find_charset_names): Remove variables ix and elt.
8206 Use free_char_ptr_vec.
8207 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8208 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8209 debugdir_end. New variable debugdir_len.
8210 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8211 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8213 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8214 and elt. Use free_char_ptr_vec.
8215 * source.c (add_path): Remove variables argv, arg and argv_index.
8216 New variables dir_vec, back_to, ix and name.
8217 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8218 make_cleanup_freeargv. Remove variable separator. Simplify the code
8219 no longer expecting DIRNAME_SEPARATOR.
8220 (openp): Remove variable p, p1 and len. New variables dir_vec,
8221 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8222 no longer expecting DIRNAME_SEPARATOR.
8223 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8224 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8226 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8227 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8228 (dirnames_to_char_ptr_vec): New functions.
8230 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8233 * source.c (add_path): Remove always true conditional 'p == 0' and
8234 unindent its code block.
8236 2012-04-17 Pedro Alves <palves@redhat.com>
8238 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8239 (FIELD_BITPOS_LVAL): ... this.
8240 (FIELD_BITPOS): New.
8241 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8242 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8243 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8245 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8247 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8248 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8249 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8252 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8254 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8255 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8256 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8257 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8258 * jv-lang.c (java_link_class_type): Likewise, once.
8259 * stabsread.c (read_enum_type): Likewise.
8261 2012-04-16 Yao Qi <yao@codesourcery.com>
8263 * common/agent.c (agent_run_command): Add one more parameter `len'.
8265 * common/agent.h: Update declaration.
8266 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8268 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8270 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8273 * value.c (value_actual_type): New function.
8274 * value.h (value_actual_type): New declaration.
8275 * varobj.c (update_type_if_necessary): New function.
8276 (varobj_create): Call value_actual_type instead of
8278 (install_dynamic_child): distinct changed and type changed MI variable
8280 (update_dynamic_varobj_children): Updated for install_dynamic_child
8281 change. All callers updated.
8282 (varobj_update): Support for MI variable object type change if
8283 the value changed and RTTI is used to determine the type.
8284 (create_child_with_value): Call value_actual_type instead of
8286 (adjust_value_for_child_access): Extended with a new parameter which
8287 specify whether the given value should be casted to enclosing type.
8288 All callers updated.
8290 2012-04-14 Yao Qi <yao@codesourcery.com>
8292 Import gnulib module inttypes from git
8293 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8294 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8295 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8296 gnulib/m4/inttypes-pri.m4
8297 * aclocal.m4, config.in, configure: Regenerated.
8298 * gnulib/Makefile.am: Update.
8299 * gnulib/Makefile.in: Update.
8300 * gnulib/m4/gnulib-cache.m4: Update.
8301 * gnulib/m4/gnulib-comp.m4: Update.
8302 * gnulib/inttypes.in.h: New.
8303 * gnulib/m4/inttypes-pri.m4: New.
8304 * gnulib/m4/inttypes.m4: New.
8306 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8308 * infrun.c (resume): Update PC address to the real PC after
8309 preparing to do displaced stepping.
8311 2012-04-12 Doug Evans <dje@google.com>
8313 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8314 All callers updated.
8316 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8318 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8320 2012-04-12 Doug Evans <dje@google.com>
8322 * dwarf2read.c (create_all_type_units): Renamed from
8323 create_debug_types_hash_table. All callers updated.
8325 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8326 local type_sig to sig_type, type_offset to type_offset_in_tu.
8327 (hash_signatured_type): Renamed from hash_type_signature,
8328 all callers updated.
8329 (eq_signatured_type): Renamed from eq_type_signature,
8330 all callers updated.
8331 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8332 (process_enumeration_scope): Ditto.
8333 (lookup_signatured_type_at_offset): Ditto.
8334 (load_full_type_unit, read_signatured_type): Ditto.
8336 2012-04-12 Yao Qi <yao@codesourcery.com>
8338 * remote.c (async_remote_interrupt): Correct function name in
8340 (async_remote_interrupt_twice): Ditto.
8342 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8344 * source.c (find_and_open_source): Consistently pass resulting
8345 full path through xfullpath.
8347 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8349 Provide more specific displaced-stepping memory error message.
8350 * infrun.c (displaced_step_prepare): New variable status. Call
8351 target_read_memory instead of read_memory, provide more specific
8354 2012-04-11 Tristan Gingold <gingold@adacore.com>
8357 * darwin-nat.c (darwin_execvp): Revert previous patch.
8359 2012-04-11 Tristan Gingold <gingold@adacore.com>
8362 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8365 2012-04-11 Tristan Gingold <gingold@adacore.com>
8367 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8370 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8372 New command 'explore' which helps explore values and types in
8374 * NEWS: Add an entry about the new 'explore' command.
8375 * data-directory/Makefile.in: Add gdb/command/explore.py
8376 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8377 command using the GDB Python API.
8379 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8381 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8382 extension in jump target calculation.
8384 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8386 * mips-tdep.c (mips32_next_pc): Handle JALX.
8388 2012-04-10 Yao Qi <yao@codesourcery.com>
8390 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8392 2012-04-10 Yao Qi <yao@codesourcery.com>
8394 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8395 and gnulib/m4/gnulib-tool.m4.
8397 2012-04-10 Doug Evans <dje@google.com>
8399 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8400 (load_partial_dies): Clarify comment.
8401 (find_partial_die): Support rereading type units.
8402 Clarify CU handling, if we know offset is in CU, don't search for the
8403 containing CU. Add comment regarding memory waste.
8405 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8407 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8408 i386/x32-avx and i386/x32-avx-linux.
8409 (i386/x32-expedite): New.
8410 (i386/x32-linux-expedite): Likewise.
8411 (i386/x32-avx-expedite): Likewise.
8412 (i386/x32-avx-linux-expedite): Likewise.
8413 ($(outdir)/i386/x32.dat): Likewise.
8414 ($(outdir)/i386/x32-linux.dat): Likewise.
8415 ($(outdir)/i386/x32-avx.dat): Likewise.
8416 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8418 * features/i386/x32-avx-linux.xml: New file.
8419 * features/i386/x32-avx.xml: Likewise.
8420 * features/i386/x32-core.xml: Likewise.
8421 * features/i386/x32-linux.xml: Likewise.
8422 * features/i386/x32.xml: Likewise.
8424 * features/i386/x32-avx-linux.c: New. Generated.
8425 * features/i386/x32-avx.c: Likewise.
8426 * features/i386/x32-linux.c: Likewise.
8427 * features/i386/x32.c: Likewise.
8428 * regformats/i386/x32-avx-linux.dat: Likewise.
8429 * regformats/i386/x32-avx.dat: Likewise.
8430 * regformats/i386/x32-linux.dat: Likewise.
8431 * regformats/i386/x32.dat: Likewise.
8433 2012-04-10 Tristan Gingold <gingold@adacore.com>
8435 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8436 code to kill the inferior.
8438 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8440 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8442 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8444 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8445 (yyvsp): New defines.
8446 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8448 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8450 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8452 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8454 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8457 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8459 * sparc64-tdep.c (sparc64_store_arguments)
8460 (sparc64_store_arguments): Fix coding style.
8462 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8464 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8465 complex floats, adjust some related comments and tighten a related
8467 (sparc64_extract_return_value): Handle complex floats.
8469 2012-04-07 Doug Evans <dje@google.com>
8471 * dwarf2read.c (load_partial_dies): Change condition to assert.
8473 2012-04-06 Doug Evans <dje@google.com>
8475 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8478 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8480 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8482 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8483 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8486 2012-04-05 Keith Seitz <keiths@redhat.com>
8488 * linespec.c (decode_compound): Remove.
8489 (enum offset_relative_sign): New enum.
8490 (struct line_offset): New struct.
8491 (struct linespec): New struct.
8492 (struct linespec_state): Move file_symtabs,
8493 user_filename, and user_function into struct linespec.
8494 Make result an anonymous struct holding vectors of
8495 symbolp and minsym_and_objfile_d.
8496 Add language member.
8497 (enum ls_token_type): New enum.
8498 (linespec_keywords): New array.
8499 (struct ls_token): New struct.
8500 (struct ls_parser): New struct.
8501 (linespec_lexer_lex_number): New function.
8502 (linespec_lexer_lex_keyword): New function.
8503 (is_ada_operator): New function.
8504 (skip_quote_char): New function.
8505 (copy_token_string): New function.
8506 (is_closing_quote_enclosed): New function.
8507 (find_parameter_list_end): New function.
8508 (linespec_lexer_lex_string): New function.
8509 (linespec_lexer_lex_one): New function.
8510 (linespec_lexer_consume_token): New function.
8511 (linespec_lexer_peek_token): New function.
8512 (cplusplus_error): Remove unused function.
8513 (find_methods): Update comment.
8514 (find_toplevel_char): Return const.
8515 (is_objc_method_format): Remove unused function.
8516 (find_toplevel_string): New function.
8517 (is_linespec_boundary): Remove.
8518 (symbol_not_found_error): New function.
8519 (find_method_overload_end): Remove function.
8520 (unexpected_linespec_error): New function.
8521 (keep_name_info): Remove.
8522 (linespec_parse_line_offset): New function.
8523 (linespec_parse_basic): New function.
8524 (canonicalize_linespec): New function.
8525 (decode_line_internal): Remove.
8526 (create_sals_line_offset): New function adapted from
8528 (convert_linespec_to_sals): New function.
8529 (parse_linespec): New function.
8530 (linespec_parser_new): New function.
8531 (linespec_state_destructor): Change parameter type to
8532 struct linespec_state *.
8533 Add language parameter.
8534 Remove freeing of moved members.
8535 (linespec_parser_delete): New function.
8536 (decode_line_full): Use parse_linespec and linespec_parser_new.
8537 (decode_line_1): Likewise.
8538 (decode_indirect): Rename to ...
8539 (linespec_expression_to_pc): ... this and rewrite
8540 to simply find CORE_ADDR, storing this result for later
8542 (locate_first_half): Remove.
8543 (deocde_objc): Add parameter LS.
8544 Initialize new struct collect_info members.
8545 Handle minimal symbols, too.
8546 (decode_compound): Delete.
8547 (lookup_prefix_sym): Rewrite.
8548 (compare_msymbols): New function.
8549 (find_method): Rewrite.
8550 Do not call cplusplus_error.
8551 (symtabs_from_filename): Rewrite.
8552 (collect_function_symbols): Delete.
8553 (find_function_symbols): Rewrite without ARGPTR-style
8555 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8556 (decode_dollar): Adapted and renamed to ...
8557 (linespec_parse_variable): ... this.
8558 (find_linespec_symbols): New function.
8559 (decode_label): Adapted and renamed to ...
8560 (find_label_symbols): ... this.
8561 (decode_digits_list_mode): Add and use LS argument.
8562 (decode_digits_ordinary): Likewise.
8563 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8564 If in list mode, allow any symbol class. Otherwise, only
8565 permit LOC_BLOCK symbols.
8566 (minsym_found): Update comments.
8567 (search_minsyms_for_name): Do not convert the matching symbol
8568 into a SAL. Simply push the symbol and objfile into the
8570 (decode_variable): Delete. Contents adapted into
8571 find_linespec_symbols.
8573 * cp-support.c (SKIP_SPACE): Remove.
8574 (operator_tokens): Remove unused global.
8575 (cp_validate_operator): Remove.
8576 * cp-support.h (cp_validate_operator): Remove declaration.
8578 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8580 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8581 for TYPE_VPTR_FIELDNO.
8582 * valprint.c (valprint_check_validity): Make it global, move the
8583 function comment ...
8584 * value.h (valprint_check_validity): ... to this new declaration.
8586 2012-04-02 Tristan Gingold <gingold@adacore.com>
8588 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8589 the STATE32 api for i386 state.
8590 (i386_darwin_store_inferior_registers): Likewise.
8592 2012-04-02 Tristan Gingold <gingold@adacore.com>
8594 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8596 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8599 2012-04-02 Tristan Gingold <gingold@adacore.com>
8602 * darwin-nat.c (darwin_execvp): Set binary preference.
8604 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8606 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8608 2012-03-30 Tom Tromey <tromey@redhat.com>
8610 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8611 of TRY_CATCH. Fix error handling.
8612 * python/py-value.c (convert_value_from_python): Move 'old'
8613 declaration to innermost scope.
8615 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8616 Andrey Smirnov <andrew.smirnov@gmail.com>
8618 -Wshadow warning fix.
8619 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8620 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8621 Adjust code accordingly.
8623 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8625 * ada-lang.c (symbol_completion_add): Rename parameter
8626 "encoded" into "encoded_p". Ajust code and documentation
8629 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8630 Andrey Smirnov <andrew.smirnov@gmail.com>
8632 -Wshadow warning fix.
8633 * ada-lang.c (symbol_completion_add): Rename parameter
8634 "wild_match" into wild_match_p. Update code and documentation
8637 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8639 * ada-lang.c (symbol_completion_match): Rename parameter
8640 "encoded" into "encoded_p". Ajust code and documentation
8643 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8644 Andrey Smirnov <andrew.smirnov@gmail.com>
8646 -Wshadow warning fix.
8647 * ada-lang.c (symbol_completion_match): Rename parameter
8648 "wild_match" into "wild_match_p". Adjust code and function
8649 documentation accordingly.
8651 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8652 Andrey Smirnov <andrew.smirnov@gmail.com>
8654 -Wshadow warning fix.
8655 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8656 "symbol_info" into "info". Adjust code accordingly.
8657 (ada_lookup_symbol): Likewise.
8659 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8661 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8662 of this function's documentation.
8664 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8665 Andrey Smirnov <andrew.smirnov@gmail.com>
8667 -Wshadow warning fix.
8668 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8669 variable into "wild_match_p". Adjust code accordingly.
8671 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8672 Andrey Smirnov <andrew.smirnov@gmail.com>
8674 -Wshadow warning fix.
8675 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8676 parameter into "wild_match_p". Adjust code accordingly.
8677 Document this parameter in the function description.
8679 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8680 Andrey Smirnov <andrew.smirnov@gmail.com>
8682 -Wshadow warning fix.
8683 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8684 "wild_match" parameter to "wild_match_p" (-Wshadow).
8686 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8688 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8689 in function documentation.
8691 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8692 Andrey Smirnov <andrew.smirnov@gmail.com>
8694 -Wshadow warning fix.
8695 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8696 variable into wild_match_p. Adjust code accordingly.
8698 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8699 Andrey Smirnov <andrew.smirnov@gmail.com>
8701 * ada-valprint.c (ada_val_print_1): Move the code handling
8702 TYPE_CODE_ENUM inside its own lexical block. Declare
8703 variables len and val there, instead of in the function's
8704 top level block. Avoid declaring deref_val again in a way
8705 that shadows another variable of the same name declared
8706 in one of the up-level blocks. Just re-use the up-level
8709 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8711 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8712 Replace block_found argument by symbol_info. Adjust
8713 implementation accordingly. Add function documentation.
8714 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8716 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8717 * ada-exp.y (write_object_renaming): Adjust to new
8718 ada_lookup_encoded_symbol API.
8720 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8722 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8725 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8727 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8728 (v850_register_name): Add the mpu and fpu register names.
8729 (v850e_register_name): Add the mpu and fpu register names.
8730 (v850e2_register_name): New function.
8731 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8734 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8736 * NEWS: Add entry for Ada varobj support.
8738 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8740 * varobj.c (default_value_is_changeable_p): New function,
8741 extracted from varobj_value_is_changeable_p. Add declaration.
8742 (ada_value_is_changeable_p): New function, extracted from
8743 varobj_value_is_changeable_p. Add declaration.
8744 (struct language_specific): New field "value_is_changeable_p".
8745 (languages): Add entries for new field.
8746 (varobj_create): Set language before calling install_new_value.
8747 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8748 "value_is_changeable_p" language callback.
8750 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8752 * ada-varobj.h, ada-varobj.c: New files.
8753 * Makefile.in (SFILES): Add ada-varobj.c.
8754 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8755 (COMMON_OBS): Add ada-varobj.o.
8757 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8759 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8760 (struct language_specific): New field "value_has_mutated".
8761 (languages): Set field "value_has_mutated" in each entry of array.
8762 (varobj_value_has_mutated): New function.
8763 (varobj_udpdate): Add handling of type mutation.
8764 (value_of_root): Add handling of type mutation.
8765 (ada_value_has_mutated): New function.
8767 2012-03-28 Pedro Alves <palves@redhat.com>
8769 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8770 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8772 2012-03-28 Tom Tromey <tromey@redhat.com>
8774 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8775 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8778 2012-03-28 Tom Tromey <tromey@redhat.com>
8780 * .dir-locals.el: New file.
8782 2012-03-28 Pedro Alves <palves@redhat.com>
8784 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8786 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8788 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8791 2012-03-27 Pedro Alves <palves@redhat.com>
8793 Eliminate struct ui_stream.
8795 * ui-out.h (struct ui_stream): Delete.
8796 (ui_out_field_stream): Adjust prototype.
8797 (ui_out_stream_new, ui_out_stream_delete)
8798 (make_cleanup_ui_out_stream_delete): Delete declarations.
8799 * ui-out.c (ui_out_field_stream): Change prototype to take a
8800 ui_file instead of a ui_stream. Adjust.
8801 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8802 (make_cleanup_ui_out_stream_delete): Delete.
8803 * breakpoint.c (print_breakpoint_location)
8804 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8805 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8806 * disasm.c (dump_insns): Ditto.
8807 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8809 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8810 ui_stream/ui_out_stream_new.
8811 * infcmd.c (print_return_value): Ditto.
8812 * osdata.c (info_osdata_command): Don't allocate a local
8814 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8815 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8816 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8817 allocate a local ui_stream.
8818 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8819 instead of ui_stream/ui_out_stream_new.
8820 (list_args_or_locals): Don't allocate a local ui_stream.
8821 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8822 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8823 ui_stream/ui_out_stream_new.
8824 * cli/cli-setshow.c (do_setshow_command): Ditto.
8826 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8828 * arm-linux-tdep.c (arm_linux_init_abi): Call
8829 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8830 * arm-tdep.c (arm_process_record): New function.
8831 (deallocate_reg_mem): New function.
8832 (decode_insn): New function.
8833 (thumb_record_branch): New function.
8834 (thumb_record_ldm_stm_swi(): New function.
8835 (thumb_record_misc): New function.
8836 (thumb_record_ld_st_stack): New function.
8837 (thumb_record_ld_st_imm_offset): New function.
8838 (thumb_record_ld_st_reg_offset(): New function.
8839 (thumb_record_add_sub_cmp_mov): New function.
8840 (thumb_record_shift_add_sub): New function.
8841 (arm_record_coproc_data_proc): New function.
8842 (arm_record_coproc): New function.
8843 (arm_record_b_bl): New function.
8844 (arm_record_ld_st_multiple): New function.
8845 (arm_record_ld_st_reg_offset): New function.
8846 (arm_record_ld_st_imm_offset): New function.
8847 (arm_record_data_proc_imm): New function.
8848 (arm_record_data_proc_misc_ld_str): New function.
8849 (arm_record_extension_space): New function.
8850 (arm_record_strx): New function.
8851 (sbo_sbz): New function.
8852 (struct insn_decode_record): New structure for arm insn record.
8853 (REG_ALLOC): New macro for reg allocations.
8854 (MEM_ALLOC): New macro for memory allocations.
8855 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8857 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8859 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8860 (store_register): Likewise.
8862 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8864 * MAINTAINERS (Write After Approval): Add myself to the list.
8866 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8868 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8869 Describe also the option "auto".
8871 2012-03-22 Richard Henderson <rth@redhat.com>
8873 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8874 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8876 2012-03-22 Richard Henderson <rth@redhat.com>
8878 * jit.c (jit_read_code_entry): Compute alignment and offset of
8879 int64_t member before computing entry_size.
8881 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8883 Python scripting: Add new method Value.referenced_value to
8884 gdb.Value which can dereference pointer as well as reference
8886 * NEWS: Add entry under 'Python scripting' about the new method
8887 Value.referenced_value on gdb.Value objects.
8888 * python/py-value.c (valpy_referenced_value): New function
8889 defining a new method on gdb.Value objects which can dereference
8890 pointer and reference values.
8892 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8894 * MAINTAINERS (Write After Approval): Add myself to the list.
8896 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8898 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8899 in addition to "main".
8901 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8903 * expression.h (op_name): Add declaration.
8904 * expprint.c (op_name): Remove declaration. Make non-static.
8905 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8907 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8909 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8911 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8912 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8913 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8914 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8915 (linux_nat_get_siginfo): Likewise.
8916 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8917 (linux_nat_get_siginfo): Likewise.
8918 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8919 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8920 * procfs.c (gdb_siginfo_t): Likewise.
8922 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8924 * .gitignore: Ignore more files.
8926 2012-03-20 Pedro Alves <palves@redhat.com>
8928 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8931 2012-03-20 Yao Qi <yao@codesourcery.com>
8933 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8936 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8938 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8939 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8940 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8942 * dwarf2expr.h (cu_offset, sect_offset): New types.
8943 (struct dwarf_expr_context_funcs) <dwarf_call>
8944 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8946 (struct dwarf_expr_context) <len>: Improve the comment.
8947 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8948 cu_offset and sect_offset.
8949 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8950 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8951 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8952 * dwarf2loc.h: Include dwarf2expr.h.
8953 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8955 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8956 Improve the comment.
8957 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8958 (struct signatured_type, struct line_header, struct partial_die_info)
8959 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8960 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8961 (get_die_type_at_offset, create_cus_from_index)
8962 (create_signatured_type_table_from_index, dw2_get_file_names)
8963 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8964 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8965 (create_debug_types_hash_table, process_psymtab_comp_unit)
8966 (load_partial_comp_unit, create_all_comp_units)
8967 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8968 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8969 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8970 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8971 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8972 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8973 (find_partial_die, read_attribute_value, lookup_die_type)
8974 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8975 (is_ref_attr): New function comment.
8976 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8977 Use cu_offset and sect_offset.
8978 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8979 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8980 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8981 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8982 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8983 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8984 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8987 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8990 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8991 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8993 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8995 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8997 * NEWS: Describe new options --init-command=FILE, -ix and
8998 --init-eval-command=COMMAND, -iex.
8999 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9000 CMDARG_INIT_COMMAND.
9001 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9002 "init-command", "init-eval-command", "ix" and "iex" to the variable
9003 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9004 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9005 (print_gdb_help): Describe --init-command=FILE, -ix and
9006 --init-eval-command=COMMAND, -iex.
9008 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9011 * main.c (struct cmdarg): Move it here from main. Add more comments.
9012 (cmdarg_s, VEC (cmdarg_s)): New.
9013 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9014 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9015 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9016 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9019 2012-03-19 Tom Tromey <tromey@redhat.com>
9021 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9023 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9026 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9029 2012-03-16 Chris January <chris.january@allinea.com>
9031 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9034 2012-03-16 Chris January <chris.january@allinea.com>
9036 * source.c (add_path): Use memmove instead of strcpy because the
9039 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9041 * value.h (set_value_parent): Add declaration.
9042 * value.c (set_value_parent): New function.
9043 (value_address): If VALUE->PARENT is not NULL, then use it as
9044 the base address instead of VALUE->LOCATION.address.
9045 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9046 the same as OBJ's address. Adjust V's offset accordingly.
9049 2012-03-16 Gary Benson <gbenson@redhat.com>
9051 PR breakpoints/10738
9052 * dwarf2read.c (use_deprecated_index_sections): New global.
9053 (struct partial_die_info): New member may_be_inlined.
9054 (read_partial_die): Set may_be_inlined where appropriate.
9055 (add_partial_subprogram): Add partial symbols for partial
9056 DIEs that may be inlined.
9057 (new_symbol_full): Add inlined subroutines to the current
9059 (write_psymtabs_to_index): Bump version number.
9060 (dwarf2_read_index): Read only version 6 indices unless
9061 use_deprecated_index_sections is set.
9062 * linespec.c (symbol_and_data_callback): New structure.
9063 (iterate_inline_only): New function.
9064 (iterate_over_all_matching_symtabs): New argument
9065 "include_inline". If nonzero, also call the callback for
9066 symbols representing inlined subroutines.
9067 (lookup_prefix_sym): Pass extra argument to the above.
9068 (find_function_symbols): Likewise.
9069 (add_matching_symbols_to_info): Likewise.
9070 * NEWS: Mention that GDB can now set breakpoints on inlined
9073 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9075 * p-typeprint.c (pascal_type_print_method_args):
9076 Fix display of parameter of methods.
9078 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9080 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9081 Add missing prototype.
9083 2012-03-16 Yao Qi <yao@codesourcery.com>
9084 Jan Kratochvil <jan.kratochvil@redhat.com>
9086 Fix false compilation warning.
9087 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9089 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9090 Pedro Alves <pedro@codesourcery.com>
9092 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9093 (arm_register_g_packet_guesses): New function.
9094 (arm_gdbarch_init): Don't force a target description with
9095 registers when the executable is detected as M-profile. Instead
9096 set gdbarch->tdep->is_m. Register `g' packet guesses.
9097 (_initialize_arm_tdep): Initialize the new target description.
9098 * features/arm-with-m-fpa-layout.xml: New description.
9099 * features/arm-with-m-fpa-layout.c: New, generated.
9101 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9103 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9104 Update function description.
9105 (insert_bp_location): Do not wipe bl->target_info out.
9106 * mem-break.c: #include "gdb_string.h".
9107 (default_memory_insert_breakpoint): Do not call target_read_memory
9108 with a pointer to the breakpoint's shadow_contents buffer. Use
9109 a local buffer instead.
9110 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9112 2012-03-15 Tom Tromey <tromey@redhat.com>
9114 * NEWS: Mention "info vtbl", not "info vtable".
9115 * cp-support.c (info_vtbl_command): Fix comment.
9116 (_initialize_cp_support): Fix text.
9118 2012-03-15 Tom Tromey <tromey@redhat.com>
9120 * cp-valprint.c (cp_print_value_fields): Use
9121 print_function_pointer_address for vtable slot.
9123 2012-03-15 Tom Tromey <tromey@redhat.com>
9125 * gnu-v3-abi.c (struct value_and_voffset): New.
9126 (hash_value_and_voffset, eq_value_and_voffset)
9127 (compare_value_and_voffset, compute_vtable_size)
9128 (print_one_vtable, gnuv3_print_vtable): New functions.
9129 (init_gnuv3_ops): Initialize 'print_vtable' field.
9130 * cp-support.c (info_vtbl_command): New function.
9131 (_initialize_cp_support): Add "info vtbl".
9132 * cp-abi.h (cplus_print_vtable): Declare.
9133 (struct cp_abi_ops) <print_vtable>: New field.
9134 * cp-abi.c (cplus_print_vtable): New function.
9137 2012-03-15 Tom Tromey <tromey@redhat.com>
9139 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9140 iterate_over_symbols.
9142 2012-03-14 Doug Evans <dje@google.com>
9144 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9145 DW_OP_GNU_parameter_ref.
9147 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 Fix double prompt of 'interpreter-exec mi'.
9150 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9151 (mi_interpreter_resume): use it.
9152 (mi_execute_command_input_handler): New function.
9153 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9154 mi_execute_command_input_handler.
9156 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9158 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9160 (darwin_debug_port_info): Make static.
9161 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9162 * machoread.c (_initialize_machoread): Add prototype.
9163 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9164 (i386_darwin_set_control, i386_darwin_get_control)
9165 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9166 i386_darwin_get_status, i386_darwin_get_control):
9167 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9169 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9171 * ax-gdb.c (gen_usual_unary): Remove special handling of
9172 enum and bool types.
9174 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9176 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9178 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9180 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9182 2012-03-13 Chris January <chris.january@allinea.com>
9184 * aix-thread.c (fill_sprs): Store the floating point registers
9185 at the correct offsets into vals.
9187 2012-03-13 Doug Evans <dje@google.com>
9189 * NEWS: Mention symbol-reloading has been deleted.
9190 * symfile.c (symbol_reloading): Delete.
9191 (show_symbol_reloading): Delete.
9192 (_initialize_symfile): Delete set/show symbol-reloading.
9194 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9195 read_in_chain until we have successfully read it in.
9196 (load_full_comp_unit): Ditto.
9197 (read_signatured_type): Add comment.
9199 2012-03-13 Chris January <chris.january@allinea.com>
9201 * stabsread.c (fix_common_block): Change type of valu argument
9204 2012-03-13 Chris January <chris.january@allinea.com>
9206 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9209 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9211 * common/linux-procfs.c (linux_proc_get_int): New, from
9212 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9214 (linux_proc_get_tgid): Only call linux_proc_get_int.
9215 (linux_proc_get_tracerpid): New.
9216 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9217 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9218 linux_proc_pid_has_state.
9219 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9220 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9221 (linux_ptrace_attach_warnings): New.
9222 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9224 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9225 (linux_nat_attach): New variables ex, buffer, message and message_s.
9226 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9228 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9230 * Makefile.in (linux-ptrace.o): New.
9231 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9233 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9234 * common/linux-ptrace.c: New file.
9235 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9236 * config/arm/linux.mh: Likewise.
9237 * config/i386/linux.mh: Likewise.
9238 * config/i386/linux64.mh: Likewise.
9239 * config/ia64/linux.mh: Likewise.
9240 * config/m32r/linux.mh: Likewise.
9241 * config/m68k/linux.mh: Likewise.
9242 * config/mips/linux.mh: Likewise.
9243 * config/pa/linux.mh: Likewise.
9244 * config/powerpc/linux.mh: Likewise.
9245 * config/powerpc/ppc64-linux.mh: Likewise.
9246 * config/powerpc/spu-linux.mh: Likewise.
9247 * config/s390/s390.mh: Likewise.
9248 * config/sparc/linux.mh: Likewise.
9249 * config/sparc/linux64.mh: Likewise.
9250 * config/xtensa/linux.mh: Likewise.
9251 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9252 common/linux-procfs.c.
9253 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9255 2012-03-13 Hui Zhu <teawater@gmail.com>
9256 Pedro Alves <palves@redhat.com>
9258 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9259 CREATE_BREAKPOINT_FLAGS_INSERTED.
9260 (create_breakpoint_sal, create_breakpoints_sal)
9261 (base_breakpoint_create_breakpoints_sal)
9262 (tracepoint_create_breakpoints_sal)
9263 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9265 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9266 (ftrace_command, strace_command): Adjust.
9267 (create_tracepoint_from_upload): Pass
9268 CREATE_BREAKPOINT_FLAGS_INSERTED.
9269 * breakpoint.h (enum breakpoint_create_flags): New.
9270 (create_breakpoint): New flags parameter.
9271 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9272 * python/py-breakpoint.c (bppy_init): Adjust.
9273 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9274 * spu-tdep.c (spu_catch_start): Adjust.
9276 2012-03-13 Pedro Alves <palves@redhat.com>
9277 Hui Zhu <teawater@gmail.com>
9278 Yao Qi <yao@codesourcery.com>
9280 * remote.c (struct remote_state): New field `starting_up'.
9281 (remote_start_remote): Set and clear it.
9282 (remote_can_download_tracepoint): If starting up, return false.
9284 2012-03-13 Yao Qi <yao@codesourcery.com>
9286 * inferior.h (struct inferior): Remove fields any_syscall_count,
9287 syscalls_counts and total_syscalls_count. Move them to new
9288 struct catch_syscall_inferior_data in breakpoint.c.
9289 * breakpoint.c: Call DEF_VEC_I(int).
9290 (struct catch_syscall_inferior_data): New.
9291 (get_catch_syscall_inferior_data): New.
9292 (catch_syscall_inferior_data_cleanup): New.
9293 (insert_catch_syscall): Update to access data in
9294 struct catch_syscall_inferior_data.
9295 (insert_catch_syscall): Likewise.
9296 (remove_catch_syscall): Likewise.
9297 (remove_catch_syscall): Likewise.
9298 (is_syscall_catchpoint_enabled): Likewise.
9299 (add_catch_command): Likewise.
9300 (_initialize_breakpoint): Register cleanup.
9301 * breakpoint.h: Removed DEF_VEC_I(int).
9302 * dwarf2loc.c: Call DEF_VEC_I(int).
9303 * mi/mi-main.c: Likewise.
9305 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9307 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9309 2012-03-12 Chris January <chris.january@allinea.com>
9311 * aix-thread.c (_initialize_aix_thread): Add prototype.
9312 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9313 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9315 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9317 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9318 include of "amd64-nat.h".
9320 2012-03-12 Tom Tromey <tromey@redhat.com>
9322 * buildsym.c (record_pending_block): Now static.
9323 * buildsym.h: (record_pending_block): Remove.
9325 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9327 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9329 2012-03-09 Tom Tromey <tromey@redhat.com>
9331 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9332 producer_is_gxx_lt_4_6>: New fields.
9333 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9335 2012-03-09 Tom Tromey <tromey@redhat.com>
9337 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9339 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9341 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9344 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9346 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9348 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9350 Fix -Wmissing-prototypes build.
9351 * arm-linux-nat.c (get_thread_id): Make it static.
9352 * xtensa-linux-nat.c (get_thread_id): Likewise.
9354 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9356 * server.c (process_point_options): If a conditional expression
9357 is found, only print a message if remote_debug is nonzero.
9359 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9361 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9362 of internal error for unknown/unsupported types.
9364 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9366 Fix CU relative vs. absolute DIE offsets.
9367 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9368 offset to offset_in_cu.
9369 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9371 (dwarf2_fetch_die_location_block): Rename parameter offset to
9372 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9374 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9376 * libunwind-frame.c: Rename to ...
9377 * ia64-libunwind-tdep.c: ... here.
9378 * libunwind-frame.h: Rename to ...
9379 * ia64-libunwind-tdep.h: ... here.
9380 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9381 ia64-libunwind-tdep.h.
9382 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9383 * README (--with-libunwind): Rename to ...
9384 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9385 * config.in: Regenerate.
9386 * configure: Regenerate.
9387 * configure.ac: New option --with-libunwind-ia64, make the
9388 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9389 Remove AC_DEFINE for HAVE_LIBUNWIND.
9390 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9391 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9392 Rename libunwind-frame in the general comment.
9393 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9394 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9395 Move forward declarations inside #ifndef. Rename libunwind-frame in
9396 the general comment.
9397 * ia64-tdep.c: Rename libunwind-frame.h #include to
9398 ia64-libunwind-tdep.h.
9399 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9400 (ia64_libunwind_descr): Rename libunwind-frame to
9401 ia64-libunwind-tdep in these function comments.
9402 * ia64-tdep.h: Rename libunwind-frame.h #include to
9403 ia64-libunwind-tdep.h.
9404 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9405 ia64-libunwind-tdep in that data comment.
9407 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9409 * libunwind-frame.h (struct frame_unwind): New declaration.
9411 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9413 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9414 "set breakpoint condition-evaluation" command.
9416 2012-03-08 Tristan Gingold <gingold@adacore.com>
9418 * sparc-stub.c: Move to stubs/
9419 * sh-stub.c: Likewise.
9420 * m68k-stub.c: Likewise.
9421 * m32r-stub.c: Likewise.
9422 * i386-stub.c: Likewise.
9424 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9426 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9427 linux_get_siginfo_type.
9429 * m68klinux-nat.c: Include "gdb_proc_service.h".
9430 (PTRACE_GET_THREAD_AREA): Define.
9431 (ps_get_thread_area): New function.
9433 2012-03-08 Yao Qi <yao@codesourcery.com>
9435 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9437 (remote_query_attached): Likewise.
9438 (remote_static_tracepoint_marker_at): Likewise.
9439 (remote_set_permissions): Likewise.
9440 (remote_detach_1, extended_remote_attach_1): Likewise.
9441 (send_g_packet, remote_vkill): Likewise.
9442 (extended_remote_disable_randomization): Likewise.
9443 (remote_add_target_side_condition): Likewise.
9444 (remote_insert_breakpoint): Likewise.
9445 (remote_remove_breakpoint): Likewise.
9446 (remote_insert_watchpoint): Likewise.
9447 (remote_remove_watchpoint): Likewise.
9448 (remote_insert_hw_breakpoint): Likewise.
9449 (remote_insert_hw_breakpoint): Likewise.
9450 (remote_remove_hw_breakpoint): Likewise.
9451 (remote_download_command_source): Likewise.
9452 (remote_download_tracepoint): Likewise.
9453 (remote_download_trace_state_variable): Likewise.
9454 (remote_disable_tracepoint): Likewise.
9455 (remote_trace_set_readonly_regions): Likewise.
9456 (remote_get_tracepoint_status): Likewise.
9457 (remote_trace_find): Likewise.
9458 (remote_get_trace_state_variable_value): Likewise.
9459 (remote_set_disconnected_tracing): Likewise.
9460 (remote_set_circular_trace_buffer): Likewise.
9461 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9462 (remote_use_agent): Likewise.
9463 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9466 2012-03-07 Pedro Alves <palves@redhat.com>
9468 * NEWS: Mention QProgramSignals.
9469 * inferior.h (update_signals_program_target): Declare.
9470 * infrun.c: (update_signals_program_target): New.
9471 (handle_command): Update the target of the new program signals
9473 * remote.c (PACKET_QProgramSignals): New enum.
9474 (last_program_signals_packet): New global.
9475 (remote_program_signals): New.
9476 (remote_start_remote): Update the target with the program signals
9478 (remote_protocol_features): Add entry for QPassSignals.
9479 (remote_open_1): Free anc clear last_program_signals_packet.
9480 (init_remote_ops): Install remote_program_signals.
9481 * target.c (update_current_target): Adjust.
9482 (target_program_signals): New.
9483 * target.h (struct target_ops) <to_program_signals>: New field.
9484 (target_program_signals): Declare.
9486 2012-03-07 Pedro Alves <palves@redhat.com>
9488 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9491 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9493 * m68klinux-nat.c (getregs_supplies): Make static.
9494 (getfpregs_supplies): Likewise.
9495 (have_ptrace_getregs): Likewise.
9497 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9499 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9500 in call to get_die_type_at_offset.
9502 2012-03-06 Stan Shebs <stan@codesourcery.com>
9504 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9505 * mi/mi-cmd-disas.c: Ditto.
9506 * mi/mi-cmd-env.c: Ditto.
9507 * mi/mi-cmd-file.c: Ditto.
9508 * mi/mi-cmd-stack.c: Ditto.
9509 * mi/mi-cmd-target.c: Ditto.
9510 * mi/mi-cmd-var.c: Ditto.
9511 * mi/mi-cmds.c: Ditto.
9512 * mi/mi-cmds.h: Ditto.
9513 * mi/mi-console.c: Ditto.
9514 * mi/mi-getopt.c: Ditto.
9515 * mi/mi-getopt.h: Ditto.
9516 * mi/mi-interp.c: Ditto.
9517 * mi/mi-main.c: Ditto.
9518 * mi/mi-out.c: Ditto.
9519 * mi/mi-parse.c: Ditto.
9520 * mi/mi-parse.h: Ditto.
9521 * mi/mi-symbol-cmds.c: Ditto.
9523 * mi/mi-getopt.h: Move mi_opt struct up.
9524 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9526 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9528 2012-03-06 Tom Tromey <tromey@redhat.com>
9530 * proc-service.c (ps_pglobal_lookup): Set the current program
9533 2012-03-06 Pedro Alves <palves@redhat.com>
9535 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9537 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9539 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9541 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9544 * common/linux-osdata.c (linux_common_core_of_thread): New function
9546 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9547 call by linux_common_core_of_thread.
9548 (linux_nat_core_of_thread_1): Remove.
9549 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9550 * linux-thread-db.c: Include linux-osdata.h.
9551 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9552 linux_common_core_of_thread.
9554 2012-03-05 Tom Tromey <tromey@redhat.com>
9556 * value.c (value_primitive_field): Don't fetch contents for
9559 2012-03-05 Tom Tromey <tromey@redhat.com>
9561 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9563 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9565 * s390-nat.c: Include "gregset.h".
9567 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9569 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9570 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9571 (libunwind_load): New variable so_error, use it for dlerror. Try to
9572 load also LIBUNWIND_SO_7.
9574 2012-03-05 Pedro Alves <palves@redhat.com>
9576 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9577 is not NULL, and remove resulting dead code.
9579 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9581 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9582 prologue to sh_analyze_prologue.
9583 (sh_analyze_prologue): Make better use of such an upper limit, and
9584 generally be more cautious about accessing memory.
9586 2012-03-05 Tom Tromey <tromey@redhat.com>
9588 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9589 _initialize_ia64_hpux_tdep.
9591 2012-03-05 Pedro Alves <palves@redhat.com>
9595 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9596 the register state is clear, supply explicit zero, instead of
9597 marking the register unavailable.
9599 2012-03-05 Tristan Gingold <gingold@adacore.com>
9601 * NEWS: Mention OpenVMS ia64 new target.
9603 2012-03-05 Tristan Gingold <gingold@adacore.com>
9605 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9606 (ia64_unw_accessors, ia64_unw_rse_accessors)
9607 (ia64_libunwind_descr): Declare.
9608 * ia64-vms-tdep.c: New file.
9609 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9610 (ia64_libunwind_descr): Make them public.
9611 * configure.tgt: Add ia64-*-*vms*.
9612 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9613 (ALLDEPFILES): Add ia64-vms-tdep.c
9615 2012-03-05 Tristan Gingold <gingold@adacore.com>
9617 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9618 * remote.c (PACKET_qXfer_uib): New enum value.
9619 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9620 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9621 (_initialize_remote): Call add_packet_config_cmd for
9624 2012-03-05 Tristan Gingold <gingold@adacore.com>
9626 * osabi.c (gdb_osabi_names): Add OpenVMS.
9627 (generic_elf_osabi_sniffer): Likewise.
9628 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9630 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9632 Removed unused code.
9633 * libunwind-frame.c (libunwind_frame_unwind)
9634 (libunwind_frame_base_address): Remove.
9635 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9637 2012-03-04 Yao Qi <yao@codesourcery.com>
9639 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9640 remove trailing new line.
9641 (agent_run_command, agent_run_command): Add _ markup.
9642 (agent_capability_check): Likewise.
9644 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9646 * breakpoint.c (set_condition_evaluation_mode): Set
9647 CONDITION_EVALUATION_MODE unconditionally.
9649 2012-03-03 Yao Qi <yao@codesourcery.com>
9651 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9652 * common/agent.h: Update declaration.
9653 * inf-child.c (inf_child_use_agent): New.
9654 (inf_child_can_use_agent): New.
9655 (inf_child_target): Initialize fields `to_use_agent'
9656 and `to_can_use_agent'.
9657 * agent.c (agent_new_objfile): New.
9658 (_initialize_agent): Add agent_new_objfile to new_objfile
9661 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9663 (linux_target_install_ops): Initialize field
9664 `to_static_tracepoint_markers_by_strid'.
9665 * remote.c (free_current_marker): Move it to ...
9666 * tracepoint.c (free_current_marker): ... here. New.
9667 (cleanup_target_stop): New.
9668 * tracepoint.h: Declare free_current_marker.
9669 * NEWS: Add one entry about `info static-tracepoint-marker'.
9671 2012-03-03 Yao Qi <yao@codesourcery.com>
9673 * common/agent.c (agent_loaded_p): New.
9674 (agent_look_up_symbols): New global.
9675 * common/agent.h: Declare agent_loaded_p.
9677 2012-03-03 Yao Qi <yao@codesourcery.com>
9679 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9680 (agent_capability_check, agent_capability_invalidate): New.
9681 (symbol_list): New array element.
9682 * common/agent.h (enum agent_capa): New.
9683 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9685 2012-03-03 Yao Qi <yao@codesourcery.com>
9687 * target.h (struct target_ops) <to_use_agent>: New field.
9688 (struct target_ops) <to_can_use_agent>: New field.
9689 (target_use_agent, target_can_use_agent): New macro.
9690 * target.c (update_current_target): Update.
9691 * remote.c: New enum `PACKET_QAgent'.
9692 (remote_protocol_features): Add a new element.
9693 (remote_use_agent, remote_can_use_agent): New.
9694 (init_remote_ops): Initialize field `can_use_agent' with
9695 remote_can_use_agent. Intiailize field `use_agent' with
9697 * common/agent.c (use_agent): New global.
9698 * common/agent.h: Declare it.
9699 * tracepoint.c (info_static_tracepoint_markers_command): Add
9701 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9702 (COMMON_OBS): Add common/agent.o and agent.o
9703 (common-agent.o): New rule.
9706 2012-03-03 Yao Qi <yao@codesourcery.com>
9708 * common/agent.c: New.
9709 * common/agent.h: New.
9710 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9712 * configure, configh.in: Regenerated.
9714 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9716 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9717 unless it exists for this architecture.
9719 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9721 * language.h (struct language_defn): New "method" la_read_var_value.
9722 * findvar.c: #include "language.h".
9723 (default_read_var_value): Renames read_var_value. Rewrite
9724 function description.
9725 (read_var_value): New function.
9726 * value.h (default_read_var_value): Add prototype.
9727 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9729 (ada_language_defn): Add entry for la_read_var_value.
9730 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9731 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9732 language_defn structures to add entry for new la_read_var_value
9735 2012-03-02 Tom Tromey <tromey@redhat.com>
9736 Pedro Alves <palves@redhat.com>
9738 PR breakpoints/13776:
9739 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9741 (delete_longjmp_breakpoint_at_next_stop): New.
9742 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9743 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9744 before deleting the inferior. Add comments.
9745 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9746 breakpoints immediately, but only on next stop. Move that code
9747 next to where we mark other breakpoints for deletion.
9749 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9751 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9753 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9756 2012-03-02 Pedro Alves <palves@redhat.com>
9758 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9760 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9762 Fix -Wmissing-prototypes build.
9763 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9764 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9765 (gdbsim_has_memory): Likewise.
9767 2012-03-02 Yao Qi <yao@codesourcery.com>
9769 Fix -Wmissing-prototypes build.
9770 * charset.c (phony_iconv_open): Make static.
9771 (phony_iconv_close, phony_iconv): Likewise.
9772 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9773 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9775 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9776 * ser-mingw.c (create_select_thread): Make static.
9777 * windows-termcap.c (tgetent): New prototype.
9778 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9780 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9782 Fix -Wmissing-prototypes build.
9783 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9784 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9785 (_initialize_loadable): New prototypes.
9787 2012-03-02 Doug Evans <dje@google.com>
9789 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9790 abbrev table, read_comp_unit will do it.
9792 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9794 Fix -Wmissing-prototypes build.
9795 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9796 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9797 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9798 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9799 (_initialize_arm_symbian_tdep): New prototype.
9800 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9801 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9802 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9804 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9805 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9807 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9808 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9809 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9811 * moxie-tdep.c (moxie_process_record): Likewise.
9812 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9813 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9814 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9815 (_initialize_rl78_tdep): New prototype.
9816 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9817 (_initialize_rx_tdep): New prototype.
9818 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9819 (_initialize_darwin_solib): New prototype.
9820 * solib-spu.c: Include solib-spu.h.
9821 (_initialize_spu_solib): New prototype.
9822 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9823 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9824 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9825 (tic6x_software_single_step): Make it static.
9826 (_initialize_tic6x_tdep): New prototype.
9828 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9830 Fix -Wmissing-prototypes build.
9831 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9832 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9834 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9836 Fix -Wmissing-prototypes build.
9837 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9838 (frv_have_stopped_data_address): Remove.
9840 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9842 Fix -Wmissing-prototypes build.
9843 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9844 * sh-tdep.c: Include sh64-tdep.h.
9845 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9846 * sh64-tdep.c: Include sh64-tdep.h.
9847 * sh64-tdep.h: New file.
9849 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9851 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9853 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9855 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9856 sp_regnum once the gdbarch_init_osabi hook has been called.
9858 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9860 * mips-tdep.c (mips32_bc1_pc): New function.
9861 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9862 BPOSGE32 and BPOSGE64 instructions.
9863 (deal_with_atomic_sequence): Likewise.
9864 (mips32_instruction_has_delay_slot): Likewise.
9866 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9867 Chris Dearman <chris@mips.com>
9868 Maciej W. Rozycki <macro@codesourcery.com>
9869 Joseph Myers <joseph@codesourcery.com>
9871 * features/mips-dsp.xml: New file.
9872 * features/mips64-dsp.xml: New file.
9873 * features/mips-dsp-linux.xml: New file.
9874 * features/mips64-dsp-linux.xml: New file.
9875 * features/Makefile (WHICH): Add mips-dsp-linux and
9877 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9878 * features/mips-dsp-linux.c: New file.
9879 * features/mips64-dsp-linux.c: New file.
9880 * regformats/mips-dsp-linux.dat: New file.
9881 * regformats/mips64-dsp-linux.dat: New file.
9882 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9884 (mips64_linux_register_addr): Likewise.
9885 (mips64_linux_regsets_fetch_registers): Likewise.
9886 (mips64_linux_regsets_store_registers): Likewise.
9887 (mips64_linux_fetch_registers): Update call to
9888 mips64_linux_regsets_fetch_registers.
9889 (mips64_linux_store_registers): Update call to
9890 mips64_linux_regsets_store_registers.
9891 (mips_linux_read_description): Probe for DSP registers.
9892 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9893 and initialize_tdesc_mips64_dsp_linux.
9894 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9895 Remove padding of no longer used embedded register slots.
9896 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9897 (MIPS_RESTART_REGNUM): Redefine enum value.
9898 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9900 (mips_tx39_reg_names): Likewise.
9901 (mips_linux_reg_names): New array of register names for Linux
9903 (mips_register_name): Check for a null pointer in
9904 mips_processor_reg_names and return an empty string.
9905 (mips_register_type): Exclude embedded registers for the IRIX
9907 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9908 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9910 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9911 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9912 (mips_gdbarch_init): Likewise. Initialize internal register
9913 indices for the Linux ABI. Use dynamic numbers to refer to
9914 registers, as applicable, while parsing the target description.
9915 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9917 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9919 * frame.h (read_frame_register_unsigned): Fix typo in function
9922 2012-03-01 Pedro Alves <palves@redhat.com>
9924 * jit-reader.in [!__cplusplus]
9925 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9927 2012-03-01 Pedro Alves <palves@redhat.com>
9929 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9930 * configure: Regenerate.
9932 2012-03-01 Pedro Alves <palves@redhat.com>
9934 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9935 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9936 (ftrace_command, strace_command): Make static.
9937 * d-lang.c (_initialize_d_language): Declare.
9938 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9939 * dwarf2loc.c (_initialize_dwarf2loc):
9940 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9941 * exec.c (exec_get_section_table): Make static.
9942 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9943 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9944 * inferior.c (remove_inferior_command, add_inferior_command)
9945 (clone_inferior_command): Make static.
9946 * linux-nat.c (linux_nat_thread_address_space)
9947 (linux_nat_core_of_thread): Make static.
9948 * linux-tdep.c (_initialize_linux_tdep): Declare.
9949 * objc-lang.c (_initialize_objc_lang): Declare.
9950 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9952 (_initialize_opencl_language): Declare.
9953 * record.c (_initialize_record): Declare.
9954 * remote.c (demand_private_info, remote_get_tib_address)
9955 (remote_supports_cond_tracepoints)
9956 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9958 * skip.c (_initialize_step_skip): Declare.
9959 * symtab.c (skip_prologue_using_lineinfo): Make static.
9960 * tracepoint.c (delete_trace_state_variable)
9961 (trace_variable_command, delete_trace_variable_command)
9962 (get_uploaded_tsv, find_matching_tracepoint_location)
9963 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9965 * value.c (pack_unsigned_long): Make static.
9966 * varobj.c (varobj_ensure_python_env): Make static.
9967 * windows-tdep.c (_initialize_windows_tdep): Declare.
9968 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9970 2012-03-01 Pedro Alves <palves@redhat.com>
9972 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9974 (linux_init_abi): Install it as has_shared_address_space gdbarch
9977 2012-03-01 Pedro Alves <palves@redhat.com>
9979 * observer.c (observer_test_first_notification_function)
9980 (observer_test_second_notification_function)
9981 (observer_test_third_notification_function): Add declarations.
9983 2012-03-01 Pedro Alves <palves@redhat.com>
9985 * common/signals.c (default_target_signal_to_host)
9986 (default_target_signal_from_host): Move ...
9987 * arch-utils.c: ... here.
9988 * arch-utils.h (default_target_signal_to_host)
9989 (default_target_signal_from_host): Declare.
9991 * common/signals.c (target_signal_from_command): Move ...
9992 * infrun.c: ... here.
9993 * inferior.h (target_signal_from_command): Declare.
9994 * target.h (target_signal_from_command)
9995 (default_target_signal_from_host, default_target_signal_to_host):
9996 Delete declarations.
9998 * common/signals.c (_initialize_signals): Delete.
10000 2012-03-01 Pedro Alves <palves@redhat.com>
10002 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10003 both __cplusplus and !__cplusplus.
10005 2012-03-01 Pedro Alves <palves@redhat.com>
10007 * psymtab.c (find_and_open_source): Delete declaration.
10008 * source.c (find_and_open_source): Move comment ...
10009 * source.h (find_and_open_source): ... to this new declaration.
10011 2012-03-01 Pedro Alves <palves@redhat.com>
10013 * inline-frame.c: Include inline-frame.h.
10015 2012-03-01 Pedro Alves <palves@redhat.com>
10017 * tui/tui-data.c (set_gen_win_origin): Delete.
10018 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10019 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10021 2012-03-01 Pedro Alves <palves@redhat.com>
10023 * remote.c (encode_actions): Delete declaration.
10024 * tracepoint.c (encode_actions): Make extern.
10025 * tracepoint.h (encode_actions): Declare.
10027 2012-03-01 Pedro Alves <palves@redhat.com>
10029 * python/py-breakpoint.c: Include python.h.
10030 * python/py-continueevent.c (create_continue_event_object): Make
10032 * python/py-lazy-string.c (stpy_get_type): Make static.
10033 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10035 * python/py-utils.c (unicode_to_target_python_string): Make
10037 * python/py-value.c: Include python.h.
10039 2012-03-01 Pedro Alves <palves@redhat.com>
10041 * inferior.c (delete_threads_of_inferior): Delete.
10043 2012-03-01 Pedro Alves <palves@redhat.com>
10045 Import fallback definitions from glibc.
10047 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10048 ps_prochandle): Forward declare.
10049 (ps_err_e): Use glibc's comments.
10050 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10051 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10052 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10053 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10054 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10055 (struct ps_prochandle): Adjust comment.
10057 2012-03-01 Pedro Alves <palves@redhat.com>
10059 * ada-lang.c (ada_modulus_from_name): Delete.
10060 * ada-lex.l (lexer_init): Make static.
10062 2012-03-01 Pedro Alves <palves@redhat.com>
10066 * frame.c (read_frame_register_unsigned): New.
10067 * frame.h (read_frame_register_unsigned): Declare.
10068 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10070 (print_i387_control_word): New parameter `control_p'. Handle it.
10071 (i387_print_float_info): Handle unavailable float registers.
10073 2012-03-01 Keith Seitz <keiths@redhat.com>
10075 * linespec.c (decode_line_2): Sort the list of methods
10076 alphabetically before presenting the user with a selection
10079 2012-03-01 Doug Evans <dje@google.com>
10081 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10082 has_namespace_info.
10083 (dwarf2_read_abbrevs): Remove corresponding initialization.
10085 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10087 * NEWS: Mention new python command class gdb.COMMAND_USER.
10088 * cli/cli-cmds.c (show_user): Print error when used on a python
10090 (init_cli_cmds): Update documentation strings for "show user" and
10091 "set/show max-user-call-depth" to clarify that it does not apply to
10093 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10095 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10097 * top.c (execute_command): Only execute a user-defined command as a
10098 legacy macro if c->user_commands is set.
10100 2012-03-01 Tom Tromey <tromey@redhat.com>
10102 * valprint.h (struct generic_val_print_decorations): New.
10103 (generic_val_print): Declare.
10104 * valprint.c (generic_val_print): New function.
10105 * p-valprint.c (p_decorations): New global.
10106 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10107 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10108 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10109 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10110 * m2-valprint.c (m2_decorations): New global.
10111 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10112 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10113 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10114 TYPE_CODE_ERROR>: Call generic_val_print.
10115 * f-valprint.c (f_decorations): New global.
10116 (f_val_print): Use print_function_pointer_address.
10117 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10118 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10119 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10121 * c-valprint.c (c_decorations): New global.
10122 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10123 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10124 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10125 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10126 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10127 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10130 2012-03-01 Tom Tromey <tromey@redhat.com>
10132 * valprint.c (val_print): Update.
10133 * p-valprint (pascal_val_print): Return void.
10134 * p-lang.h (pascal_val_print): Return void.
10135 * m2-valprint.c (m2_val_print): Return void.
10136 * m2-lang.h (m2_val_print): Return void.
10137 * language.h (struct language_defn) <la_val_print>: Return void.
10138 * language.c (unk_lang_val_print): Return void.
10139 * jv-valprint.c (java_val_print): Return void.
10140 * jv-lang.h (java_val_print): Return void.
10141 * f-valprint.c (f_val_print): Return void.
10142 * f-lang.h (f_val_print): Return void.
10143 * d-valprint.c (d_val_print): Return void.
10144 (dynamic_array_type): Update.
10145 * d-lang.h (d_val_print): Return void.
10146 * c-valprint.c (c_val_print): Return void.
10147 * c-lang.h (c_val_print): Return void.
10148 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10150 * ada-lang.h (ada_val_print): Return void.
10152 2012-03-01 Tom Tromey <tromey@redhat.com>
10154 * value.h (val_print): Return void.
10155 * valprint.c (val_print): Return void.
10157 2012-03-01 Tom Tromey <tromey@redhat.com>
10159 * value.h (common_val_print): Return void.
10160 * valprint.c (common_val_print): Return void.
10162 2012-03-01 Tom Tromey <tromey@redhat.com>
10164 * value.h (value_print): Return void.
10165 * valprint.c (value_print): Return void.
10166 * p-valprint.c (pascal_value_print): Return void.
10167 * p-lang.h (pascal_value_print): Return void.
10168 * language.h (struct language_defn) <la_value_print>: Return
10170 * language.c (unk_lang_value_print): Return void.
10171 * jv-valprint.c (java_value_print): Return void.
10172 * jv-lang.h (java_value_print): Return void.
10173 * f-valprint.c (c_value_print): Don't declare.
10175 * c-valprint.c (c_value_print): Return void.
10176 * c-lang.h (c_value_print): Return void.
10177 * ada-valprint.c (ada_value_print): Return void.
10178 * ada-lang.h (ada_value_print): Return void.
10180 2012-03-01 Tom Tromey <tromey@redhat.com>
10182 * value.c (value_primitive_field): Handle virtual base classes.
10184 2012-03-01 Tom Tromey <tromey@redhat.com>
10186 * gdbtypes.h (struct vbase): Remove.
10188 2012-03-01 Tom Tromey <tromey@redhat.com>
10190 * c-valprint.c (print_function_pointer_address): Move...
10191 * valprint.c: ... here. Make non-static.
10192 * m2-valprint.c (print_function_pointer_address): Remove.
10193 * valprint.h (print_function_pointer_address): Declare.
10195 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10197 * NEWS: Document the fact that one can provide a condition when
10198 creating an Ada exception catchpoint.
10200 2012-03-01 Tom Tromey <tromey@redhat.com>
10202 * valprint.c (val_print_type_code_flags): Fix placement of
10205 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10207 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10208 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10209 environment variable before calling update-copyright.
10211 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10213 * gnulib/extra/update-copyright: Update to the latest from
10214 gnulib's git repository.
10215 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10216 variable to 2 instead of 1.
10218 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10220 * varobj.c (c_value_of_variable): Remove dead code.
10222 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10224 * ada-lex.p (processId): Do not modify already encoded IDs.
10225 Update function documentation.
10227 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10229 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10230 "name" with "struct symbol *name_sym".
10231 * ada-exp.y (write_var_or_type): Update call to
10232 ada_find_renaming_symbol.
10233 "name" with "struct symbol *name_sym". Adjust Implementation
10234 accordingly. Adjust the function documentation.
10236 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10238 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10239 * ada-lang.c (ada_find_any_type): Add advance declaration.
10240 Make static. Replace ada_find_any_symbol by
10241 ada_find_any_type_symbol.
10242 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10243 Improve function description. Make static.
10244 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10245 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10247 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10249 * ada-lang.c (struct tag_args): Delete.
10250 (ada_get_tsd_type): Function body moved up in source file.
10251 (ada_tag_name_1, ada_tag_name_2): Delete.
10252 (ada_get_tsd_from_tag): New function.
10253 (ada_tag_name_from_tsd): New function.
10254 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10255 to determine the tag name.
10257 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10259 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10261 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10264 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10266 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10268 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10270 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10273 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10275 * ada-lang.c (constrained_packed_array_type): If there is a
10276 parallel XA type, use it to determine the array index type.
10278 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10280 * ada-valprint.c (ada_val_print_1): If our value is a reference
10281 to an array descriptor, dereference it before converting it
10284 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10286 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10287 creating fixed value.
10288 (ada_value_ind, ada_coerce_ref, assign_component)
10289 (ada_evaluate_subexp): Remove call to unwrap_value before
10290 call to ada_to_fixed_value.
10292 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10294 * ada-lang.c (to_fixed_array_type): Set result's type name.
10296 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10298 * ada-lang.c (catch_ada_exception_command_split): Add new
10299 argument cond_string. Add support for condition at end of
10300 "catch exception" commands.
10301 (ada_decode_exception_location): Add new argument cond_string.
10302 Update call to catch_ada_exception_command_split.
10303 (create_ada_exception_catchpoint): Add new argument cond_string.
10304 Set the breakpoint condition if needed.
10305 (catch_ada_exception_command): Update call to
10306 ada_decode_exception_location.
10307 (ada_decode_assert_location): Add function documentation.
10308 Add support for condition at end of "catch assert" command.
10309 (catch_assert_command): Update calls to ada_decode_assert_location
10310 and create_ada_exception_catchpoint.
10312 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10314 Fix disp-step-syscall.exp: fork: single step over fork.
10315 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10316 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10317 comment, change parameters gdbarch and ptid to regcache. Remove
10318 parameter regcache, initialize gdbarch from regcache here.
10319 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10321 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10323 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10324 'syscall'. Make the 'int' check more strict.
10326 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10328 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10329 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10330 (i386_linux_intx80_sysenter_syscall_record): ... here.
10331 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10332 Use the renamed function name.
10334 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10336 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10337 * breakpoint.c (until_break_command): Likewise.
10338 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10339 * infcall.c (call_function_by_hand): Likewise.
10340 * infcmd.c (finish_forward): Likewise.
10341 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10343 2012-02-28 Tristan Gingold <gingold@adacore.com>
10345 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10346 avoid variable assignments inside condition.
10348 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10350 Fix static analysis issue found by cppcheck.
10351 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10352 uninitialized BUF for size 2.
10354 2012-02-27 Chris Dearman <chris@mips.com>
10355 Nathan Froyd <froydnj@codesourcery.com>
10356 Maciej W. Rozycki <macro@codesourcery.com>
10358 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10359 (mips16_instruction_has_delay_slot): Likewise.
10360 (mips_segment_boundary): Likewise.
10361 (mips_adjust_breakpoint_address): Likewise.
10362 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10364 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10365 Maciej W. Rozycki <macro@codesourcery.com>
10367 * infrun.c (handle_inferior_event): Don't proceed through
10368 shared library trampolines if stepping at the machine
10371 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10373 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10376 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10378 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10379 (sh_stub_unwind_sniffer): New functions.
10380 (sh_stub_unwind): New variable.
10381 (sh_gdbarch_init): Wire everything.
10383 2012-02-27 Pedro Alves <palves@redhat.com>
10385 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10386 (linux_nat_post_attach_wait): Adjust to use
10387 linux_proc_pid_is_stopped.
10388 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10389 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10390 based on pid_is_stopped from both linux-nat.c and
10391 gdbserver/linux-low.c, and renamed.
10393 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10395 * remote.c (remote_watchpoint_addr_within_range): New function.
10396 (init_remote_ops): Use it.
10398 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10400 * target.h (target_watchpoint_addr_within_range): Document macro.
10402 2012-02-24 Pedro Alves <palves@redhat.com>
10404 * stack.c (set_last_displayed_sal): Issue internal_error instead
10405 of warning, and issue it after clearing the last displayed sal.
10407 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10408 Pedro Alves <palves@redhat.com>
10410 * breakpoint.c (until_break_command): Install breakpoints after
10411 all frame manipulations.
10413 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10415 * remote.c (remote_supports_cond_breakpoints): New forward
10417 (remote_add_target_side_condition): New function.
10418 (remote_insert_breakpoint): Add target-side breakpoint
10419 conditional if supported.
10420 (remote_insert_hw_breakpoint): Likewise.
10421 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10424 * target.c (update_current_target): Inherit
10425 to_supports_evaluation_of_breakpoint_conditions.
10426 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10428 * target.h (struct target_ops)
10429 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10430 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10432 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10433 (condition_evaluation_both, condition_evaluation_auto,
10434 condition_evaluation_host, condition_evaluation_target,
10435 condition_evaluation_enums, condition_evaluation_mode_1,
10436 condition_evaluation_mode): New static globals.
10437 (translate_condition_evaluation_mode): New function.
10438 (breakpoint_condition_evaluation_mode): New function.
10439 (gdb_evaluates_breakpoint_condition_p): New function.
10440 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10441 (mark_breakpoint_modified): New function.
10442 (mark_breakpoint_location_modified): New function.
10443 (set_condition_evaluation_mode): New function.
10444 (show_condition_evaluation_mode): New function.
10445 (bp_location_compare_addrs): New function.
10446 (get_first_location_gte_addr): New helper function.
10447 (set_breakpoint_condition): Free condition bytecode if locations
10448 has become unconditional. Call mark_breakpoint_modified (...).
10449 (condition_command): Call update_global_location_list (1) for
10451 (breakpoint_xfer_memory): Use is_breakpoint (...).
10452 (is_breakpoint): New function.
10453 (parse_cond_to_aexpr): New function.
10454 (build_target_condition_list): New function.
10455 (insert_bp_location): Handle target-side conditional
10456 breakpoints and call build_target_condition_list (...).
10457 (update_inserted_breakpoint_locations): New function.
10458 (insert_breakpoint_locations): Handle target-side conditional
10460 (bpstat_check_breakpoint_conditions): Add comment.
10461 (bp_condition_evaluator): New function.
10462 (bp_location_condition_evaluator): New function.
10463 (print_breakpoint_location): Print information on where the condition
10465 (print_one_breakpoint_location): Likewise.
10466 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10467 breakpoint location.
10468 (force_breakpoint_reinsertion): New functions.
10469 (update_global_location_list): Handle target-side breakpoint
10471 Reinsert locations that are already inserted if conditions have
10473 (bp_location_dtor): Free agent expression bytecode.
10474 (disable_breakpoint): Call mark_breakpoint_modified (...).
10475 Call update_global_location_list (...) with parameter 1 for breakpoints.
10476 (disable_command): Call mark_breakpoint_location_modified (...).
10477 Call update_global_location_list (...) with parameter 1 for breakpoints.
10478 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10479 (enable_command): mark_breakpoint_location_modified (...).
10480 (_initialize_breakpoint): Update documentation and add
10481 condition-evaluation breakpoint subcommand.
10483 * breakpoint.h: Include ax.h.
10484 (condition_list): New data structure.
10485 (condition_status): New enum.
10486 (bp_target_info) <cond_list>: New field.
10487 (bp_location) <condition_changed, cond_bytecode>: New fields.
10488 (is_breakpoint): New prototype.
10490 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10492 * remote.c (remote_state) <cond_breakpoints>: New field.
10493 (PACKET_ConditionalBreakpoints): New enum.
10494 (remote_cond_breakpoint_feature): New function.
10495 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10496 (remote_supports_cond_breakpoints): New function.
10497 (_initialize_remote): Add new packet configuration for
10498 target-side conditional breakpoints.
10500 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10502 * NEWS: Mention target-side conditional breakpoint support,
10503 new condition-evaluation breakpoint subcommand and remote
10506 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10508 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10511 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10513 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10514 (after_prologue): Remove.
10516 2012-02-23 Tom Tromey <tromey@redhat.com>
10518 * jv-valprint.c (java_val_print): Remove dead code.
10520 2012-02-23 Tristan Gingold <gingold@adacore.com>
10522 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10523 known_tasks_element and known_tasks_length fields.
10524 (read_known_tasks_array): Change argument type. Use pointer type
10525 and number of elements from DATA. Adjust.
10526 (read_known_tasks_list): Likewise.
10527 (get_known_tasks_addr): Remove.
10528 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10529 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10530 type and array length. Merge former get_known_tasks_addr code.
10532 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10535 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10536 it after set_momentary_breakpoint.
10538 2012-02-22 Sterling Augustine <saugustine@google.com>
10541 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10543 2012-02-22 Gary Benson <gbenson@redhat.com>
10545 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10546 (find_slot_in_mapped_hash): Likewise.
10548 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10551 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10552 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10553 * configure: Regenerate.
10555 2012-02-21 Tristan Gingold <gingold@adacore.com>
10556 Pedro Alves <palves@redhat.com>
10558 * ia64-tdep.c: Do not include libunwind-ia64.h.
10559 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10560 Include libunwind-ia64.h instead of libunwind.h.
10561 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10562 for libunwind.h existence.
10563 * configure, config.in: Regenerate.
10565 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10567 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10568 instead of value_rtti_target_type.
10569 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10570 instead of value_rtti_target_type.
10571 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10572 value_rtti_target_type.
10573 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10574 (value_rtti_target_type): Rename to ...
10575 (value_rtti_indirect_type): ... here and make it indirect. Update
10577 * value.c (readjust_indirect_value_type): New function.
10578 (coerce_ref): Support for enclosing type setting for references
10579 with readjust_indirect_value_type.
10580 * value.h (readjust_value_type): New declaration.
10581 (value_rtti_target_type): Rename to ...
10582 (value_rtti_indirect_type): ... here.
10584 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10586 * MAINTAINERS (Write After Approval): Add myself to the list.
10588 2012-02-20 Doug Evans <dje@google.com>
10590 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10591 Rename objfile_p_char parameter to objfilep.
10592 (build_objfile_section_table): Result is now void. All callers
10594 * objfiles.h (struct objfile): Tweak comments, whitespace.
10595 (build_objfile_section_table): Update.
10597 * elfread.c (elf_symfile_segments): Fix warning text.
10599 2012-02-20 Tom Tromey <tromey@redhat.com>
10602 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10603 particular set of file names once.
10604 (dw2_map_symbol_filenames): Likewise.
10606 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10609 * main.c (write_files): Remove the declaration.
10610 (external_editor_command): Move the declaration ...
10611 [GDBTK] (external_editor_command): ... here. Fix the comment.
10613 2012-02-20 Tom Tromey <tromey@redhat.com>
10615 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10618 2012-02-20 Tristan Gingold <gingold@adacore.com>
10620 * darwin-nat.h (enum darwin_msg_state): Add comments.
10622 2012-02-20 Tristan Gingold <gingold@adacore.com>
10624 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10627 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10629 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10630 between function description and implementation.
10632 2012-02-17 Tom Tromey <tromey@redhat.com>
10635 * python/py-event.c (event_object_getset): New global.
10636 (event_object_type): Reference it.
10637 * python/py-type.c (field_object_getset): New global.
10638 (field_object_type): Reference it.
10639 * python/python-internal.h (gdb_py_generic_dict): Declare.
10640 * python/py-utils.c (gdb_py_generic_dict): New function.
10642 2012-02-17 Tristan Gingold <gingold@adacore.com>
10644 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10646 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10648 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10649 TYPE_CALLING_CONVENTION annotation.
10651 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10653 * MAINTAINERS: Add rx to target ISA section.
10654 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10655 (ALLDEPFILES): Add rx-tdep.c.
10657 2012-02-16 Tom Tromey <tromey@redhat.com>
10659 * symfile.c (symbol_file_add_main_1): Use inferior's
10661 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10662 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10664 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10666 (follow_exec): Use inferior's symfile_flags.
10667 * inferior.h (struct inferior) <symfile_flags>: New field.
10669 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10672 * remote-sim.c (gdbsim_create_inferior): Call error() when
10673 sim_create_inferior() fails.
10675 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10677 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10679 2012-02-16 Tom Tromey <tromey@redhat.com>
10682 * thread.c (struct current_thread_cleanup) <was_removable>: New
10684 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10685 (make_cleanup_restore_current_thread): Initialize new field.
10687 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10689 * MAINTAINERS: Add rl78 to target ISA section.
10690 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10691 (ALLDEPFILES): Add rl78-tdep.c.
10692 * NEWS: Mention rl78 as a new target.
10694 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10696 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10698 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10700 2012-02-15 Tom Tromey <tromey@redhat.com>
10703 * infcmd.c (registers_info): Print just the current register's
10706 2012-02-15 Tom Tromey <tromey@redhat.com>
10708 * python/py-symbol.c (sympy_value): Use _().
10710 2012-02-15 Pedro Alves <palves@redhat.com>
10712 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10713 output to be like native targets'.
10714 (remote_pid_to_str): Special case the null ptid.
10716 2012-02-14 Stan Shebs <stan@codesourcery.com>
10718 * NEWS: Mention enable count command.
10719 * breakpoint.h (struct breakpoint): New field enable_count.
10720 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10721 (enable_breakpoint): Add arg to call.
10722 (struct disp_data): New struct.
10723 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10724 (do_map_enable_once_breakpoint): Create a struct and pass it.
10725 (do_map_enable_delete_breakpoint): Ditto.
10726 (do_map_enable_count_breakpoint): New function.
10727 (enable_count_command): New function.
10728 (bpstat_stop_status): Decrement enable_count.
10729 (print_one_breakpoint_location): Report enable count.
10730 (_initialize_breakpoint): Add enable count command.
10732 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10734 * rl78-tdep.c (reggroups.h): Include.
10735 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10736 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10737 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10738 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10739 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10740 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10741 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10742 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10743 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10744 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10745 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10746 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10747 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10748 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10749 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10750 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10751 beginning of register list.
10752 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10753 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10754 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10755 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10756 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10757 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10758 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10759 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10760 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10761 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10762 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10763 the pseudo registers. Rearrange other pseudo registers too so
10764 that the bank registers appear at the end.
10765 (rl78_register_type): Account for the fact that the byte sized
10766 bank registers are now pseudo-registers.
10767 (rl78_register_name): Rearrange the register name array. Make
10768 initial set of raw banked registers inaccessible.
10769 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10770 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10771 case for copying bytes back and forth between raw and pseudo
10772 versions of the banked registers. Update other cases to reflect
10774 (rl78_return_value): Update to account for changed names of
10776 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10777 rl78_register_sim_regno().
10779 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10781 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10782 the name parameter being passed to find_pc_partial_function().
10784 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10786 * MAINTAINERS: Step down from being ia64 target maintainer.
10788 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10790 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10791 compilation warning.
10793 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10795 Fix crash on loaded shlibs without loaded exec_bfd.
10796 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10797 (set_section_command): Replace exec_bfd by p->bfd.
10799 2012-02-10 Tom Tromey <tromey@redhat.com>
10801 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10802 when we have a C++ qualified name.
10804 2012-02-10 Pedro Alves <palves@redhat.com>
10806 * inferior.c (inferior_pid_to_str): New.
10807 (print_inferior, inferior_command): Use it.
10809 2012-02-10 Pedro Alves <palves@redhat.com>
10811 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10813 * configure: Regenerate.
10815 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10817 * linespec.c (decode_line_internal): Fix comment correctness.
10819 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10822 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10823 * amd64bsd-nat.c: Add support for debug registers (adapted from
10825 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10826 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10827 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10828 (amd64bsd_dr_get_control): New functions.
10829 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10830 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10831 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10832 watchpoints initialization.
10833 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10835 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10837 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10839 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10841 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10843 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10845 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10847 * language.h (symbol_name_cmp_ftype): Renames
10848 symbol_name_match_p_ftype.
10849 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10850 la_get_symbol_name_match_p.
10851 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10852 ada_get_symbol_name_match_p. Update comment.
10853 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10854 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10855 Renames symbol_name_match_p. Update field type.
10856 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10857 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10858 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10859 "la_get_symbol_name_cmp" in comments.
10860 * language.c: Likewise.
10862 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10864 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10866 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10867 (amd64_sol2_gregset32_reg_offs): Likewise.
10869 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10871 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10872 of the returned BFD is allocated by GDB.
10874 2012-02-07 Tom Tromey <tromey@redhat.com>
10877 * python/python-internal.h (frame_object_type): Declare.
10878 * python/py-symbol.c (sympy_needs_frame): New function.
10879 (sympy_value): New function.
10880 (symbol_object_getset): Add "needs_frame".
10881 (symbol_object_methods): Add "value".
10882 * python/py-frame.c (frame_object_type): No longer static.
10884 2012-02-07 Tom Tromey <tromey@redhat.com>
10887 * python/py-symbol.c (sympy_line): New function.
10888 (symbol_object_getset): Add "line".
10890 2012-02-07 Tom Tromey <tromey@redhat.com>
10892 * charset.c (find_charset_names): Check 'in' against NULL.
10894 2012-02-06 Doug Evans <dje@google.com>
10896 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10897 and fields.name members from char * to const char *. All uses updated.
10898 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10899 from char * to const char *. All uses updated.
10900 (type_name_no_tag): Update.
10901 (lookup_unsigned_typename, lookup_signed_typename): Update.
10902 * gdbtypes.c (type_name_no_tag): Change result type
10903 from char * to const char *. All callers updated.
10904 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10905 name parameter from char * to const char *.
10906 * symtab.h (struct cplus_specific): Change type of demangled_name
10907 member from char * to const char *. All uses updated.
10908 (struct general_symbol_info): Change type of name and
10909 mangled_lang.demangled_name members from char * to const char *.
10911 (symbol_get_demangled_name, symbol_natural_name): Update.
10912 (symbol_demangled_name, symbol_search_name): Update.
10913 * symtab.c (symbol_get_demangled_name): Change result type
10914 from char * to const char *. All callers updated.
10915 (symbol_natural_name, symbol_demangled_name): Ditto.
10916 (symbol_search_name): Ditto.
10917 (completion_list_add_name): Change type of symname,sym_text,
10918 text,word parameters from char * to const char *.
10919 (completion_list_objc_symbol): Change type of sym_text,
10920 text,word parameters from char * to const char *.
10921 * ada-lang.c (find_struct_field): Change type of name parameter
10922 from char * to const char *.
10923 (encoded_ordered_before): Similarly for N0,N1 parameters.
10924 (old_renaming_is_invisible): Similarly for function_name parameter.
10925 (ada_type_name): Change result type from char * to const char *.
10926 All callers updated.
10927 * ada-lang.h (ada_type_name): Update.
10928 * buildsym.c (hashname): Change type of name parameter
10929 from char * to const char *.
10930 * buildsym.h (hashname): Update.
10931 * dbxread.c (end_psymtab): Change type of include_list parameter
10932 from char ** to const char **.
10933 * dwarf2read.c (determine_prefix): Change result type
10934 from char * to const char *. All callers updated.
10935 * f-lang.c (find_common_for_function): Change type of name, funcname
10936 parameters from char * to const char *.
10937 * f-lang.c (find_common_for_function): Update.
10938 * f-valprint.c (list_all_visible_commons): Change type of funcname
10939 parameters from char * to const char *.
10940 * gdbarch.sh (static_transform_name): Change type of name parameter
10941 and result from char * to const char *.
10942 * gdbarch.c: Regenerate.
10943 * gdbarch.h: Regenerate.
10944 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10945 of name parameter from char * to const char *.
10946 * jv-lang.c (java_primitive_type_from_name): Ditto.
10947 (java_demangled_signature_length): Similarly for signature parameter.
10948 (java_demangled_signature_copy): Ditto.
10949 (java_demangle_type_signature): Ditto.
10950 * jv-lang.h (java_primitive_type_from_name): Update.
10951 (java_demangle_type_signature): Update.
10952 * objc-lang.c (specialcmp): Change type of a,b parameters
10953 from char * to const char *.
10954 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10955 from char * to const char *. All callers updated.
10956 * p-lang.h (is_pascal_string_type): Update.
10957 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10958 of name parameter from char * to const char *.
10959 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10960 * utils.c (fprintf_symbol_filtered): Ditto.
10961 * defs.h (fprintf_symbol_filtered): Update.
10962 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10963 * stabsread.h (end_psymtab): Update.
10964 * stack.c (find_frame_funname): Change type of funname parameter
10965 from char ** to const char **.
10966 * stack.h (find_frame_funname): Update.
10967 * typeprint.c (type_print): Change type of varstring parameter
10968 from char * to const char *.
10969 * value.h (type_print): Update.
10970 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10971 from char * to const char *. All callers updated.
10972 (xcoff_end_psymtab): Change type of include_list parameter
10973 from char ** to const char **. All callers updated.
10974 (swap_sym): Similarly for name parameter. All callers updated.
10975 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10977 (process_coff_symbol): Use xstrdup.
10978 * stabsread.c (stabs_method_name_from_physname): Renamed from
10979 update_method_name_from_physname. Change result type from void
10980 to char *. All callers updated.
10981 (read_member_functions): In has_destructor case, store name in objfile
10982 obstack instead of malloc space. In !has_stub case, fix mem leak.
10984 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10986 * configure: Rebuild.
10987 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10990 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10992 * configure.tgt (rl78-*-elf): New target.
10993 * rl78-tdep.c: New file.
10995 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10997 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10998 and continue the loop. Add QUIT statement.
11000 2012-02-03 Tom Tromey <tromey@redhat.com>
11003 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11004 bfd_lookup_symbol_from_symtab.
11005 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11006 gdb_bfd_lookup_symbol_from_symtab.
11008 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11010 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11011 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11012 symbol. Add assertion that sym2 is never NULL.
11014 2012-02-02 Doug Evans <dje@google.com>
11016 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11017 "name" parameter to const char ** from char **. All callers updated.
11018 (find_pc_partial_function): Ditto.
11019 (cache_pc_function_name): Change type to const char * from char *.
11020 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11021 (find_pc_partial_function): Update.
11022 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11023 type of "name" parameter to const char * from char *.
11025 * arch-utils.c (generic_in_solib_return_trampoline): Change
11026 type of "name" parameter to const char * from char *.
11027 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11028 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11029 type of "name" parameter to const char * from char *.
11030 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11031 * gdbarch.c: Regenerate.
11032 * gdbarch.h: Regenerate.
11033 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11034 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11035 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11036 type of "name" parameter to const char * from char *.
11037 * skip.c (skip_function_pc): Ditto.
11038 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11039 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11040 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11041 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11042 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11043 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11044 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11045 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11046 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11048 2012-02-02 Pedro Alves <palves@redhat.com>
11050 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11051 the current inferior has no execution. Make sure the current
11052 remote process matches gdb's current inferior.
11054 2012-02-02 Tom Tromey <tromey@redhat.com>
11057 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11060 2012-02-02 Tom Tromey <tromey@redhat.com>
11063 * symtab.c (lookup_language_this): Set block_found.
11065 2012-02-01 Tom Tromey <tromey@redhat.com>
11068 * jit.c (struct jit_inferior_data): Rewrite.
11069 (struct jit_objfile_data): New.
11070 (get_jit_objfile_data): New function.
11071 (add_objfile_entry): Update.
11072 (jit_read_descriptor): Return int. Replace descriptor_addr
11073 argument with inf_data. Update. Don't call error.
11074 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11076 (jit_inferior_init): Don't look up descriptor. Don't call error.
11077 (jit_reset_inferior_data_and_breakpoints)
11078 (jit_inferior_created_observer): Remove.
11079 (jit_inferior_exit_hook): Update.
11080 (jit_executable_changed_observer): Remove.
11081 (jit_event_handler): Update.
11082 (free_objfile_data): Reset inferior data if needed.
11083 (_initialize_jit): Update.
11085 2012-02-01 Tom Tromey <tromey@redhat.com>
11087 * jit.c (bfd_open_from_target_memory): Move higher in file.
11089 2012-02-01 Tristan Gingold <gingold@adacore.com>
11091 * libunwind-frame.c (libunwind_load): Display message if dlopen
11094 2012-02-01 Gary Benson <gbenson@redhat.com>
11096 * symtab.h (symbol_found_callback_ftype): New typedef.
11097 (iterate_over_symbols): Use the above.
11098 * symtab.c (iterate_over_symbols): Likewise.
11099 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11100 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11101 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11102 (iterate_name_matcher): Document return values.
11103 (collect_one_symbol): Likewise.
11104 (collect_function_symbols): Likewise.
11105 (collect_symbols): Likewise.
11107 2012-02-01 Tom Tromey <tromey@redhat.com>
11109 * ada-lang.c (resolve_subexp): Update.
11110 (ada_lookup_symbol_list): Add 'full_search' argument.
11111 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11112 ada_lookup_symbol_list.
11113 (ada_lookup_encoded_symbol): Update.
11114 (get_var_value): Update.
11115 * ada-exp.y (block_lookup): Update.
11116 (write_var_or_type): Update.
11117 (write_name_assoc): Update.
11118 * ada-lang.h (ada_lookup_symbol_list): Update.
11120 2012-01-31 Tom Tromey <tromey@redhat.com>
11122 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11125 2012-01-31 Doug Evans <dje@google.com>
11127 * symtab.h: Remove outdated comment.
11128 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11130 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11132 Fix build error in Darwin port.
11133 * i386-darwin-nat.c: Include i386-nat.h.
11135 2012-01-30 Tom Tromey <tromey@redhat.com>
11137 PR breakpoints/13568:
11138 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11139 argument. Check for recursive includes.
11140 (dwarf_decode_macros): Create an include hash.
11142 2012-01-30 Michael Eager <eager@eagercon.com>
11144 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11145 * ppc-linux-tdep.c: Include glibc-tdep.h.
11146 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11147 (powerpc_linux_in_plt_stub): New function.
11148 (powerpc_linux_in_dynsym_resolve_code): New function.
11149 (ppc_skip_trampoline_code): New function.
11150 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11151 Use glibc_skip_solib_resolver.
11153 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11155 Code cleanup: Make 1440 bytes of data segment read-only.
11156 * arch-utils.c (endian_enum): Make it const char *const [].
11157 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11159 * breakpoint.c (always_inserted_enums): Likewise.
11160 * cli/cli-cmds.c (script_ext_enums): Likewise.
11161 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11162 enumlist parameter const char *const *.
11163 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11164 const char *const *.
11165 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11166 parameter const char *const *.
11167 * cris-tdep.c (cris_modes): Make it const char *const [].
11168 * filesystem.c (target_file_system_kinds): Likewise.
11169 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11170 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11171 (can_use_displaced_stepping_enum, scheduler_enums)
11172 (exec_direction_names): Likewise.
11173 * language.c (_initialize_language): Make the type_or_range_names and
11174 case_sensitive_names variables const char *const [].
11175 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11176 * python/python.c (python_excp_enums): Likewise.
11177 * remote.c (interrupt_sequence_modes): Likewise.
11178 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11179 * serial.c (logbase_enums): Likewise.
11180 * sh-tdep.c (sh_cc_enum): Likewise.
11181 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11183 * symtab.c (multiple_symbols_modes): Likewise.
11184 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11186 * utils.c (internal_problem_modes): Likewise.
11188 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11190 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11191 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11194 2012-01-27 Doug Evans <dje@google.com>
11196 * configure.ac (with_python): Fix absolute path handling for win32.
11197 * configure: Regenerate.
11199 2012-01-26 Doug Evans <dje@google.com>
11201 * symtab.c: Whitespace cleanup, no code changes.
11203 * symtab.c (lookup_symbol_in_language): Improve comment.
11204 (lookup_symbol_aux): Fix comment.
11206 * psymtab.c (add_psymbol_to_list): Result is now "void".
11207 * psympriv.h (add_psymbol_to_list): Update.
11209 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11211 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11213 Do not open script filenames twice.
11214 * cli/cli-cmds.c (source_script_from_stream): Pass to
11215 source_python_script also STREAM.
11216 * python/py-auto-load.c (source_section_scripts): Pass to
11217 source_python_script_for_objfile also STREAM.
11218 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11220 * python/python-internal.h (source_python_script_for_objfile): New
11221 parameter file, rename parameter file to filename.
11222 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11223 instead if !_WIN32. Update the function comment.
11224 (source_python_script, source_python_script_for_objfile)
11225 (source_python_script): New parameter file, rename parameter file to
11226 filename. Pass FILENAME to python_run_simple_file.
11227 * python/python.h (source_python_script): New parameter file, rename
11228 parameter file to filename.
11230 2012-01-26 Pedro Alves <palves@redhat.com>
11232 * corelow.c (core_has_fake_pid): Delete.
11233 (core_close): Delete references to `core_has_fake_pid'.
11234 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11235 (core_open): Delete references to `core_has_fake_pid'.
11236 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11237 the removed global.
11239 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11241 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11242 Remove language parameter from name_matcher. Adjust the comment.
11243 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11244 Remove language parameter.
11245 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11246 * linespec.c (iterate_name_matcher): Likewise.
11247 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11248 name_matcher. Adjust call accordingly.
11249 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11250 (maintenance_check_symtabs): Adjust type of parameter "fun".
11251 * psymtab.h (maintenance_check_symtabs): Likewise.
11253 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11255 * language.h (symbol_name_match_p_ftype): New typedef.
11256 (struct language_defn): Replace field la_symbol_name_compare
11257 by la_get_symbol_name_match_p.
11258 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11259 (ada_language_defn): Use it.
11260 * linespec.c (struct symbol_matcher_data): New type.
11261 (iterate_name_matcher): Rewrite.
11262 (iterate_over_all_matching_symtabs): Pass a pointer to
11263 a symbol_matcher_data struct to expand_symtabs_matching
11264 instead of just the lookup name.
11265 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11266 opencl-lang.c, p-lang.c, language.c: Delete field
11267 la_symbol_name_compare, and replace by NULL for new field
11268 la_get_symbol_name_match_p.
11269 * symfile.h (struct quick_symbol_functions): Update comment.
11271 2012-01-25 Tom Tromey <tromey@redhat.com>
11273 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11276 2012-01-24 Tom Tromey <tromey@redhat.com>
11279 * solib.c (update_solib_list): Update the program space's
11280 added_solibs and deleted_solibs fields.
11281 * progspace.h (struct program_space) <added_solibs,
11282 deleted_solibs>: New fields.
11283 (clear_program_space_solib_cache): Declare.
11284 * progspace.c (release_program_space): Call
11285 clear_program_space_solib_cache.
11286 (clear_program_space_solib_cache): New function.
11287 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11288 bpstat_stop_status. Use handle_solib_event.
11289 * breakpoint.c: Include gdb_regex.h.
11290 (print_solib_event): New function.
11291 (bpstat_print): Use print_solib_event.
11292 (bpstat_stop_status): Add special case for bp_shlib_event.
11293 (handle_solib_event): New function.
11294 (bpstat_what): Use handle_solib_event.
11295 (struct solib_catchpoint): New.
11296 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11297 (breakpoint_hit_catch_solib, check_status_catch_solib)
11298 (print_it_catch_solib, print_one_catch_solib)
11299 (print_mention_catch_solib, print_recreate_catch_solib): New
11301 (catch_solib_breakpoint_ops): New global.
11302 (catch_load_or_unload, catch_load_command_1)
11303 (catch_unload_command_1): New functions.
11304 (internal_bkpt_check_status): Add special case for
11306 (internal_bkpt_print_it): Use print_solib_event.
11307 (initialize_breakpoint_ops): Initialize
11308 catch_solib_breakpoint_ops.
11309 (_initialize_breakpoint): Register "catch load" and "catch
11311 * breakpoint.h (handle_solib_event): Declare.
11312 * NEWS: Add entry for "catch load" and "catch unload".
11314 2012-01-24 Tom Tromey <tromey@redhat.com>
11316 * ada-lang.c: Include gdb_vecs.h.
11317 * charset.c: Include gdb_vecs.h.
11318 * tracepoint.h: Include gdb_vecs.h.
11319 * gdb_vecs.h: New file.
11321 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11323 * breakpoint.c (breakpoint_hit_catch_fork)
11324 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11325 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11326 * infrun.c (inferior_has_forked, inferior_has_vforked)
11327 (inferior_has_execd, inferior_has_called_syscall): Delete.
11328 (handle_syscall_event): Get syscall_number from the execution
11329 control state's wait status.
11330 (wait_for_inferior): Don't clear syscall_number.
11332 2012-01-24 Pedro Alves <palves@redhat.com>
11334 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11335 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11336 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11337 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11339 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11340 false for events other than TARGET_SIGNAL_TRAP.
11341 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11342 Add `ws' parameter.
11343 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11344 events other than TARGET_SIGNAL_TRAP.
11345 (tracepoint_breakpoint_hit): Add `ws' parameter.
11346 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11348 (bpstat_stop_status): Same.
11349 (pc_at_non_inline_function): Same.
11350 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11351 to pass the current event's waitstatus to bpstat_stop_status
11352 and pc_at_non_inline_function.
11354 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11357 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11358 Update the function comment for it.
11359 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11360 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11363 2012-01-24 Pedro Alves <palves@redhat.com>
11365 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11366 outside `bs->stop' block.
11367 (bpstat_what): Rework bp_shlib_event handling.
11368 (internal_bkpt_check_status): If the breakpoint is a
11369 bp_shlib_event, then set bs->stop and bs->print if
11370 stop_on_solib_events is set.
11372 2012-01-24 Gary Benson <gbenson@redhat.com>
11374 Delete #if 0'd out code.
11375 * stack.c (print_frame_label_vars): Remove.
11376 (catch_info): Likewise.
11377 (_initialize_stack): Remove "info catch" command.
11378 * NEWS: Mention the above.
11380 2012-01-24 Pedro Alves <palves@redhat.com>
11382 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11384 (remote_notice_new_inferior): If the remote end doesn't support
11385 the multiprocess extensions, then the PID is fake.
11386 (add_current_inferior_and_thread): New.
11387 (remote_start_remote): Use it.
11388 (extended_remote_attach_1): Adjust.
11389 (extended_remote_create_inferior_1): Use
11390 add_current_inferior_and_thread.
11392 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11394 Fix watchpoints to be specific for each inferior.
11395 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11396 current_program_space.
11397 * i386-nat.c (i386_inferior_data_cleanup): New.
11398 (i386_inferior_data_get): Replace variable inf_data_local by an
11399 inferior_data call.
11400 (i386_use_watchpoints): Initialize i386_inferior_data.
11401 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11402 specific iterate_over_lwps.
11404 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11406 Fix watchpoints across inferior fork.
11407 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11408 comment for linux_nat_iterate_watchpoint_lwps.
11409 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11410 linux_nat_iterate_watchpoint_lwps.
11411 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11412 * i386-linux-nat.c (update_debug_registers_callback): Update the
11413 comment for linux_nat_iterate_watchpoint_lwps.
11414 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11415 linux_nat_iterate_watchpoint_lwps.
11416 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11417 * i386-nat.c: Include inferior.h.
11418 (dr_mirror): Remove.
11419 (i386_inferior_data, struct i386_inferior_data)
11420 (i386_inferior_data_get): New.
11421 (i386_debug_reg_state): Use i386_inferior_data_get.
11422 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11423 (i386_insert_watchpoint, i386_remove_watchpoint)
11424 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11425 (i386_remove_hw_breakpoint): New variable state, use
11426 i386_debug_reg_state instead of DR_MIRROR.
11427 * linux-nat.c (delete_lwp): New declaration.
11428 (num_lwps): Move here from downwards.
11429 (delete_lwp_cleanup): New.
11430 (linux_child_follow_fork): Create new child_lp, call
11431 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11433 (num_lwps): Move upwards.
11434 (linux_nat_iterate_watchpoint_lwps): New.
11435 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11436 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11438 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11442 2012-01-23 Pedro Alves <palves@redhat.com>
11444 * top.c (caution): Rename to ...
11445 (confirm): ... this.
11446 (show_caution): Rename to ...
11447 (show_confirm): ... this.
11448 (quit_cover): Adjust.
11449 (init_main): Adjust.
11450 * top.h (caution): Rename to ...
11451 (confirm): ... this.
11452 * utils.c (internal_vproblem, defaulted_query): Adjust.
11454 2012-01-23 Pedro Alves <palves@redhat.com>
11456 * top.c (caution): Update comment.
11457 (execute_command): Don't consider the current value of `caution'.
11459 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11461 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11463 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11465 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11466 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11467 * target.c (target_fileio_pwrite): Remove buffer address from
11469 (target_fileio_pread): Likewise.
11471 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11473 * NEWS: Document remote "info proc" and "generate-core-file".
11475 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11477 * gdbarch.sh (find_memory_regions): New callback.
11478 * gdbarch.c, gdbarch.h: Regenerate.
11480 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11481 callback before falling back to target method.
11483 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11484 (linux_target_install_ops): No longer install it.
11486 * linux-tdep.c (linux_find_memory_regions): New function.
11487 (linux_init_abi): Install it.
11489 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11491 * gdbarch.sh (make_corefile_notes): New architecture callback.
11492 * gdbarch.c: Regenerate.
11493 * gdbarch.h: Likewise.
11495 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11496 before target_make_corefile_notes. If NULL is returned, the
11497 target does not support core file generation.
11499 * linux-nat.c: Include "linux-tdep.h".
11500 (find_signalled_thread, find_stop_signal): Remove.
11501 (linux_nat_do_thread_registers): Likewise.
11502 (struct linux_nat_corefile_thread_data): Likewise.
11503 (linux_nat_corefile_thread_callback): Likewise.
11504 (iterate_over_spus): Likewise.
11505 (struct linux_spu_corefile_data): Likewise.
11506 (linux_spu_corefile_callback): Likewise.
11507 (linux_spu_make_corefile_notes): Likewise.
11508 (linux_nat_collect_thread_registers): New function.
11509 (linux_nat_make_corefile_notes): Replace contents by call to
11510 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11511 as native-only callback.
11513 * linux-tdep.h: Include "bfd.h".
11514 (struct regcache): Add forward declaration.
11515 (linux_collect_thread_registers_ftype): New typedef.
11516 (linux_make_corefile_notes): Add prototype.
11517 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11518 "regset.h", and "elf-bfd.h".
11519 (find_signalled_thread, find_stop_signal): New functions.
11520 (linux_spu_make_corefile_notes): Likewise.
11521 (linux_collect_thread_registers): Likewise.
11522 (struct linux_corefile_thread_data): New data structure.
11523 (linux_corefile_thread_callback): New funcion.
11524 (linux_make_corefile_notes): Likewise.
11525 (linux_make_corefile_notes_1): Likewise.
11526 (linux_init_abi): Install it.
11528 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11530 * gdbarch.sh (info_proc): New callback.
11531 * gdbarch.c, gdbarch.h: Regenerate.
11533 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11534 before falling back to the target info_proc callback.
11536 * linux-nat.c: Do not include "cli/cli-utils.h".
11537 (linux_nat_info_proc): Remove.
11538 (linux_target_install_ops): No longer install it.
11540 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11541 (read_mapping): New function.
11542 (linux_info_proc): Likewise.
11543 (linux_init_abi): Install it.
11545 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11547 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11548 * infcmd.c: (info_proc_cmd_1): New function.
11549 (info_proc_cmd): New function, moved here from equivalent routine
11550 orignally in linux-nat.c.
11551 (info_proc_cmd_mappings): Likewise.
11552 (info_proc_cmd_stat): Likewise.
11553 (info_proc_cmd_status): Likewise.
11554 (info_proc_cmd_cwd): Likewise.
11555 (info_proc_cmd_cmdline): Likewise.
11556 (info_proc_cmd_exe): Likewise.
11557 (info_proc_cmd_all): Likewise.
11558 (_initialize_infcmd): Install "info proc" command and subcommands.
11560 * target.h (struct target_ops): Add to_info_proc.
11561 (target_info_proc): Add prototype.
11562 * target.c (target_info_proc): New function.
11564 * procfs.c (procfs_info_proc): Add prototype.
11565 (info_proc_cmd): Rename into ...
11566 (procfs_info_proc): ... this. Update argument types as appropriate
11567 for a to_info_proc implementation. Handle "what" argument.
11568 (procfs_target): Install procfs_info_proc.
11569 (_initialize_procfs): No longer install "info proc" command.
11571 * linux-nat.c: (enum info_proc_what): Remove.
11572 (linux_nat_info_proc_cmd_1): Rename into ...
11573 (linux_nat_info_proc): ... this. Update argument types as appropriate
11574 for a to_info_proc implementation.
11575 (linux_nat_info_proc_cmd): Remove.
11576 (linux_nat_info_proc_cmd_mappings): Likewise.
11577 (linux_nat_info_proc_cmd_stat): Likewise.
11578 (linux_nat_info_proc_cmd_status): Likewise.
11579 (linux_nat_info_proc_cmd_cwd): Likewise.
11580 (linux_nat_info_proc_cmd_cmdline): Likewise.
11581 (linux_nat_info_proc_cmd_exe): Likewise.
11582 (linux_nat_info_proc_cmd_all): Likewise.
11583 (linux_target_install_ops): Install linux_nat_info_proc.
11584 (_initialize_linux_nat): No longer install "info proc" command
11587 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11589 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11590 * config.in, configure: Regenerate.
11592 * target.h (struct target_ops): Add to_fileio_readlink.
11593 (target_fileio_readlink): Add prototype.
11594 * target.c (target_fileio_readlink): New function.
11596 * inf-child.c: Conditionally include <sys/param.h>.
11597 (inf_child_fileio_readlink): New function.
11598 (inf_child_target): Install it.
11600 * remote.c (PACKET_vFile_readlink): New enum value.
11601 (remote_hostio_readlink): New function.
11602 (init_remote_ops): Install it.
11603 (_initialize_remote): Handle vFile:readlink packet type.
11605 2012-01-20 Pedro Alves <palves@redhat.com>
11606 Ulrich Weigand <ulrich.weigand@linaro.org>
11608 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11609 * config.in, configure: Regenerate.
11611 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11612 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11613 (target_fileio_open): Add prototype.
11614 (target_fileio_pwrite): Likewise.
11615 (target_fileio_pread): Likewise.
11616 (target_fileio_close): Likewise.
11617 (target_fileio_unlink): Likewise.
11618 (target_fileio_read_alloc): Likewise.
11619 (target_fileio_read_stralloc): Likewise.
11621 * target.c: Include "gdb/fileio.h".
11622 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11623 (default_fileio_target): New function.
11624 (target_fileio_open): Likewise.
11625 (target_fileio_pwrite): Likewise.
11626 (target_fileio_pread): Likewise.
11627 (target_fileio_close): Likewise.
11628 (target_fileio_unlink): Likewise.
11629 (target_fileio_close_cleanup): Likewise.
11630 (target_fileio_read_alloc_1): Likewise.
11631 (target_fileio_read_alloc): Likewise.
11632 (target_fileio_read_stralloc): Likewise.
11634 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11635 <fcntl.h>, and <unistd.h>.
11636 (inf_child_fileio_open_flags_to_host): New function.
11637 (inf_child_errno_to_fileio_error): Likewise.
11638 (inf_child_fileio_open): Likewise.
11639 (inf_child_fileio_pwrite): Likewise.
11640 (inf_child_fileio_pread): Likewise.
11641 (inf_child_fileio_close): Likewise.
11642 (inf_child_fileio_unlink): Likewise.
11643 (inf_child_target): Install to_fileio routines.
11645 * remote.c (init_remote_ops): Install to_fileio routines.
11647 2012-01-20 Pedro Alves <palves@redhat.com>
11648 Ulrich Weigand <ulrich.weigand@linaro.org>
11650 * remote.c (remote_multi_process_p): Only check for multi-process
11651 protocol feature, do not check for extended protocol.
11652 (remote_supports_multi_process): Check for extended protocol here.
11653 (set_general_process): Likewise.
11654 (extended_remote_kill): Likewise.
11655 (remote_pid_to_str): Likewise.
11656 (remote_query_supported): Always query multiprocess mode.
11658 2012-01-20 Pedro Alves <palves@redhat.com>
11659 Ulrich Weigand <ulrich.weigand@linaro.org>
11661 * inferior.h (struct inferior): Add fake_pid_p.
11662 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11663 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11664 magic_null_ptid since the remote side doesn't provide a real PID.
11666 2012-01-19 Tom Tromey <tromey@redhat.com>
11668 * NEWS: Combine the two Python sections.
11670 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11672 * target.h (target_close): Update comment on the target's unpush state.
11674 2012-01-19 Pedro Alves <palves@redhat.com>
11676 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11677 linux_nat_async directly instead of going through the target
11679 * target.c (unpush_target): Close target after unpushing it, not
11682 2012-01-19 Gary Benson <gbenson@redhat.com>
11684 * mdebugread.c (sort_blocks): Replace integer constants with ones
11685 derived from FIRST_LOCAL_BLOCK.
11687 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11688 Jan Kratochvil <jan.kratochvil@redhat.com>
11691 * symfile.c (find_separate_debug_file): New function.
11692 (terminate_after_last_dir_separator): Likewise.
11693 (find_separate_debug_file_by_debuglink): Also try realpath.
11694 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11695 * configure: Regenerate.
11696 * config.in: Regenerate.
11698 2012-01-18 Doug Evans <dje@google.com>
11700 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11701 (main.o): Remove rule.
11702 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11703 (--with-sysroot): Rewrite.
11704 * configure: Regenerate.
11705 * config.in: Regenerate.
11707 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11709 * parse.c (initialize_expout): New function.
11710 (reallocate_expout): Likewise.
11711 (parse_exp_in_context): Use `initialize_expout' and
11712 `reallocate_expout' when appropriate.
11714 2012-01-18 Pedro Alves <palves@redhat.com>
11716 * record.c (struct record_breakpoint, record_breakpoint_p)
11717 (record_breakpoints): New.
11718 (record_insert_breakpoint, record_remove_breakpoint): Manage
11719 record breakpoints list. Only remove breakpoints from the
11720 inferior if they had been inserted there in the first place.
11722 2012-01-17 Doug Evans <dje@google.com>
11724 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11725 if we know we don't have a file name to look for.
11727 2012-01-17 Pedro Alves <palves@redhat.com>
11729 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11730 the frame's stop reason is UNWIND_UNAVAILABLE.
11732 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11734 Fix compilation error.
11735 * m2-exp.y (yyerror): Use ANSI C prototype.
11737 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11739 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11740 (growbuf_by_size): Likewise.
11741 (yyerror): Likewise.
11742 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11743 (modblock): Remove variable (was #if 0'ed).
11744 (parse_number): Convert prototype from K&R to ANSI C.
11745 (yyerror): Likewise.
11746 * objc-exp.y (parse_number): Likewise.
11747 (yyerror): Likewise.
11748 (yylex): Remove #if 0'ed code.
11749 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11750 (yyerror): Likewise.
11752 2012-01-16 Tom Tromey <tromey@redhat.com>
11755 * symtab.h (compare_filenames_for_search): Declare.
11756 * symtab.c (compare_filenames_for_search): New function.
11757 (iterate_over_some_symtabs): Use it.
11758 * symfile.h (struct quick_symbol_functions)
11759 <map_symtabs_matching_filename>: Change spec.
11760 * psymtab.c (partial_map_symtabs_matching_filename): Use
11761 compare_filenames_for_search. Update for new spec.
11762 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11763 compare_filenames_for_search. Update for new spec.
11764 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11766 2012-01-16 Tom Tromey <tromey@redhat.com>
11769 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11770 (struct main_type) <flag_flag_enum>: New field.
11771 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11772 * NEWS: Add entries.
11773 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11775 * python/lib/gdb/printing.py (_EnumInstance): New class.
11776 (FlagEnumerationPrinter): Likewise.
11778 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11780 * breakpoint.c (create_sals_from_address_default): New function.
11781 (create_breakpoints_sal_default): Likewise.
11782 (decode_linespec_default): Likewise.
11783 (is_marker_spec): Removed.
11784 (strace_marker_p): New function.
11785 (init_breakpoint_sal): Using `strace_marker_p' instead of
11787 (create_breakpoint): Call method `create_sals_from_address' from
11788 breakpoint_ops, replacing code that created SALs conditionally
11789 on the type of the breakpoint. Call method `create_breakpoints_sal',
11790 replacing code that created breakpoints conditionally on the type
11792 (base_breakpoint_create_sals_from_address): New function.
11793 (base_breakpoint_create_breakpoints_sal): Likewise.
11794 (base_breakpoint_decode_linespec): Likewise.
11795 (base_breakpoint_ops): Add methods
11796 `base_breakpoint_create_sals_from_address',
11797 `base_breakpoint_create_breakpoints_sal' and
11798 `base_breakpoint_decode_linespec'.
11799 (bkpt_create_sals_from_address): New function.
11800 (bkpt_create_breakpoints_sal): Likewise.
11801 (bkpt_decode_linespec): Likewise.
11802 (tracepoint_create_sals_from_address): Likewise.
11803 (tracepoint_create_breakpoints_sal): Likewise.
11804 (tracepoint_decode_linespec): Likewise.
11805 (strace_marker_create_sals_from_address): Likewise.
11806 (strace_marker_create_breakpoints_sal): Likewise.
11807 (strace_marker_decode_linespec): Likewise.
11808 (strace_marker_breakpoint_ops): New variable.
11809 (addr_string_to_sals): Remove `marker_spec'. Call method
11810 `decode_linespec' from breakpoint_ops, replacing code that decoded
11811 an address string into a SAL. Use `strace_marker_p' instead of
11813 (strace_command): Decide whether we are dealing with a static
11814 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11815 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11816 * breakpoint.h (linespec_result, linespec_sals): New forward
11818 (breakpoint_ops) <create_sals_from_address>,
11819 <create_breakpoints_sal>, <decode_linespec>: New methods.
11821 2012-01-14 Doug Evans <dje@google.com>
11823 * NEWS: Update text for "maint set python print-stack".
11824 It is deprecated in gdb 7.4 and deleted in 7.5.
11826 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11828 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11829 including curses.h.
11831 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11833 * configure: Regenerate.
11834 * config.in: Regenerate.
11836 2012-01-12 Keith Seitz <keiths@redhat.com>
11839 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11840 (ANONYMOUS_UNION_NAME): Define.
11841 (is_path_expr_parent): New function.
11842 (get_path_expr_parent): New function.
11843 (is_anonymous_child): New function.
11844 (create_child_with_value): If the child is anonymous and without
11845 a name, assign an object name to it.
11846 (c_describe_child): Use get_path_expr_parent to determine
11847 the parent expression.
11848 If there field represents an anonymous struct or union and
11849 has no name, set an appropriate display name and expression.
11850 (cplus_describe_child): Likewise.
11852 2012-01-12 Pedro Alves <palves@redhat.com>
11854 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11855 available when %ebp is found to be zero (outermost).
11857 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11859 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11860 an internal gdb_static_assert.
11861 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11863 2012-01-11 Tom Tromey <tromey@redhat.com>
11866 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11867 catch" and "catch throw".
11869 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11871 * blockframe.c (block_innermost_frame): Start search from selected
11872 frame, if present, or otherwise the current frame.
11874 * c-exp.y (variable): Update innermost_block for
11875 'block COLONCOLON NAME' clause.
11876 * m2-exp.y (variable): Ditto.
11877 * objc-exp.y (variable): Ditto.
11879 2012-01-10 Tom Tromey <tromey@redhat.com>
11882 * python/python.c (finish_python_initialization): Set sys.argv.
11884 2012-01-10 Doug Evans <dje@google.com>
11886 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11887 "want_line_info". All callers updated.
11888 (dwarf_decode_lines_1): New function.
11889 (handle_DW_AT_stmt_list): Add function comment.
11890 New arg "want_line_info". All callers updated.
11891 (read_file_scope,read_type_unit_scope): Move comment from
11892 handle_DW_AT_stmt_list to here.
11894 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11896 Fix regression after libiberty/ update for GCC PR 6057 and others.
11897 * c-exp.y (operator) <OPERATOR DELETE>
11898 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11899 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11900 (make_builtin_type, make_name): New variable i, add gdb_assert.
11901 (operator) <OPERATOR NEW>: Update ARGS to 3.
11902 (operator) <OPERATOR DELETE>: Add trailing space.
11903 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11904 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11905 * cp-support.c (cp_canonicalize_string): Check NULL from
11906 cp_comp_to_string, call warning and return.
11908 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11910 Fix duplicate .o files after omitting libbfd.a.
11911 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11912 (SFILES): Add corelow.c.
11913 (COMMON_OBS): Add corelow.o.
11914 (ALLDEPFILES): Remove corelow.c.
11915 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11916 * config/alpha/alpha-osf3.mh: Likewise.
11917 * config/alpha/fbsd.mh: Likewise.
11918 * config/arm/nbsdaout.mh: Likewise.
11919 * config/arm/nbsdelf.mh: Likewise.
11920 * config/i386/i386gnu.mh: Likewise.
11921 * config/ia64/hpux.mh: Likewise.
11922 * config/ia64/linux.mh: Likewise.
11923 * config/m32r/linux.mh: Likewise.
11924 * config/m68k/linux.mh: Likewise.
11925 * config/mips/irix5.mh: Likewise.
11926 * config/mips/irix6.mh: Likewise.
11927 * config/pa/hpux.mh: Likewise.
11928 * config/pa/linux.mh: Likewise.
11929 * config/powerpc/aix.mh: Likewise.
11930 * config/sparc/linux.mh: Likewise.
11931 * config/sparc/linux64.mh: Likewise.
11932 * config/sparc/sol2.mh: Likewise.
11933 * config/vax/vax.mh: Likewise.
11934 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11935 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11936 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11937 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11938 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11939 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11940 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11941 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11942 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11943 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11944 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11945 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11946 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11947 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11948 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11949 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11950 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11951 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11952 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11953 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11954 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11955 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11956 corelow.o from gdb_target_obs.
11957 * corefile.c (core_target): Update the comment on NULL value.
11958 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11959 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11960 MATCHES. Drop YUMMY set on NULL.
11961 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11962 reclaim CORE_DATA if it is already NULL.
11964 2012-01-09 Doug Evans <dje@google.com>
11966 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11967 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11969 2012-01-09 Keith Seitz <keiths@redhat.com>
11971 * breakpoint.c (wrapper.h): Don't include.
11973 2012-01-09 Keith Seitz <keiths@redhat.com>
11975 * Makefile.in (SFILES): Remove wrapper.c.
11976 (HFILES_NO_SRCDIR): Remove wrapper.h.
11977 (COMMON_OBS): Remove wrapper.o.
11978 * cli/cli-interp.c: Don't inlude wrapper.h.
11979 * corelow.c: Likewise.
11980 (core_open): Replace gdb_target_find_new_threads with
11981 TRY_CATCH around target_find_new_threads.
11982 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11983 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11984 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11985 evaluate_expression.
11986 (varobj_set_value): Likewise for evaluate_expression and
11988 (install_new_variable): Likewise for value_fetch_lazy.
11989 (adjust_value_for_child_access): Likewise for value_ind.
11990 (c_describe_child): Likewise for value_subscript and
11992 (c_value_of_root): Likewise for evaluate_expression.
11993 * wrapper.c: Remove.
11994 * wrapper.h: Remove.
11996 2012-01-09 Doug Evans <dje@google.com>
11998 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11999 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12000 "abfd" args with "section". All callers updated.
12001 Error checking code moved ...
12002 (error_check_comp_unit_head): ... here. New function.
12003 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12004 Delete arg "abfd". New arg "type_offset". All callers updated.
12005 (create_debug_types_hash_table): Simplify by using
12006 read_and_check_type_unit_head.
12008 * parser-defs.h (namecopy): Delete.
12009 * parse.c (namecopy, namecopy_size): Move into copy_name.
12011 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12013 Partially fix duplicate .o files after omitting libbfd.a.
12014 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12015 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12016 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12017 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12018 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12019 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12020 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12022 2012-01-09 Pedro Alves <palves@redhat.com>
12024 * MAINTAINERS: Update my email address.
12026 2012-01-08 Doug Evans <dje@google.com>
12028 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12029 n_type_units. Rename type_comp_units to all_type_units.
12031 (add_signatured_type_cu_to_table): Renamed from
12032 add_signatured_type_cu_to_list. All callers updated.
12034 * gdbtypes.h (struct cplus_struct_type): Delete member
12035 nfn_fields_total. All uses removed.
12037 2012-01-06 Doug Evans <dje@google.com>
12039 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12041 (dwarf2_find_comp_unit): Delete.
12042 (process_psymtab_comp_unit): Make result "void".
12043 Delete args buffer, info_ptr, buffer_size, and replace with
12044 "section". All callers updated.
12045 (dwarf2_build_psymtabs_hard): Simplify.
12047 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12048 Thiago Jung Bauermann <bauerman@br.ibm.com>
12050 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12051 before `struct gdb_exception'.
12052 * breakpoint.c (update_global_location_list_nothrow)
12053 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12054 * cp-abi.c (value_rtti_type): Likewise.
12055 * cp-support.c (cp_validate_operator): Likewise.
12056 * infrun.c (insert_exception_resume_breakpoint)
12057 (check_exception_resume, keep_going): Likewise.
12058 * mi-interp.c (mi_breakpoint_created)
12059 (mi_breakpoint_modified): Likewise.
12060 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12061 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12062 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12064 2012-01-05 Doug Evans <dje@google.com>
12066 * dwarf2read.c (statement_prologue): Delete, unused.
12068 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12069 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12071 * dwarf2read.c (comp_unit_header): Delete, unused.
12073 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12075 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12076 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12078 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12080 * infrun.c (normal_stop): Don't skip calling the normal_stop
12081 observers if the thread was doing a multi-step, but stopped for
12082 some reason other than stepping.
12084 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12086 * cli/cli-decode.h: Add comments.
12087 (CMD_LIST_AMBIGUOUS): Moved to command.h
12088 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12089 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12090 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12091 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12092 (add_com, add_com_alias, add_info, add_info_alias)
12093 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12095 * command.h: Add and adjust comments.
12096 (CMD_LIST_AMBIGUOUS): Moved here.
12097 (help_cmd, help_cmd_list): Delete declarations.
12099 2012-01-04 Doug Evans <dje@google.com>
12101 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12102 All callers updated.
12103 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12104 Replace all arguments with "per_cu". All callers updated.
12106 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12108 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12109 New arg "per_cu". All callers updated.
12111 Delete #if 0'd out code.
12112 * language.c (binop_result_type): Delete.
12113 (simple_type, ordered_type, same_type, integral_type): Delete.
12114 (numeric_type, character_type, string_type, boolean_type): Delete.
12115 (float_type, structured_type): Delete.
12116 * language.h: Update.
12118 2012-01-04 Tom Tromey <tromey@redhat.com>
12120 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12122 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12124 * corefile.c (close_exec_file): Delete.
12125 (reopen_exec_file): Remove commented out code that seems related
12126 to close_exec_file, which is being deleted here.
12127 * inferior.h (close_exec_file): Delete.
12128 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12130 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12132 * ada-lang.c: #include "cli/cli-utils.h".
12133 (get_selections): Use skip_spaces.
12134 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12135 (catch_ada_exception_command_split): Use skip_spaces.
12136 (ada_decode_assert_location): Likewise.
12138 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12140 * linespec.c (decode_line_internal): Check for C++ or Java
12141 compound constructs only if the current language is C, C++
12144 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12147 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12148 Joel Brobecker <brobecker@adacore.com>
12149 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12150 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12152 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12153 fall through into AT_ENTRY_POINT.
12154 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12155 DUMMY_ADDR with it.
12156 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12157 PPC_INSN_SIZE skip to 3 times.
12159 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12161 * linespec.c (add_minsym): Preserve function descriptors.
12163 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12165 * breakpoint.c (all_locations_are_pending): Consider locations
12166 in program spaces executing during startup pending as well.
12168 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12170 Copyright year update in most files of the GDB Project.
12172 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12174 * copyright.sh: Delete.
12175 * copyright.py: Rewrite.
12177 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12179 * gnulib/extra/update-copyright: New file, imported from gnulib.
12181 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12183 * README (Copyright and License Notices): New section.
12185 2012-01-03 Tom Tromey <tromey@redhat.com>
12188 * python/py-value.c (valpy_dereference, valpy_get_address
12189 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12190 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12191 (valpy_absolute, valpy_richcompare): Free intermediate values.
12193 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12195 * ada-lang.c: Reformat the copyright notice.
12197 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12199 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12200 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12201 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12202 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12203 Revert this part of:
12204 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12205 Build gdb directly from *.o files not using libgdb.a.
12206 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12208 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12210 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12211 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12212 Reformat the copyright header.
12214 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12216 Revert this part of:
12217 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12218 Remove the gdbtui binary.
12219 * gdb.c (main): Remove args.interpreter_p initialization.
12220 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12221 * main.h (struct captured_main_args): Remove interpreter_p.
12223 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12225 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12227 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12229 * top.c (print_gdb_version): Update copyright year.
12231 2012-01-02 Yao Qi <yao@codesourcery.com>
12233 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12235 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12236 Joel Brobecker <brobecker@adacore.com>
12238 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12239 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12241 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12242 fall through into AT_ENTRY_POINT.
12243 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12244 DUMMY_ADDR with it.
12245 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12246 PPC_INSN_SIZE skip to 3 times.
12248 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12250 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12252 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12254 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12256 Build gdb directly from *.o files not using libgdb.a.
12257 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12258 (COMMON_OBS): Remove solib-target.o.
12259 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12260 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12261 (LIBGDB_OBS, libgdb.a): Move it above.
12262 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12263 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12264 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12265 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12266 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12267 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12268 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12269 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12270 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12271 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12272 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12273 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12274 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12275 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12276 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12277 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12278 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12279 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12280 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12281 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12282 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12283 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12284 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12285 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12286 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12287 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12288 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12290 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12292 Remove the gdbtui binary.
12293 * .gitignore (/gdbtui): Remove.
12294 * Makefile.in (TUI): Remove.
12295 (SUBDIR_TUI_OBS): Remove tui-main.o.
12296 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12297 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12298 (tui-main.o): Remove.
12299 (all_object_files): Remove tui-main.o.
12300 * NEWS: New note for the gdbtui removal.
12301 * configure: Rebuilt.
12302 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12303 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12304 CONFIG_UNINSTALL respectively.
12305 * gdb.c (main): Remove args.interpreter_p initialization.
12306 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12307 * main.h (struct captured_main_args): Remove interpreter_p.
12308 * tui/tui-main.c: Remove.
12310 2012-01-01 Doug Evans <dje@google.com>
12312 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12313 (dwarf2_physname, read_import_statement): Ditto.
12314 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12315 (process_structure_scope read_subroutine_type): Ditto.
12316 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12317 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12318 (dwarf2_fetch_die_location_block): Ditto.
12319 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12321 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12322 All callers updated.
12323 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12324 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12325 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12327 * dwarf2read.c (load_cu): Move assert to more useful location.
12329 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12330 All callers updated.
12332 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12333 (dwarf2_elf_names): Minor reformat.
12334 (dwarf2_per_cu_data): Tweak comment.
12335 (dwarf2_read_section): Fix comment.
12336 (create_all_comp_units): Fix comment.
12337 (load_full_comp_unit): Fix comment.
12338 (process_full_comp_unit): Fix comment.
12339 (read_signatured_type): Fix comment.
12341 For older changes see ChangeLog-2011.
12347 version-control: never