1 2012-12-12 Tom Tromey <tromey@redhat.com>
3 * coffread.c (coff_objfile_data_key): New global.
4 (coff_symfile_init): Use set_objfile_data.
5 (coff_symfile_read): Use objfile_data.
6 (coff_symfile_finish): Don't free deprecated_sym_private.
7 (coff_free_info): New function.
8 (_initialize_coffread): Initialize coff_objfile_data_key.
9 * mdebugread.c (pending_list): Update comment.
10 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
11 * symfile.c (reread_symbols): Don't mention
12 deprecated_sym_private.
13 * xcoffread.c (xcoff_objfile_data_key): New global.
14 (XCOFF_DATA): New macro.
15 (process_linenos, enter_line_range, xcoff_next_symbol_text)
16 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
18 (xcoff_new_init) Use set_objfile_data.
19 (xcoff_symfile_finish): Don't free deprecated_sym_private.
20 (init_stringtab, swap_sym, scan_xcoff_symtab)
21 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
22 (xcoff_free_info): New function.
23 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
25 2012-12-12 Tom Tromey <tromey@redhat.com>
27 * coffread.c (coff_symfile_init): Use set_objfile_data.
28 (coff_symfile_read): Use DBX_SYMFILE_INFO.
29 * dbxread.c (dbx_objfile_data_key): New global.
30 (dbx_symfile_init): Use set_objfile_data.
31 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
32 (dbx_free_symfile_info): New function.
33 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
35 (stabsect_build_psymtabs): Use set_objfile_data.
36 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
37 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
39 (free_elfinfo): Use DBX_SYMFILE_INFO.
40 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
41 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
42 * gdb-stabs.h (dbx_objfile_data_key): Declare.
43 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
44 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
45 * somread.c (som_symfile_finish): Don't free
46 deprecated_sym_stab_info.
48 2012-12-12 Joel Brobecker <brobecker@adacore.com>
50 * gdbarch.sh (software_single_step): Remove trailing space in
51 comment (gdbarch.h is already correct).
53 2012-12-11 Tom Tromey <tromey@redhat.com>
55 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
57 2012-12-11 Tom Tromey <tromey@redhat.com>
59 * dsrec.c (report_transfer_performance): Don't declare.
60 (load_srec): Use gettimeofday, print_transfer_performance.
61 * symfile.c (report_transfer_performance): Remove.
63 2012-12-11 Pedro Alves <pedro@codesourcery.com>
64 Pedro Alves <palves@redhat.com>
66 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
68 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
69 differently from LWP IDs.
71 2012-12-11 Pedro Alves <palves@redhat.com>
73 * configure.ac (detect type of /proc): Remove Unixware handling.
74 * configure: Regenerate.
75 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
76 (ioctl_table) [PCRESET]: Remove entry.
77 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
78 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
79 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
80 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
81 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
82 Unixware in comments throughout.
83 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
84 and remove mention of Unixware.
86 2012-12-10 Doug Evans <dje@google.com>
88 * dwarf2read.c (dwarf2_cu): Enhance comment.
89 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
91 (dwarf2_record_block_ranges): Ditto.
93 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
95 * symtab.c (find_pc_sect_symtab): Add comment.
97 2012-12-10 Tom Tromey <tromey@redhat.com>
99 * defs.h: Don't check for definition of LONGEST.
100 (min, max): Remove duplicates.
102 2012-12-10 Tom Tromey <tromey@redhat.com>
104 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
105 (dwarf2_fetch_die_loc_cu_off): Rename from
106 dwarf2_fetch_die_location_block. Rewrite to use
107 dwarf2_fetch_die_loc_sect_off.
108 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
109 (dwarf2_fetch_die_loc_cu_off): Rename.
110 * dwarf2loc.c (indirect_pieced_value): Use
111 dwarf2_fetch_die_loc_sect_off.
112 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
114 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
115 * dwarf2expr.c (add_piece): Update.
116 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
118 2012-12-10 Tom Tromey <tromey@redhat.com>
120 * buildsym.c (struct pending_block): Move from buildsym.h.
121 (pending_blocks): Likewise; now static.
122 (pending_block_obstack): New global.
123 (free_pending_blocks): Free blocks.
124 (record_pending_block): Use pending_block_obstack.
125 * buildsym.h (struct pending_block): Move definition to
127 (pending_blocks): Don't declare.
129 2012-12-10 Pedro Alves <palves@redhat.com>
131 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
132 dead SCO code, and adjust function description comment.
134 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
137 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
139 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
140 * dwarf2read.c (extract_cu_value): Remove the function.
141 (create_cus_from_index_list): Make the return type void, inline the
142 extract_cu_value caller, include new gdb_static_assert.
143 (create_cus_from_index): Make the return type void, update the function
144 comment, update the create_cus_from_index_list caller.
145 (create_signatured_type_table_from_index): Make the return type void,
146 inline the extract_cu_value caller, include new gdb_static_assert.
147 (dwarf2_read_index): Update the create_cus_from_index and
148 create_signatured_type_table_from_index caller.
149 * printcmd.c (ui_printf): Remove conditionalizations for
151 * config.in: Regenerate.
152 * configure: Regenerate.
154 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
156 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
157 Update the comment for checked_producer.
158 (check_producer): New forward declaration.
159 (producer_is_gcc_lt_4_3): New function.
160 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
161 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
163 2012-12-07 Tom Tromey <tromey@redhat.com>
165 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
167 * c-exp.y (typebase): Add completion productions.
168 * completer.c (expression_completer): Handle tag completion.
169 * expression.h (parse_expression_for_completion): Add argument.
170 * f-lang.c (f_make_symbol_completion_list): Add 'code'
172 * language.h (struct language_defn)
173 <la_make_symbol_completion_list>: Add 'code' argument.
174 * parse.c (expout_tag_completion_type, expout_completion_name):
176 (mark_struct_expression): Add assertion.
177 (mark_completion_tag): New function.
178 (parse_exp_in_context): Initialize new globals.
179 (parse_expression_for_completion): Add 'code' argument. Handle
181 * parser-defs.h (mark_completion_tag): Declare.
182 * symtab.c (default_make_symbol_completion_list_break_on): Add
183 'code' argument. Update.
184 (default_make_symbol_completion_list): Add 'code' argument.
185 (make_symbol_completion_list): Update.
186 (make_symbol_completion_type): New function.
187 * symtab.h (default_make_symbol_completion_list_break_on)
188 (default_make_symbol_completion_list): Update.
189 (make_symbol_completion_type): Declare.
191 2012-12-07 Tom Tromey <tromey@redhat.com>
193 * expression.h (parse_expression_for_completion): Rename
194 from parse_field_expression.
195 (parse_completion): Rename from in_parse_field.
196 * c-exp.y (lex_one_token): Update.
197 * completer.c (expression_completer): Update.
198 * go-exp.y (lex_one_token): Update.
199 * p-exp.y (yylex): Update.
200 * parse.c (parse_completion): Rename from in_parse_field.
201 (parse_exp_in_context): Update.
202 (parse_expression_for_completion): Rename from
203 parse_field_expression. Update.
205 2012-12-07 Tom Tromey <tromey@redhat.com>
207 * typeprint.c (_initialize_typeprint): Set completer
208 for "whatis" and "ptype".
210 2012-12-07 Joel Brobecker <brobecker@adacore.com>
212 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
213 "sim/common/cgen-fpu.h". Remove invalid entries
214 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
215 which actually have an FSF copyright header.
217 2012-12-07 Joel Brobecker <brobecker@adacore.com>
219 * osf-share/AT386/cma_thread_io.h: Delete.
220 * osf-share/HP800/cma_thread_io.h: Delete.
221 * osf-share/README: Delete.
222 * osf-share/RIOS/cma_thread_io.h: Delete.
223 * osf-share/cma_attr.h: Delete.
224 * osf-share/cma_deb_core.h: Delete.
225 * osf-share/cma_debug_client.h: Delete.
226 * osf-share/cma_errors.h: Delete.
227 * osf-share/cma_handle.h: Delete.
228 * osf-share/cma_init.h: Delete.
229 * osf-share/cma_list.h: Delete.
230 * osf-share/cma_mutex.h: Delete.
231 * osf-share/cma_sched.h: Delete.
232 * osf-share/cma_semaphore_defs.h: Delete.
233 * osf-share/cma_sequence.h: Delete.
234 * osf-share/cma_stack.h: Delete.
235 * osf-share/cma_stack_int.h: Delete.
236 * osf-share/cma_tcb_defs.h: Delete.
237 * osf-share/cma_util.h: Delete.
238 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
240 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
241 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
242 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
244 2012-12-06 Pedro Alves <palves@redhat.com>
245 Tom Tromey <tromey@redhat.com>
247 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
249 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
252 * mi/mi-cmd-var.c (varobj_update_one): Take value of
253 attribute "dynamic" and "displayhint" from printed child,
254 not the root variable.
256 2012-12-06 Joel Brobecker <brobecker@adacore.com>
258 * aix-thread.c (getthrds): Fix type of 4th parameter.
259 (get_signaled_thread): Change type of variable ktid to tid_t.
261 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
263 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
264 value of get_frame_block.
266 2012-12-05 Pierre Muller <muller@sourceware.org>
268 Avoid memory leaks on struct cmd_list_element.doc field.
269 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
270 if flags contains DOC_ALLOCATED.
271 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
273 (delete_cmd): Handle DOC_ALLOCATED flag.
274 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
275 in flags filed of struct cmd_list_element.
276 (struct cmd_list_element): Document new flag item.
278 2012-12-04 Doug Evans <dje@google.com>
280 * symmisc.c: Whitespace fixes.
282 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
284 * i386-tdep.c (i386_skip_prologue): Using symbol table
285 to find the end of prologue for clang compiled binaries.
286 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
287 to find the end of prologue for clang compiled binaries.
289 2012-12-03 Doug Evans <dje@google.com>
291 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
292 (dw2_find_symbol_file): Delete unused local file_data.
294 2012-12-03 Tom Tromey <tromey@redhat.com>
296 * ada-exp.y (write_object_renaming, write_var_or_type)
297 (write_ambiguous_var, write_var_from_sym): Make blocks const.
298 * ada-lang.c (replace_operator_with_call)
299 (find_old_style_renaming_symbol): Make blocks const.
300 * ada-lang.h (ada_find_renaming_symbol): Update.
301 (struct ada_symbol_info) <block>: Now const.
302 * breakpoint.c (watch_command_1): Update.
303 * breakpoint.h (struct watchpoint) <exp_valid_block,
304 cond_exp_valid_block>: Now const.
305 * c-exp.y (classify_inner_name, classify_name): Make block
307 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
309 * expression.h (innermost_block, parse_exp_1): Update.
310 (union exp_element) <block>: Now const.
311 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
312 (lookup_struct): Make block argument const.
313 * gdbtypes.h (lookup_template_type): Update.
314 * go-exp.y (classify_name, classify_packaged_name)
315 (package_name_p): Make block argument const.
316 * objc-lang.c (lookup_struct_typedef): Make block argument const.
317 * objc-lang.h (lookup_struct_typedef): Update.
318 * parse.c (parse_exp_in_context, parse_exp_1)
319 (write_exp_elt_block): Make block arguments const.
320 (expression_context_block, innermost_block): Now const.
321 * parser-defs.h (write_exp_elt_block): Update.
322 (expression_context_block, innermost_block, block_found): Now
324 * printcmd.c (struct display) <block>: Now const.
325 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
326 * valops.c (address_of_variable): Make block argument const.
327 * value.h (value_of_variable): Update.
328 * varobj.c (struct varobj_root) <valid_block>: Now const.
330 2012-11-30 Yao Qi <yao@codesourcery.com>
332 * breakpoint.c (print_one_breakpoint_location): Indent code.
334 2012-11-30 Yao Qi <yao@codesourcery.com>
336 * breakpoint.c (print_one_breakpoint_location): Combine two
337 blocks handling 'hit count' together.
339 2012-11-30 Yao Qi <yao@codesourcery.com>
341 * infrun.c (error_is_running, ensure_not_running): Move them
343 * infcmd.c (error_is_running, ensure_not_running): ... here.
345 * inferior.h: Remove declarations of error_is_running and
348 2012-11-30 Yao Qi <yao@codesourcery.com>
350 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
353 2012-11-30 Yao Qi <yao@codesourcery.com>
355 * infrun.c: Make the declaration of 'init_infwait_state'
357 (init_infwait_state): Make it 'static'.
359 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
361 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
362 return value to void to avoid compiler warning.
364 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
366 * opencl-lang.c (opencl_print_type): New function.
367 (opencl_language_arch_info): Install it.
369 2012-11-29 Tom Tromey <tromey@redhat.com>
371 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
373 * common/common-utils.c (xasprintf, xvasprintf): Remove.
374 * common/common-utils.h (xasprintf, xvasprintf): Remove.
376 2012-11-29 Jerome Guitton <guitton@adacore.com>
378 * ada-lang.c (ada_is_interface_tag): New function.
379 (ada_is_ignored_field): Add interface tags to the list
382 2012-11-29 Jerome Guitton <guitton@adacore.com>
384 * ada-lang.h (ada_tag_value_at_base_address): New function
386 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
388 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
389 relocate the class-wide value if need be.
390 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
391 Let ada_tag_value_at_base_address relocate the class-wide access/ref
392 before dereferencing it.
393 * ada-valprint.c (ada_val_print_1): Relocate to base address
394 before displaying the content of an interface-wide ref.
396 2012-11-29 Jerome Guitton <guitton@adacore.com>
398 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
400 2012-11-29 Joel Brobecker <brobecker@adacore.com>
404 2012-11-29 Yao Qi <yao@codesourcery.com>
405 Tom Tromey <tromey@redhat.com>
407 * eval.c (evaluate_subexp_standard): Get the correct pointer
408 type for TYPE_CODE_MEMBERPTR.
410 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
412 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
413 since now it is being done by binutils' powerpc_init_dialect().
415 2012-11-28 Tom Tromey <tromey@redhat.com>
418 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
419 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
421 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
422 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
423 (gdb_bfd_openr_next_archived_file): Use it.
425 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
427 * configure.ac: Check for linux/perf_event.h.
428 * config.in: Regenerated.
429 * configure: Regenerated.
431 2012-11-28 Yao Qi <yao@codesourcery.com>
433 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
434 abbreviate 'delete tracepoints' to 'delete tr'.
435 * corefile.c (_initialize_core): Call add_alias_cmd to
436 abbreviate 'set gnutarget' to 'set g'.
437 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
438 'show convenience' to 'show conv'.
440 2012-11-27 Joel Brobecker <brobecker@adacore.com>
442 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
443 call to sparc_supply_fpregset.
444 (fill_fpregset): Fix first parameter in call to
445 sparc_collect_fpregset.
447 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
448 Kazu Hirata <kazu@codesourcery.com>
449 Yao Qi <yao@codesourcery.com>
451 * objfiles.c (init_entry_point_info): Call
452 gdbarch_convert_from_func_ptr_addr and
453 gdbarch_addr_bits_remove here ...
454 (entry_point_address_query): ... instead of here.
455 * solib-svr4.c (exec_entry_point): Call
456 gdbarch_addr_bits_remove.
457 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
460 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
461 Yao Qi <yao@codesourcery.com>
463 * eval.c (evaluate_subexp_standard): Add handling of
464 TYPE_CODE_MEMBERPTR when calling functions. Correct the
465 result of ptype for calling a TYPE_CODE_METHODPTR.
467 2012-11-27 Yao Qi <yao@codesourcery.com>
469 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
473 2012-11-26 Alexander Larsson <alexl@redhat.com>
474 Jan Kratochvil <jan.kratochvil@redhat.com>
475 Tom Tromey <tromey@redhat.com>
477 * NEWS: Mention mini debuginfo feature.
478 * minidebug.c: New file.
479 * configure.ac: Check for lzma.
480 * configure, config.in: Rebuild.
481 * Makefile.in (LIBLZMA): New variable.
482 (CLIBS): Include LIBLZMA.
483 (SFILES): Mention minidebug.c.
484 (COMMON_OBS): Mention minidebug.o.
485 * symfile.c (read_symbols): New function.
486 (syms_from_objfile, reread_symbols): Call it.
487 * symfile.h (find_separate_debug_file_in_section): Declare.
489 2012-11-26 Keith Seitz <keiths@redhat.com>
491 * exec.c (exec_file_attach): Move cleanup after verifying that
492 memory has in fact been allocated.
494 2012-11-26 Tom Tromey <tromey@redhat.com>
496 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
497 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
499 * skip.c (skip_info): Use SYMBOL_SYMTAB.
501 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
502 Pedro Alves <palves@redhat.com>
504 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
505 size parameter passed to readlink by one byte.
506 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
507 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
508 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
509 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
512 2012-11-26 Yao Qi <yao@codesourcery.com>
514 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
515 extraneous parentheses.
517 2012-11-26 Yao Qi <yao@codesourcery.com>
519 * remote.c (remote_start_remote): Typo fix.
521 2012-11-23 David S. Miller <davem@davemloft.net>
523 * sparc-tdep.h (struct sparc_fpregset): New data structure.
524 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
525 sparc32_sol2_fpregset): Declare new globals.
526 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
528 * sparc64-tdep.h (sparc64_supply_fpregset,
529 sparc64_collect_fpregset): Likewise.
530 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
532 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
533 (sparc_fpregset): Declare new global.
534 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
536 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
538 (fill_fpregset): Likewise.
539 (_initialize_sparc_linux_nat): Set sparc_fpregset to
540 sparc32_bsd_fpregset.
541 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
542 sparc32_bsd_fpregset down into handler.
543 (sparc32_linux_collect_core_fpregset): Likewise.
544 * sparc-nat.c (sparc_fpregset): Define.
545 (sparc_supply_fpregset): Add 'fpregset' argument.
546 (sparc_collect_fpregset): Likewise.
547 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
548 into fpregset handler.
549 (sparc_store_inferior_registers): Likewise.
550 (_initialize_sparc_nat): Set sparc_fpregset to
551 sparc32_sunos4_fpregset if NULL.
552 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
554 (fill_fpregset): Likewise.
555 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
556 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
557 use it to compute offsets.
558 (sparc32_collect_fpregset): Likewise.
559 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
560 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
562 (fill_fpregset): Likewise.
563 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
565 (sparc64_linux_collect_core_fpregset): Likewise.
566 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
567 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
568 use it to compute offsets.
569 (sparc64_collect_fpregset): Likewise.
570 (sparc64_bsd_fpregset): Define.
571 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
572 sparc64_bsd_fpregset down into handler.
573 (sparc64fbsd_collect_fpregset): Likewise.
574 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
575 and pass sparc{32,64}_bsd_fpregset down into handler.
576 (sparc64nbsd_collect_fpregset): Likewise.
577 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
578 sparc64_bsd_fpregset down into handler.
579 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
580 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
581 to sparc32_bsd_fpregset.
582 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
583 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
584 (sparc32nbsd_supply_fpregset): Likewise.
586 2012-11-21 Tom Tromey <tromey@redhat.com>
588 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
590 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
592 * c-typeprint.c (c_type_print_base): Update.
594 2012-11-21 Yao Qi <yao@codesourcery.com>
597 * gdbarch.sh (smash_text_address): Remove.
598 * gdbarch.c, gdbarch.h: Regenerate.
599 * arm-tdep.c (arm_smash_text_address): Remove.
600 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
601 * hppa-tdep.c (hppa_smash_text_address): Remove.
602 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
603 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
605 * coffread.c (coff_symtab_read): Caller update.
606 * dbxread.c (process_one_symbol): Likewise.
607 * elfread.c (record_minimal_symbol): Likewise.
608 * somread.c (som_symtab_read): Likewise.
610 2012-11-20 Pierre Muller <muller@sourceware.org>
612 ARI fixes: sprintf rule.
613 Replace sprintf function calls for char arrays by
614 calls to xsnprintf calls.
615 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
616 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
617 (arm_neon_quad_read, arm_pseudo_read): Ditto.
618 (arm_neon_quad_write, arm_pseudo_write): Ditto.
619 * breakpoint.c (condition_completer): Ditto.
620 (create_tracepoint_from_upload): Ditto.
621 * dwarf2read.c (file_full_name): Ditto.
622 * gcore.c (gcore_command): Ditto.
623 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
624 * go32-nat.c (go32_sysinfo): Ditto.
625 * interps.c (interp_set): Ditto.
626 * m32c-tdep.c (make_types): Ditto.
627 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
628 * remote-m32r-sdi.c (m32r_open): Ditto.
629 * sol-thread.c (td_err_string): Ditto.
630 (td_state_string, solaris_pid_to_str): Ditto.
631 * symtab.c (gdb_mangle_name): Ditto.
632 * cli/cli-script.c (execute_control_command): Ditto.
633 (define_command, document_command): Ditto.
634 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
635 * tui/tui-stack.c (tui_make_status_line): Ditto.
636 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
638 2012-11-20 Mike Frysinger <vapier@gentoo.org>
640 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
641 it when looking at ptr->func.
642 * command.h (complete_on_cmdlist): Add a fourth arg.
643 * completer.c (complete_line_internal): Add local ignore_help_classes,
644 and set it to 1 when reason is not handle_help. Pass this down to
645 lookup_cmd_1 and complete_on_cmdlist.
647 2012-11-20 Tom Tromey <tromey@redhat.com>
649 * completer.c (count_struct_fields): Remove.
650 (expression_completer): Don't call count_struct_fields.
652 2012-11-20 Pedro Alves <palves@redhat.com>
654 * annotate.c (breakpoints_changed): Rename to ...
655 (annotate_breakpoints_changed): ... this.
656 (annotate_stopped, breakpoint_changed): Adjust caller.
657 * annotate.h (breakpoints_changed): Rename to ...
658 (annotate_breakpoints_changed): ... this.
659 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
660 (do_map_commands_command, init_raw_breakpoint, clear_command)
661 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
663 2012-11-20 David S. Miller <davem@davemloft.net>
665 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
666 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
668 (get_cores_used_by_process): Update comment.
670 2012-11-20 Yao Qi <yao@codesourcery.com>
672 * objfiles.c (init_entry_point_info): Remove trailing spaces.
674 2012-11-20 Yao Qi <yao@codesourcery.com>
676 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
677 to deprecated_context_hook.
679 2012-11-19 Yao Qi <yao@codesourcery.com>
681 * infrun.c (infwait_state): Add static.
683 2012-11-16 Keith Seitz <keiths@redhat.com>
686 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
687 parameter and pass it to lookup_symbol_file.
688 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
689 to search base classes.
690 (cp_lookup_symbol_namespace): Likewise.
691 (lookup_namespace_scope): Likewise.
692 (lookup_symbol_file): Add SEARCH parameter.
693 If SEARCH is non-zero and no symbol is found, lookup the class
694 and call cp_lookup_nested_symbol.
695 (find_symbol_in_baseclass): New function.
696 (cp_lookup_nested_symbol): Do not let
697 cp_lookup_symbol_in_namespace search through base classes.
698 Do that later when there is no global symbol match.
700 2012-11-16 Doug Evans <dje@google.com>
702 * main.c (gdb_datadir_provided): New static global.
703 (get_init_files): If --data-directory is provided,
704 and SYSTEM_GDBINIT lives in data-directory, look for it there.
707 2012-11-15 Pierre Muller <muller@sourceware.org>
709 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
710 * gdb_stat.h: Delete. Moved to common directory.
711 * common/gdb_stat.h: New file.
712 * gdb_wait.h: Delete. Moved to common directory.
713 * common/gdb_wait.h: New file.
714 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
716 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
718 (stat.h rule): Adapt to new gdb_stat.h location.
719 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
721 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
724 2012-11-15 Pierre Muller <muller@sourceware.org>
726 * configure.ac (AC_HEADER_STAT): Remove.
727 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
728 and corresponding code.
729 * configure: Regenerate.
730 * config.in: Regenerate.
732 2012-11-15 Pierre Muller <muller@sourceware.org>
734 ARI xasprintf rule fixes.
735 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
736 instead of xasprintf.
737 (open_and_init_dwp_file): Ditto.
739 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
741 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
744 2012-11-14 Tom Tromey <tromey@redhat.com>
746 * configure, config.in: Rebuild.
747 * configure.ac: Don't check for ctype.h, time.h.
748 * expprint.c: Don't use HAVE_CTYPE_H.
750 2012-11-13 Tom Tromey <tromey@redhat.com>
752 * gdbarch.h, gdbarch.c: Rebuild.
753 * gdbarch.sh (set_target_gdbarch): Rename from
754 deprecated_target_gdbarch_select_hack.
755 * arch-utils.c (gdbarch_update_p): Update.
756 (set_gdbarch_from_file): Update.
758 2012-11-14 Pierre Muller <muller@sourceware.org>
760 * MAINTAINERS (Responsible Maintainers/misc): Add myself
761 as responsible of contrib/ari directory.
763 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
764 Yao Qi <yao@codesourcery.com>
766 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
768 (arm_m_exception_cache, arm_m_exception_this_id)
769 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
770 (arm_m_exception_unwind): New.
771 (arm_gdbarch_init): Register arm_m_exception_unwind.
773 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
775 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
776 parameter COUNT, for pattern filling of memory regions.
779 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
781 * disasm.h (DISASSEMBLY_FILENAME): New macro.
782 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
783 to print_source_lines ().
784 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
786 * source.c (print_source_lines_base): Prefix source line with
787 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
789 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
791 * symtab.h (print_source_lines_flags): New enum.
792 * source.c (print_source_lines_base): Change noerror to flags.
793 (print_source_lines): Change noerror to flags.
795 2012-11-13 Pierre Muller <muller@sourceware.org>
797 ARI fixes: Avoid sprintf function use rule.
798 * charset.c (convert_between_encodings): Use xsnprintf.
799 * cli-out.c (cli_field_int): Likewise.
800 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
801 * expprint.c (op_name_standard): Likewise.
802 * frv-tdep.c (set_variant_num_gprs): Likewise.
803 (set_variant_num_fprs): Likewise.
804 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
805 * nto-tdep.c (nto_find_and_open_solib): Likewise.
806 (nto_init_solib_absolute_prefix): Likewise.
807 * source.c (init_source_path): Likewise.
808 (print_source_lines_base): Likewise.
809 * valprint.c (print_wchar): Likewise.
810 * mi/mi-out.c (mi_field_int): Likewise.
811 windows-nat.c (windows_pid_to_exec_file): Likewise.
812 (windows_create_inferior): Likewise.
813 (_initialize_check_for_gdb_ini): Likewise.
815 2012-11-12 Joel Brobecker <brobecker@adacore.com>
817 * frame.h (deprecated_frame_register_read): Renames
819 * frame.c (deprecated_frame_register_read): Renames
820 frame_register_read. Update all callers.
821 * i386-tdep.c: Update all callers of frame_register_read.
822 * infcmd.c: Likewise.
824 * mips-tdep.c: Likewise.
825 * mt-tdep.c: Likewise.
826 * sh64-tdep.c: Likewise.
828 2012-11-12 Joel Brobecker <brobecker@adacore.com>
830 * frame.h (frame_register_read): Remove FIXME comment.
831 * frame.c (frame_register_read): Add suggestion explaining
832 which function to use in place of this one.
834 2012-11-12 Tom Tromey <tromey@redhat.com>
836 * python/python.c (start_type_printers): Initialize 'result_obj'.
838 2012-11-12 Tom Tromey <tromey@redhat.com>
841 * data-directory/Makefile.in (PYTHON_FILES): Add
843 * python/lib/gdb/command/type_printers.py: New file.
844 * python/lib/gdb/command/types.py (TypePrinter): New class.
845 (_get_some_type_recognizers, get_type_recognizers,
846 apply_type_recognizers, register_type_printer): New
848 * python/py-objfile.c (objfile_object) <type_printers>: New
850 (objfpy_dealloc): Decref new field.
851 (objfpy_new): Set new field.
852 (objfpy_get_type_printers, objfpy_set_type_printers): New
854 (objfile_to_objfile_object): Set new field.
855 (objfile_getset): Add "type_printers".
856 * python/py-progspace.c (pspace_object) <type_printers>: New
858 (pspy_dealloc): Decref new field.
859 (pspy_new): Set new field.
860 (pspy_get_type_printers, pspy_set_type_printers): New functions.
861 (pspace_to_pspace_object): Set new field.
862 (pspace_getset): Add "type_printers".
863 * python/python.c (start_type_printers, apply_type_printers,
864 free_type_printers): New functions.
865 (_initialize_python): Set gdb.type_printers.
866 * python/python.h (start_type_printers, apply_type_printers,
867 free_type_printers): Declare.
868 * typeprint.c (type_print_raw_options, default_ptype_flags):
869 Update for new fields.
870 (do_free_global_table, create_global_typedef_table,
871 find_global_typedef): New functions.
872 (find_typedef_in_hash): Use find_global_typedef.
873 (whatis_exp): Use create_global_typedef_table. Change cleanup
875 * typeprint.h (struct type_print_options) <global_typedefs,
876 global_printers>: New fields.
878 2012-11-12 Tom Tromey <tromey@redhat.com>
880 * c-typeprint.c (find_typedef_for_canonicalize,
881 print_name_maybe_canonical): New functions.
882 (c_print_type): Look up type name.
883 (cp_type_print_derivation_info): Add flags argument. Use
884 print_name_maybe_canonical.
885 (cp_type_print_method_args): Add wrapping.
886 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
887 (c_type_print_template_args): New function.
888 (c_type_print_base): Change wrapping. Use
889 print_name_maybe_canonical.
890 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
892 * gdbtypes.c (types_equal): No longer static.
893 * gdbtypes.h (types_equal): Declare.
894 * typeprint.c (type_print_raw_options, default_ptype_flags):
896 (struct typedef_hash_table): New.
897 (hash_typedef_field, eq_typedef_field,
898 recursively_update_typedef_hash, add_template_parameters,
899 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
900 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
901 copy_typedef_hash, find_typedef_in_hash): New functions.
902 * typeprint.h (struct type_print_options) <local_typedefs>:
904 (recursively_update_typedef_hash, add_template_parameters,
905 create_typedef_hash, free_typedef_hash,
906 make_cleanup_free_typedef_hash, copy_typedef_hash,
907 find_typedef_in_hash): Declare.
909 2012-11-12 Tom Tromey <tromey@redhat.com>
911 * cp-support.c (inspect_type,
912 replace_typedefs_qualified_name, replace_typedefs): Add
913 finder, data arguments. Call as needed.
914 (cp_canonicalize_string_full): New function.
915 (cp_canonicalize_string_no_typedefs): Rewrite.
916 * cp-support.h (canonicalization_ftype): New typedef.
917 (cp_canonicalize_string_full): Declare.
919 2012-11-12 Tom Tromey <tromey@redhat.com>
922 * c-typeprint.c (c_type_print_base): Handle print_method and
923 print_typedefs flags.
924 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
925 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
927 * typeprint.c (type_print_raw_options, default_ptype_flags):
928 Update for new field.s
929 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
930 (setprinttypelist, showprinttypelist, print_methods,
931 print_typedefs): New globals.
932 (set_print_type, show_print_type, set_print_type_methods,
933 show_print_type_methods, set_print_type_typedefs,
934 show_print_type_typedefs): New functions.
935 (_initialize_typeprint): Update documentation. Add "print
936 type methods" and "print type typedefs" parameters.
937 * typeprint.h (struct type_print_options) <print_methods,
938 print_typedefs>: New fields.
940 2012-11-12 Tom Tromey <tromey@redhat.com>
942 * c-typeprint.c (cp_type_print_method_args): Add flags
943 argument. Call c_print_type, not type_print.
944 (c_type_print_base): Call c_print_type, not type_print.
947 2012-11-12 Tom Tromey <tromey@redhat.com>
949 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
950 to type-printing functions.
951 * ada-lang.h (ada_print_type): Add argument.
952 * ada-typeprint.c (print_array_type, print_variant_clauses,
953 print_variant_part, print_selected_record_field_types,
954 print_record_field_types, print_unchecked_union_type,
955 print_func_type, ada_print_type): Add flags argument.
956 (ada_print_typedef): Update.
957 * c-exp.y (OPERATOR conversion_type_id): Update.
958 * c-lang.h (c_print_type, c_type_print_base): Update.
959 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
960 c_type_print_modifier, c_type_print_args,
961 c_type_print_varspec_suffix, c_type_print_base): Add flags
963 * cp-valprint.c (cp_print_class_member): Update.
964 * dwarf2read.c (dwarf2_compute_name): Update.
965 * f-lang.h (f_print_type): Add argument.
966 * f-typeprint.c (f_print_type): Add flags argument.
967 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
968 * go-lang.h (go_print_type): Add argument.
969 * go-typeprint.c (go_print_type): Add flags argument.
970 * jv-lang.h (java_print_type): Add argument.
971 * jv-typeprint.c (java_type_print_base, java_print_type): Add
973 * language.c (unk_lang_print_type): Add flags argument.
974 * language.h (struct language_defn) <la_print_type>: Add flags
976 (LA_PRINT_TYPE): Likewise.
977 * m2-lang.h (m2_print_type): Add argument.
978 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
979 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
980 m2_unbounded_array, m2_record_fields): Add flags argument.
981 * p-lang.h (pascal_print_type, pascal_type_print_base,
982 pascal_type_print_varspec_prefix): Add argument.
983 * p-typeprint.c (pascal_print_type,
984 pascal_type_print_varspec_prefix, pascal_print_func_args,
985 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
987 * symmisc.c (print_symbol): Update.
988 * typeprint.c (type_print_raw_options, default_ptype_flags):
990 (type_print): Update.
991 * typeprint.h (struct type_print_options): New.
992 (type_print_raw_options): Declare.
993 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
995 2012-11-10 Keith Seitz <keiths@redhat.com>
997 * breakpoint.c (clear_command): Add cleanup for
998 sals.sals if an argument is given.
1000 * linespec.c (parse_linespec): Do cleanups after
1001 parsing a convenience variable.
1003 2012-11-10 Keith Seitz <keiths@redhat.com>
1006 * c-valprint.c (c_val_print): For character arrays
1007 with "print null" option on, print ellipses if
1008 the output is truncated and the next character is not \000.
1009 * valprint.c (MAX_WCHARS): Define.
1010 (WCHAR_BUFLEN): Likewise.
1011 (WCHAR_BUFLEN_MAX): Likewise.
1012 (struct converted_character): New structure.
1013 (count_next_character): New function.
1014 (print_converted_chars_to_obstack): New function.
1015 (generic_printstr): Rewrite using count_next_character
1016 and print_converted_chars_to_obstack.
1018 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1020 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1021 while executing the gdb command.
1022 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1023 are called from prompt_for_continue.
1024 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1026 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1030 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1031 but insert the command to execute in readline's buffer.
1033 2012-11-09 Tom Tromey <tromey@redhat.com>
1035 * gdbarch.sh (target_gdbarch): Remove macro.
1036 (get_target_gdbarch): Rename to target_gdbarch.
1037 * gdbarch.c, gdbarch.h: Rebuild.
1038 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1039 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1040 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1041 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1042 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1043 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1044 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1045 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1046 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1047 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1048 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1049 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1050 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1051 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1052 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1053 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1054 target-descriptions.c, target.c, target.h, tracepoint.c,
1055 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1056 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1057 python/py-inferior.c, python/python.c: Update.
1059 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1061 * source.c (print_source_lines_base): Add fullname field giving
1062 full path to file in mi output.
1063 * NEWS: Mention the new fullname field.
1065 2012-11-09 Yao Qi <yao@codesourcery.com>
1067 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1069 2012-11-09 Pedro Alves <palves@redhat.com>
1073 * infrun.c: Include target-descriptions.h.
1074 (follow_exec): Fetch new target description.
1076 2012-11-09 Yao Qi <yao@codesourcery.com>
1078 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1081 2012-11-09 Yao Qi <yao@codesourcery.com>
1083 * breakpoint.c: Declare set_tracepoint_count.
1084 (install_breakpoint): Call set_tracepoint_count if B is a
1086 (trace_command): Don't call set_tracepoint_count. Re-indent.
1087 (strace_command, ftrace_command):
1088 (create_tracepoint_from_upload): Likewise.
1090 2012-11-09 Pedro Alves <palves@redhat.com>
1092 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1093 (get_target_gdbarch) <gdbarch.h>: New function.
1094 (startup_gdbarch) <gdbarch.h>: Declare.
1095 <gdbarch.c> (target_gdbarch): Delete.
1096 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1097 current inferior's gdbarch.
1098 <gdbarch.c> (get_target_gdbarch): New function.
1099 * inferior.c: Include target-descriptions.h.
1100 (free_inferior): Free target description info.
1101 (add_inferior_with_spaces): Set the inferior's initial
1103 (clone_inferior_command): Copy the original inferior's target
1104 description if it was user specified.
1105 (initialize_inferiors): Add comment.
1106 * inferior.h (struct target_desc_info): Forward declare.
1107 (struct inferior) <gdbarch>: New field.
1108 * linux-nat.c: Include target-descriptions.h.
1109 (linux_child_follow_fork): Copy the parent's architecture and
1110 target description to the child.
1111 * target-descriptions.c: Include inferior.h.
1112 (struct target_desc_info): New structure, holding the equivalents
1114 (target_desc_fetched, current_target_desc)
1115 (target_description_filename): ... these removed globals.
1116 (get_tdesc_info, target_desc_info_from_user_p)
1117 (copy_inferior_target_desc_info, target_desc_info_free): New.
1118 (target_desc_fetched, current_target_desc)
1119 (target_description_filename): Reimplemented as convenience
1121 (tdesc_filename_cmd_string): New global.
1122 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1123 tdescs filename ..." commands to the per-inferior equivalent.
1124 (show_tdesc_filename_cmd): Get the value to show from the
1125 per-inferior description filename.
1126 (_initilize_target_descriptions): Change the "set/show tdesc
1127 filename" commands' variable.
1128 * target-descriptions.h (struct target_desc, struct target_desc_info)
1129 (struct inferior): Forward declare.
1130 (target_find_description, target_clear_description)
1131 (target_current_description): Adjust comments.
1132 (copy_inferior_target_desc_info, target_desc_info_free)
1133 (target_desc_info_from_user_p). Declare.
1135 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1137 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1138 (tui_target_wait_hook): Remove.
1139 (tui_install_hooks): Install the about_to_proceed observer.
1140 (tui_remove_hooks): And remove it here.
1142 2012-11-08 Tom Tromey <tromey@redhat.com>
1144 * linux-tdep.c (linux_make_siginfo_note): New function.
1145 (linux_make_corefile_notes): Use it.
1146 * corelow.c (get_core_siginfo): New function.
1147 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1149 2012-11-08 Tom Tromey <tromey@redhat.com>
1152 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1153 (zlib_decompress_section): Remove.
1154 (gdb_bfd_map_section): Only check for compressed section
1155 in mmap case. Use bfd_get_full_section_contents.
1156 * osabi.c (check_note): Add 'sectsize' argument. Read
1158 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1159 section data. Update for check_note change.
1160 * xcoffread.c (xcoff_initial_scan): Use
1161 bfd_get_full_section_contents.
1162 * py-auto-load.c (auto_load_section_scripts): Use
1163 bfd_get_full_section_contents.
1164 * contrib/cc-with-tweaks.sh: Add -Z option.
1166 2012-11-08 Tom Tromey <tromey@redhat.com>
1168 * python/py-bpevent.c: Include defs.h.
1169 * python/py-continueevent.c: Include defs.h.
1170 * python/py-event.c: Include defs.h.
1171 * python/py-event.h: Don't include defs.h.
1172 * python/py-events.h: Don't include defs.h.
1173 * python/py-evts.c: Include defs.h.
1174 * python/py-exitedevent.c: Include defs.h.
1175 * python/py-newobjfileevent.c: Include defs.h.
1176 * python/py-signalevent.c: Include defs.h.
1177 * python/py-stopevent.c: Include defs.h.
1178 * python/py-threadevent.c: Include defs.h.
1180 2012-11-08 Pierre Muller <muller@sourceware.org>
1182 * update-web-ari.sh (print_heading): Add number of files
1184 (nb_files): New variable counting the number of sources
1185 files found by gdb_find.sh script.
1186 (debug_awk): New variable to allow extra debug output.
1187 (indexes): Add more information if DEBUG_AWK is set.
1189 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1191 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1192 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1193 following the change in PLT call stubs on linker.
1195 2012-11-08 Pierre Muller <muller@sourceware.org>
1197 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1198 as default language.
1199 (AWK): Use = instead of == for sh test to avoid warning.
1200 (Linux rule): Correct [:digit] into [[:digit:]].
1201 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1202 (vasprintf rule): Adapt to common subdirectory moves.
1203 (xasprintf rule): Idem.
1204 (xvasprintf rule): Idem.
1205 (var_boolean rule): Accept occurence in == or != test.
1207 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1209 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1211 * tui/tui-hooks.c (tui_inferior_exit): New function.
1212 (tui_detach_hook): Remove.
1213 (tui_install_hooks): Install the inferior exit observer.
1214 (tui_remove_hooks): Remove it.
1216 2012-11-08 Yao Qi <yao@codesourcery.com>
1219 * source.c (_initialize_source): Call add_com_alias to abbreviate
1220 'forward-search' as 'fo'.
1222 2012-11-07 Pedro Alves <palves@redhat.com>
1224 * arm-tdep.c: Make defs.h be the first include.
1225 * coff-pe-read.c: Ditto.
1227 * go32-nat.c: Ditto.
1228 * i386-nat.c: Ditto.
1229 * ppcnbsd-nat.c: Ditto.
1230 * ada-varobj.h: Don't include defs.h.
1231 * i386-darwin-tdep.h: Ditto.
1232 * i386-nat.h: Ditto.
1234 2012-11-07 Pedro Alves <palves@redhat.com>
1236 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1239 2012-11-07 Pierre Muller <muller@sourceware.org>
1241 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1242 File already uses "gdb_dirent.h" header.
1244 2012-11-07 Yao Qi <yao@codesourcery.com>
1246 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1249 2012-11-06 Tom Tromey <tromey@redhat.com>
1251 * target.h (inferior_has_forked, inferior_has_vforked)
1252 (inferior_has_execd, inferior_has_called_syscall): Remove
1255 2012-11-06 Pierre Muller <muller@sourceware.org>
1257 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1258 add missing internalization markup.
1260 2012-11-06 Pedro Alves <palves@redhat.com>
1264 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1266 2012-11-06 Pierre Muller <muller@sourceware.org>
1268 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1271 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1273 * gnulib/update-gnulib.sh: New script.
1275 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1277 * MAINTAINERS: Update my email address.
1279 2012-11-05 Tom Tromey <tromey@redhat.com>
1281 * frame.c (put_frame_register): Don't use temporary buffer.
1283 2012-11-05 Pedro Alves <palves@redhat.com>
1285 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1286 child. Clear 'pending_detach'.
1287 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1288 'pending_detach' in the vfork parent.
1290 2012-11-05 Doug Evans <dje@google.com>
1292 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1293 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1294 * dwarf2read.c: #include "elf-bfd.h".
1295 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1296 (dwop_section_names): Renamed from dwo_section names. All uses
1297 updated. Add entries for .debug_cu_index, .debug_tu_index.
1298 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1300 (struct dwp_sections): New type.
1301 (struct virtual_dwo_sections): New type.
1302 (struct dwp_hash_table): New type.
1303 (struct dwp_file): New type.
1304 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1305 read in. Handle DWOs coming from DWP files.
1306 (lookup_dwo_file_slot): New function.
1307 (dwarf2_locate_dwo_sections): Move definition closer to use.
1308 (create_dwo_debug_info_hash_table_reader): Renamed from
1309 create_debug_info_hash_table_reader. All callers updated.
1310 (create_dwo_debug_info_hash_table): Renamed from
1311 create_debug_info_hash_table. All callers updated.
1312 (create_dwp_hash_table): New function.
1313 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1314 (lookup_dwo_in_dwp): New function.
1315 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1316 is_dwp. All callers updated.
1317 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1318 (open_and_init_dwo_file): Renamed from init_dwo_file.
1319 All callers updated.
1320 (lookup_dwo_file): Delete.
1321 (dwarf2_locate_dwp_sections): New function.
1322 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1323 (allocate_dwp_loaded_cutus_table): New function.
1324 (open_and_init_dwp_file): New function.
1325 (lookup_dwo_cutu): New function.
1326 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1328 2012-11-03 Yao Qi <yao@codesourcery.com>
1331 * breakpoint.c (trace_pass_set_count): Call
1332 observer_notify_breakpoint_modified instead of
1333 observer_notify_tracepoint_modified.
1334 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1336 2012-11-02 Tom Tromey <tromey@redhat.com>
1338 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1339 argument to complete_on_enum.
1341 2012-11-02 Tom Tromey <tromey@redhat.com>
1343 * configure: Rebuild.
1344 * configure.ac (build_warnings): Add -Wempty-body.
1345 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1346 * remote.c (handle_notification): Use braces for empty 'else' body.
1347 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1349 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1351 * solib-som.c (som_relocate_section_addresses): Use braces
1352 for empty 'else' body.
1353 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1354 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1356 2012-11-02 Pedro Alves <palves@redhat.com>
1360 * infrun.c (handle_inferior_event)
1361 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1362 null_ptid before handling a vfork child exec or exit. Switch to
1363 the event ptid afterwards.
1365 2012-11-02 Yao Qi <yao@codesourcery.com>
1367 * std-operator.def: Remove OP_LABELED.
1368 * eval.c: Remove the declaration of 'get_label'.
1369 (get_label): Remove.
1370 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1372 Remove local variable 'variantno' and related code.
1373 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1375 * expprint.c (print_subexp_standard): Likewise.
1376 (dump_subexp_body_standard): Likewise.
1377 * parse.c (operator_length_standard): Likewise.
1379 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1381 Incorporate ARI web page generator into GDB sources.
1382 * contrib/ari/create-web-ari-in-src.sh: New file.
1383 * contrib/ari/gdb_ari.sh: New file.
1384 * contrib/ari/gdb_find.sh: New file.
1385 * contrib/ari/update-web-ari.sh: New file.
1387 2012-10-31 Tom Tromey <tromey@redhat.com>
1389 * gdbarch.c: Rebuild.
1390 * gdbarch.sh: Remove references to gdbarch_swap.
1391 * corelow.c (core_open): Remove obsolete comment.
1393 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1396 * c-typeprint.c (c_print_type): Don't print a space for vector
1397 types, this is handled within the suffix.
1398 (c_type_print_varspec_suffix): Add a space to vector suffix.
1400 2012-10-26 Pedro Alves <palves@redhat.com>
1402 * amd64-tdep.c (amd64_relocate_instruction): Use
1403 store_unsigned_integer instead of memcpy.
1404 * i386-tdep.c (i386_relocate_instruction): Ditto.
1406 2012-10-26 Pedro Alves <palves@redhat.com>
1408 * infrun.c (handle_inferior_event): Merge handling of
1409 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1412 2012-10-26 Pedro Alves <palves@redhat.com>
1414 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1417 2012-10-26 Pedro Alves <palves@redhat.com>
1419 * target.c (target_waitstatus_to_string): Handle
1420 TARGET_WAITKIND_VFORK_DONE.
1422 2012-10-26 Pedro Alves <palves@redhat.com>
1424 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1425 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1427 2012-10-24 Tristan Gingold <gingold@adacore.com>
1429 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1432 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1434 * ravenscar-thread.c (ravenscar_wait): Only update the list
1435 of threads and inferior_ptid if the inferior is still alive.
1437 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1439 * ada-lang.c (is_known_support_routine): Use lbasename when
1440 matching the symtab's filename against
1441 known_runtime_file_name_patterns.
1443 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1445 * ada-lang.c (ada_same_array_size_p): New function.
1446 (ada_promote_array_of_integrals): New function.
1447 (coerce_for_assign): Add handling of arrays where the elements
1448 are integrals of a smaller size than the size of the target
1451 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1453 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1454 against maximum exponent value.
1456 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1458 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1461 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1463 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1464 strip typedef layer when computing the fixed type's field type,
1465 only when computing its size.
1467 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1470 * i386-tdep.c (i386_return_value): Handle complex double and long
1473 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1475 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1476 New local variable args_len.
1477 Quote the name of the executable when computing the command line.
1479 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1484 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1486 * amd64-tdep.c (amd64_classify): Classify complex types.
1487 (amd64_return_value): Handle the COMPLEX_X87 class.
1489 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1491 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1492 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1494 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1496 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1498 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1499 to amd64_windows_auto_wide_charset.
1501 2012-10-23 Yao Qi <yao@codesourcery.com>
1503 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1504 * event-top.h: Remove its declaration.
1505 (async_request_quit): Call mark_async_signal_handler instead of
1506 mark_async_signal_handler_wrapper.
1507 (async_do_nothing, async_disconnect): Likewise.
1508 (async_stop_sig): Likewise.
1509 * remote.c (handle_remote_sigint): Likewise.
1510 (handle_remote_sigint_twice): Likewise.
1512 2012-10-23 Yao Qi <yao@codesourcery.com>
1514 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1515 with 'static struct async_signal_handler *'.
1516 (sighup_token, sigquit_token, sigstp_token): Likewise.
1518 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1520 * gdbarch.sh (function_list): Use 'pstring' when printing
1521 a variable which could return NULL.
1522 * gdbarch.c: Regenerate.
1524 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1525 Tom Tromey <tromey@redhat.com>
1527 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1528 inneffective if condition by gdb assertion. Add function
1529 description comment.
1531 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1533 * parser-defs.h (struct exp_descriptor): Document constraint
1534 on return value for "op_name" callbacks.
1536 2012-10-18 Tom Tromey <tromey@redhat.com>
1538 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1539 * symtab.c (iterate_over_some_symtabs): Constify.
1540 * source.h (symtab_to_fullname): Return 'const char *'.
1541 * source.c (symtab_to_fullname): Return 'const char *'.
1542 * python/py-symtab.c (stpy_fullname): Constify.
1543 * cli/cli-cmds.c (edit_command): Constify.
1544 * breakpoint.c (print_breakpoint_location)
1545 (update_static_tracepoint): Constify.
1547 2012-10-18 Tom Tromey <tromey@redhat.com>
1549 * breakpoint.c (compare_breakpoints): Fix comparison.
1551 2012-10-18 Tom Tromey <tromey@redhat.com>
1553 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1554 gdb_wchar_t to convert_between_encodings.
1556 2012-10-17 Yao Qi <yao@codesourcery.com>
1558 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1559 more parameter 'inferior'.
1560 * corefile.c (write_memory_with_notification): Caller update.
1562 * mi/mi-cmd-var.c: Include "mi-main.h".
1563 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1564 to 1 and restore it later.
1565 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1566 and "data-write-memory-bytes.
1567 * mi/mi-interp.c: Include objfiles.h.
1568 (mi_interpreter_init): Call observer_attach_memory_changed.
1569 (mi_memory_changed): New.
1570 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1573 * NEWS: Mention new MI notification "memory-changed".
1575 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1577 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1579 2012-10-15 Doug Evans <dje@google.com>
1581 New option -nh: inhibit loading of ~/.gdbinit.
1582 * NEWS: Mention -nh.
1583 * main.c (captured_main): Recognize and process -nh.
1584 (print_gdb_help): Mention -nh.
1585 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1587 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1591 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1593 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1594 nor pc_regnum_from_eax.
1595 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1596 nor pc_regnum_from_eax.
1598 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1600 Fix entry values resolving in inlined frames.
1601 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1602 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1605 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1607 * configure.ac: Build with -DMS_WIN64 if building with Python
1608 enabled using GCC on amd64-windows.
1609 * configure: Regenerate.
1611 2012-10-15 Tom Tromey <tromey@redhat.com>
1614 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1617 2012-10-15 Tom Tromey <tromey@redhat.com>
1620 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1622 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1624 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1625 reset thread numbering back to 1.
1627 2012-10-11 Doug Evans <dje@google.com>
1629 PR breakpoints/14643.
1630 * linespec.c (struct ls_parser): New member keyword_ok.
1631 (linespec_lexer_lex_string): Add comment.
1632 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1634 (parse_linespec): Set keyword_ok.
1636 2012-10-10 Doug Evans <dje@google.com>
1638 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1639 "0x" prefix on address in log message.
1641 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1642 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1643 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1644 (lookup_dwo_file): Add const to dwo_name parameter.
1645 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1647 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1649 Fix crash during stepping on ppc32.
1650 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1653 2012-10-03 Doug Evans <dje@google.com>
1656 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1658 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1660 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1661 output and use uint32_t not long to ensure 4 byte size.
1663 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1665 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1668 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1670 * target.c (simple_search_memory): Include access length in
1673 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1674 Edjunior Machado <emachado@linux.vnet.ibm.com>
1677 * solib.c (solib_find): Prevent GDB from loading native libraries when
1678 debugging a cross-target corefile.
1680 2012-09-28 selven <pcthegreat@gmail.com>
1682 Make definition match declaration.
1684 * regcache.c (regcache_register_status): Change return type to
1685 enum register_status.
1687 2012-09-28 Yao Qi <yao@codesourcery.com>
1689 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1690 write_memory_with_notification instead of write_memory.
1691 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1692 instead of target_write_memory.
1694 2012-09-28 Yao Qi <yao@codesourcery.com>
1696 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1697 when the length of content is not an even number.
1699 2012-09-27 Tom Tromey <tromey@redhat.com>
1701 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1702 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1704 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1706 * sol-thread.c (sol_thread_fetch_registers)
1707 (sol_thread_store_registers): Delete commented out code.
1709 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1711 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1712 Move these functions to sparc-sol-thread.c.
1713 * sparc-sol-thread.c: New file.
1714 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1715 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1717 * configure: Regenerate.
1719 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1721 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1722 Remove commented-out code.
1724 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1726 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1727 Enable this code for sparc hosts only.
1729 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1731 * procfs.h (procfs_find_LDT_entry): Add declaration.
1732 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1733 function procfs_find_LDT_entry.
1735 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1737 * procfs.c (proc_get_LDT_entry): Make static.
1739 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1741 * procfs.c (proc_find_memory_regions): Fix declaration.
1743 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1745 * amd64-tdep.c (amd64_return_value): Revert previous change
1746 that used TYPE_LENGTH directly.
1747 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1748 (bfin_store_return_value): Likewise.
1749 * cris-tdep.c (cris_store_return_value): Likewise.
1750 (cris_extract_return_value): Likewise.
1751 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1752 * hppa-tdep.c (hppa64_return_value): Likewise.
1753 * lm32-tdep.c (lm32_store_return_value): Likewise.
1754 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1755 * spu-tdep.c (spu_value_from_register): Likewise.
1756 * vax-tdep.c (vax_return_value): Likewise.
1758 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1760 * gdbtypes.c (lookup_array_range_type): Expand parameters
1761 LOW_BOUND and HIGH_BOUND to LONGEST.
1762 (lookup_string_range_type): Likewise.
1763 * gdbtypes.h (lookup_array_range_type): Likewise.
1764 (lookup_string_range_type): Likewise.
1765 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1766 Expand HIGHBOUND to ssize_t.
1767 (value_string): Likewise.
1768 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1769 (value_string): Likewise.
1771 2012-09-27 Yao Qi <yao@codesourcery.com>
1773 PR breakpoints/13898
1774 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1775 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1776 per breakpoint type.
1778 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1780 * procfs.c: Add gdb_bfd header.
1781 * rs6000-nat.c: Likewise.
1782 * solib-pa64.c: Likewise.
1783 * spu-linux-nat.c: Likewise.
1784 * windows-nat.c: Likewise.
1786 2012-09-26 Tom Tromey <tromey@redhat.com>
1788 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1790 2012-09-26 Tom Tromey <tromey@redhat.com>
1792 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1793 (read_common_block): Handle child DIEs with
1794 DW_AT_data_member_location.
1795 (new_symbol_full): Add special case for common blocks.
1797 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1798 Tom Tromey <tromey@redhat.com>
1800 * dwarf2read.c (read_common_block): Rewrite.
1801 (new_symbol_full): Handle DW_TAG_common_block.
1802 * f-lang.c (head_common_list, find_common_for_function):
1804 * f-lang.h (struct common_entry, struct saved_f77_common,
1805 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1806 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1807 BLANK_COMMON_NAME_LOCAL): Remove.
1808 (struct common_block): New.
1809 * f-valprint.c (list_all_visible_commons): Remove.
1810 (info_common_command_for_block): New function.
1811 (info_common_command): Use it.
1812 * stack.c (iterate_over_block_locals): Special case for
1813 COMMON_BLOCK_DOMAIN.
1814 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1816 (struct general_symbol_info) <value.common_block>: New field.
1817 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1819 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1820 Tom Tromey <tromey@redhat.com>
1822 * f-lang.c (allocate_saved_bf_node,
1823 allocate_saved_function_node, allocate_saved_f77_common_node,
1824 allocate_common_entry_node, tail_common_list, current_common,
1825 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1826 tmp_bf_ptr, add_common_block, add_common_entry,
1827 find_first_common_named, patch_common_entries,
1828 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1829 global_remote_debug, get_bf_for_fcn, saved_function_list,
1830 saved_function_list_end, clear_function_list, struct saved_fcn,
1831 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1832 SAVED_BF, SAVED_BF_PTR): Remove.
1833 * f-lang.h (tail_common_list, current_common,
1834 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1835 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1836 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1837 real_main_c_value): Remove.
1838 * f-valprint.c (there_is_a_visible_common_named): Remove.
1840 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1842 * breakpoint.c (update_global_location_list): Ignore previous
1843 duplicate status of a breakpoint when starting a new scan for
1844 duplicate breakpoints.
1846 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1847 PR breakpoints/14419
1848 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1849 support LLVM compiler.
1851 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1853 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1854 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1855 (bfin_store_return_value): Likewise.
1856 * cris-tdep.c (cris_store_return_value): Likewise.
1857 (cris_extract_return_value): Likewise.
1858 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1859 * hppa-tdep.c (hppa64_return_value): Likewise.
1860 * lm32-tdep.c (lm32_store_return_value): Likewise.
1861 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1862 * spu-tdep.c (spu_value_from_register): Likewise.
1863 * vax-tdep.c (vax_return_value): Likewise.
1865 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1867 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1868 parameter LEN to ssize_t.
1870 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1872 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1874 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1876 (alpha_store_return_value): Likewise.
1877 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1878 (amd64_push_arguments): Likewise.
1879 * ax-gdb.c (gen_trace_static_fields): Likewise.
1880 (gen_traced_pop): Likewise.
1881 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1882 * breakpoint.c (update_watchpoint): Likewise.
1883 * findcmd.c (parse_find_args): Use local variable for type
1885 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1886 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1887 (h8300_store_return_value): Likewise.
1888 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1889 Use i386_darwin_arg_type_alignment directly.
1890 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1891 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1892 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1893 (m68hc11_extract_return_value): Likewise.
1894 * mep-tdep.c (mep_push_dummy_call): Likewise.
1895 * printcmd.c (float_type_from_length): Likewise.
1896 * s390-tdep.c (s390_value_from_register): Likewise.
1897 * stack.c (read_frame_arg): Likewise.
1898 * tracepoint.c (encode_actions_1): Likewise.
1899 * valops.c (value_fetch_lazy): Use local variable for type
1900 instead of length. Use TYPE_LENGTH directly.
1901 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1903 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1905 * symtab.c (skip_prologue_sal): Fix typo in comment.
1907 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1909 * linespec.c (create_sals_line_offset): Fix typo in comment.
1911 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1913 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1914 use plongest to print the array size.
1916 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1918 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1919 * p-valprint.c (pascal_type_print_base): Likewise.
1921 2012-09-22 Yao Qi <yao@codesourcery.com>
1923 * remote.c (remote_get_trace_status): Remove setting default
1924 values of fields of 'ts'.
1926 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1928 Fix internal error on canonicalization of clang types.
1929 * cp-name-parser.y (operator): New comment at make_operator call for
1930 new, delete, new[] and delete[].
1931 (exp): Use "sizeof ". Add new comment at make_operator call.
1933 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1935 Fix disassemble without parameters in tailcall frame.
1936 * cli/cli-cmds.c (disassemble_current_function): Use
1937 get_frame_address_in_block.
1939 2012-09-21 Tom Tromey <tromey@redhat.com>
1941 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1942 TYPE_CODE_UNION>: Unify, removing a goto.
1944 2012-09-21 Tom Tromey <tromey@redhat.com>
1946 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1948 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1950 * findvar.c (read_frame_register_value): Mark the result value as
1951 optimized out if any of the input registers have been optimized out.
1953 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1955 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1957 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1959 * eval.c (evaluate_subexp_standard): Eliminate single-use
1962 2012-09-21 Yao Qi <yao@codesourcery.com>
1964 * mi/mi-interp.c: Declare mi_record_changed.
1965 (mi_interpreter_init): Call observer_attach_record_changed.
1966 (mi_record_changed): New.
1967 * record.c (record_open): Call observer_notify_record_changed.
1968 (cmd_record_stop): Call observer_notify_record_changed.
1971 2012-09-20 Tom Tromey <tromey@redhat.com>
1974 * python/python.c (finalize_python): New function.
1975 (_initialize_python): Make a final cleanup.
1977 2012-09-19 Doug Evans <dje@google.com>
1979 * buildsym.h (param_symbols): Delete, unused.
1980 (context_stack): Delete member "params", unused.
1981 * buildsym.c (push_context): Update.
1982 * dwarf2read.c (read_func_scope): Update.
1984 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1986 * sh-tdep.c (sh_register_convert_to_virtual)
1987 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1988 all callers. Just do a memcpy if not the little-endian case.
1990 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1991 set_gdbarch_double_format and set_gdbarch_long_double_format.
1992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1993 set_gdbarch_double_format.
1994 * sh-tdep.c (sh_gdbarch_init): Likewise.
1996 * NEWS: Document the removal of SH's 'regs' command.
1997 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2000 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2002 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2005 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2007 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2008 language when iterating over symbols.
2010 2012-09-18 Yao Qi <yao@codesourcery.com>
2012 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2013 (mi_interpreter_init): Call observer_attach_tsv_created and
2014 observer_attach_tsv_deleted.
2015 (mi_tsv_created, mi_tsv_deleted): New.
2016 * tracepoint.c (delete_trace_state_variable): Call
2017 observer_notify_tsv_deleted.
2018 (trace_variable_command): Call observer_notify_tsv_created.
2019 (delete_trace_variable_command): Call
2020 observer_notify_tsv_deleted.
2021 (create_tsv_from_upload): Call observer_notify_tsv_created.
2024 2012-09-18 Yao Qi <yao@codesourcery.com>
2026 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2027 if traceframe changed.
2028 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2030 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2031 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2032 'traceframe_changed'.
2033 (mi_traceframe_changed): New.
2034 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2036 * NEWS: Mention the new MI notification.
2038 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2040 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2042 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2044 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2045 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2046 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2047 Extend code also for PaX support. Convert all gdb_assert to warning
2050 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 Implement auto-load user conveniences suggested by Doug Evans.
2053 * auto-load.c: Include top.h.
2054 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2055 (_initialize_auto_load): New variable scripts_directory_help. Mention
2056 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2057 scripts-directory. Document in online help one can use also files for
2058 set auto-load safe-path.
2059 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2060 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2062 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2064 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2067 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2069 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2070 ELTLEN and use TYPE_LENGTH directly.
2071 (m2_val_print): Likewise.
2072 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2073 variable LEN and use TYPE_LENGTH directly.
2074 (m68k_svr4_store_return_value): Likewise.
2075 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2076 ARGLEN and use TYPE_LENGTH directly.
2077 (mips_o64_push_dummy_call): Likewise.
2078 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2079 variable LENGTH and use TYPE_LENGTH directly.
2080 (s390_function_arg_float): Likewise.
2081 (s390_function_arg_integer): Likewise.
2082 (s390_push_dummy_call): Likewise.
2083 (s390_return_value_convention): Likewise.
2084 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2085 TYPE_LENGTH directly.
2087 2012-09-17 Yao Qi <yao@codesourcery.com>
2089 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2090 Update comment to add_setshow_integer_cmd.
2091 * cli/cli-setshow.c (do_set_command): Handle case
2092 'var_zuinteger_unlimited'.
2093 (do_show_command): Likewise.
2094 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2095 for command 'remotetimeout'.
2096 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2098 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2099 for command 'set listsize'.
2101 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2103 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2106 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2109 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2110 (frame_pop): Drop also TAILCALL_FRAME frames.
2111 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2113 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2114 Pedro Alves <palves@redhat.com>
2117 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2118 function start if we are already at function start. Both for
2119 reverse-next and for reverse-step into function without line number
2122 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 Code cleanup - rename 'inline' depth to 'artificial' depth.
2125 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2126 frame_id_artificial_p, extend the comment.
2127 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2128 * frame.c (fprint_frame_id): Rename at a user, change debug output
2129 text to "artificial=".
2130 (skip_inlined_frames): Rename to ...
2131 (skip_artificial_frames): ... here. Extend the comment.
2132 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2133 (frame_id_inlined_p): Rename to ...
2134 (frame_id_artificial_p): ... here. Rename at a user.
2135 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2136 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2138 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2140 (frame_id_inlined_p): Rename to ...
2141 (frame_id_artificial_p): ... here.
2142 * inline-frame.c (inline_frame_this_id): Rename at a user.
2144 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2146 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2147 vector variables using vector_size syntax rather than array
2150 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2152 * valarith.c (value_concat): Replace unsafe ALLOCA with
2155 2012-09-14 Pedro Alves <palves@redhat.com>
2157 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2159 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2161 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2162 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2163 data-directory as appropriate.
2165 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2167 * printcmd.c (ui_printf): Eliminate single-use variable
2170 2012-09-14 Yao Qi <yao@codesourcery.com>
2171 Pedro Alves <palves@redhat.com>
2173 * valops.c (value_assign): Move observer_notify_target_changed
2174 below to replace reinit_frame_cache.
2176 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2178 Refactor Python "gdb" module into a proper Python package, by
2179 introducing a new "_gdb" module for code implemented in C, and
2180 using reload/__import__ instead of exec.
2181 * python/lib/gdb/__init__.py: Import * from _gdb.
2182 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2183 prompt_hook, sys.argv): Moved from finish_python_initialization.
2184 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2185 (packages, auto_load_packages): New list and function replacing
2186 module_dict and auto-loading code, using __file__ instead of
2187 gdb.PYTHONDIR and reload/__import__ instead of exec.
2188 (GdbSetPythonDirectory): Replacing function of the same name
2189 from finish_python_initialization, using reload/__import__ instead
2190 of exec, as well as call auto_load_packages.
2191 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2192 gdb_python_module and not gdb_module.
2193 * python/python-internal.h (gdb_python_module): Declare.
2194 * python/python.c (gdb_python_module): New global.
2195 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2196 (_initialize_python): Rename gdb module to _gdb.
2197 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2198 (finish_python_initialization): Move Python code to
2199 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2202 2012-09-13 Pedro Alves <palves@redhat.com>
2204 * Makefile.in (COMMON_OBS): Add registry.o.
2205 * registry.c: New file.
2206 * registry.h (struct registry_container): Declare.
2207 (registry_data_callback): New typedef.
2208 (struct registry_data, struct registry_data_registration, struct
2209 registry_data_registry): New type.
2210 (register_data_with_cleanup, registry_alloc_data)
2211 (registry_callback_adaptor, registry_clear_data)
2212 (registry_container_free_data, registry_set_data, registry_data):
2214 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2215 the new common structures and functions.
2216 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2219 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2221 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2222 there is an error inserting hardware breakpoints and use the
2223 error message from the target.
2225 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2226 Catch this exception and print the error message contained within. Do not
2227 print the default hardware error breakpoint message in this case.
2229 2012-09-12 Doug Evans <dje@google.com>
2231 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2234 2012-09-11 Doug Evans <dje@google.com>
2236 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2237 .gdb_index symbol attributes if there are none.
2239 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2241 * symtab.h (struct minimal_symbol) [has_size]: New field.
2242 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2243 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2244 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2245 minimal symbols if the symbol's size is actually known.
2246 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2247 of msymbol's size field. Add comment.
2248 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2249 SET_MSYMBOL_SIZE to set the minimal symbol size.
2251 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2253 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2254 minimal_symbol struct object, rather than setting some of its
2257 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2259 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2260 passed_a_ptr flag when displaying typedef types.
2262 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2264 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2265 the optimized_out flag is preserved.
2267 2012-09-10 Anthony Green <green@moxielogic.com>
2269 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2270 prologue changes in GCC.
2272 2012-09-10 Keith Seitz <keiths@redhat.com>
2275 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2276 (BOOL_CONVERSION_BADNESS): ... this.
2277 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2278 (rank_one_type): Allow all boolean conversions
2279 permitted by the standard.
2281 2012-09-06 Tom Tromey <tromey@redhat.com>
2283 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2284 Don't decref py_objfile.
2286 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2288 Do not enable -lmcheck by default when Python is enabled with
2290 * configure.ac: (python_has_threads) New variable, by testing
2291 if WITH_THREAD is defined in Python.h.
2292 Move --enable-lmcheck after --with-python.
2293 Do not enable -lmcheck by default if python_has_threads=yes.
2294 Warn if --enable-lmcheck and python_has_threads=yes.
2295 * configure: Regenerate.
2297 2012-08-31 Yao Qi <yao@codesourcery.com>
2299 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2300 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2301 Update some commands.
2302 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2303 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2306 2012-08-31 Yao Qi <yao@codesourcery.com>
2308 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2310 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2312 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2314 2012-08-29 Doug Evans <dje@google.com>
2316 * main.c (print_gdb_help): Remove reference to
2317 --use-deprecated-index-sections.
2319 2012-08-28 Yao Qi <yao@codesourcery.com>
2321 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2322 (init_cmds): Call add_setshow_uinteger_cmd for command
2323 'max-user-call-depth'.
2324 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2325 declaration of 'max_user_call_depth'.
2326 * frame.c (backtrace_limit): Add 'unsigned'.
2327 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2329 * remote.c (remoteaddresssize): Add 'unsigned'.
2330 (remote_address_masked): Change local var 'address_size' to
2332 (_initialize_remote): Call add_setshow_uinteger_cmd for
2333 'remoteaddresssize'.
2334 * top.c (history_size): Add 'unsigned'.
2335 (show_commands): Change local variables to 'unsigned'.
2336 (set_history_size_command): Don't check history_size is negative.
2337 Adjust the condition to call unstifle_history and set history_size
2340 2012-08-28 Pedro Alves <palves@redhat.com>
2344 * infcmd.c (default_print_one_register_info): New, factored out
2345 from default_print_registers_info.
2346 (default_print_registers_info): Use it. Mark value unavailable if
2348 (registers_info): Print user registers with
2349 default_print_one_register_info.
2351 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2354 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2355 is not NULL before referencing it.
2357 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2359 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2360 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2363 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2364 Jan Kratochvil <jan.kratochvil@redhat.com>
2366 * auto-load.c (auto_load_objfile_script): Rename to ...
2367 (auto_load_objfile_script_1): ... here, change variable realname to
2368 parameter realname, document it, add return value, add variable retval.
2369 (auto_load_objfile_script): New function.
2371 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2374 followed by a whitespace.
2376 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2380 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2381 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2384 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2386 * memattr.c (create_mem_region): Fix memory region overlapping
2389 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2391 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2392 with xmalloc/cleanup.
2393 * mt-tdep.c (mt_push_dummy_call): Likewise.
2394 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2395 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2397 2012-08-24 Yao Qi <yao@codesourcery.com>
2399 * jv-exp.y (push_expression_name): Add "." at the end of error
2402 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2404 Document how to return from "python-interactive" to GDB.
2405 * python/python.c (_initialize_python): Update documentation.
2407 2012-08-23 Pedro Alves <palves@redhat.com>
2409 * infrun.c (_initialize_infrun) <handle command help text>:
2410 Mention that multiple signals are supported.
2412 2012-08-23 Pedro Alves <palves@redhat.com>
2414 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2417 2012-08-23 Yao Qi <yao@codesourcery.com>
2419 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2420 (tfind_1): Don't call registers_changed, set_traceframe_num,
2421 and clear_traceframe_info.
2422 Call set_current_traceframe.
2423 (set_current_traceframe): call set_traceframe_num.
2425 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2427 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2428 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2430 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2432 Enable readline in Python in a GDB-specific way and block the
2433 standard Python readline module to prevent conflicts with GDB.
2434 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2435 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2436 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2437 * python/py-gdb-readline.c: New file.
2438 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2440 * python/python.c (_initialize_python): Call
2441 gdbpy_initialize_gdb_readline.
2443 2012-08-22 Keith Seitz <keiths@redhat.com>
2445 * defs.h: Include build-gnulib/config.h
2447 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2449 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2452 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2454 Add a new "python-interactive" command that starts a standard
2455 Python interactive prompt with "pi" as alias, and add "py" as
2456 an alias to "python".
2457 * NEWS: Mention the new commands.
2458 * python/python.c (eval_python_command): New function.
2459 (python_interactive_command): For "python-interactive" with
2460 arguments, call eval_python_command. For "python-interactive"
2461 without arguments, call PyRun_InteractiveLoop.
2462 (_initialize_python): Add "python-interactive" command with
2463 "pi" as alias, and add "py" as an alias to "python".
2465 2012-08-22 Tom Tromey <tromey@redhat.com>
2467 * defs.h (quit_flag): Don't declare.
2468 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2469 (QUIT): Use new functions.
2470 * event-top.c (command_handler): Use clear_quit_flag.
2471 (handle_sigint): Use set_quit_flag.
2472 (async_request_quit): Use check_quit_flag. Don't check
2474 * exceptions.c (throw_exception): Use clear_quit_flag.
2475 * main.c (captured_main): Use clear_quit_flag.
2476 * python/python.c (clear_quit_flag, set_quit_flag)
2477 (check_quit_flag): New functions.
2478 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2480 * remote.c (remote_wait_as): Use check_quit_flag,
2482 (remote_start_remote): Call QUIT.
2483 * symfile.c (load_progress): Use check_quit_flag.
2484 * top.c (command_loop): Use clear_quit_flag.
2485 (command_line_input): Call QUIT.
2486 * utils.c (quit_flag): Conditionally define.
2487 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2489 (prompt_for_continue): Call QUIT. Use quit, not
2491 * remote-mips.c (mips_expect_timeout): Call QUIT.
2492 * monitor.c (monitor_expect): Call QUIT.
2494 2012-08-22 Tom Tromey <tromey@redhat.com>
2496 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2497 (async_init_signals): Update.
2498 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2499 (SIGWINCH_HANDLER_BODY): Remove.
2501 2012-08-22 Tom Tromey <tromey@redhat.com>
2503 * jit.c (jit_object_close_impl): Don't malloc the objfile
2505 * objfiles.c (allocate_objfile): Don't malloc the objfile
2507 (free_objfile): Don't free the objfile name.
2508 * objfiles.h (struct objfile) <name>: Update comment.
2509 * symfile.c (reread_symbols): Fix reference counting. Don't
2510 malloc objfile name.
2512 2012-08-22 Tom Tromey <tromey@redhat.com>
2514 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2515 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2516 (symfile_bfd_open): Likewise.
2517 (generic_load): Likewise.
2518 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2519 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2521 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2523 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2524 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2525 (pmon_load_fast): Likewise.
2526 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2527 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2528 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2529 (macho_check_dsym): Likewise.
2530 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2531 (m32r_upload_command): Likewise.
2532 * gdb_bfd.h (gdb_bfd_cache): Declare.
2533 * gdb_bfd.c (struct gdb_bfd_data): New.
2534 (gdb_bfd_cache): New global.
2535 (struct gdb_bfd_cache_search): New.
2536 (hash_bfd): New function.
2538 (gdb_bfd_open): Likewise.
2539 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2540 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2542 * exec.c (exec_file_attach): Use gdb_bfd_open.
2543 * dsrec.c (load_srec): Use gdb_bfd_open.
2545 2012-08-22 Tom Tromey <tromey@redhat.com>
2547 * dwarf2read.c (macro_start_file): Update.
2548 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2549 (free_objfile_per_bfd_storage): Destroy macro_cache.
2550 (allocate_objfile, free_objfile): Update.
2551 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2553 (struct objfile) <macro_cache>: Remove.
2554 * symfile.c (reread_symbols): Update.
2555 * symmisc.c (print_symbol_bcache_statistics): Update.
2556 (print_objfile_statistics): Update.
2558 2012-08-22 Tom Tromey <tromey@redhat.com>
2560 * elfread.c (elf_symtab_read): Update.
2561 * objfiles.c (objfiles_bfd_data): New global.
2562 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2563 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2564 (allocate_objfile, free_objfile): Update.
2565 (_initialize_objfiles): Initialize objfiles_bfd_data.
2566 * objfiles.h (struct objfile_per_bfd_storage): New.
2567 (struct objfile) <per_bfd>: New field.
2568 <filename_cache>: Remove.
2569 (set_objfile_per_bfd): Declare.
2570 * symfile.c (reread_symbols): Update. Call
2571 set_objfile_per_bfd.
2572 (allocate_symtab): Update.
2573 * symmisc.c (print_symbol_bcache_statistics): Update.
2574 (print_objfile_statistics): Print the size of the BFD obstack.
2576 2012-08-22 Tom Tromey <tromey@redhat.com>
2578 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2579 * gdb_bfd.c: Use DEFINE_REGISTRY.
2580 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2581 (gdb_bfd_ref): Call bfd_alloc_data.
2582 (gdb_bfd_unref): Call bfd_free_data.
2584 2012-08-22 Tom Tromey <tromey@redhat.com>
2586 * registry.h (struct registry_fields): New.
2587 (REGISTRY_FIELDS): Redefine.
2588 (REGISTRY_ACCESS_FIELD): New macro.
2589 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2592 2012-08-22 Tom Tromey <tromey@redhat.com>
2594 * auto-load.c (_initialize_auto_load): Update.
2595 * solib-svr4.c (_initialize_svr4_solib): Update
2596 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2597 * solib-darwin.c (_initialize_darwin_solib): Update.
2598 * registry.h: New file.
2599 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2600 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2601 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2602 (register_program_space_data_with_cleanup)
2603 (register_program_space_data, program_space_alloc_data)
2604 (clear_program_space_data, set_program_space_data)
2605 (program_space_data): Don't declare.
2606 * progspace.c: Use DEFINE_REGISTRY.
2607 (struct program_space_data, struct
2608 program_space_data_registration, struct
2609 program_space_data_registry, program_space_data_registry)
2610 (register_program_space_data_with_cleanup)
2611 (register_program_space_data, program_space_alloc_data)
2612 (program_space_free_data, clear_program_space_data)
2613 (set_program_space_data, program_space_data): Remove.
2614 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2615 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2616 (register_objfile_data_with_cleanup, register_objfile_data)
2617 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2619 * objfiles.c: Use DEFINE_REGISTRY.
2620 (struct objfile_data, struct objfile_data_registration, struct
2621 objfile_data_registry, objfile_data_registry)
2622 (register_objfile_data_with_cleanup, register_objfile_data)
2623 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2624 (set_objfile_data, objfile_data): Remove.
2625 (_initialize_objfiles): Update.
2626 * jit.c (_initialize_jit): Update.
2627 * inflow.c (_initialize_inflow): Update.
2628 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2629 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2630 (register_inferior_data_with_cleanup, register_inferior_data)
2631 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2633 * inferior.c: Use DEFINE_REGISTRY.
2634 (struct inferior_data, struct inferior_data_registration, struct
2635 inferior_data_registry, inferior_data_registry)
2636 (register_inferior_data_with_cleanup, register_inferior_data)
2637 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2638 (set_inferior_data, inferior_data): Remove.
2639 * auxv.c (_initialize_auxv): Update.
2640 * ada-lang.c (_initialize_ada_language): Update.
2641 * breakpoint.c (_initialize_breakpoint): Update.
2642 * i386-nat.c (i386_use_watchpoints): Update.
2644 2012-08-22 Tom Tromey <tromey@redhat.com>
2646 * exec.c (exec_close, exec_file_attach): Update.
2647 (add_to_section_table): Initialize 'key' field.
2648 (add_target_sections, remove_target_sections): Add 'key' argument.
2649 * exec.h (add_target_sections, remove_target_sections): Add
2651 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2652 (reload_shared_libraries_1): Update.
2653 * target.h (struct target_section) <key>: New field.
2655 2012-08-22 Tom Tromey <tromey@redhat.com>
2657 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2659 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2661 * symfile.c (allocate_symtab): Use host_address_to_string
2662 function instead of cast of pointer to long which is not
2663 compatible with x86_64-w64-mingw32 build.
2665 2012-08-19 Andrew Pinski <apinski@cavium.com>
2667 * mips-tdep.c (is_octeon): New function.
2668 (is_octeon_bbit_op): New function.
2669 (mips32_next_pc): Handle Octeon's bbit instructions.
2670 (mips32_instruction_has_delay_slot): Likewise.
2672 2012-08-19 Andrew Pinski <apinski@cavium.com>
2674 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2675 before the function.
2677 2012-08-19 Andrew Pinski <apinski@cavium.com>
2679 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2681 2012-08-19 Keith Seitz <keiths@redhat.com>
2684 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2685 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2687 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2689 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2690 The typo broke "make TAGS".
2692 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2696 2012-08-17 Keith Seitz <keiths@redhat.com>
2699 * gdbtypes.c (strict_type_checking): New variable.
2700 (show_strict_type_checking): New function.
2701 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2702 if strict type checking is disabled.
2703 (_initialize_gdbtypes): Add "check type" subcommand.
2704 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2706 2012-08-17 Keith Seitz <keiths@redhat.com>
2708 * language.h (type_mode): Remove.
2709 (type_check): Remove.
2710 (struct language_defn): Remove la_type_check.
2711 (STRICT_TYPE): Remove unused macro.
2712 (type_error): Remove.
2713 * language.c (set_type_range_case): Renamed to ...
2714 (set_range_case): ... this. Update all callers.
2715 Remove type_mode/type_check.
2716 (type_mode): Remove.
2717 (type_check): Remove.
2718 (show_type_command): Remove.
2719 (set_type_command): Remove.
2720 (language_info): Remove type checking output.
2721 (type_error): Remove unused function.
2722 (range_error): Update comment.
2723 (unknown_language_defn): Remove la_type_check.
2724 (auto_language_defn): Likewise.
2725 (local_language_defn): Likewise.
2726 (_initialize_language): Remove "check type" subcommand.
2727 * ada-lang.c (ada_language_defn): Remove la_type_check.
2728 * c-lang.c (c_language_defn): Likewise.
2729 (cplus_language_defn): Likewise.
2730 (asm_language_defn): Likewise.
2731 (minimal_language_defn): Likewise.
2732 * d-lang.c (d_language_defn): Likewise.
2733 * f-lang.c (f_language_defn): Likewise.
2734 * go-lang.c (go_language_defn): Likewise.
2735 * jv-lang.c (java_language_defn): Likewise.
2736 * m2-lang.c (m2_language_defn): Likewise.
2737 * objc-lang.c (objc_language_defn): Likewise.
2738 * opencl-lang.c (opencl_language_defn): Likewise.
2739 * p-lang.c (pascal_language_defn): Likewise.
2741 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2743 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2745 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2747 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2749 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2750 using the regache. Use ia64_hpux_get_register_from_save_state_t
2751 to access the bsp and bspstore registers if not.
2753 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2755 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2756 * breakpoint.c (detach_breakpoints): Change pid parameter into
2757 a ptid. Adjust code accordingly.
2758 * infrun.c (handle_inferior_event): Delete variable child_pid.
2759 Update call to detach_breakpoints to pass the child ptid for
2761 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2762 assert that inferior_ptid's lwp is zero.
2763 (linux_handle_extended_wait): Update call to detach_breakpoints.
2764 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2767 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2769 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2770 parent, only call detach_breakpoints if tts.tts_event ==
2773 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2775 * dwarf2-frame.c (dwarf2_frame_cache): Use
2776 get_frame_address_in_block instead of get_frame_pc as
2777 the bound for executing the frame's FDE.
2779 2012-08-16 Yao Qi <yao@codesourcery.com>
2781 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2782 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2783 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2784 (c_type_print_varspec_suffix): Likewise.
2785 * eval.c (evaluate_subexp_standard): Likewise.
2786 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2787 (f_type_print_varspec_suffix): Likewise.
2788 * gdbtypes.c (is_scalar_type): Likewise.
2789 (recursive_dump_type): Likewise.
2790 * infcall.c (value_arg_coerce): Likewise.
2791 * m2-valprint.c (m2_val_print): Likewise.
2792 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2793 (pascal_type_print_varspec_suffix): Likewise.
2794 (pascal_type_print_base): Likewise.
2795 * p-valprint.c (pascal_val_print): Likewise.
2796 (pascal_val_print): Likewise.
2797 * valops.c (value_slice): Likewise.
2798 * valprint.c (scalar_type_p): Likewise.
2799 * valarith.c (value_bitstring_subscript): Remove.
2800 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2801 Remove comment on TYPE_CODE_BITSTRING.
2803 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2804 TYPE_CODE_BITSTRING.
2806 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2809 2012-08-16 Yao Qi <yao@codesourcery.com>
2811 * tracepoint.c (trace_find_none_command): Remove.
2812 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2814 2012-08-16 Yao Qi <yao@codesourcery.com>
2816 * remote.c (handle_notification): Remove parameter 'length'.
2817 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2819 2012-08-15 Keith Seitz <keiths@redhat.com>
2821 * gdbtypes.c (opaque_type_resolution): Make static.
2822 Add missing comment.
2823 (overload_debug): Add missing comment.
2824 (show_opaque_type_resolution): Likewise.
2825 (show_overload_debug): Likewise.
2826 (print_bit_vector): Remove unnecessary forward declaration.
2827 (print_arg_types): Likewise.
2828 (dump_fn_fieldlists): Likewise.
2829 (print_cplus_stuff): Likewise.
2831 2012-08-15 Tom Tromey <tromey@redhat.com>
2833 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2834 (gdb_bfd_ref): Initialize new field.
2835 (gdb_bfd_unref): Unref the archive BFD.
2836 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2839 2012-08-15 Tom Tromey <tromey@redhat.com>
2842 * python/py-bpevent.c (create_breakpoint_event_object): Update
2844 * python/py-event.c (evpy_add_attribute): Update comment.
2845 * python/py-exitedevent.c (create_exited_event_object): Fix
2846 reference counting and error handling.
2847 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2848 Fix reference counting.
2849 * python/py-signalevent.c (create_signal_event_object): Fix
2850 reference counting and error handling.
2851 * python/py-stopevent.c (emit_stop_event): Fix reference
2853 * python/py-threadevent.c (get_event_thread): Return a
2855 * python/py-type.c (convert_field): Fix reference counting.
2857 2012-08-15 Tom Tromey <tromey@redhat.com>
2859 * dwarf2read.c (dwarf_decode_macro_bytes)
2860 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2863 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2865 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2866 stepi, nexti, finish, next, step, jump, and continue commands.
2867 * infrun.c (_initialize_infrun): Update help text for the handle
2870 2012-08-14 Doug Evans <dje@google.com>
2872 * gdbtypes.c (struct extra): Delete, unused.
2874 * gdbtypes.c: Whitespace cleanup.
2875 (address_space_name_to_int): Remove "extern" from definition.
2876 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2878 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2879 TYPE_POINTER_TYPE (type).
2881 2012-08-14 Gary Benson <gbenson@redhat.com>
2883 * solib-svr4.c (svr4_free_library_list): Use free_so.
2885 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2887 * .gitignore: Add go-exp.c.
2889 2012-08-13 Doug Evans <dje@google.com>
2891 * value.c (show_convenience): Tweak comment.
2892 (_initialize_values): Mention convenience functions in the help text
2893 for "show convenience".
2895 2012-08-13 Yao Qi <yao@codesourcery.com>
2897 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2898 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2900 * eval.c (evaluate_subexp_standard): Likewise.
2901 * expprint.c (print_subexp_standard): Likewise.
2902 (dump_subexp_body_standard): Likewise.
2903 * parse.c (operator_length_standard): Likewise.
2905 2012-08-13 Yao Qi <yao@codesourcery.com>
2907 * std-operator.def: Remove OP_BITSTRING.
2908 * breakpoint.c (watchpoint_exp_is_const): Update.
2909 * eval.c (evaluate_subexp_standard): Remove handling to
2911 * expprint.c (print_subexp_standard): Likewise.
2912 (dump_subexp_body_standard): Likewise.
2913 * parse.c (operator_length_standard): Likewise.
2914 * valops.c (value_bitstring): Remove.
2915 * value.h: Remove the declaration of 'value_bitstring'.
2917 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2919 * linespec.c (find_methods): Remove unused variables `i1' and
2921 (decode_line_full): Likewise for `arg_start'.
2923 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2925 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2926 (zlib_decompress_section): Likewise for `section_data'.
2927 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2929 2012-08-10 Doug Evans <dje@google.com>
2931 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2932 * NEWS: Document them.
2933 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2935 * python/py-type.c (typy_array_1): New function.
2936 (typy_array): Call it.
2937 (typy_vector): New function.
2938 (type_object_methods): Add "vector".
2939 * python/lib/gdb/function/__init__.py: New file.
2940 * python/lib/gdb/function/strfns.py: New file.
2942 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2944 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2945 for TYPE_FIELD_BITPOS.
2946 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2948 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2951 * common/vec.h (VEC_merge): Define.
2952 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2953 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2954 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2955 * completer.c: Include gdb_signals.h.
2956 (signal_completer): Define.
2957 * completer.h (signal_completer): Add prototype.
2958 * infcmd.c (_initialize_infcmd): Assign the command
2959 completer for "signal" to handle_completer.
2960 * infrun.c: Include completer.h.
2961 (handle_completer): Define.
2962 (_initialize_infrun): Declare a new local variable c. Store the
2963 result of add_com("handle") to it. Assign the command
2964 completer for "handle" to handle_completer.
2966 2012-08-09 Yao Qi <yao@codesourcery.com>
2968 * cli/cli-decode.c (set_cmd_prefix): New.
2969 (lookup_cmd_for_prefixlist): New.
2970 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2971 of each cmd_list_element in *prefixlist.
2972 (add_setshow_cmd_full): set_cmd_prefix.
2973 (add_alias_cmd): Likewise.
2974 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2975 Declare 'auto_boolean_enums'.
2976 * cli/cli-setshow.c: Include "observer.h".
2977 (notify_command_param_changed_p): New.
2978 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2980 (do_setshow_command): Split it to ...
2981 (do_set_command, do_show_command): ... them. New.
2982 (do_set_command): Call observer_notify_command_param_changed if
2983 notify_command_param_changed_p returns true.
2984 (cmd_show_list): Caller update.
2985 * auto-load.c (set_auto_load_cmd): Likewise.
2986 * remote.c (show_remote_cmd): Likewise.
2987 * cli/cli-setshow.h: Update declarations.
2988 * top.c (execute_command): Call do_set_command and do_show_command.
2990 * NEWS: Mention new MI notification.
2991 * mi/mi-interp.c: Declare mi_command_param_changed.
2992 (mi_interpreter_init): Attach mi_command_param_changed to
2993 observer command_param_changed.
2994 (mi_command_param_changed): New.
2995 Remove mi_suppress_breakpoint_notifications.
2996 Define global variable mi_suppress_notification.
2997 (mi_breakpoint_created): Update.
2998 (mi_breakpoint_deleted): Likewise.
2999 (mi_breakpoint_modified): Likewise.
3000 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3001 'gdb-set' and set mi_suppress_notification.
3002 * mi/mi-main.h: (mi_suppress_notification): New struct.
3004 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3005 Jan Kratochvil <jan.kratochvil@redhat.com>
3007 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3009 2012-08-09 Yao Qi <yao@codesourcery.com>
3011 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3012 (skiplist): Move it to skip.c.
3013 (init_cmd_lists): Remove code setting enablebreaklist and
3015 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3016 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3018 * gdbcmd.h: Likewise.
3019 * skip.c (_initialize_step_skip): Move 'skiplist' from
3022 2012-08-09 Yao Qi <yao@codesourcery.com>
3024 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3025 * gnu-nat.c, symfile.c: Likewise.
3027 2012-08-08 Aaron Gamble <agamble@google.com>
3029 * utils.c (prompt_for_continue_wait_time): New static global.
3030 (make_command_stats_cleanup): Initialize it.
3031 (report_command_stats): Subtract time waiting for user.
3032 (prompt_for_continue): Track time waiting for user.
3033 (defaulted_query): Track time waiting for user.
3035 2012-08-08 Doug Evans <dje@google.com>
3037 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3039 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3040 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3041 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3042 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3043 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3044 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3046 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3047 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3048 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3049 (dump_prefix_expression): Handle OP_TYPE.
3051 2012-08-08 Keith Seitz <keiths@redhat.com>
3053 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3056 2012-08-08 Doug Evans <dje@google.com>
3058 * linux-thread-db.c: #include "gdb_vecs.h".
3059 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3061 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3062 (thread_db_load_search): Use a vector to iterate over path elements.
3063 Handle text appearing after "$pdir".
3065 * gdb_string.h: Moved to ...
3066 * common/gdb_string.h: ... here.
3067 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3068 gdb_string.h and gdb_assert.h.
3070 2012-08-08 Yao Qi <yao@codesourcery.com>
3072 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3073 (tic6x_value_to_register): Likewise.
3074 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3075 and set_gdbarch_value_to_register.
3077 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3078 Jean-Marc Saffroy <saffroy@gmail.com>
3081 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3082 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3083 * gcore.c (gcore_create_callback): New function comment. Add modified
3084 parameter. Only write modified regions. Set SEC_READONLY exactly
3085 according to MODIFIED.
3086 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3087 the passed modified value to FUNC.
3088 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3089 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3090 first. New variables modified and has_anonymous. Parse the lines of
3091 smaps file. Add the passed MODIFIED value to FUNC.
3092 * procfs.c (find_memory_regions_callback): Add the passed modified
3095 2012-08-06 Tom Tromey <tromey@redhat.com>
3097 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3098 (dwarf2_frame_cache): Use it.
3099 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3100 cache initialization constraint.
3102 2012-08-06 Tom Tromey <tromey@redhat.com>
3105 * varobj.c (update_dynamic_varobj_children): Don't call
3108 2012-08-06 Tom Tromey <tromey@redhat.com>
3111 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3113 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3115 * NEWS: New entry for 'cd' default parameters.
3116 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3118 2012-08-03 Tom Tromey <tromey@redhat.com>
3120 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3123 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3125 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3126 to attempting lseek/write.
3127 (inf_child_fileio_pread): Likewise for pread.
3129 2012-08-02 Yao Qi <yao@codesourcery.com>
3131 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3132 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3133 add_setshow_zinteger_cmd.
3134 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3135 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3136 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3137 instead of add_setshow_zinteger_cmd.
3138 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3139 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3140 instead of add_setshow_zinteger_cmd.
3141 * frame.c (frame_debug): Add 'unsigned'.
3142 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3143 add_setshow_zinteger_cmd.
3144 * frame.h: Update the declaration of 'frame_debug'.
3145 * gdbtypes.c (overload_debug): Add 'unsigned'.
3146 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3147 add_setshow_zinteger_cmd.
3148 * inferior.h: Update declaration of 'debug_infrun'.
3149 * infrun.c (debug_infrun): Add 'unsigned'.
3150 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3151 add_setshow_zinteger_cmd.
3152 * jit.c (jit_debug): Add 'unsigned'.
3153 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3154 add_setshow_zinteger_cmd.
3155 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3156 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3157 instead of add_setshow_zinteger_cmd.
3158 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3159 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3160 add_setshow_zinteger_cmd.
3161 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3162 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3163 instead of add_setshow_zinteger_cmd.
3164 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3165 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3166 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3167 intead of add_setshow_zinteger_cmd.
3168 * mips-tdep.c (mips_debug): Add 'unsigned'.
3169 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3170 instead of add_setshow_zinteger_cmd.
3171 * monitor.c (monitor_debug): Add 'unsigned'.
3172 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3173 add_setshow_zinteger_cmd.
3174 * observer.c (observer_debug): Add 'unsigned'.
3175 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3176 add_setshow_zinteger_cmd.
3177 * parse.c (expressiondebug): Add 'unsigned'.
3178 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3179 add_setshow_zinteger_cmd.
3180 * record.c (record_debug): Add 'unsigned'.
3181 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3182 add_setshow_zinteger_cmd.
3183 * record.h: Update the declaration of 'record_debug'.
3184 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3185 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3186 add_setshow_zinteger_cmd.
3187 * serial.c (global_serial_debug_p): Add 'unsigned'.
3188 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3189 add_setshow_zinteger_cmd.
3190 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3191 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3192 add_setshow_zinteger_cmd.
3193 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3194 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3195 add_setshow_zinteger_cmd.
3196 * target.c (targetdebug): Add 'unsigned'.
3197 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3198 add_setshow_zinteger_cmd.
3199 * valops.c (overload_debug): Add 'unsigned'.
3200 * varobj.c (varobjdebug): Add 'unsigned'.
3201 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3202 add_setshow_zinteger_cmd.
3203 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3204 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3205 instead of add_setshow_zinteger_cmd.
3207 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3208 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3209 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3210 instead of add_setshow_zinteger_cmd.
3211 * gdbarch.c, gdbarch.h: Re-generated.
3213 2012-08-02 Yao Qi <yao@codesourcery.com>
3215 * nto-tdep.c: Don't include cli/cli-decode.h and
3217 (_initialize_nto_tdep): Remove.
3218 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3220 Remove macro nto_internal_debugging.
3222 2012-08-01 Richard Henderson <rth@redhat.com>
3224 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3225 (mep-*-*) [gdb_target_obs]: Likewise.
3227 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3229 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3230 linux_get_siginfo_type.
3232 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3236 (call_function_by_hand) <ON_STACK>: Call write_memory with
3237 gdbarch_breakpoint_from_pc, if possible.
3238 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3241 2012-07-31 Yao Qi <yao@codesourcery.com>
3243 * tracepoint.c: Add 'static' for some variables.
3245 2012-07-31 Yao Qi <yao@codesourcery.com>
3247 * go32-nat.c: Declare _initialize_go32_nat.
3248 * ser-go32.c: Declare _initialize_ser_dos.
3249 * top.c (do_chdir_cleanup): Add 'static'.
3251 2012-07-30 Keith Seitz <keiths@redhat.com>
3253 * linespec.c (linespec_lex_number): A number followed
3254 by quotes is a valid number, too.
3256 2012-07-30 Tom Tromey <tromey@redhat.com>
3258 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3260 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3262 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3263 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3265 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3267 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3268 invalid or reevaluated to prevent prevent references to possibly
3269 delete'd type objects being left in the varobj.
3271 2012-07-27 Tom Tromey <tromey@redhat.com>
3272 Jan Kratochvil <jan.kratochvil@redhat.com>
3274 * copying.awk: Print buffer-read-only and vi ro markers.
3275 * copying.c: Rebuild.
3276 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3277 * gdbarch.c, gdbarch.h: Rebuild.
3278 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3279 buffer-read-only and vi ro markers.
3280 * features/arm-with-iwmmxt.c: Rebuild.
3281 * features/arm-with-m-fpa-layout.c: Rebuild.
3282 * features/arm-with-m-vfp-d16.c: Rebuild.
3283 * features/arm-with-m.c: Rebuild.
3284 * features/arm-with-neon.c: Rebuild.
3285 * features/arm-with-vfpv2.c: Rebuild.
3286 * features/arm-with-vfpv3.c: Rebuild.
3287 * features/i386/amd64-avx-linux.c: Rebuild.
3288 * features/i386/amd64-avx.c: Rebuild.
3289 * features/i386/amd64-linux.c: Rebuild.
3290 * features/i386/amd64.c: Rebuild.
3291 * features/i386/i386-avx-linux.c: Rebuild.
3292 * features/i386/i386-avx.c: Rebuild.
3293 * features/i386/i386-linux.c: Rebuild.
3294 * features/i386/i386-mmx-linux.c: Rebuild.
3295 * features/i386/i386-mmx.c: Rebuild.
3296 * features/i386/i386.c: Rebuild.
3297 * features/i386/x32-avx-linux.c: Rebuild.
3298 * features/i386/x32-avx.c: Rebuild.
3299 * features/i386/x32-linux.c: Rebuild.
3300 * features/i386/x32.c: Rebuild.
3301 * features/mips-dsp-linux.c: Rebuild.
3302 * features/mips-linux.c: Rebuild.
3303 * features/mips64-dsp-linux.c: Rebuild.
3304 * features/mips64-linux.c: Rebuild.
3305 * features/rs6000/powerpc-32.c: Rebuild.
3306 * features/rs6000/powerpc-32l.c: Rebuild.
3307 * features/rs6000/powerpc-403.c: Rebuild.
3308 * features/rs6000/powerpc-403gc.c: Rebuild.
3309 * features/rs6000/powerpc-405.c: Rebuild.
3310 * features/rs6000/powerpc-505.c: Rebuild.
3311 * features/rs6000/powerpc-601.c: Rebuild.
3312 * features/rs6000/powerpc-602.c: Rebuild.
3313 * features/rs6000/powerpc-603.c: Rebuild.
3314 * features/rs6000/powerpc-604.c: Rebuild.
3315 * features/rs6000/powerpc-64.c: Rebuild.
3316 * features/rs6000/powerpc-64l.c: Rebuild.
3317 * features/rs6000/powerpc-7400.c: Rebuild.
3318 * features/rs6000/powerpc-750.c: Rebuild.
3319 * features/rs6000/powerpc-860.c: Rebuild.
3320 * features/rs6000/powerpc-altivec32.c: Rebuild.
3321 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3322 * features/rs6000/powerpc-altivec64.c: Rebuild.
3323 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3324 * features/rs6000/powerpc-cell32l.c: Rebuild.
3325 * features/rs6000/powerpc-cell64l.c: Rebuild.
3326 * features/rs6000/powerpc-e500.c: Rebuild.
3327 * features/rs6000/powerpc-e500l.c: Rebuild.
3328 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3329 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3330 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3331 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3332 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3333 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3334 * features/rs6000/powerpc-vsx32.c: Rebuild.
3335 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3336 * features/rs6000/powerpc-vsx64.c: Rebuild.
3337 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3338 * features/rs6000/rs6000.c: Rebuild.
3339 * features/s390-linux32.c: Rebuild.
3340 * features/s390-linux32v1.c: Rebuild.
3341 * features/s390-linux32v2.c: Rebuild.
3342 * features/s390-linux64.c: Rebuild.
3343 * features/s390-linux64v1.c: Rebuild.
3344 * features/s390-linux64v2.c: Rebuild.
3345 * features/s390x-linux64.c: Rebuild.
3346 * features/s390x-linux64v1.c: Rebuild.
3347 * features/s390x-linux64v2.c: Rebuild.
3348 * features/tic6x-c62x-linux.c: Rebuild.
3349 * features/tic6x-c62x.c: Rebuild.
3350 * features/tic6x-c64x-linux.c: Rebuild.
3351 * features/tic6x-c64x.c: Rebuild.
3352 * features/tic6x-c64xp-linux.c: Rebuild.
3353 * features/tic6x-c64xp.c: Rebuild.
3355 2012-07-27 Tom Tromey <tromey@redhat.com>
3357 * c-exp.y (classify_name): Avoid assignment in condition.
3359 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3361 * amd64-windows-tdep.c: Include "frame.h".
3362 (amd64_windows_skip_trampoline_code): New function.
3363 (amd64_windows_init_abi): Add trampoline registration.
3365 2012-07-27 Yao Qi <yao@codesourcery.com>
3367 * tracepoint.c (cur_traceframe_number): Remove.
3368 (set_tfile_traceframe): Remove.
3369 (tfile_trace_find, tfile_fetch_registers): Update callers.
3370 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3371 (tfile_open, tfile_trace_find): Likewise.
3373 2012-07-27 Yao Qi <yao@codesourcery.com>
3375 * thread.c (switch_to_thread): Don't call registers_changed.
3377 2012-07-26 Tom Tromey <tromey@redhat.com>
3379 * Makefile.in (SFILES): Remove objc-exp.y.
3380 (YYFILES): Remove objc-exp.c.
3381 (YYOBJ): Remove objc-exp.o.
3382 (local-maintainer-clean): Don't mention objc-exp.c.
3383 * c-exp.y: Include objc-lang.h.
3384 (%union) <class>: New field.
3385 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3386 (exp): Clone subscript production for OBJC_LBRAC. Add various
3387 Objective C productions.
3388 (msglist, msgarglist, msgarg): New productions.
3389 (array_mod, func_mod, operator): Clone productions for
3391 (parse_string_or_char): Handle '@' strings.
3392 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3393 (classify_name): Check la_name_of_this. Recognize ObjC class
3395 * objc-exp.y: Remove.
3396 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3397 * objc-lang.h (objc_parse, objc_error): Don't declare.
3399 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3401 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3403 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3405 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3408 2012-07-26 Tom Tromey <tromey@redhat.com>
3410 * copying.c: Rebuild.
3411 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3414 2012-07-26 Tom Tromey <tromey@redhat.com>
3416 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3418 (print_objfile_statistics): Likewise.
3419 (maintenance_print_symbols): Likewise.
3420 (maintenance_print_msymbols): Likewise.
3421 (maintenance_print_objfiles): Likewise.
3422 * psymtab.c (print_partial_symbols): Call QUIT.
3423 (maintenance_print_psymbols): Likewise. Don't modify
3425 * copying.c (show_copying_command): Don't modify immediate_quit.
3426 (show_warranty_command): Likewise.
3427 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3429 2012-07-26 Keith Seitz <keiths@redhat.com>
3431 * linespec.c (linespec_lexer_lex_number): The input
3432 is also a valid number if the next character is a comma
3435 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3437 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3440 2012-07-26 Tristan Gingold <gingold@adacore.com>
3442 * machoread.c: Include gdb_bfd.h.
3444 2012-07-26 Tristan Gingold <gingold@adacore.com>
3446 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3449 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3451 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3453 (dwarf2_evaluate_loc_desc): Likewise.
3454 (dwarf2_loc_desc_needs_frame): Likewise.
3455 (locexpr_describe_location_1): Likewise.
3456 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3458 (struct dwarf2_loclist_baton): Likewise.
3459 * dwarf2read.c (struct dwarf_block): Likewise.
3460 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3461 (decode_locdesc): Expand SIZE and I to size_t.
3463 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3467 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3469 * doublest.c (convert_doublest_to_floatformat): If the exponent
3470 is too small, treat the value as zero. If the exponent is too
3471 large, treat the value as infinity.
3473 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3475 * configure.ac: Add --enable-lmcheck configure option.
3476 * configure: Regenerate.
3478 2012-07-25 Tom Tromey <tromey@redhat.com>
3480 * NEWS: Mention maint info bfds.
3481 * gdb_bfd.c (all_bfds): New global.
3482 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3483 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3486 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3488 * configure.tgt: Add v850*-*-rtems*.
3490 2012-07-25 Tom Tromey <tromey@redhat.com>
3492 * macrotab.c (macro_bcache_str): Remove cast.
3494 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3496 * linespec.c (linespec_lexer_lex_number): Update comments,
3497 change the return and add check to make sure the input is
3498 the decimal numbers.
3499 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3500 false, call linespec_lexer_lex_string.
3502 2012-07-24 Tom Tromey <tromey@redhat.com>
3504 * symfile.c (symbol_file_add): Don't open BFD twice.
3506 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3508 * breakpoint.c (create_breakpoint): Store condition for pending
3511 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3513 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3514 (m68k_return_value): Handle complex types like structures.
3515 (m68k_svr4_return_value): Likewise.
3517 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3519 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3520 parameters to bfd_get_section_name.
3522 2012-07-24 Yao Qi <yao@codesourcery.com>
3524 * cli/cli-setshow.c: Handle case 'var_uinteger'
3525 and 'var_zuninteger' together. Handle case 'var_integer' and
3526 'var_zinteger' together.
3528 2012-07-23 Keith Seitz <keiths@redhat.com>
3530 * linespec.c (convert_linespec_to_sal): Don't add
3531 any symbols to the result vector if symbol_to_sal
3534 2012-07-23 Keith Seitz <keiths@redhat.com>
3536 * linespec.c (decode_objc): Record the function name
3539 2012-07-23 Tom Tromey <tromey@redhat.com>
3541 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3543 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3544 (map_vmap): Acquire a reference to the BFD.
3546 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3548 * p-valprint.c (pascal_object_print_value): Replace potentially
3549 unsafe alloca with xmalloc/xfree.
3550 * valops.c (search_struct_method): Likewise.
3552 2012-07-23 Tom Tromey <tromey@redhat.com>
3554 * solib-svr4.c (enable_break): Update.
3555 * bfd-target.h (target_bfd_reopen): Update documentation.
3557 2012-07-23 Tom Tromey <tromey@redhat.com>
3559 * symfile.c (separate_debug_file_exists): Update.
3560 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3561 (reread_symbols): Update.
3562 * elfread.c (build_id_verify): Update.
3563 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3564 bfd_open_maybe_remote.
3566 2012-07-23 Tom Tromey <tromey@redhat.com>
3568 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3570 2012-07-23 Tom Tromey <tromey@redhat.com>
3572 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3574 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3576 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3577 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3579 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3580 * objfiles.c (allocate_objfile): Acquire a new reference.
3581 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3582 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3583 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3584 a cleanup for 'nbfd'.
3585 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3587 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3588 make a cleanup for 'abfd'.
3589 (symbol_file_add): Make a BFD cleanup.
3591 2012-07-23 Tom Tromey <tromey@redhat.com>
3593 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3594 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3595 * corelow.c (core_open): Use gdb_bfd_fopen.
3596 * dsrec.c (load_srec): Use gdb_bfd_openr.
3597 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3598 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3599 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3600 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3601 (gdb_bfd_fdopenr): New functions.
3602 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3603 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3604 (gdb_bfd_fdopenr): Declare.
3605 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3606 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3607 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3608 gdb_bfd_openr_next_archived_file.
3609 (macho_check_dsym): Use gdb_bfd_openr.
3610 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3611 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3612 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3613 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3615 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3616 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3617 gdb_bfd_openr_next_archived_file.
3618 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3620 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3622 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3623 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3624 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3625 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3626 (symfile_bfd_open): Use gdb_bfd_fopen.
3627 (generic_load): Use gdb_bfd_openr.
3628 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3630 2012-07-23 Tom Tromey <tromey@redhat.com>
3632 * bfd-target.c (target_bfd_reopen): Update.
3633 * cli/cli-dump.c (bfd_openr_with_cleanup)
3634 (bfd_openw_with_cleanup): Update.
3635 * corelow.c (core_open): Update.
3636 * dsrec.c (load_srec): Update.
3637 * exec.c (exec_file_attach): Update.
3638 * gcore.c (create_gcore_bfd): Update.
3639 * gdb_bfd.c (gdb_bfd_ref): Return void.
3640 (gdb_bfd_open): Update.
3641 * gdb_bfd.h (gdb_bfd_ref): Return void.
3643 * jit.c (jit_bfd_try_read_symtab): Update.
3644 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3645 * machoread.c (macho_symfile_read_all_oso): Update.
3646 (macho_check_dsym): Update.
3647 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3648 * remote-m32r-sdi.c (m32r_load): Update.
3649 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3650 * rs6000-nat.c (add_vmap): Update.
3651 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3653 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3654 * solib-spu.c (spu_bfd_open): Update.
3655 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3656 * spu-linux-nat.c (spu_bfd_open): Update.
3657 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3658 (generic_load): Update.
3659 * windows-nat.c (windows_make_so): Update.
3661 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3663 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3665 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3667 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3668 SIGTRAMP_FRAME unwinding.
3670 2012-07-20 Doug Evans <dje@google.com>
3672 * NEWS: Document new options "set/show use-deprecated-index-sections",
3673 and delete reference to --use-deprecated-index-sections.
3674 * symfile.h (use_deprecated_index_sections): Delete.
3675 * dwarf2read.c (use_deprecated_index_sections): Make static.
3676 (read_index_from_section): Update wording of how to load
3677 deprecated index sections.
3678 (_initialize_dwarf2_read): New options
3679 "set/show use-deprecated-index-sections".
3680 * main.c (captured_main): Delete --use-deprecated-index-sections.
3682 2012-07-20 Pedro Alves <palves@redhat.com>
3687 * infrun.c (handle_inferior_event) <new thread>: Don't special
3688 case minus_one_ptid.
3689 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3690 * linux-thread-db.c (thread_get_info_callback): Don't return early
3691 if the thread is zombie.
3692 (thread_from_lwp): Change return type to void. Rewrite stale
3694 (attach_thread): Don't return early if the thread is zombie,
3695 instead set its "dying" flag.
3696 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3697 (find_new_threads_callback): Don't return early if the thread is
3700 2012-07-20 Pedro Alves <palves@redhat.com>
3702 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3703 * target.c (target_wait): Likewise.
3704 (str_comma_list_concat_elem, do_option, target_options_to_string):
3706 * target.h (target_options_to_string): Declare.
3708 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 Tom Tromey <tromey@redhat.com>
3711 * dwarf2read.c (dwarf_decode_macros)
3712 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3713 DW_MACRO_GNU_transparent_include_alt>: New cases.
3714 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3715 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3717 2012-07-20 Tom Tromey <tromey@redhat.com>
3719 * dwarf2read.c (try_open_dwo_file): Don't call
3720 gdb_bfd_stash_filename.
3722 2012-07-20 Pedro Alves <palves@redhat.com>
3724 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3725 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3726 (i386_process_record): Tweak description comments.
3728 2012-07-20 Pedro Alves <palves@redhat.com>
3730 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3731 (i386_process_record): Use record_read_memory.
3732 * record.c (record_read_memory): New function.
3733 (record_arch_list_add_mem, record_exec_insn): Use
3735 * record.h (record_read_memory): Declare.
3737 2012-07-20 Yao Qi <yao@codesourcery.com>
3739 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3742 2012-07-19 Pedro Alves <palves@redhat.com>
3744 * record.c (record_resume): Ask the target beneath to report all
3747 2012-07-19 Doug Evans <dje@google.com>
3749 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3750 there's no section at address zero.
3751 (dwarf2_record_block_ranges): Ditto.
3753 2012-07-19 Yao Qi <yao@codesourcery.com>
3755 * command.h, remote.c: Fix a typo in comment.
3757 2012-07-19 Tom Tromey <tromey@redhat.com>
3760 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3761 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3762 OP_DECLTYPE>: New cases.
3763 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3764 (type_exp): Add new productions.
3765 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3767 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3769 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3770 OP_DECLTYPE>: New case.
3771 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3773 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3774 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3776 2012-07-19 Tom Tromey <tromey@redhat.com>
3778 * c-exp.y (enum token_flags): New.
3779 (struct token) <cxx_only>: Remove.
3781 (tokentab3, tokentab2, ident_tokens): Update.
3782 (lex_one_token): Update. Handle FLAG_SHADOW.
3784 2012-07-19 Tom Tromey <tromey@redhat.com>
3786 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3787 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3788 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3789 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3790 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3791 type_exp production where appropriate.
3792 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3793 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3794 <UNOP_MEMVAL_TYPE>: New case.
3795 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3796 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3797 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3798 <UNOP_MEMVAL_TYPE>: New case.
3799 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3800 UNOP_REINTERPRET_CAST>: Update.
3801 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3802 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3803 UNOP_REINTERPRET_CAST>: Update.
3804 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3805 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3806 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3809 2012-07-19 Yao Qi <yao@codesourcery.com>
3810 Jan Kratochvil <jan.kratochvil@redhat.com>
3812 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3813 and case 'var_optional_filename' together.
3814 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3815 instead of add_setshow_optional_filename_cmd for setshow command
3816 'args'. Set completer for 'set args'.
3818 2012-07-18 Doug Evans <dje@google.com>
3820 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3821 * common/gdb_vecs.c: New file, contents from utils.c.
3822 * common/host-defs.h: New file, contents from defs.h.
3823 * utils.h: New file, contents from defs.h.
3824 * defs.h: Move all declarations of objects defined in utils.c
3825 to utils.h (except QUIT() and related).
3826 #include "utils.h", "host-defs.h".
3827 * probe.h (probe_p): Move here from gdb_vecs.h.
3828 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3829 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3830 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3831 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3832 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3833 (COMMON_OBS): Add gdb_vecs.o.
3834 (gdb_vecs.o): New rule.
3836 2012-07-18 Keith Seitz <keiths@redhat.com>
3838 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3839 parameter. If non-zero, use SYMNAME as the canonical name
3842 (convert_linespec_to_sals): Use add_sal_to_sals for
3844 (decode_line_full): No need to "fill in missing canonical names"
3845 anymore. Simply make cleanups for the allocated names.
3847 2012-07-18 Keith Seitz <keiths@redhat.com>
3849 * linespec.c (struct linespec): Constify expression,
3850 source_filename, function_name, and label_name.
3851 (symbol_not_found_error): Make all parameters const.
3852 (linespec_parser_delete): No need to check for NULL
3853 when using xfree. Cast const char * to char * for xfree.
3855 2012-07-18 Keith Seitz <keiths@redhat.com>
3857 * breakpoint.c (invalid_thread_id_error): New function.
3858 (find_condition_and_thread): Use invalid_thread_id_error.
3859 (watch_command_1): Likewise.
3861 2012-07-18 Tom Tromey <tromey@redhat.com>
3863 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3864 * contrib/cc-with-tweaks.sh: New file.
3866 2012-07-18 Tom Tromey <tromey@redhat.com>
3868 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3869 (locate_dwz_sections): Recognize .gdb_index.
3870 (create_cus_from_index_list): New function.
3871 (create_cus_from_index): Use it. Handle .dwz data.
3872 (read_index_from_section): New function, extracted from
3874 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3877 2012-07-18 Tom Tromey <tromey@redhat.com>
3879 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3880 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3881 <is_dwz>: New field.
3882 (struct dwz_file): New.
3883 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3884 (locate_dwz_sections, dwarf2_get_dwz_file)
3885 (get_abbrev_section_for_cu): New functions.
3886 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3887 (read_and_check_type_unit_head): Add abbrev_section argument.
3888 (create_debug_types_hash_table): Update.
3889 (init_cutu_and_read_dies): Use proper abbrev section.
3890 (init_cutu_and_read_dies_no_follow): Likewise.
3891 (set_partial_user): Do nothing if PST==NULL.
3892 (read_comp_units_from_section): New function.
3893 (create_all_comp_units): Use it.
3894 (scan_partial_symbols, partial_die_parent_scope): Update.
3895 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3896 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3897 (find_partial_die): Add offset_in_dwz argument. Update.
3898 (guess_partial_die_structure_name, fixup_partial_die): Update.
3899 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3900 DW_FORM_GNU_strp_alt.
3901 (read_indirect_string_from_dwz): New function.
3902 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3903 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3904 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3905 (follow_die_offset): Add offset_in_dwz argument.
3906 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3907 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3908 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3909 Handle new macro forms.
3910 (dwarf_decode_macros): Update.
3911 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3912 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3913 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3914 (create_debug_types_hash_table): Use correct abbrev section.
3915 (get_debug_line_section): New function.
3916 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3917 (process_full_comp_unit): Pass 'required' argument to
3918 end_symtab_get_static_block.
3919 * buildsym.h (end_symtab_get_static_block): Update.
3920 * buildsym.c (end_symtab_get_static_block): Add 'required'
3922 (end_symtab, end_expandable_symtab): Update.
3924 2012-07-18 Tom Tromey <tromey@redhat.com>
3926 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3928 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3929 (zlib_decompress_section): Remove.
3930 (dwarf2_read_section): Use gdb_bfd_map_section.
3931 (munmap_section_buffer): Remove.
3932 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3933 munmap_section_buffer.
3934 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3935 (struct gdb_bfd_section_data): New.
3936 (free_one_bfd_section): New function.
3937 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3938 (get_section_descriptor, zlib_decompress_section)
3939 (gdb_bfd_map_section): New functions.
3940 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3942 2012-07-18 Tom Tromey <tromey@redhat.com>
3944 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3946 2012-07-18 Tom Tromey <tromey@redhat.com>
3948 * gdb_bfd.c (struct gdb_bfd_data): New.
3949 (gdb_bfd_cache): New global.
3950 (struct gdb_bfd_cache_search): New.
3951 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3952 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3953 * gdb_bfd.h (gdb_bfd_open): Declare.
3955 2012-07-18 Tom Tromey <tromey@redhat.com>
3957 * utils.c (make_cleanup_bfd_unref): Rename from
3958 make_cleanup_bfd_close.
3959 * defs.h (make_cleanup_bfd_unref): Rename from
3960 make_cleanup_bfd_close.
3961 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3962 (bfd_openw_with_cleanup): Update.
3963 * corelow.c (core_open): Update.
3964 * dsrec.c (load_srec): Update.
3965 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3966 * remote-m32r-sdi.c (m32r_load): Update.
3967 * remote-mips.c (mips_load_srec): Update.
3968 (pmon_load_fast): Update.
3969 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3971 (darwin_bfd_open): Update.
3972 * solib.c (solib_bfd_fopen): Update.
3973 * symfile-mem.c (symbol_file_add_from_memory): Update.
3974 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3975 (symfile_bfd_open): Update.
3976 (generic_load): Update.
3978 2012-07-18 Tom Tromey <tromey@redhat.com>
3980 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3981 (pmon_load_fast): Likewise.
3982 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3983 (m32r_upload_command): Likewise.
3984 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3985 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3986 Use make_cleanup_bfd_close.
3988 2012-07-18 Tom Tromey <tromey@redhat.com>
3990 * symfile.c (symfile_bfd_open): Don't copy name. Call
3991 gdb_bfd_stash_filename.
3992 (load_command): Open the new BFD before freeing the old.
3993 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3994 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3995 Call gdb_bfd_stash_filename.
3996 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3997 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3998 gdb_bfd_stash_filename.
3999 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4000 Free found_pathname.
4001 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4002 gdb_bfd_stash_filename.
4003 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4004 * machoread.c (macho_add_oso_symfile): Call
4005 gdb_bfd_stash_filename.
4006 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4007 gdb_bfd_stash_filename.
4008 (macho_check_dsym): Don't copy filename. Call
4009 gdb_bfd_stash_filename.
4010 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4011 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4012 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4013 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4014 * exec.c (exec_close): Don't free the BFD's filename.
4015 (exec_file_attach): Don't copy the filename. Call
4016 gdb_bfd_stash_filename.
4017 * corelow.c (core_close): Don't free the BFD's filename.
4018 (core_open): Call gdb_bfd_stash_filename.
4019 * corefile.c (reopen_exec_file): Remove #if 0 code.
4020 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4022 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4024 2012-07-18 Tom Tromey <tromey@redhat.com>
4026 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4028 (free_dwo_file): Use gdb_bfd_unref.
4029 * cli/cli-dump.c: Include gdb_bfd.h.
4030 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4031 (bfd_openr_with_cleanup): Likewise.
4032 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4034 * utils.c: Include gdb_bfd.h.
4035 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4036 * symfile.c: Include gdb_bfd.h.
4037 (separate_debug_file_exists): Use gdb_bfd_unref.
4038 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4039 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4040 (generic_load): Use gdb_bfd_ref.
4041 (reread_symbols): Use gdb_bfd_unref.
4042 * symfile-mem.c: Include gdb_bfd.h.
4043 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4044 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4045 * solib.c: Include gdb_bfd.h.
4046 (solib_bfd_fopen): Use gdb_bfd_ref.
4047 (solib_bfd_open): Use gdb_bfd_unref.
4048 (free_so_symbols): Use gdb_bfd_unref.
4049 (reload_shared_libraries_1): Use gdb_bfd_unref.
4050 * solib-spu.c: Include gdb_bfd.h.
4051 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4052 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4054 * solib-frv.c: Include gdb_bfd.h.
4055 (enable_break2): Use gdb_bfd_unref.
4056 * solib-dsbt.c: Include gdb_bfd.h.
4057 (enable_break2): Use gdb_bfd_unref.
4058 * solib-darwin.c: Include gdb_bfd.h.
4059 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4061 (darwin_bfd_open): Use gdb_bfd_unref.
4062 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4063 * remote-mips.c: Include gdb_bfd.h.
4064 (mips_load_srec): Use gdb_bfd_ref.
4065 (pmon_load_fast): Use gdb_bfd_ref.
4066 * remote-m32r-sdi.c: Include gdb_bfd.h.
4067 (m32r_load): Use gdb_bfd_ref.
4068 * record.c: Include gdb_bfd.h.
4069 (record_save_cleanups): Use gdb_bfd_unref.
4070 (cmd_record_save): Use gdb_bfd_unref.
4071 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4073 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4074 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4075 * objfiles.c: Include gdb_bfd.h.
4076 (free_objfile): Use gdb_bfd_unref.
4077 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4079 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4080 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4081 (macho_check_dsym): Likewise.
4082 * m32r-rom.c: Include gdb_bfd.h.
4083 (m32r_load): Use gdb_bfd_ref.
4084 (m32r_upload_command): Use gdb_bfd_ref.
4085 * jit.c: Include gdb_bfd.h.
4086 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4087 * gdb_bfd.h: New file.
4088 * gdb_bfd.c: New file.
4089 * gcore.c: Include gdb_bfd.h.
4090 (create_gcore_bfd): Use gdb_bfd_ref.
4091 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4092 (gcore_command): Use gdb_bfd_unref.
4093 * exec.c: Include gdb_bfd.h.
4094 (exec_close): Use gdb_bfd_unref.
4095 (exec_close_1): Use gdb_bfd_unref.
4096 (exec_file_attach): Use gdb_bfd_ref.
4097 * elfread.c: Include gdb_bfd.h.
4098 (build_id_verify): Use gdb_bfd_unref.
4099 * dsrec.c: Include gdb_bfd.h.
4100 (load_srec): Use gdb_bfd_ref.
4101 * corelow.c: Include gdb_bfd.h.
4102 (core_close): Use gdb_bfd_unref.
4103 (core_open): Use gdb_bfd_ref.
4104 * bfd-target.c: Include gdb_bfd.h.
4105 (target_bfd_xclose): Use gdb_bfd_unref.
4106 (target_bfd_reopen): Use gdb_bfd_ref.
4107 * Makefile.in (SFILES): Add gdb_bfd.c.
4108 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4109 (COMMON_OBS): Add gdb_bfd.o.
4111 2012-07-18 Keith Seitz <keiths@redhat.com>
4113 * breakpoint.c (find_condition_and_thread): Initialize
4115 (create_breakpiont): find_condition_and_thread will now
4116 initialize COND_STRING, THREAD, and REST (and TASK).
4117 (addr_string_to_sals): Likewise.
4119 2012-07-18 Pedro Alves <palves@redhat.com>
4121 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4122 Pull the single step breakpoints out of the target.
4124 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4126 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4127 * stap-probe.c (compile_probe_arg): Likewise.
4129 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4131 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4132 (elf_compile_to_ax): Likewise.
4133 * infrun.c (insert_exception_resume_from_probe): Likewise.
4134 (check_exception_resume): Remove `objfile' variable.
4135 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4136 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4137 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4138 (compare_entries): Rename to...
4139 (compare_probes): ...this. Adjust function to work with
4140 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4142 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4144 (print_ui_out_info): Adjust argument to be `struct probe *'.
4145 (info_probes_for_ops): Adjust internal computations to use
4147 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4148 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4149 gen_info_probes_table_values>: Remove `objfile' argument.
4150 (struct probe) <objfile>: New field.
4151 (find_probe_by_pc): Remove `objfile' argument.
4152 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4153 (stap_get_probe_argument_count): Likewise.
4154 (stap_get_arg): Likewise.
4155 (stap_evaluate_probe_argument): Likewise.
4156 (stap_compile_to_ax): Likewise.
4157 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4158 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4159 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4160 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4161 sym_compile_to_ax>: Likewise.
4163 2012-07-18 Terry Guo <terry.guo@arm.com>
4166 * defs.h (GDB_MI_MSG_WIDTH): New.
4167 * ser_base (ser_base_read_error_fd): New function.
4168 (do_ser_base_readchar): Poll error file descriptor as well as
4170 (generic_readchar): Refactor error handling.
4172 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4174 * NEWS: Create a new section for the next release branch.
4175 Rename the section of the current branch, now that it has
4178 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4180 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4181 * version.in: Bump version to 7.5.50.20120718-cvs.
4183 2012-07-17 Keith Seitz <keiths@redhat.com>
4185 * linespec.c (linespec_parse_line_offset): Make parameter
4188 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4191 * f-valprint.c (info_common_command): New variable frame_id.
4192 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4193 * printcmd.c (print_variable_and_value): Extend function comment.
4194 Add comment for invalidated FRAME.
4195 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4196 FI form FRAME_ID after each print_frame_local_vars.
4197 (struct print_variable_and_value_data): Change frame to frame_id.
4198 (do_print_variable_and_value): New variable frame, initialize it from
4199 p->frame_id. Add comment for invalidated FRAME.
4200 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4201 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4202 for invalidated FRAME.
4204 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4205 Pedro Alves <palves@redhat.com>
4207 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4210 2012-07-16 Tom Tromey <tromey@redhat.com>
4212 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4214 2012-07-15 Doug Evans <dje@google.com>
4216 * dwarf2read.c (stmt_list_hash): New struct.
4217 (type_unit_group): Embed "per_cu" member, remove pointer.
4218 New union member "t", move member "tus" into it, all uses updated.
4219 New member "hash", replaces member "line_offset, all uses updated.
4220 (quick_file_names): Replace member "offset" with "hash", all uses
4222 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4223 (hash_file_name_entry, eq_file_name_entry): Call them.
4224 (hash_type_unit_group, eq_type_unit_group): Ditto.
4225 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4226 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4227 (dw2_get_file_names): Update.
4228 (create_type_unit_group): Replace "per_cu" arg with "cu".
4229 All callers updated. Fix "quick" (.gdb_index) handling.
4230 (get_type_unit_group): Replace "per_cu" arg with "cu".
4231 All callers updated.
4232 (build_type_unit_groups): Don't reset tu_stats.
4234 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4235 "tab_cur_size". Change member "tab" to be a htab_t.
4236 (create_filename_seen_cache): Update.
4237 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4238 (filename_seen): Update.
4240 2012-07-13 Doug Evans <dje@google.com>
4242 * symtab.c (filename_seen): Update comment.
4244 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4245 Doug Evans <dje@google.com>
4247 * buildsym.c (end_symtab_1): Split it to ...
4248 (end_symtab_get_static_block): ... this ...
4249 (end_symtab_from_static_block): ... and this function.
4250 (end_symtab, end_expandable_symtab): Call them.
4251 * buildsym.h (end_symtab_get_static_block)
4252 (end_symtab_from_static_block): New declarations.
4253 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4254 Set its valid CU ranges.
4256 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4258 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4259 DW_OP_GNU_parameter_ref.
4261 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4263 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4264 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4266 2012-07-13 Doug Evans <dje@google.com>
4268 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4269 (filename_seen_cache): New struct.
4270 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4271 (create_filename_seen_cache): New function.
4272 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4273 (filename_seen): Delete arg "first". New arg "cache". All callers
4275 (output_source_filename_data): New struct.
4276 (output_source_filename): Delete arg "first". New arg "data".
4277 All callers updated.
4278 (sources_info): Delete local "first". New locals "data", "cleanups".
4279 Rewrite to use filename_seen_cache.
4280 (add_partial_filename_data): Delete member "first". New member
4281 "filename_seen_cache". All uses updated.
4282 (make_source_files_completion_list): Rewrite to use
4283 filename_seen_cache.
4285 2012-07-12 Doug Evans <dje@google.com>
4287 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4289 2012-07-10 Doug Evans <dje@google.com>
4292 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4293 all_type_unit_groups, type_unit_groups, tu_stats.
4294 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4295 All uses updated. Add type_unit_group to union "s".
4296 (type_unit_group): New struct.
4297 (IS_TYPE_UNIT_GROUP): New macro.
4298 (abbrev_table): Delete unused member "section".
4299 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4300 (dw2_get_cu): Assert not used with type_unit_group.
4301 (dw2_get_primary_cu): New function.
4302 (dw2_build_type_unit_groups_reader): New function.
4303 (dw2_build_type_unit_groups): New function.
4304 (dw2_get_file_names): Assert not called on type units.
4305 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4306 Redo loop to iterate over type unit groups instead of type units.
4307 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4308 (read_abbrev_offset): New function.
4309 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4311 (create_partial_symtab): New function.
4312 (process_psymtab_comp_unit_reader): Assert not used with type units.
4313 Call create_partial_symtab.
4314 (process_psymtab_type_unit): Delete.
4315 (hash_type_unit_group, eq_type_unit_group): New functions.
4316 (allocate_type_unit_groups_table): New function.
4317 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4318 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4319 (create_type_unit_group, get_type_unit_group): New functions.
4320 (tu_abbrev_offset): New struct.
4321 (sort_tu_by_abbrev_offset): New function.
4322 (add_type_unit_group_to_table): New function.
4323 (build_type_unit_groups): New function.
4324 (build_type_psymtabs_reader): New function.
4325 (build_type_psymtab_dependencies): New function.
4326 (build_type_psymtabs): Rewrite.
4327 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4328 is seen in a type unit.
4329 (process_queue): Move symtab expansion debugging printfs here.
4330 Call process_full_type_unit for type units.
4331 (compute_symtab_includes): Assert not called for type units.
4332 (process_cu_includes): Don't call compute_symtab_includes for
4334 (process_full_type_unit): New function.
4335 (process_imported_unit_die): Flag an error if called for type units.
4336 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4337 updated. Assert not called for type units.
4338 (read_file_scope): Call dwarf2_start_symtab.
4339 (setup_type_unit_groups): New function.
4340 (read_type_unit_scope): Rewrite.
4341 (abbrev_table_read_table): Initialize abbrev_table->offset.
4342 (abbrev_table_free_cleanup): New function.
4343 (dwarf2_start_symtab): New function.
4344 (load_full_type_unit): Assert not called for type unit groups.
4345 * buildsym.c (finish_block_internal): New arg "expandable".
4346 All callers updated.
4347 (start_symtab): Move most contents to ...
4348 (restart_symtab): ... here. New function.
4349 (reset_symtab_globals): New function.
4350 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4351 Call reset_symtab_globals.
4352 (end_symtab, end_expandable_symtab): New functions.
4353 (set_missing_symtab, augment_type_symtab): New functions.
4354 * buildsym.h (end_expandable_symtab): Declare.
4355 (augment_type_symtab, restart_symtab): Declare.
4356 * psympriv.h (struct partial_symtab): New member "anonymous".
4357 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4359 (read_psymtabs_with_filename): Ditto.
4360 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4361 (expand_symtabs_matching_via_partial): Ditto.
4362 (dump_psymtab): Update.
4363 * dictionary.c (dict_add_pending): New function.
4364 * dictionary.h (dict_add_pending): Declare.
4366 2012-07-09 Doug Evans <dje@google.com>
4368 * buildsym.c (start_subfile): Remove unnecessary check for
4371 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4373 * dwarf2read.c (load_full_type_unit): Simplify.
4375 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4376 to struct signatured_type **. All uses updated.
4378 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4379 All callers updated.
4381 2012-07-09 Tom Tromey <tromey@redhat.com>
4383 * c-exp.y (check_parameter_typelist): New function.
4384 (parameter_typelist): Call it.
4385 * eval.c (make_params): Handle '(void)' case.
4386 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4389 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4391 * common/linux-ptrace.c: Include gdb_assert.h.
4392 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4393 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4395 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4397 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4398 * linux-nat.c (linux_child_post_attach)
4399 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4401 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4403 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4404 nptl <2.7 bug workaround for core files.
4406 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4408 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4410 (save_siginfo): Remove.
4411 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4413 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4414 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4415 * linux-nat.h (struct lwp_info): Remove field siginfo.
4417 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4419 Code cleanup for the next patch.
4420 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4421 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4423 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4424 (ia64_linux_stopped_data_address):
4425 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4427 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4428 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4429 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4432 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4435 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4436 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4438 2012-07-06 Tom Tromey <tromey@redhat.com>
4440 * c-exp.y (DOTDOTDOT): New token.
4441 (func_mod, exp): Use parameter_typelist.
4442 (parameter_typelist): New production.
4443 (tokentab3): Add "..." token.
4444 * eval.c (make_params): Handle varargs.
4445 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4448 2012-07-06 Tom Tromey <tromey@redhat.com>
4451 * c-exp.y (%union) <tvec>: Change type.
4452 (func_mod): Now uses <tvec> type.
4453 (exp): Update for tvec change.
4454 (direct_abs_decl): Push the typelist.
4455 (func_mod): Return a typelist.
4456 (nonempty_typelist): Update for tvec change.
4457 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4458 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4459 * parse.c (pop_type_list): New function.
4460 (push_typelist): New function.
4461 (follow_types): Handle tp_function_with_arguments.
4462 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4463 (enum type_pieces) <tp_function_with_arguments>: New constant.
4464 (union type_stack_elt) <typelist_val>: New field.
4465 (push_typelist): Declare.
4467 2012-07-06 Tom Tromey <tromey@redhat.com>
4469 * c-exp.y (%union) <type_stack>: New field.
4470 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4471 (ptr_operator_ts): New production.
4473 * parse.c (type_stack_reserve): New function.
4474 (check_type_stack_depth): Use it.
4475 (pop_type_stack, append_type_stack, push_type_stack)
4476 (get_type_stack, type_stack_cleanup): New functions.
4477 (follow_types): Handle tp_type_stack.
4478 (_initialize_parse): Simplify initialization.
4479 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4481 (union type_stack_elt) <stack_val>: New field.
4482 (get_type_stack, append_type_stack, push_type_stack)
4483 (type_stack_cleanup): Declare.
4485 2012-07-06 Tom Tromey <tromey@redhat.com>
4487 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4489 (struct type_stack): New.
4490 * parse.c (type_stack, type_stack_size, type_stack_depth):
4492 (type_stack): New global.
4493 (parse_exp_in_context, check_type_stack_depth)
4494 (insert_into_type_stack, insert_type, push_type, push_type_int)
4495 (insert_type_address_space, pop_type, pop_type_int)
4496 (_initialize_parse): Update.
4498 2012-07-06 Tom Tromey <tromey@redhat.com>
4500 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4503 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4505 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4507 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4508 Jan Kratochvil <jan.kratochvil@redhat.com>
4510 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4511 alloca with xmalloc/xfree.
4513 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4515 * MAINTAINERS (Write After Approval): Add myself to the list.
4517 2012-07-05 Doug Evans <dje@google.com>
4519 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4521 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4523 * ax-gdb.c (cli/cli-utils.h): New include.
4524 (linespec.h): Ditto.
4525 (agent_eval_command_one): New function.
4526 (agent_command_1): Ditto.
4527 (agent_command): Call function agent_command_1.
4528 (agent_eval_command): Ditto.
4529 (_initialize_ax_gdb): Change help for "maint agent"
4530 and "maint agent-eval".
4532 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4534 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4535 * cli/cli-utils.c (check_for_argument): New function.
4536 * cli/cli-utils.h (check_for_argument): Ditto.
4538 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4540 * NEWS: Mention x32 ABI support.
4542 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4544 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4545 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4547 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4548 and pc_regnum_from_eax to -1. Update SP regnum from
4549 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4552 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4555 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4557 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4558 * dwarf2expr.h: Include gdbtypes.h.
4559 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4560 these forward declarations.
4561 (cu_offset, sect_offset): Move these ...
4562 * gdbtypes.h: Remove include dwarf2expr.h.
4563 (cu_offset, sect_offset): ... here.
4565 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4567 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4568 (amd64_linux_sigtramp_code): This.
4569 (amd64_x32_linux_sigtramp_code): New.
4570 (LINUX_SIGTRAMP_LEN): Updated.
4571 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4573 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4575 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4577 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * config.in: Regenerate.
4580 * configure: Regenerate.
4581 * configure.ac: Remove check for gnu/libc-version.h.
4582 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4584 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4585 variables libc_version, libc_major and libc_minor. Replace sscanf by
4586 inferior_has_bug. Extend the comment.
4588 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4590 * linux-thread-db.c (inferior_has_bug): New function.
4591 (thread_db_find_new_threads_silently): Return boolean as checked by
4592 inferior_has_bug, describe it in the comments.
4593 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4594 earlier. Abort the initialization if it returned non-zero.
4595 (thread_db_new_objfile): Exclude debug files.
4596 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4599 2012-07-02 Doug Evans <dje@google.com>
4601 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4602 related to queue management.
4604 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4605 instead of "debug dwarf2-die" in debugging printfs.
4606 (create_debug_info_hash_table_reader): Ditto.
4607 (create_debug_info_hash_table): Ditto.
4608 (init_dwo_file): Ditto.
4609 (init_cutu_and_read_dies): Add debugging printf.
4610 (init_cutu_and_read_dies_no_follow): Ditto.
4611 (process_psymtab_comp_unit_reader): Ditto.
4613 2012-07-02 Stan Shebs <stan@codesourcery.com>
4615 Add target-side support for dynamic printf.
4616 * NEWS: Mention the additional style.
4617 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4618 (struct bp_location): New field cmd_bytecode.
4619 * breakpoint.c: Include format.h.
4620 (disconnected_dprintf): New global.
4621 (parse_cmd_to_aexpr): New function.
4622 (build_target_command_list): New function.
4623 (insert_bp_location): Call it.
4624 (remove_breakpoints_pid): Skip dprintf breakpoints.
4625 (print_one_breakpoint_location): Ditto.
4626 (dprintf_style_agent): New global.
4627 (dprintf_style_enums): Add dprintf_style_agent.
4628 (update_dprintf_command_list): Add agent case.
4629 (agent_printf_command): New function.
4630 (_initialize_breakpoint): Add new commands.
4631 * common/ax.def (printf): New bytecode.
4632 * ax.h (ax_string): Declare.
4633 * ax-gdb.h (gen_printf): Declare.
4634 * ax-gdb.c: Include cli-utils.h, format.h.
4635 (gen_printf): New function.
4636 (maint_agent_print_command): New function.
4637 (_initialize_ax_gdb): Add maint agent-printf command.
4638 * ax-general.c (ax_string): New function.
4639 (ax_print): Add printf disassembly.
4640 * Makefile.in (SFILES): Add format.c
4641 (COMMON_OBS): Add format.o.
4642 * common/format.h: New file.
4643 * common/format.c: New file.
4644 * printcmd.c: Include format.h.
4645 (ui_printf): Call parse_format_string.
4646 * remote.c (remote_state): New field breakpoint_commands.
4647 (PACKET_BreakpointCommands): New enum.
4648 (remote_breakpoint_commands_feature): New function.
4649 (remote_protocol_features): Add new BreakpointCommands entry.
4650 (remote_can_run_breakpoint_commands): New function.
4651 (remote_add_target_side_commands): New function.
4652 (remote_insert_breakpoint): Call it.
4653 (remote_insert_hw_breakpoint): Ditto.
4654 (_initialize_remote): Add new packet configuration for
4655 target-side breakpoint commands.
4656 * target.h (struct target_ops): New field
4657 to_can_run_breakpoint_commands.
4658 (target_can_run_breakpoint_commands): New macro.
4659 * target.c (update_current_target): Handle
4660 to_can_run_breakpoint_commands.
4662 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4664 Execute -ix and -iex only after system and user gdbinit files.
4665 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4666 processing down after gdbinit files.
4668 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4670 Add fnmatch-gnu module.
4671 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4672 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4673 * gnulib/aclocal.m4: Regenerate.
4674 * gnulib/config.in: Regenerate.
4675 * gnulib/configure: Regenerate.
4676 * gnulib/import/dummy.c: Remove.
4677 * gnulib/import/Makefile.am: Regenerate.
4678 * gnulib/import/Makefile.in: Likewise.
4679 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4680 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4681 * gnulib/import/alloca.c: New file.
4682 * gnulib/import/alloca.in.h: Likewise.
4683 * gnulib/import/config.charset: Likewise.
4684 * gnulib/import/fnmatch.c: Likewise.
4685 * gnulib/import/fnmatch.in.h: Likewise.
4686 * gnulib/import/fnmatch_loop.c: Likewise.
4687 * gnulib/import/localcharset.c: Likewise.
4688 * gnulib/import/localcharset.h: Likewise.
4689 * gnulib/import/m4/alloca.m4: Likewise.
4690 * gnulib/import/m4/codeset.m4: Likewise.
4691 * gnulib/import/m4/configmake.m4: Likewise.
4692 * gnulib/import/m4/fcntl-o.m4: Likewise.
4693 * gnulib/import/m4/fnmatch.m4: Likewise.
4694 * gnulib/import/m4/glibc21.m4: Likewise.
4695 * gnulib/import/m4/localcharset.m4: Likewise.
4696 * gnulib/import/m4/locale-fr.m4: Likewise.
4697 * gnulib/import/m4/locale-ja.m4: Likewise.
4698 * gnulib/import/m4/locale-zh.m4: Likewise.
4699 * gnulib/import/m4/mbrtowc.m4: Likewise.
4700 * gnulib/import/m4/mbsinit.m4: Likewise.
4701 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4702 * gnulib/import/m4/mbstate_t.m4: Likewise.
4703 * gnulib/import/m4/stdbool.m4: Likewise.
4704 * gnulib/import/m4/wchar_h.m4: Likewise.
4705 * gnulib/import/m4/wctype_h.m4: Likewise.
4706 * gnulib/import/m4/wint_t.m4: Likewise.
4707 * gnulib/import/mbrtowc.c: Likewise.
4708 * gnulib/import/mbsinit.c: Likewise.
4709 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4710 * gnulib/import/mbsrtowcs-state.c: Likewise.
4711 * gnulib/import/mbsrtowcs.c: Likewise.
4712 * gnulib/import/ref-add.sin: Likewise.
4713 * gnulib/import/ref-del.sin: Likewise.
4714 * gnulib/import/stdbool.in.h: Likewise.
4715 * gnulib/import/streq.h: Likewise.
4716 * gnulib/import/strnlen1.c: Likewise.
4717 * gnulib/import/strnlen1.h: Likewise.
4718 * gnulib/import/verify.h: Likewise.
4719 * gnulib/import/wchar.in.h: Likewise.
4720 * gnulib/import/wctype.in.h: Likewise.
4722 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 Support shell wildcards for 'set auto-load safe-path'.
4725 * auto-load.c: Include fnmatch.h.
4726 (filename_is_in_dir): Rename to ...
4727 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4728 it. Update function comment. Rename dir_len to pattern_len. New
4729 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4730 messages. Use gdb_filename_fnmatch.
4731 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4733 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4734 * defs.h (gdb_filename_fnmatch): New declaration.
4735 * utils.c: Include fnmatch.h.
4736 (gdb_filename_fnmatch): New function.
4738 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4740 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4741 `-probe' and `-probe-stap' options.
4743 2012-07-01 Yao Qi <yao@codesourcery.com>
4745 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4746 always_inserted_off, and always_inserted_enums.
4747 Change always_inserted_mode's type to 'enum auto_boolean'.
4748 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4750 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4751 of add_setshow_enum_cmd.
4752 * infrun.c: Remove can_use_displaced_stepping_auto,
4753 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4754 can_use_displaced_stepping_enum.
4755 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4756 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4757 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4758 add_setshow_enum_cmd.
4760 2012-06-30 Doug Evans <dje@google.com>
4762 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4763 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4764 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4766 2012-06-29 Doug Evans <dje@google.com>
4768 * linespec.c: #include "stack.h".
4769 (decode_line_with_current_source): Moved here from symtab.c and
4770 renamed from decode_line_spec. All callers updated.
4771 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4772 renamed from decode_line_spec_1. All callers updated.
4773 * linespec.h (decode_line_with_current_source): Move declaration here
4774 from symtab.h and renamed from decode_line_spec.
4775 (decode_line_with_last_displayed): Move declaration here from symtab.h
4776 and renamed from decode_line_spec_1.
4777 * macrocmd.c: #include "linespec.h".
4778 * symtab.c: Remove #include "linespec.h".
4780 2012-06-28 Doug Evans <dje@google.com>
4782 * dwarf2read.c (get_cu_length): New function.
4783 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4784 (create_debug_types_hash_table): Ditto.
4785 (init_cutu_and_read_dies): Ditto.
4786 (init_cutu_and_read_dies_no_follow): Ditto.
4788 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4790 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4791 (struct abbrev_table): Define.
4792 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4794 (init_cutu_and_read_dies): Update.
4795 (abbrev_table_alloc_abbrev): New function. Replaces
4796 dwarf_alloc_abbrev. All callers updated.
4797 (abbrev_table_add_abbrev): New function.
4798 (abbrev_table_lookup_abbrev): New function. Replaces
4799 dwarf2_lookup_abbrev. All callers updated.
4800 (abbrev_table_read_table): New function. Contents moved here from
4801 dwarf2_read_abbrevs.
4802 (dwarf2_read_abbrevs): Call it.
4803 (abbrev_table_free): New function.
4804 (dwarf2_free_abbrev_table): Call it.
4806 2012-06-28 Stan Shebs <stan@codesourcery.com>
4808 * osdata.c (info_osdata_command): Filter out "Title" columns
4810 * common/linux-osdata.c (struct osdata_type): Add title field.
4811 (osdata_table): Add titles to each entry.
4812 (linux_command_xfer_osdata): Add a column for title data.
4814 2012-06-28 Stan Shebs <stan@codesourcery.com>
4816 Make logging work for MI.
4818 * interps.h (interp_set_logging_ftype): New typedef.
4819 (struct interp_procs): New field set_logging_proc.
4820 (current_interp_set_logging): Declare.
4821 * interps.c (current_interp_set_logging): New function.
4822 * cli/cli-logging.c: Include interps.h.
4823 (set_logging_redirect): Call current_interp_set_logging.
4824 (pop_output_files): Ditto.
4825 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4826 * mi/mi-console.h (mi_console_set_raw): Declare.
4827 * mi/mi-console.c (mi_console_set_raw): New function.
4828 * mi/mi-interp.c (saved_raw_stdout): New global.
4829 (mi_set_logging): New function.
4830 (_initialize_mi_interp): Add it to interp procs.
4832 2012-06-28 Doug Evans <dje@google.com>
4834 * symtab.c (lookup_symbol_aux_objfile): Use
4835 ALL_OBJFILE_PRIMARY_SYMTABS.
4837 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4839 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4841 * common/buffer.c: Include inttypes.h and stdint.h.
4842 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4844 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4845 Pedro Alves <palves@redhat.com>
4847 * gdbthread.h (ALL_THREADS): New macro.
4848 (thread_list): Declare.
4849 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4850 going, but instead fall through to the stepping handling.
4851 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4852 the passed in signal. Adjust debug output.
4853 (resume_callback): Rename to ...
4854 (linux_nat_resume_callback): ... this. Pass the thread's last
4855 stop signal, if in "pass" state.
4856 (linux_nat_resume): Adjust to rename.
4857 (stop_wait_callback): New assertion. Don't respawn signals;
4858 instead let the LWP remain with SIGNALLED set.
4859 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4860 * remote.c (append_pending_thread_resumptions): New.
4861 (remote_vcont_resume): Call it.
4862 * target.h (target_resume): Extend comment.
4864 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4866 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4868 2012-06-27 Doug Evans <dje@google.com>
4870 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4871 Delete have_addr_base, unused. All uses updated.
4872 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4873 (dwarf2_get_pc_bounds): Add ranges_base.
4874 (dwarf2_record_block_ranges): Ditto.
4876 2012-06-27 Tom Tromey <tromey@redhat.com>
4879 * varobj.c (varobj_create): Update.
4880 (varobj_set_value): Update.
4881 * tracepoint.c (validate_actionline): Update.
4882 (encode_actions_1): Update.
4883 * parse.c (parse_exp_1): Add 'pc' argument.
4884 (parse_exp_in_context): Add 'pc' argument. Change how
4885 expression_context_pc is set.
4886 (parse_expression): Update.
4887 (parse_field_expression): Update.
4888 * expression.h (parse_exp_1): Update.
4889 * eval.c (parse_to_comma_and_eval): Update.
4890 * breakpoint.c (set_breakpoint_condition): Update.
4891 (update_watchpoint): Update.
4892 (init_breakpoint_sal): Update
4893 (find_condition_and_thread): Update.
4894 (watch_command_1): Update.
4895 (update_breakpoint_locations): Update.
4896 * ada-lang.c (ada_read_renaming_var_value): Update.
4897 (create_excep_cond_exprs): Update.
4899 2012-06-27 Doug Evans <dje@google.com>
4901 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4904 2012-06-26 Doug Evans <dje@google.com>
4906 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4908 (error_check_comp_unit_head): New arg abbrev_section. All callers
4910 (read_and_check_comp_unit_head): Ditto.
4911 (read_and_check_type_unit_head): Ditto.
4913 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4915 New attribute 'last' for gdb.Symtab_and_line.
4916 * NEWS (Python Scripting): Add entry about the new attribute.
4917 * python/py-symtab.c (salpy_get_last): New function which
4918 implements the get method for the 'last' attribute of
4919 gdb.Symtab_and_line.
4920 (sal_object_getset): Add entry for the 'last' attribute.
4922 2012-06-26 Doug Evans <dje@google.com>
4924 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4925 (dwo_sections): Add macinfo, macro.
4926 (dwarf2_locate_dwo_sections): Watch for macro sections.
4927 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4928 All callers updated. Handle DWO files.
4930 * NEWS: Mention new options "set debug dwarf2-read" and
4931 "set debug symtab-create".
4932 * dwarf2read.c (dwarf2_read_debug): New static global.
4933 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4934 (process_queue): Ditto.
4935 (process_full_comp_unit): Ditto.
4936 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4937 * elfread.c (elf_symfile_read): Add debugging printf.
4938 * minsyms.c (install_minimal_symbols): Ditto.
4939 * psymtab.c (allocate_psymtab): Ditto.
4940 * symfile.c (allocate_symtab): Ditto.
4941 * symtab.c (symtab_create_debug): New global.
4942 (_initialize_symtab): Add new option "set debug symtab-create".
4943 * symtab.h (symtab_create_debug): Declare.
4945 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4946 (lookup_dwo_type_unit): Ditto.
4948 2012-06-26 Roland McGrath <roland@hack.frob.com>
4949 H.J. Lu <hongjiu.lu@intel.com>
4951 * amd64-linux-nat.c: Include <sys/user.h>.
4952 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4953 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4954 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4956 * configure.ac: Check if the fs_base and gs_base members of
4957 `struct user_regs_struct' exist.
4958 * config.in: Regenerated.
4959 * configure: Likewise.
4961 2012-06-25 Michael Eager <eager@eagercon.com>
4964 * python/python.c (gdbpy_write): Check for interrupted output.
4966 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4968 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4969 register as a stack alignment in ARM mode.
4971 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4973 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4974 * gnulib/config.in: Regenerate.
4975 * gnulib/configure: Likewise.
4976 * gnulib/import/m4/extensions.m4: Update it.
4977 * gnulib/import/m4/gnulib-common.m4: Likewise.
4978 * gnulib/import/m4/memmem.m4: Likewise.
4979 * gnulib/import/m4/mmap-anon.m4: Likewise.
4980 * gnulib/import/m4/multiarch.m4: Likewise.
4981 * gnulib/import/stdint.in.h: Likewise.
4983 2012-06-24 Yao Qi <yao@codesourcery.com>
4985 * corefile.c (write_memory_with_notification): New.
4986 * gdbcore.h: Declare write_memory_with_notification.
4987 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4988 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4989 * valops.c (value_assign): Likewise.
4990 * python/py-inferior.c (infpy_write_memory): Call
4991 'write_memory_with_notification'.
4993 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4995 * cc-with-index.sh: Use also -ex "set auto-load no".
4997 2012-06-23 Doug Evans <dje@google.com>
5000 * NEWS: Document additions to .gdb_index.
5001 * dwarf2read.c: #include "gdb/gdb-index.h".
5002 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5003 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5004 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5005 (dwarf2_read_index): Recognize version 7.
5006 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5007 block_kind, domain): All callers updated.
5008 (dw2_find_symbol_file): Handle new index CU values.
5009 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5010 (add_index_entry): New args is_static, kind. All callers updated.
5011 (offset_type_compare, uniquify_cu_indices): New functions
5012 (symbol_kind): New function.
5013 (write_psymtabs_to_index): Remove duplicate CU values.
5014 (write_psymtabs_to_index): Write .gdb_index version 7.
5016 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5018 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5019 * configure: Regenerate.
5021 2012-06-20 Yao Qi <yao@codesourcery.com>
5023 * python/py-inferior.c: Update comments of infpy_read_memory
5024 and infpy_write_memory.
5026 2012-06-19 Tom Tromey <tromey@redhat.com>
5029 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5030 (push_type_address_space): Remove.
5031 * parse.c (insert_into_type_stack): New function.
5032 (insert_type): Likewise.
5033 (insert_type_address_space): Rename from push_type_address_space.
5034 Insert tp_space_identifier.
5035 * c-exp.y (ptr_operator): New production.
5036 (abs_decl): Use ptr_operator.
5037 (space_identifier): Call insert_type_address_space.
5038 (ptype): Don't use const_or_volatile_or_space_identifier.
5039 (const_or_volatile_noopt): Call insert_type.
5040 (conversion_type_id, conversion_declarator): New productions.
5041 (operator): Use conversion_type_id.
5043 2012-06-18 Doug Evans <dje@google.com>
5045 * symtab.h (minimal_symbol): New member created_by_gdb.
5046 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5048 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5049 (search_symbols): Call it instead of lookup_symbol.
5050 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5052 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5053 Adjust address for DW_OP_GNU_addr_index.
5054 * dwarf2expr.h (dwarf_expr_context): Update comment.
5055 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5056 all callers updated. Handle TLS vars described with
5057 DW_OP_GNU_const_index.
5058 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5059 and DW_OP_GNU_const_index.
5060 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5062 * block.c (find_block_in_blockvector): Make explicit the fact that we
5063 ignore GLOBAL_BLOCK.
5065 2012-06-18 Tom Tromey <tromey@redhat.com>
5067 * c-exp.y (operator): Remove trailing space after "delete" and
5070 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5071 Jan Kratochvil <jan.kratochvil@redhat.com>
5073 Switch i386 and derived targets to ON_STACK.
5074 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5075 (amd64_dicos_init_abi): Remove its installment.
5076 * dicos-tdep.c (dicos_init_abi): Remove the
5077 set_gdbarch_call_dummy_location call. Update the comment here.
5078 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5079 (i386_dicos_init_abi): Remove its installment.
5080 * i386-tdep.c (i386_push_dummy_code): New function.
5081 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5082 i386_push_dummy_code.
5084 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5086 Remove stale dummy frames.
5087 * breakpoint.c: Include dummy-frame.h.
5088 (longjmp_breakpoint_ops): New variable.
5089 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5090 bp_longjmp_call_dummy.
5091 (bpstat_what, bptype_string, print_one_breakpoint_location)
5092 (init_bp_location): Support bp_longjmp_call_dummy.
5093 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5094 (set_longjmp_breakpoint_for_call_dummy)
5095 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5097 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5098 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5099 FIXME comment and extend the other comment for bp_call_dummy.
5100 (set_longjmp_breakpoint_for_call_dummy)
5101 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5102 * dummy-frame.c: Include gdbthread.h.
5103 (pop_dummy_frame_bpt): New function.
5104 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5105 (dummy_frame_discard): New function.
5106 (cleanup_dummy_frames): Update the comment about longjmps.
5107 * dummy-frame.h (dummy_frame_discard): New declaration.
5108 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5109 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5110 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5111 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5112 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5113 keep_going if IS_LONGJMP and there is no other reason to stop.
5115 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5117 * remote-sim.c (sim_command_completer): Initialize
5120 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5122 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5123 * dwarf2loc.c (call_site_parameter_matches): Support
5124 CALL_SITE_PARAMETER_PARAM_OFFSET.
5125 (needs_dwarf_reg_entry_value): Push stub value.
5126 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5127 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5128 * gdbtypes.h (enum call_site_parameter_kind): New item
5129 CALL_SITE_PARAMETER_PARAM_OFFSET.
5130 (struct call_site.parameter.u): New field param_offset.
5132 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5134 Code cleanup: Generalize call_site.parameter key.
5135 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5136 variable dwarf_reg. New variable kind_u. Update parameters to
5137 push_dwarf_reg_entry_value.
5138 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5139 * dwarf2expr.h (enum call_site_parameter_kind)
5140 (union call_site_parameter_u): Forward declarations.
5141 (struct dwarf_expr_context_funcs): Update parameters and their
5142 description for push_dwarf_reg_entry_value.
5143 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5144 * dwarf2loc.c (call_site_parameter_matches): New function.
5145 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5146 description. Use call_site_parameter_matches.
5147 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5148 Update parameters and their description.
5149 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5150 New variable kind_u. Adjust the caller for updated parameters.
5151 (needs_dwarf_reg_entry_value): Update parameters.
5152 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5153 instead of attr. Update for the changed fields of struct
5154 call_site_parameter.
5155 * gdbtypes.h: Include dwarf2expr.h.
5156 (enum call_site_parameter_kind): New.
5157 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5158 fb_offset into new union u.
5160 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5162 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5163 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5166 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5168 * amd64-linux-nat.c (compat_x32_clock_t): New.
5169 (compat_x32_siginfo_t): Likewise.
5170 (compat_x32_siginfo_from_siginfo): Likewise.
5171 (siginfo_from_compat_x32_siginfo): Likewise.
5172 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5173 and siginfo_from_compat_x32_siginfo for x32.
5175 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5177 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5179 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5181 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5182 instead of gdbarch_ptr_bit.
5183 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5184 (amd64_supply_native_gregset): Likewise.
5185 (amd64_collect_native_gregset): Likewise.
5186 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5187 (amd64_supply_xsave): Likewise.
5188 (amd64_collect_fxsave): Likewise.
5189 (amd64_collect_xsave): Likewise.
5191 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5193 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5194 (amd64_linux_read_description): Check DS segment register for
5197 2012-06-15 Tom Tromey <tromey@redhat.com>
5199 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5200 init_cutu_and_read_dies.
5202 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5204 * MAINTAINERS (Write After Approval): Add myself to the list.
5206 2012-06-15 Tom Tromey <tromey@redhat.com>
5208 * valops.c (value_find_oload_method_list): Now static.
5209 * value.h (value_find_oload_method_list): Don't declare.
5211 2012-06-15 Tom Tromey <tromey@redhat.com>
5213 * valops.c (find_overload_match): Use value_ind.
5215 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5217 * infrun.c (handle_inferior_event): Correct indentation.
5219 2012-06-14 Doug Evans <dje@google.com>
5221 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5222 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5224 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5225 updated. Handle DEBUG_LOC_START_LENGTH.
5226 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5227 (loclist_describe_location): Ditto.
5229 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5232 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5233 after hiding inline functions.
5235 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5237 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5238 _initialize_inf_ttrace.
5240 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5242 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5243 _initialize_hppa_hpux_nat.
5245 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5247 * remote-sim.c (sim_command_completer): Change type of return
5248 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5250 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5251 Jan Kratochvil <jan.kratochvil@redhat.com>
5254 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5255 stack on a 16-byte boundary.
5257 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5259 * jit.c (finalize_symtab): Set function's return type to 'void' by
5262 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5263 H.J. Lu <hongjiu.lu@intel.com>
5265 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5266 Move bits common to both the classic LP64 and the new x32 ILP32
5268 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5269 (amd64_x32_linux_init_abi): New function.
5270 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5273 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5274 * i386-tdep.c (i386_pseudo_register_name): Make public.
5275 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5276 * amd64-tdep.c (amd64_dword_names): Add "eip".
5277 (amd64_x32_pseudo_register_type): New function
5278 (amd64_x32_init_abi): New function.
5280 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5283 * inferior.h (struct inferior_suspend_state): Comment out.
5284 (struct inferior): Comment out the field suspend.
5285 * infrun.c (struct infcall_suspend_state): Comment out the field
5287 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5290 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5292 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5293 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5294 function comment. Return ERROR for unresolved cases. Implement
5295 returning proper NAME.
5296 (yylex): Accept also NAME from classify_inner_name.
5297 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5298 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5300 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5302 2012-06-13 Tom Tromey <tromey@redhat.com>
5304 * breakpoint.c (condition_completer): New function.
5305 (_initialize_breakpoint): Use it.
5306 * value.c (complete_internalvar): New function.
5307 * value.h (complete_internalvar): Declare.
5309 2012-06-13 Tom Tromey <tromey@redhat.com>
5311 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5312 * breakpoint.c (catch_syscall_completer): Return a VEC.
5313 * cli/cli-cmds.c (complete_command): Update.
5314 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5315 (complete_on_enum): Likewise.
5316 * command.h: Include gdb_vecs.h.
5317 (completer_ftype): Change return type.
5318 (complete_on_cmdlist, complete_on_enum): Likewise.
5319 * completer.c (noop_completer, filename_completer)
5320 (location_completer): Return a VEC.
5321 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5323 (expression_completer, complete_line_internal, complete_line)
5324 (command_completer): Return a VEC.
5325 (gdb_completion_word_break_characters, line_completion_function):
5327 * completer.h: Include gdb_vecs.h.
5328 (complete_line, noop_completer, filename_completer)
5329 (expression_completer, location_completer, command_completer):
5331 * f-lang.c (f_word_break_characters): Return a VEC.
5332 * interps.c (interpreter_completer): Return a VEC.
5333 * language.h (struct language_defn)
5334 <la_make_symbol_completion_list>: Return a VEC.
5335 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5336 * symtab.c (free_completion_list): Take a VEC.
5337 (return_val_size, return_val_index): Remove.
5338 (return_val): Now a VEC.
5339 (completion_list_add_name): Update.
5340 (default_make_symbol_completion_list_break_on)
5341 (default_make_symbol_completion_list, make_symbol_completion_list)
5342 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5344 (add_filename_to_list): Update.
5345 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5347 (maybe_add_partial_symtab_filename): Update.
5348 (make_source_files_completion_list): Return a VEC.
5349 * symtab.h (default_make_symbol_completion_list_break_on)
5350 (default_make_symbol_completion_list, make_symbol_completion_list)
5351 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5352 (make_source_files_completion_list): Update.
5354 2012-06-13 Tom Tromey <tromey@redhat.com>
5356 * breakpoint.c (add_catch_command): Use completer_ftype.
5357 * breakpoint.h: Include command.h.
5358 (add_catch_command): Use completer_ftype.
5359 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5360 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5361 Use completer_ftype.
5362 * command.h (completer_ftype): New typedef.
5363 (set_cmd_completer): Use it.
5364 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5367 2012-06-13 Pedro Alves <palves@redhat.com>
5369 Partial revert of previous change.
5371 * serial.c (scb_base): New global.
5372 (serial_for_fd): New.
5373 (serial_open, serial_fdopen_ops): Link new serial in open serials
5375 (do_serial_close): Unlink serial from the open serials chain.
5377 2012-06-12 Pedro Alves <palves@redhat.com>
5379 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5381 (prepare_for_detach): No longer context switch here in non-stop
5383 (fetch_inferior_event): Ditto.
5384 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5385 to the event thread before removing breakpoints. Switch to the
5386 event thread before inserting breakpoints and resuming.
5387 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5388 event thread before resuming.
5389 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5390 Switch to the event thread before removing breakpoints.
5392 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5394 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5395 special characters correctly for the Windows shells. See
5396 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5398 [!__MINGW32__]: Remove extra double quote character from special
5401 2012-06-11 Stan Shebs <stan@codesourcery.com>
5403 * ui-out.h: Remove #if 0 declarations.
5404 * ui-out.c: Remove #if 0 functions.
5406 2012-06-11 Pedro Alves <palves@redhat.com>
5408 * ser-base.c (run_async_handler_and_reschedule): New.
5409 (fd_event, push_event): Use it.
5410 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5411 reference count to 1.
5412 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5414 (serial_is_open, serial_ref, serial_unref): New.
5415 * serial.h (serial_open): Adjust comment.
5416 (serial_is_open): Declare.
5417 (serial_close): Adjust comment.
5418 (serial_ref, serial_unref) Declare.
5419 (struct serial): New field 'refcnt'.
5421 2012-06-11 Pedro Alves <palves@redhat.com>
5423 Remove #if 0'd "connect" command, and unnecessary associated
5424 refcounting and serial reuse bits.
5426 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5427 * serial.c (last_serial_opened): Delete.
5429 (serial_open): Adjust.
5430 (serial_for_fd): Delete.
5431 (serial_fdopen_ops, do_serial_close): Adjust.
5432 (serial_fdopen_ops): Adjust.
5434 2012-06-11 Pedro Alves <palves@redhat.com>
5436 * serial.c (do_serial_close): Remove early return when SCB is
5439 2012-06-11 Tom Tromey <tromey@redhat.com>
5441 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5443 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5445 Fix regression by the "ambiguous linespec" series.
5446 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5447 get_last_displayed_symtab and get_last_displayed_line and depending
5450 2012-06-11 Tom Tromey <tromey@redhat.com>
5452 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5453 (dw2_find_symbol_file): Use it.
5455 2012-06-11 Michael Eager <eager@eagercon.com>
5457 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5458 * mips-linux-tdep.h (mips_signals): New
5460 2012-06-11 Tom Tromey <tromey@redhat.com>
5462 * infrun.c (handle_inferior_event)
5463 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5465 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5466 exception logic in all cases. Update comments.
5467 (insert_longjmp_resume_breakpoint): Set the exception resume
5470 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5472 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5474 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5476 * valarith.c (binop_types_user_defined_p): Fix a typo.
5478 2012-06-08 Yao Qi <yao@codesourcery.com>
5479 Chung-Lin Tang <cltang@codesourcery.com>
5481 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5482 * arch-utils.h: Declare.
5483 * gdbarch.sh: Add return_in_first_hidden_param_p.
5484 * gdbarch.c, gdbarch.h: Regenerated.
5485 * infcall.c (call_function_by_hand): Call
5486 gdbarch_return_in_first_hidden_param_p instead of
5487 language_pass_by_reference.
5489 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5490 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5491 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5492 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5493 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5494 `cplus_return_struct_by_reference'.
5495 (tic6x_return_value): Handle language cplusplus.
5496 (tic6x_return_in_first_hidden_param_p): New.
5497 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5499 2012-06-07 Doug Evans <dje@google.com>
5501 * dwarf2read.c (dwarf2_cu): Add comment.
5503 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5505 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5507 (mips_eabi_push_dummy_call): Likewise.
5508 (mips_n32n64_push_dummy_call): Likewise.
5509 (mips_o32_push_dummy_call): Likewise.
5510 (mips_o64_push_dummy_call): Likewise.
5512 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5514 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5516 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5518 * mips-tdep.c (mips_pseudo_register_type): Use
5519 mips_float_register_p.
5521 2012-06-06 Pedro Alves <palves@redhat.com>
5523 * infrun.c (handle_inferior_event): Remove calls to
5524 reinit_frame_cache that follow a context_switch call.
5526 2012-06-06 Pedro Alves <palves@redhat.com>
5528 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5529 context_switch and remove stale comment.
5531 2012-06-06 Pedro Alves <palves@redhat.com>
5533 * infrun.c (struct execution_control_state): Remove
5534 `new_thread_event' field.
5535 (handle_inferior_event): Simplify new threads handling; don't
5536 resume the inferior if we find a new thread.
5538 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5540 * NEWS: Document the deprecation of SH's 'regs' command.
5541 * inferior.h (all_registers_info): Add function declaration.
5542 * sh-tdep.c (sh_show_regs): Remove variable.
5543 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5544 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5545 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5546 (sh_show_regs_command): Remove functions.
5547 (sh_gdbarch_init): Don't set sh_show_regs.
5548 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5549 'info all-registers'.
5550 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5551 (sh64_show_regs): Remove functions.
5552 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5554 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 * configure.ac: Move development=true below AC_INIT.
5557 * configure: Regenerate.
5559 2012-06-05 Stan Shebs <stan@codesourcery.com>
5561 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5564 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5566 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5567 argument as ssize_t.
5568 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5569 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5570 * target.c (target_read_stack, target_write_memory)
5571 (target_write_raw_memory): Likewise.
5572 * target.h (target_read_stack, target_write_memory)
5573 (target_write_raw_memory): Likewise.
5575 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5577 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5578 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5579 * target.c (target_read_memory): Change LEN to ssize_t.
5580 * target.h (target_read_memory): Change LEN to ssize_t.
5582 2012-06-05 Pedro Alves <palves@redhat.com>
5586 * breakpoint.c (until_break_command): Only fetch the selected
5587 frame after decode_line_1.
5589 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5591 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5592 event breakpoint at _start, __start or main if a program
5593 interpreter is not found.
5595 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5597 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5599 * windows-tdep.c: #include "objfiles.h".
5600 (windows_iterate_over_objfiles_in_search_order): New function.
5601 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5602 iterate_over_objfiles_in_search_order gdbarch method to
5603 windows_iterate_over_objfiles_in_search_order.
5604 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5606 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5608 * gdbarch.sh: Add generation of
5609 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5610 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5611 (iterate_over_objfiles_in_search_order): New gdbarch method.
5612 * gdbarch.h, gdbarch.c: Regenerate.
5613 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5615 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5617 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5618 out of lookup_symbol_aux_symtabs.
5619 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5620 call to lookup_symbol_aux_objfile.
5621 (struct global_sym_lookup_data): New type.
5622 (lookup_symbol_global_iterator_cb): New function.
5623 (lookup_symbol_global): Search for symbol using
5624 gdbarch_iterate_over_objfiles_in_search_order and
5625 lookup_symbol_global_iterator_cb.
5626 * findvar.c (struct minsym_lookup_data): New type.
5627 (minsym_lookup_iterator_cb): New function.
5628 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5629 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5630 and minsym_lookup_iterator_cb.
5632 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5634 Revert the following patch:
5635 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5636 try locating the symbol in the symbol's own objfile first, before
5637 extending the search to all objfiles.
5638 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5639 out of lookup_symbol_aux_symtabs.
5640 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5641 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5642 Do not search EXCLUDE_OBJFILE.
5643 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5644 (lookup_symbol_global): Search for matches in the block's objfile
5645 first, before searching all other objfiles.
5647 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5649 * breakpoint.c (find_condition_and_thread): Stop parsing
5650 as soon as the first invalid keyword is found.
5652 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5654 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5656 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5658 * config/djgpp/djcheck.sh: Add copyright header.
5660 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5662 * copyright.py (update_files, main): Fix path to update-copyright
5665 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5667 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5668 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5669 for which a reminder to update by hand is printed.
5671 2012-06-04 Doug Evans <dje@google.com>
5673 * buildsym.c (make_blockvector): Add comment.
5675 2012-06-04 Pedro Alves <palves@redhat.com>
5677 * arch-utils.c (default_gdb_signal_from_target): Delete.
5678 * arch-utils.h (default_gdb_signal_from_target): Delete.
5679 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5680 gdbarch_gdb_signal_from_target_p.
5681 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5683 * gdbarch.h: Regenerate.
5684 * gdbarch.c: Regenerate.
5686 2012-06-04 Pedro Alves <palves@redhat.com>
5688 * gdbarch.sh (gdb_signal_from_target): Mention that the
5689 implementation of the method must be host independent.
5690 * gdbarch.h: Regenerate.
5692 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5694 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5696 (target_read_memory_bfd): New function.
5697 (symbol_file_add_from_memory): Use it.
5699 2012-06-03 Doug Evans <dje@google.com>
5701 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5703 (basic_lookup_transparent_type): Ditto.
5705 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5706 (ALL_PRIMARY_SYMTABS): Use it.
5707 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5708 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5709 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5710 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5711 (basic_lookup_transparent_type): Ditto.
5713 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5715 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5716 it to optimize resolution of demangled name.
5718 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5720 * configure.ac (development): Define new variable.
5721 Call AC_CHECK_LIB for mcheck if $development.
5722 (ERROR_ON_WARNING): Enable it by default only if $development.
5723 * config.in: Regenerate.
5724 * configure: Regenerate.
5726 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5728 * target.c (target_read_memory): Make LEN argument as size_t.
5729 * target.h (target_read_memory): Likewise.
5731 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5733 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5735 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5737 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5738 BookE interface for PowerPC server processors if not available
5739 in the Linux Kernel.
5741 2012-05-31 Keith Seitz <keiths@redhat.com>
5743 * linespec.c (decode_objc): Add cleanup to free
5745 (find_linespec_symbols): Add cleanup to free CLASSES.
5746 * symfile.c (find_separate_debug_file_by_debuglink): Add
5747 cleanup to free DEBUGLINK.
5748 * ui-out.c (clear_header_list): No need to check if
5749 HEADER_NEXT.COLHDR is NULL.
5750 Free HEADER_NEXT.COL_NAME.
5752 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5754 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5757 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5759 * configure.host (gdb_host_cpu): Handle tilegx*.
5760 (gdb_host): Handle tilegx-*-linux*.
5761 * tilegx-linux-nat.c: New file.
5762 * config/tilegx/linux.mh: New file.
5764 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5766 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5767 tilegx-linux-tdep.o.
5768 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5769 tilegx-linux-tdep.c.
5770 * configure.tgt: Handle tilegx-*-linux*.
5771 * tilegx-tdep.h: New file.
5772 * tilegx-tdep.c: New file.
5773 * tilegx-linux-tdep.c: New file.
5774 * regformats/reg-tilegx.dat: New file.
5776 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5778 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5779 accounting of hw watchpoints on ppc.
5781 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5783 * source.c (openp): Expand tilde in path entries.
5785 2012-05-29 Doug Evans <dje@google.com>
5787 * buildsym.c (block_compar): Fix comment.
5788 (end_symtab): Fix and clarify some comments.
5790 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5791 cleanup_undefined_types.
5792 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5793 All callers updated.
5795 2012-05-29 Tom Tromey <tromey@redhat.com>
5797 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5799 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5800 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5802 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5805 2012-05-29 Tristan Gingold <gingold@adacore.com>
5807 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5808 (struct darwin_info): ... New struct.
5809 (solib_darwin_pspace_data): New variable.
5810 (darwin_pspace_data_cleanup): New function.
5811 (get_darwin_info): Likewise.
5812 (darwin_dyld_version_ok, darwin_load_image_infos)
5813 (darwin_solib_get_all_image_info_addr_at_init)
5814 (darwin_solib_read_all_image_info_addr): Add info argument.
5816 (darwin_current_sos): Use per pspace structure.
5817 (darwin_solib_create_inferior_hook): Likewise.
5818 (darwin_clear_solib): Likewise.
5819 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5821 2012-05-28 Pedro Alves <palves@redhat.com>
5823 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5824 block that uses them. Clear ecss before handling each event.
5826 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5828 * solib-svr4.c (svr4_current_sos): New comment on
5829 svr4_current_sos_via_xfer_libraries fall back.
5831 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5833 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5834 it as a fallback for TYPE_IS_OPAQUE.
5835 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5836 symbols for lookup_symbol.
5838 2012-05-24 John Steele Scott <toojays@toojays.net>
5840 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5841 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5842 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5843 (check_producer): ... this new function, which also checks for ICC
5844 and caches the result.
5845 (producer_is_icc): New function.
5846 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5849 2012-05-24 Pedro Alves <palves@redhat.com>
5853 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5854 (default_gdb_signal_to_target): ... this. Add comment.
5855 (default_gdb_signal_from_host): Rename to ...
5856 (default_gdb_signal_from_target): ... this. Add comment.
5857 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5858 (default_gdb_signal_to_target): ... this.
5859 (default_gdb_signal_from_host): Rename to ...
5860 (default_gdb_signal_from_target): ... this.
5861 * corelow.c (core_open): Adjust to naming change. Replace comment.
5862 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5863 (gdb_signal_from_target): ... this. Adjust to
5864 default_gdb_signal_from_host naming change. Extend comment.
5865 (gdb_signal_to_host): Rename to ...
5866 (gdb_signal_to_target): ... this. Adjust to
5867 default_gdb_signal_to_host naming change.
5868 * gdbarch.h, gdbarch.c: Renegerate.
5870 2012-05-24 Pedro Alves <palves@redhat.com>
5874 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5876 2012-05-24 Pedro Alves <palves@redhat.com>
5880 Replace target_signal with gdb_signal throughout.
5882 2012-05-24 Pedro Alves <palves@redhat.com>
5886 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5887 string, instead of reusing the va_list argument.
5889 2012-05-24 Tom Tromey <tromey@redhat.com>
5891 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5894 2012-05-23 Doug Evans <dje@google.com>
5896 * symtab.c (search_symbols): Formatting fixes.
5897 (print_symbol_info): Formatting fixes.
5899 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5900 int64_t change to leb128 API.
5901 (read_encoded_value, decode_frame_entry_1): Ditto.
5902 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5903 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5904 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5905 (execute_stack_op): Ditto.
5906 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5907 (safe_read_uleb128, safe_read_sleb128): Ditto.
5908 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5909 (dwarf2_compile_expr_to_ax): Ditto.
5910 (locexpr_describe_location_piece): Ditto.
5911 (disassemble_dwarf_expression): Ditto.
5912 (locexpr_describe_location_1): Ditto.
5914 2012-05-23 Stan Shebs <stan@codesourcery.com>
5915 Kwok Cheung Yeung <kcy@codesourcery.com>
5917 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5918 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5919 (mi-cmd-info.o): New rule.
5920 * osdata.h (info_osdata_command): New declaration.
5921 * osdata.c (info_osdata_command): Change to non-static.
5922 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5923 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5924 * mi/mi-cmd-info.c: New file.
5926 2012-05-23 Doug Evans <dje@google.com>
5928 * symtab.c (search_symbols): Pass NULL for file_matcher to
5929 expand_symtabs_matching if there are no files to match.
5931 * gdbtypes.c (lookup_typename): Simplify.
5933 2012-05-23 Pedro Alves <palves@redhat.com>
5935 * arch-utils.h (default_target_signal_to_host): Delete.
5936 * arch-utils.c (default_target_signal_to_host): Delete.
5937 * gdbarch.sh (target_signal_to_host): Remove.
5938 * gdbarch.h, gdbarch.c: Regenerate.
5940 2012-05-22 Doug Evans <dje@google.com>
5942 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5944 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5945 (execute_cfa_program): Update to match API of leb128 functions.
5946 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5948 (read_unsigned_leb128, read_signed_leb128): Delete.
5949 (read_initial_length): Change type of buf argument to
5951 (read_encoded_value): Update to match API of leb128 functions.
5952 (decode_frame_entry): Change result to "const gdb_byte *", and
5953 similarly for "start" parameter.
5954 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5955 (dwarf2_build_frame_info): Change local frame_ptr to
5957 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5958 read_uleb128, read_sleb128. All callers updated.
5959 (safe_skip_leb128): New function.
5960 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5961 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5962 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5963 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5964 read_uleb128, read_sleb128.
5965 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5966 (execute_stack_op): Update to match API of leb128 functions.
5967 * dwarf2expr.h: #include "leb128.h".
5968 (read_uleb128, read_sleb128): Delete.
5969 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5970 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5971 * dwarf2loc.c (debug_loc_kind): New enum.
5972 (decode_debug_loc_addresses): New function.
5973 (decode_debug_loc_dwo_addresses): New function.
5974 (dwarf2_find_location_expression): Rewrite.
5975 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5976 (locexpr_describe_location_piece): Ditto.
5977 (disassemble_dwarf_expression): Ditto.
5978 (locexpr_describe_location_1): Ditto.
5979 (loclist_describe_location): Rewrite.
5980 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5981 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5982 (dwarf2_section_buffer_overflow_complaint): Renamed from
5983 dwarf2_macros_too_long_complaint. All callers updated.
5984 (skip_leb128): Delete.
5985 (init_cu_die_reader): Initialize reader->buffer_end.
5986 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5987 (skip_form_bytes): New arg buffer_end. All callers updated.
5988 Replace call to skip_leb128 with gdb_skip_leb128.
5989 (skip_unknown_opcode): New arg mac_end. All callers updated.
5990 (fill_in_loclist_baton): Initialize baton->from_dwo.
5992 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5994 * mips-linux-nat.c (mips_linux_read_description): Use a more
5995 verbose error message.
5997 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5999 * NEWS: Add MIPS/Linux DSP support.
6000 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6001 (SIGCONTEXT_DSPCTL): New macro.
6002 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6003 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6004 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6005 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6006 (N64_SIGCONTEXT_HI3): Likewise.
6007 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6008 (N64_SIGCONTEXT_LO3): Likewise.
6009 (N64_SIGCONTEXT_DSPCTL): Likewise.
6010 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6011 (mips_linux_o32_sigframe_init): Handle DSP registers.
6012 (mips_linux_n32n64_sigframe_init): Likewise.
6014 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6016 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6019 2012-05-22 Pedro Alves <palves@redhat.com>
6021 * target.h (store_waitstatus): Move declaration ...
6022 * inf-child.h (store_waitstatus): ... here.
6023 * target.c: Move inclusion of gdb_wait.h, and ...
6024 (store_waitstatus): ... this ...
6025 * inf-child.c: ... here.
6026 * linux-nat.c: Include inf-child.h.
6027 * rs6000-nat.c: Include inf-child.h.
6028 * spu-linux-nat.c: Include inf-child.h.
6030 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6032 * tracepoint.c (start_tracing): Add missing i18n markup.
6033 (stop_tracing, set_trace_user): Ditto.
6034 (set_trace_notes, set_trace_stop_notes): Ditto.
6036 2012-05-21 Tom Tromey <tromey@redhat.com>
6039 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6041 * value.h (value_cast_pointers): Update.
6042 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6043 (value_cast): Update.
6044 (update_search_result): New function.
6045 (do_search_struct_field): New, from search_struct_field. Check
6046 for ambiguous results.
6047 (search_struct_field): Rewrite.
6048 * infcall.c (value_arg_coerce): Update.
6049 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6050 value_cast_pointers.
6051 * ada-lang.c (ada_convert_actual): Update.
6053 2012-05-21 Tom Tromey <tromey@redhat.com>
6055 * macroexp.c (macro_stringify): Terminate the string.
6057 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6059 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6061 * auto-load.c (auto_load_expand_dir_vars): New function.
6062 (auto_load_safe_path_vec_update): Use it, remove the
6063 substitute_path_component call thanks to it.
6064 (auto_load_objfile_script): Remove the debug_file_directory processing.
6065 Use auto_load_expand_dir_vars, remove the substitute_path_component
6067 * configure: Regenerate.
6068 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6069 path. Escape $ also for $debugdir.
6070 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6071 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6073 2012-05-20 Doug Evans <dje@google.com>
6075 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6076 before use. Check for symtab->includes == NULL before scanning it.
6078 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6080 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6082 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6084 * NEWS: Add microMIPS support and "set mips compression",
6085 "show mips compression" commands.
6086 * mips-tdep.h (mips_isa): New enum.
6087 (gdbarch_tdep): Add mips_isa.
6088 (mips_pc_is_mips16): Update prototype.
6089 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6090 * mips-tdep.c (mips_compression_mips16): New variable.
6091 (mips_compression_micromips): Likewise.
6092 (mips_compression_strings): Likewise.
6093 (mips_compression_string): Likewise.
6094 (is_mips16_isa, is_micromips_isa): New functions.
6095 (is_mips16_addr): Rename to...
6096 (is_compact_addr): ... this.
6097 (unmake_mips16_addr): Likewise to...
6098 (unmake_compact_addr): ... this.
6099 (make_mips16_addr): Likewise to...
6100 (make_compact_addr): ... this.
6101 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6103 (mips_elf_make_msymbol_special): Handle microMIPS code.
6104 (msymbol_is_special): Rename to...
6105 (msymbol_is_mips16): ... this.
6106 (mips_make_symbol_special, mips_pc_is_mips16): Update
6108 (msymbol_is_mips, msymbol_is_micromips): New functions.
6109 (mips16_to_32_reg): Rename to...
6110 (mips_reg3_to_reg): ... this.
6111 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6112 (mips_pc_isa): Likewise.
6113 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6115 (mips_fetch_instruction): Pass return status instead of printing
6116 an error message if requested. Handle microMIPS code. Bail out
6118 (micromips_op): New macro.
6119 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6120 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6121 (b6s4_op, b7s3_reg): Likewise.
6122 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6123 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6124 (mips_insn_size): New function.
6125 (mips32_next_pc): Update mips_fetch_instruction call.
6126 (micromips_relative_offset7): New function.
6127 (micromips_relative_offset10): Likewise.
6128 (micromips_relative_offset16): Likewise.
6129 (micromips_pc_insn_size): Likewise.
6130 (micromips_bc1_pc): Likewise.
6131 (micromips_next_pc): Likewise.
6132 (unpack_mips16): Update mips_fetch_instruction call.
6133 (extended_mips16_next_pc): Update according to change to
6135 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6137 (mips16_scan_prologue): Update mips_fetch_instruction call.
6138 Update according to change to mips16_to_32_reg.
6139 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6140 (mips_insn16_frame_base_sniffer): Likewise.
6141 (micromips_decode_imm9): New function.
6142 (micromips_scan_prologue): Likewise.
6143 (mips_micro_frame_cache): Likewise.
6144 (mips_micro_frame_this_id): Likewise.
6145 (mips_micro_frame_prev_register): Likewise.
6146 (mips_micro_frame_sniffer): Likewise.
6147 (mips_micro_frame_unwind): New variable.
6148 (mips_micro_frame_base_address): New function.
6149 (mips_micro_frame_base): New variable.
6150 (mips_micro_frame_base_sniffer): New function.
6151 (mips32_scan_prologue): Update mips_fetch_instruction call.
6152 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6153 rather than for MIPS16.
6154 (mips_insn32_frame_base_sniffer): Likewise.
6155 (mips_addr_bits_remove): Handle microMIPS code.
6156 (deal_with_atomic_sequence): Rename to...
6157 (mips_deal_with_atomic_sequence): ... this. Update the type
6158 of the variable used to hold an instruction. Remove the ISA bit
6159 check. Update mips_fetch_instruction call.
6160 (micromips_deal_with_atomic_sequence): New function.
6161 (deal_with_atomic_sequence): Likewise.
6162 (mips_about_to_return): Handle microMIPS code. Update
6163 mips_fetch_instruction call.
6164 (heuristic_proc_start): Check for the standard MIPS ISA rather
6165 than for MIPS16. Update mips_pc_is_mips16 and
6166 mips_fetch_instruction calls. Handle microMIPS code.
6167 (mips_push_dummy_code): Handle microMIPS code.
6168 (mips_eabi_push_dummy_call): Likewise.
6169 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6170 (mips_o64_push_dummy_call): Handle microMIPS code.
6171 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6172 (is_delayed): Remove function.
6173 (mips_single_step_through_delay): Replace the call to is_delayed
6174 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6175 Handle microMIPS code.
6176 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6178 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6180 (micromips_in_function_epilogue_p): New function.
6181 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6183 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6185 (gdb_print_insn_mips): Likewise.
6186 (mips_breakpoint_from_pc): Likewise.
6187 (mips_remote_breakpoint_from_pc): New function.
6188 (mips32_instruction_has_delay_slot): Simplify making use of the
6189 updated mips_fetch_instruction interface.
6190 (micromips_instruction_has_delay_slot): New function.
6191 (mips16_instruction_has_delay_slot): Simplify making use of the
6192 updated mips_fetch_instruction interface.
6193 (mips_adjust_breakpoint_address): Check for the standard MIPS
6194 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6195 calls. Handle microMIPS code.
6196 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6197 (mips_skip_trampoline_code): Handle microMIPS code.
6198 (global_mips_compression): New function.
6199 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6200 file flags. Register the microMIPS remote breakpoint handler
6201 and heuristic frame unwinder.
6202 (show_mips_compression): New function.
6203 (_initialize_mips_tdep): Add the "set mips compression" and
6204 "show mips compression" commands.
6206 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6211 * amd64-darwin-tdep.c:
6212 * arm-symbian-tdep.c:
6216 * bfin-linux-tdep.c:
6223 * dwarf2-frame-tailcall.c:
6252 * microblaze-tdep.c:
6253 * mips-linux-tdep.c:
6261 * python/py-finishbreakpoint.c:
6262 * python/py-inferior.c:
6263 * python/py-infthread.c:
6267 * remote-m32r-sdi.c:
6271 * rs6000-aix-tdep.c:
6297 * amd64-darwin-tdep.c:
6298 * arm-symbian-tdep.c:
6299 * arm-tdep.c: Delete unused variables.
6301 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6303 Rename $ddir to $datadir.
6304 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6305 * auto-load.c (auto_load_safe_path_vec_update)
6306 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6307 * configure: Regenerate.
6308 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6309 Likewise. Remove the 'use $ddir' help string.
6311 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6313 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6314 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6316 2012-05-18 Tom Tromey <tromey@redhat.com>
6319 * valprint.h (struct value_print_options) <symbol_print>: New
6321 * valprint.c (user_print_options): Add default for symbol_print.
6322 (show_symbol_print): New function.
6323 (generic_val_print): Respect symbol_print.
6324 (_initialize_valprint): Add "print symbol" setting.
6325 * f-valprint.c (f_val_print): Respect symbol_print.
6326 * c-valprint.c (c_val_print): Respect symbol_print.
6328 * printcmd.c (print_address_symbolic): Return int. Ignore some
6330 (print_address_demangle): Return int.
6331 * defs.h: (print_address_symbolic): Return int.
6332 * value.h (print_address_demangle): Return int.
6334 2012-05-18 Tom Tromey <tromey@redhat.com>
6336 * valprint.c (val_print_string): Don't print leading space.
6337 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6338 print space before string or vtbl.
6339 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6341 * jv-valprint.c (java_value_print): Print space before string.
6342 * go-valprint.c (print_go_string): Print space before string.
6343 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6344 space before string.
6345 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6346 space before string or vtbl.
6347 * auxv.c (fprint_target_auxv): Print space after address.
6349 2012-05-18 Tom Tromey <tromey@redhat.com>
6351 * printcmd.c (print_address_demangle): Remove special case for 0.
6353 2012-05-18 Tom Tromey <tromey@redhat.com>
6355 * printcmd.c (print_address_demangle): Add 'opts' argument.
6356 * p-valprint.c (pascal_val_print): Update.
6357 * jv-valprint.c (java_val_print): Update.
6359 * valprint.c (generic_val_print): Update.
6360 (print_function_pointer_address): Add 'options' argument. Remove
6361 'addressprint' argument. Update.
6362 * m2-valprint.c (print_unpacked_pointer): Update.
6363 * gnu-v3-abi.c (print_one_vtable): Update.
6364 (gnuv3_print_method_ptr): Update.
6365 * f-valprint.c (f_val_print): Update.
6366 * cp-valprint.c (cp_print_value_fields): Update.
6367 * valprint.h (print_function_pointer_address): Update.
6368 * c-valprint.c (c_val_print): Update.
6370 2012-05-18 Tom Tromey <tromey@redhat.com>
6372 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6373 directly corresponding to the found psymtab.
6374 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6375 (dw2_find_pc_sect_symtab): Use it.
6376 * block.h (blockvector_contains_pc): Declare.
6377 * block.c (find_block_in_blockvector): New function.
6378 (blockvector_for_pc_sect): Use it.
6379 (blockvector_contains_pc): New function.
6381 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6383 * mips-tdep.h (mips_write_pc): New prototype.
6384 * mips-tdep.c (mips_write_pc): Make external, add description.
6385 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6388 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6390 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6392 (mips_unwind_pc, mips_write_pc): Likewise.
6393 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6396 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6398 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6399 proc_warn, proc_error, proc_get_status, proc_flags,
6400 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6401 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6402 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6403 proc_stop_process, proc_wait_for_stop, proc_run_process,
6404 proc_set_traced_signals, proc_set_traced_faults,
6405 proc_set_traced_sysentry, proc_set_traced_sysexit,
6406 proc_set_held_signals, proc_get_held_signals,
6407 proc_get_traced_signals, proc_get_traced_faults,
6408 proc_get_traced_sysentry, proc_get_traced_sysexit,
6409 proc_clear_current_fault, proc_set_current_signal,
6410 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6411 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6412 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6413 proc_get_current_thread, proc_get_current_thread,
6414 proc_get_current_thread, proc_update_threads,
6415 proc_update_threads, proc_update_threads, proc_update_threads,
6416 proc_iterate_over_threads, procfs_find_new_threads,
6417 procfs_pid_to_str): Make static. Remove advance declaration.
6418 (proc_cursig): Make static. Conditionalized defintion on
6419 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6420 (proc_syscall, proc_set_kill_on_last_close,
6421 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6422 proc_get_pending_signals, proc_get_signal_actions,
6423 proc_trace_signal, proc_ignore_signal): Delete.
6425 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6427 * coffread.c (cs_section_address): Passing proper argument for
6428 `bfd_get_section_vma'.
6429 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6430 `bfd_get_section_flags'.
6431 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6432 `bfd_get_section_vma'.
6434 2012-05-16 Tom Tromey <tromey@redhat.com>
6437 * macrotab.h: (macro_define_special): Declare.
6438 (enum macro_special_kind): New.
6439 (struct macro_definition) <argc, replacement>: Update comments.
6440 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6441 (macro_define_object_internal): New function.
6442 (macro_define_object): Use it.
6443 (macro_define_special): New function.
6444 (fixup_definition): New function.
6445 (macro_lookup_definition, foreach_macro_in_scope)
6446 (foreach_macro): Use fixup_definition.
6447 * macroexp.h (macro_stringify): Declare.
6448 * macroexp.c (free_buffer_return_text): New function.
6449 (stringify): Constify "arg".
6450 (macro_stringify): New function.
6451 * dwarf2read.c (macro_start_file): Call macro_define_special.
6453 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6454 Maciej W. Rozycki <macro@mips.com>
6456 * breakpoint.h (bp_location): Add related_address member.
6457 * inferior.h (get_return_value): Take a pointer to struct value
6458 instead of struct type for the function requested.
6459 * value.h (using_struct_return): Likewise.
6460 * gdbarch.sh (return_value): Take a pointer to struct value
6461 instead of struct type for the function requested.
6462 * breakpoint.c (set_breakpoint_location_function): Initialize
6463 related_address for bp_gnu_ifunc_resolver breakpoints.
6464 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6465 requested function's address to gdbarch_return_value.
6466 * eval.c (evaluate_subexp_standard): Pass the requested
6467 function's address to using_struct_return.
6468 * infcall.c (call_function_by_hand): Pass the requested
6469 function's address to using_struct_return and
6470 gdbarch_return_value.
6471 * infcmd.c (get_return_value): Take a pointer to struct value
6472 instead of struct type for the function requested.
6473 (print_return_value): Update accordingly.
6474 (finish_command_continuation): Likewise.
6475 * stack.c (return_command): Pass the requested function's
6476 address to using_struct_return and gdbarch_return_value.
6477 * value.c (using_struct_return): Take a pointer to struct value
6478 instead of struct type for the function requested. Pass the
6479 requested function's address to gdbarch_return_value.
6480 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6481 New function_value member, replacing function_type.
6482 (bpfinishpy_dealloc): Update accordingly.
6483 (bpfinishpy_pre_stop_hook): Likewise.
6484 (bpfinishpy_init): Likewise. Record the requested function's
6486 * mips-tdep.c (mips_fval_reg): New enum.
6487 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6488 words put in GP registers.
6489 (mips_o64_push_dummy_call): Update a comment.
6490 (mips_o32_return_value): Take a pointer to struct value instead
6491 of struct type for the function requested and use it to check if
6492 using the MIPS16 calling convention. Return the designated
6493 general purpose registers for floating-point values returned in
6495 (mips_o64_return_value): Likewise.
6496 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6497 (ppc_sysv_abi_broken_return_value): Likewise.
6498 (ppc64_sysv_abi_return_value): Likewise.
6499 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6500 value instead of struct type for the function requested.
6501 * amd64-tdep.c (amd64_return_value): Likewise.
6502 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6503 * arm-tdep.c (arm_return_value): Likewise.
6504 * avr-tdep.c (avr_return_value): Likewise.
6505 * bfin-tdep.c (bfin_return_value): Likewise.
6506 * cris-tdep.c (cris_return_value): Likewise.
6507 * frv-tdep.c (frv_return_value): Likewise.
6508 * h8300-tdep.c (h8300_return_value): Likewise.
6509 (h8300h_return_value): Likewise.
6510 * hppa-tdep.c (hppa32_return_value): Likewise.
6511 (hppa64_return_value): Likewise.
6512 * i386-tdep.c (i386_return_value): Likewise.
6513 * ia64-tdep.c (ia64_return_value): Likewise.
6514 * iq2000-tdep.c (iq2000_return_value): Likewise.
6515 * lm32-tdep.c (lm32_return_value): Likewise.
6516 * m32c-tdep.c (m32c_return_value): Likewise.
6517 * m32r-tdep.c (m32r_return_value): Likewise.
6518 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6519 * m68k-tdep.c (m68k_return_value): Likewise.
6520 (m68k_svr4_return_value): Likewise.
6521 * m88k-tdep.c (m88k_return_value): Likewise.
6522 * mep-tdep.c (mep_return_value): Likewise.
6523 * microblaze-tdep.c (microblaze_return_value): Likewise.
6524 * mn10300-tdep.c (mn10300_return_value): Likewise.
6525 * moxie-tdep.c (moxie_return_value): Likewise.
6526 * mt-tdep.c (mt_return_value): Likewise.
6527 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6528 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6529 (ppc_sysv_abi_broken_return_value): Likewise.
6530 (ppc64_sysv_abi_return_value): Likewise.
6531 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6532 * rl78-tdep.c (rl78_return_value): Likewise.
6533 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6534 * rx-tdep.c (rx_return_value): Likewise.
6535 * s390-tdep.c (s390_return_value): Likewise.
6536 * score-tdep.c (score_return_value): Likewise.
6537 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6538 (sh_return_value_fpu): Likewise.
6539 * sh64-tdep.c (sh64_return_value): Likewise.
6540 * sparc-tdep.c (sparc32_return_value): Likewise.
6541 * sparc64-tdep.c (sparc64_return_value): Likewise.
6542 * spu-tdep.c (spu_return_value): Likewise.
6543 * tic6x-tdep.c (tic6x_return_value): Likewise.
6544 * v850-tdep.c (v850_return_value): Likewise.
6545 * vax-tdep.c (vax_return_value): Likewise.
6546 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6547 * xtensa-tdep.c (xtensa_return_value): Likewise.
6548 * gdbarch.c: Regenerate.
6549 * gdbarch.h: Regenerate.
6551 2012-05-15 Tom Tromey <tromey@redhat.com>
6553 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6555 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6557 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6558 of command in two error message.
6560 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6562 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6564 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6566 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6568 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6570 * NEWS (show auto-load scripts-directory): Add forgotten command.
6572 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6574 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6577 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6579 * amd64-tdep.c: Include features/i386/x32.c and
6580 features/i386/x32-avx.c.
6581 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6582 initialize_tdesc_x32_avx.
6584 2012-05-14 Stan Shebs <stan@codesourcery.com>
6587 * breakpoint.h (enum bptype): New type bp_dprintf.
6588 (struct breakpoint): New field extra_string.
6589 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6590 (create_breakpoint): Add extra_string arg.
6591 * breakpoint.c (dprintf_breakpoint_ops): New.
6592 (is_breakpoint): Add bp_dprintf.
6593 (bpstat_what): Add dprintf case.
6594 (bptype_string): Ditto.
6595 (print_one_breakpoint_location): Ditto.
6596 (init_bp_location): Ditto.
6597 (bkpt_print_mention): Ditto.
6598 (dprintf_style_enums): New array.
6599 (dprintf_style): New global.
6600 (dprintf_function): New global.
6601 (dprintf_channel): New global.
6602 (update_dprintf_command_list): New function.
6603 (update_dprintf_commands): New function.
6604 (init_breakpoint_sal): Add extra_string argument, handle it.
6605 (create_breakpoint_sal): Add extra_string argument.
6606 (create_breakpoints_sal): Add extra_string argument, update callers.
6607 (find_condition_and_thread): Add extra argument.
6608 (create_breakpoint): Add extra_string argument, record it.
6609 (dprintf_command): New function.
6610 (break_command_1): Add arg to create_breakpoint call.
6611 (handle_gnu_v3_exceptions): Ditto.
6612 (trace_command): Ditto.
6613 (ftrace_command): Ditto.
6614 (strace_command): Ditto.
6615 (bkpt_print_mention): Add dprintf case.
6616 (create_breakpoint_sal_default): Add extra_string argument.
6617 (_initialize_breakpoint): Add new commands.
6618 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6619 * python/py-breakpoint.c (bppy_init): Ditto.
6620 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6622 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6624 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6626 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6628 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6631 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6633 Add a new function gdb.find_pc_line to the Python API.
6634 * NEWS (Python Scripting): Add entry about the new function.
6635 * python/python.c (gdbpy_find_pc_line): New function which
6636 implements gdb.find_pc_line.
6637 (GdbMethods): Add entry for the new function.
6639 2012-05-12 Pedro Alves <palves@redhat.com>
6641 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6642 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6644 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6646 * inferior.c: Include completer.h
6647 (initialize_inferiors): Set completer of add-inferior to
6650 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6652 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6653 gdbarch_ptr_bit for x32 core dump.
6655 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6657 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6658 and features/i386/x32-avx-linux.c.
6660 2012-05-11 Stan Shebs <stan@codesourcery.com>
6661 Kwok Cheung Yeung <kcy@codesourcery.com>
6663 * NEWS: Describe new info os commands.
6664 * common/linux-osdata.c (PID_T, TIME_T): Define.
6665 (MAX_PID_T_STRLEN): New.
6666 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6668 (command_from_pid): Add comment. Change to use PID_T.
6669 (commandline_from_pid): Change to use PID_T.
6670 (user_from_pid): Add comment.
6671 (get_process_owner): Add comment. Change to use PID_T and
6673 (get_number_of_cpu_cores): Add comment.
6674 (get_cores_used_by_process): Add comment. Change to use PID_T and
6676 (linux_xfer_osdata_processes): Change to use PID_T and
6678 (compare_processes): New function.
6679 (linux_xfer_osdata_processgroups): New function.
6680 (linux_xfer_osdata_threads): Change to use PID_T.
6681 (linux_xfer_osdata_fds): New function.
6682 (format_socket_state, print_sockets): New functions.
6683 (union socket_addr): New union.
6684 (linux_xfer_osdata_isockets): New function.
6685 (time_from_time_t, group_from_gid): New functions.
6686 (linux_xfer_osdata_shm): New function.
6687 (linux_xfer_osdata_sem): New function.
6688 (linux_xfer_osdata_msg): New function.
6689 (linux_xfer_osdata_modules): New function.
6690 (osdata_table): Add new entries.
6691 * common/buffer.c (buffer_xml_printf): Add support for long and
6692 long long format specifiers.
6694 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6696 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6697 (tdesc_x32_avx_linux): Likewise.
6699 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6701 Implement multi-component --with-auto-load-dir.
6702 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6704 (--with-auto-load-safe-path): Update the default value description.
6705 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6707 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6708 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6709 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6710 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6711 "set auto-load scripts-directory".
6712 * config.in: Regenerate.
6713 * configure: Regenerate.
6714 * configure.ac (--with-auto-load-dir): New configure option.
6715 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6717 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6719 Provide $ddir substitution for --with-auto-load-safe-path.
6720 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6722 * auto-load.c: Include observer.h.
6723 (auto_load_safe_path_vec_update): Call substitute_path_component for
6724 each component. New variable ddir_subst.
6725 (auto_load_gdb_datadir_changed): New function.
6726 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6727 AUTO_LOAD_SAFE_PATH. New comment.
6728 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6729 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6730 * config.in: Regenerate.
6731 * configure: Regenerate.
6732 * configure.ac (--auto-load-safe-path): Rename
6733 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6734 GDB_DATADIR/auto-load.
6735 * defs.h (substitute_path_component): New declaration.
6736 * top.c: Include observer.h.
6737 (set_gdb_datadir): New function.
6738 (init_main): Install it for "set data-directory".
6739 * utils.c (substitute_path_component): New function.
6741 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6743 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6744 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6745 DEBUG_FILE_DIRECTORY. Handle multiple components of
6746 DEBUG_FILE_DIRECTORY.
6748 2012-05-10 Tom Tromey <tromey@redhat.com>
6750 * dwarf2read.c (recursively_write_psymbols): New function.
6751 (write_psymtabs_to_index): Use it.
6753 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6755 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6756 (load_partial_comp_unit): Update.
6757 (queue_comp_unit): Add argument 'pretend_language'.
6758 (process_queue): Update.
6759 (psymtab_to_symtab_1): Skip dependencies that have a user.
6760 (load_partial_comp_unit_reader): Give meaning to the 'data'
6762 (load_full_comp_unit): Add 'pretend_language' argument.
6763 (process_full_comp_unit): Add 'pretend_language' argument. Set
6765 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6767 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6768 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6770 (prepare_one_comp_unit): Add 'pretend_language' argument.
6772 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6773 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6774 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6775 (dw2_do_instantiate_symtab): Check whether symtab was read in
6777 (dw2_instantiate_symtab): Add assertion. Call
6778 process_cu_includes.
6779 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6780 (partial_symtab_p): New typedef.
6781 (set_partial_user): New function.
6782 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6783 (scan_partial_symbols): Add imported CU to imported_symtabs.
6784 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6785 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6786 (get_symtab, recursively_compute_inclusions)
6787 (compute_symtab_includes, process_cu_includes)
6788 (process_imported_unit_die): New functions.
6789 (process_die) <DW_TAG_imported_unit>: New case.
6790 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6792 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6794 (struct partial_die_info) <locdesc>: Remove.
6796 (process_psymtab_comp_unit): Add 'read_partial' argument.
6798 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6799 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6800 (add_partial_symbol): Update.
6801 (process_die): Handle DW_TAG_partial_unit.
6802 (read_file_scope): Update comment.
6803 (load_partial_dies): Handle DW_TAG_imported_unit.
6804 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6805 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6807 2012-05-10 Tom Tromey <tromey@redhat.com>
6809 * cc-with-dwz.sh: New file.
6811 2012-05-10 Tom Tromey <tromey@redhat.com>
6813 * symtab.h (struct symtab) <includes, user>: New fields.
6814 * block.h (struct block_iterator) <d, idx, which>: New fields.
6815 * block.c (initialize_block_iterator, find_iterator_symtab)
6816 (block_iterator_step, block_iter_name_step)
6817 (block_iter_match_step): New functions.
6818 (block_iterator_first, block_iterator_next)
6819 (block_iter_name_first, block_iter_name_next)
6820 (block_iter_match_first, block_iter_match_next): Rewrite.
6821 (get_block_symtab): New function.
6823 2012-05-10 Tom Tromey <tromey@redhat.com>
6825 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6827 * jit.c (finalize_symtab): Use allocate_global_block,
6829 * buildsym.c (finish_block_internal): New function, from old
6831 (finish_block): Rewrite.
6832 (end_symtab): Use finish_block_internal, set_block_symtab.
6833 * block.h (struct global_block): New.
6834 (allocate_global_block, set_block_symtab): Declare.
6835 * block.c (allocate_global_block, set_block_symtab): New
6838 2012-05-10 Tom Tromey <tromey@redhat.com>
6840 * psymtab.c (partial_map_expand_apply): Add assertion.
6841 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6842 (psymtab_to_symtab): Find unshared psymtab.
6843 (dump_psymtab): Print including psymtabs.
6844 (recursively_search_psymtabs): New function.
6845 (expand_symtabs_matching_via_partial): Use it.
6846 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6848 (enum psymtab_search_status): New.
6850 2012-05-10 Tom Tromey <tromey@redhat.com>
6852 * tracepoint.c (scope_info): Update.
6853 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6854 (find_pc_sect_symtab, search_symbols)
6855 (default_make_symbol_completion_list_break_on)
6856 (make_file_symbol_completion_list): Update.
6857 * symmisc.c (dump_symtab_1): Update.
6858 * stack.c (print_frame_args, iterate_over_block_locals)
6859 (print_frame_labels, iterate_over_block_arg_vars): Update.
6860 * python/py-block.c (block_object) <dict>: Remove.
6862 <iter>: Change type.
6863 (blpy_iter): Update.
6864 (blpy_block_syms_iternext): Update.
6865 * psymtab.c (map_block): Use block iterators.
6866 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6867 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6868 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6869 * infrun.c (check_exception_resume): Update.
6870 * cp-support.c (make_symbol_overload_list_block): Update.
6871 * coffread.c (patch_opaque_types): Update.
6872 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6873 * block.h (struct block_iterator): New.
6874 (block_iterator_first, block_iterator_next, block_iter_name_first)
6875 (block_iter_name_next, block_iter_match_first)
6876 (block_iter_match_next): Declare.
6877 (ALL_BLOCK_SYMBOLS): Redefine.
6878 * block.c (block_iterator_first, block_iterator_next)
6879 (block_iter_name_first, block_iter_name_next)
6880 (block_iter_match_first, block_iter_match_next): New functions.
6881 * ada-lang.c (ada_add_block_symbols)
6882 (ada_make_symbol_completion_list): Use block iterator.
6884 2012-05-10 Tom Tromey <tromey@redhat.com>
6886 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6887 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6888 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6889 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6890 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6893 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6895 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6896 print-file-var-lib2.c, print-file-var-main.c and
6897 print-file-var.exp (located in gdb/testsuite/gdb.base).
6899 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6901 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6902 try locating the symbol in the symbol's own objfile first, before
6903 extending the search to all objfiles.
6904 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6905 out of lookup_symbol_aux_symtabs.
6906 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6907 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6908 Do not search EXCLUDE_OBJFILE.
6909 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6910 (lookup_symbol_global): Search for matches in the block's objfile
6911 first, before searching all other objfiles.
6913 2012-05-10 Tristan Gingold <gingold@adacore.com>
6915 * printcmd.c (set_command): Add pre/post inc/dec.
6917 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6919 * gdb.1: Document -ex option.
6921 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6923 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6924 * inferior.h (AT_SYMBOL): Delete.
6926 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6928 * mips-tdep.c (mips_push_dummy_code): New function.
6929 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6930 ON_STACK and install mips_push_dummy_code as our gdbarch
6931 push_dummy_code routine.
6933 2012-05-09 Pedro Alves <palves@redhat.com>
6935 * target.c (set_maintenance_target_async_permitted): Rename to ...
6936 (set_target_async_command): ... this.
6937 (show_maintenance_target_async_permitted): Rename to ...
6938 (show_target_async_command): ... this.
6939 (initialize_targets): Adjust.
6941 2012-05-08 Doug Evans <dje@google.com>
6943 * go-exp.y (classify_name): Add missing assignment of fields of
6946 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6948 Display the ">" prompt in interactive mode while reading canned
6949 commands, even when the current interpreter is MI.
6951 * interps.c (interp_set_temp): New function.
6953 * interps.h (interp_set_temp): Add prototype.
6955 * cli/cli-script.c (restore_interp): New cleanup function.
6956 (read_command_lines): Temporarily override the current interpreter
6957 with CLI and arrange for restoring the original one.
6959 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6961 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6963 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6965 * probe.c (parse_probes): Move conditional to check for
6966 debuginfo files from here...
6967 * stap-probe.c (stap_get_probes): ... to here.
6969 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6970 H.J. Lu <hongjiu.lu@intel.com>
6972 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6973 `movl %esp, %ebp' for the X32 ABI.
6975 2012-05-07 Tom Tromey <tromey@redhat.com>
6977 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6979 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6980 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6981 (dwarf_stack_op_name): Remove.
6982 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6983 (decode_locdesc): Use get_DW_OP_name.
6984 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6985 (dwarf2_compile_expr_to_ax): Likewise.
6986 (disassemble_dwarf_expression): Likewise.
6987 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6989 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6991 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6992 (sh_linux_sigtramp_cache): New function.
6993 (sh_linux_sigreturn_init): New function.
6994 (sh_linux_rt_sigreturn_init): New function.
6995 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6997 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6999 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7000 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7001 (sh_linux_init_abi): Add init calls to register new tramp_frame
7002 definitions under 32-bit SH, update comments.
7004 2012-05-07 Pedro Alves <palves@redhat.com>
7008 * amd64-linux-tdep.c: Include glibc-tdep.h.
7009 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7010 gdbarch_skip_solib_resolver callback.
7012 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7014 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7015 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7016 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7017 (add_auto_load_safe_path): Change the error message.
7018 (_initialize_auto_load): Change the "safe-path" help text.
7019 * configure: Regenerate
7020 * configure.ac (--without-auto-load-safe-path): Set
7021 WITH_AUTO_LOAD_SAFE_PATH to /.
7023 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7025 * stap-probe.h: Do not include unecessary `probe.h'.
7027 2012-05-05 Alan Modra <amodra@gmail.com>
7029 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7030 bfd_und_section_ptr.
7031 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7032 and bfd_com_section_ptr.
7034 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7036 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7038 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7040 * windows-nat.h (segment_register_p_ftype): New typedef.
7041 (windows_set_segment_register_p): Add declaration.
7042 * windows-nat.c (segment_register_p): New static global.
7043 (windows_set_segment_register_p): New function.
7044 (do_windows_fetch_inferior_registers): Add special handling
7045 for segment registers.
7046 * amd64-windows-nat.c: #include "amd64-tdep.h".
7047 (amd64_windows_segment_register_p): New function.
7048 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7049 * i386-windows-nat.c: #include "i386-tdep.h".
7050 (i386_windows_segment_register_p): New function.
7051 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7053 2012-05-04 Tristan Gingold <gingold@adacore.com>
7055 * printcmd.c (set_command): Emit a warning if the expression is not
7058 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7060 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7063 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7065 * stap-probe.c (stap_is_operator): Change declaration.
7066 (stap_get_opcode): Change return value.
7067 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7068 `stap_parse_argument_1'.
7070 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7072 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7075 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7077 Add two new methods global_block and static_block to gdb.Symtab
7079 * NEWS (Python scripting): Add entry about the new methods.
7080 * python/py-symtab.c (stpy_global_block): New function which
7081 implements the gdb.Symtab.global_block() method.
7082 (stpy_static_block): New function which implements the
7083 gdb.Symtab.static_block() method.
7084 (symtab_object_methods): Add entries for the two new methods.
7086 2012-05-03 Doug Evans <dje@google.com>
7088 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7091 2012-05-03 Yao Qi <yao@codesourcery.com>
7093 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7095 (i386_process_record): Ditto.
7097 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7099 * infcall.c (unwind_on_signal_p): Make static.
7101 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7103 * sol-thread.c (solaris_pid_to_str): Make static.
7104 (_initialize_sol_thread): Add prototype.
7106 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7108 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7110 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7112 * MAINTAINERS: Remove myself.
7114 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7116 Fix --without-auto-load-safe-path for MS-Windows host platform.
7117 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7119 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7121 * gdb_curses.h: Undefine KEY_EVENT before including curses
7122 headers. Move "#undef MOUSE_MOVED" before any curses header
7125 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7127 * features/i386/i386-mmx-linux.c: Regenerate.
7128 * features/rs6000/powerpc-32.c: Likewise.
7129 * features/rs6000/powerpc-32l.c: Likewise.
7130 * features/rs6000/powerpc-403.c: Likewise.
7131 * features/rs6000/powerpc-403gc.c: Likewise.
7132 * features/rs6000/powerpc-405.c: Likewise.
7133 * features/rs6000/powerpc-505.c: Likewise.
7134 * features/rs6000/powerpc-601.c: Likewise.
7135 * features/rs6000/powerpc-602.c: Likewise.
7136 * features/rs6000/powerpc-603.c: Likewise.
7137 * features/rs6000/powerpc-604.c: Likewise.
7138 * features/rs6000/powerpc-64.c: Likewise.
7139 * features/rs6000/powerpc-64l.c: Likewise.
7140 * features/rs6000/powerpc-750.c: Likewise.
7141 * features/rs6000/powerpc-860.c: Likewise.
7142 * features/rs6000/powerpc-e500.c: Likewise.
7143 * features/rs6000/powerpc-e500l.c: Likewise.
7144 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7145 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7146 * features/rs6000/rs6000.c: Likewise.
7148 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7150 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7152 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7153 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7154 (stap_parse_argument) <e>: Likewise.
7155 (handle_stap_probe) <byte_order>: Likewise.
7157 2012-04-30 Doug Evans <dje@google.com>
7159 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7160 init_and_read_dies_worker. All callers updated.
7161 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7162 replaced with init_cutu_and_read_dies.
7163 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7164 (find_partial_die): Remove FIXME. Don't free current CU.
7166 2012-04-30 Sterling Augustine <saugustine@google.com>
7168 * contrib: New directory.
7169 * contrib/test_pubnames_and_indexes.py: New file.
7171 2012-04-30 Doug Evans <dje@google.com>
7173 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7174 All callers updated.
7175 (init_cu_die_reader): Verify the section is non-empty.
7176 (dwarf_decode_line_header): Don't dereference section->asection
7177 until we know the section is present.
7179 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7181 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7184 2012-04-29 Yao Qi <yao@codesourcery.com>
7186 * gdb-code-style.el: New hook gdb-markup-hook
7187 and gdb-comment-hook.
7189 2012-04-28 Doug Evans <dje@google.com>
7191 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7192 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7194 * symfile.h (dwarf2_debug_sections): New member addr.
7195 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7196 (ctx_no_get_addr_index): New function.
7197 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7198 (ctx_no_get_addr_index): Declare.
7199 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7200 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7201 (dwarf_expr_ctx_funcs): Update.
7202 (needs_get_addr_index): New function.
7203 (needs_frame_ctx_funcs): Update.
7204 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7205 * dwarf2read.c: #include "gdbcore.h".
7206 (dwarf2_per_objfile): New members addr, dwo_files.
7207 (dwarf2_elf_names): Add entry for addr.
7208 (struct dwo_section_names): New type.
7209 (dwo_section_names): New static global.
7210 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7211 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7212 old debug_types_section member updated to use this.
7213 Rename member debug_types_section to info_or_types_section,
7215 (signatured_type): Rename member type_offset to type_offset_in_tu,
7216 all uses updated. New member type_offset_in_section.
7217 (struct dwo_sections): New type.
7218 (struct dwo_unit): New type.
7219 (struct dwo_file): New type.
7220 (die_reader_specs): New member dwo_file.
7221 (dwarf2_locate_sections): Watch for .debug_addr.
7222 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7223 (dwarf2_read_section): Get bfd of section from bfd's asection,
7225 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7226 (create_signatured_type_table_from_index): Initialize
7227 sig_type->info_or_types_section.
7228 (dw2_get_file_names): Statement lists for type units with DWO files
7229 live in the DWO file.
7230 (create_debug_types_hash_table): New function.
7231 (create_all_type_units): Rewrite.
7232 (init_cu_die_reader): New arg dwo_file, all callers updated.
7233 (init_and_read_dies_worker): Get section from
7234 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7235 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7236 continue reading the CU/TU from there.
7237 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7238 updated. Get section from this_cu->info_or_types_section.
7239 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7240 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7241 DW_FORM_GNU_str_index.
7242 (hash_dwo_file, eq_dwo_file): New functions.
7243 (allocate_dwo_file_hash_table): New function.
7244 (hash_dwo_unit, eq_dwo_unit): New functions.
7245 (allocate_dwo_unit_table): New function.
7246 (dwarf2_locate_dwo_sections): New function.
7247 (struct create_dwo_info_table_data): New type.
7248 (create_debug_info_hash_table_reader): New function.
7249 (create_debug_info_hash_table): New function.
7250 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7251 (lookup_dwo_file): New function.
7252 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7253 (free_dwo_file, free_dwo_file_cleanup): New functions.
7254 (free_dwo_file_from_slot, free_dwo_files): New functions.
7255 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7256 (dwarf2_record_block_ranges): Ditto.
7257 (read_partial_die): Ditto.
7258 (process_enumeration_scope): Update to use type_offset_in_section.
7259 (read_full_die_1): New function.
7260 (read_full_die): Rewrite.
7261 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7262 DW_FORM_GNU_str_index.
7263 (read_addr_index_1, read_addr_index): New functions.
7264 (read_addr_index_from_leb128): New function.
7265 (struct dwarf2_read_addr_index_data): New type.
7266 (dwarf2_read_addr_index_reader): New function.
7267 (dwarf2_read_addr_index): New function.
7268 (read_str_index): New function.
7269 (leb128_size): New function.
7270 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7271 If processing a type unit from a DWO file, get the line section
7273 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7274 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7275 DW_FORM_GNU_str_index.
7276 (lookup_die_type): Check whether section offset of type's die is
7277 known before looking it up. Remove assert. Condition can
7278 legimately happen for inter-cu type references.
7279 (dwarf_attr_name): Handle Fission attributes.
7280 (dwarf_form_name): Handle Fission forms.
7281 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7282 DW_FORM_GNU_str_index.
7283 (follow_die_sig): Update to use type_offset_in_section.
7284 (decode_locdesc): New case DW_OP_GNU_addr_index.
7285 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7286 DW_FORM_GNU_str_index.
7287 (cu_debug_loc_section): New function.
7288 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7289 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7290 Free DWO files if present.
7291 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7293 Refactor DIE reading.
7294 * dwarf2read.c (dwarf2_per_objfile): Replace members
7295 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7296 (die_reader_specs): New member "die_section". Temporarily make
7297 member "buffer" non-const, pending constifying all info_ptr uses.
7298 (die_reader_func_ftype): New typedef.
7299 (dw2_get_file_names_reader): New function.
7300 (dw2_get_file_names): Rewrite.
7301 (read_and_check_type_unit_head): Rename arg type_offset to
7303 (create_all_type_units): Improve debugging message.
7304 Improve dummy type unit check.
7305 (init_cu_die_reader): New arg "section". All callers updated.
7306 (init_and_read_dies_worker): New function.
7307 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7308 (init_cutu_and_read_dies_no_follow): New function.
7309 (init_cutu_and_read_dies_simple): New function.
7310 (process_psymtab_comp_unit_reader): New function.
7311 (process_psymtab_comp_unit): Delete args section,
7312 is_debug_types_section. Rewrite. All callers updated.
7313 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7314 All callers updated. Rewrite.
7315 (load_partial_comp_unit_reader): New function.
7316 (load_partial_comp_unit): Rewrite.
7317 (skip_children): New arg reader. Delete args buffer, cu.
7318 All callers updated.
7319 (skip_one_die): New arg reader. Delete args buffer, cu.
7320 All callers updated.
7321 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7322 All callers updated.
7323 (load_full_comp_unit_reader): New function.
7324 (load_full_comp_unit): Rewrite.
7325 (read_comp_unit): Delete.
7326 (read_die_and_children_1): Delete, contents moved ...
7327 (read_die_and_children): ... here.
7328 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7329 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7330 All callers updated.
7331 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7332 All callers updated.
7333 (find_partial_die): Rewrite load_all_dies support.
7334 (read_attribute_value): New arg reader. Delete args abfd, cu.
7335 All callers updated.
7336 (read_attribute): New arg reader. Delete args abfd, cu.
7337 All callers updated.
7338 (load_full_type_unit): Add assert.
7339 (read_signatured_type_reader): New function.
7340 (read_signatured_type): Rewrite.
7341 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7342 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7343 All callers updated. Set per_cu->cu = NULL after freeing it.
7344 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7345 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7346 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7347 (set_die_type): Update.
7348 (get_die_type_at_offset): Update.
7349 (read_file_scope): Call prepare_one_comp_unit.
7350 (read_type_unit_scope): Ditto.
7351 (prepare_one_comp_unit): Set producer if present.
7353 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7355 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7356 gettext function on `error'.
7358 2012-04-27 Doug Evans <dje@google.com>
7360 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7363 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7364 Tom Tromey <tromey@redhat.com>
7366 * breakpoint.c (struct breakpoint_objfile_data)
7367 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7368 <exception_probes>: New fields.
7369 (free_breakpoint_probes): New function.
7370 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7371 `_Unwind_DebugHook'.
7372 (create_exception_master_breakpoint): Likewise.
7373 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7374 * infrun.c: Including necessary header files for handling SystemTap
7376 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7377 via SystemTap probes.
7378 (check_exception_resume): Remove `func' argument. Handle exception
7379 unwinding breakpoint set via a SystemTap probe.
7380 (insert_exception_resume_from_probe): New function.
7382 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7383 Tom Tromey <tromey@redhat.com>
7384 Jan Kratochvil <jan.kratochvil@redhat.com>
7386 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7387 (COMMON_OBS): Likewise.
7388 (HFILES_NO_SRCDIR): Add `probe'.
7389 * NEWS: Mention support for static and SystemTap probes.
7390 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7391 SystemTap probes' arguments parser.
7392 * arm-linux-tdep.c: Including headers needed to perform the parsing
7393 of SystemTap probes' arguments.
7394 (arm_stap_is_single_operand): New function.
7395 (arm_stap_parse_special_token): Likewise.
7396 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7397 probes' arguments parser.
7398 * ax-gdb.c (require_rvalue): Removing static declaration.
7399 (gen_expr): Likewise.
7400 * ax-gdb.h (gen_expr): Declaring function.
7401 (require_rvalue): Likewise.
7402 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7403 (bkpt_probe_breakpoint_ops): New variable.
7404 (momentary_breakpoint_from_master): Set the `probe' value.
7405 (add_location_to_breakpoint): Likewise.
7406 (break_command_1): Using proper breakpoint_ops according to the
7407 argument passed by the user in the command line.
7408 (bkpt_probe_insert_location): New function.
7409 (bkpt_probe_remove_location): Likewise.
7410 (bkpt_probe_create_sals_from_address): Likewise.
7411 (bkpt_probe_decode_linespec): Likewise.
7412 (tracepoint_probe_create_sals_from_address): Likewise.
7413 (tracepoint_probe_decode_linespec): Likewise.
7414 (tracepoint_probe_breakpoint_ops): New variable.
7415 (trace_command): Using proper breakpoint_ops according to the
7416 argument passed by the user in the command line.
7417 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7418 static probes on breakpoints and tracepoints.
7419 * breakpoint.h (struct bp_location) <probe>: New field.
7420 * cli-utils.c (skip_spaces_const): New function.
7421 (extract_arg): Likewise.
7422 * cli-utils.h (skip_spaces_const): Likewise.
7423 (extract_arg): Likewise.
7424 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7425 * configure.ac: Append `stap-probe.o' to be generated when ELF
7427 * configure: Regenerate.
7428 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7429 * elfread.c: Include `probe.h' and `arch-utils.h'.
7430 (probe_key): New variable.
7431 (elf_get_probes): New function.
7432 (elf_get_probe_argument_count): Likewise.
7433 (elf_evaluate_probe_argument): Likewise.
7434 (elf_compile_to_ax): Likewise.
7435 (elf_symfile_relocate_probe): Likewise.
7436 (stap_probe_key_free): Likewise.
7437 (elf_probe_fns): New variable.
7438 (elf_sym_fns): Add `sym_probe_fns' value.
7439 (elf_sym_fns_lazy_psyms): Likewise.
7440 (elf_sym_fns_gdb_index): Likewise.
7441 (_initialize_elfread): Initialize objfile cache for static
7443 * gdb_vecs.h (struct probe): New forward declaration.
7444 (probe_p): New VEC declaration.
7445 * gdbarch.c: Regenerate.
7446 * gdbarch.h: Regenerate.
7447 * gdbarch.sh (stap_integer_prefix): New variable.
7448 (stap_integer_suffix): Likewise.
7449 (stap_register_prefix): Likewise.
7450 (stap_register_suffix): Likewise.
7451 (stap_register_indirection_prefix): Likewise.
7452 (stap_register_indirection_suffix): Likewise.
7453 (stap_gdb_register_prefix): Likewise.
7454 (stap_gdb_register_suffix): Likewise.
7455 (stap_is_single_operand): New function.
7456 (stap_parse_special_token): Likewise.
7457 (struct stap_parse_info): Forward declaration.
7458 * i386-tdep.c: Including headers needed to perform the parsing
7459 of SystemTap probes' arguments.
7460 (i386_stap_is_single_operand): New function.
7461 (i386_stap_parse_special_token): Likewise.
7462 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7463 probes' arguments parser.
7464 * i386-tdep.h (i386_stap_is_single_operand): New function.
7465 (i386_stap_parse_special_token): Likewise.
7466 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7467 * mipsread.c (ecoff_sym_fns): Likewise.
7468 * objfiles.c (objfile_relocate1): Support relocation for static
7470 * parse.c (prefixify_expression): Remove static declaration.
7471 (initialize_expout): Likewise.
7472 (reallocate_expout): Likewise.
7473 * parser-defs.h (initialize_expout): Declare function.
7474 (reallocate_expout): Likewise.
7475 (prefixify_expression): Likewise.
7476 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7477 of SystemTap probes' arguments.
7478 (ppc_stap_is_single_operand): New function.
7479 (ppc_stap_parse_special_token): Likewise.
7480 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7481 probes' arguments parser.
7482 * probe.c: New file, for generic statically defined probe support.
7483 * probe.h: Likewise.
7484 * s390-tdep.c: Including headers needed to perform the parsing of
7485 SystemTap probes' arguments.
7486 (s390_stap_is_single_operand): New function.
7487 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7488 probes' arguments parser.
7489 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7490 * stap-probe.c: New file, for SystemTap probe support.
7491 * stap-probe.h: Likewise.
7492 * symfile.h: Include `gdb_vecs.h'.
7493 (struct sym_probe_fns): New struct.
7494 (struct sym_fns) <sym_probe_fns>: New field.
7495 * symtab.c (init_sal): Initialize `probe' field.
7496 * symtab.h (struct probe): Forward declaration.
7497 (struct symtab_and_line) <probe>: New field.
7498 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7500 (stop_tracing): Likewise.
7501 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7503 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7504 Tom Tromey <tromey@redhat.com>
7506 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7507 and to compile agent expressions.
7508 * infrun.c (siginfo_make_value): New argument `ignore'.
7509 (siginfo_funcs): New struct.
7510 (_initialize_infrun): New argument when calling
7511 `create_internalvar_type_lazy'.
7512 * thread.c (thread_id_make_value): New argument `ignore'.
7513 (thread_funcs): New struct.
7514 (_initialize_thread): New argument when calling
7515 `create_internalvar_type_lazy'.
7516 * tracepoint.c (sdata_make_value): New argument `ignore'.
7517 (sdata_funcs): New struct.
7518 (_initialize_tracepoint): New argument when calling
7519 `create_internalvar_type_lazy'.
7520 * value.c (make_value): New struct.
7521 (create_internalvar_type_lazy): New argument `data'.
7522 (compile_internalvar_to_ax): New function.
7523 (value_of_internalvar): Properly handling `make_value' case.
7524 (clear_internalvar): Likewise.
7525 (show_convenience): Adding `TRY_CATCH' block.
7526 * value.h (internalvar_make_value): Delete, replace by...
7527 (struct internalvar_funcs): ... this.
7528 (create_internalvar_type_lazy) <fun>: Delete argument.
7529 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7530 (compile_internalvar_to_ax): New function.
7531 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7532 (tlb_funcs): New struct.
7533 (_initialize_windows_tdep): New argument when calling
7534 `create_internalvar_type_lazy'.
7536 2012-04-27 Mark Wielaard <mjw@redhat.com>
7538 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7539 see whether it is an address or a constant offset from DW_AT_low_pc.
7540 (dwarf2_record_block_ranges): Likewise.
7541 (read_partial_die): Likewise.
7543 2012-04-26 Mark Wielaard <mjw@redhat.com>
7545 * MAINTAINERS (Write After Approval): Add myself to the list.
7547 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7549 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7550 (proc_prettyprint_signal): Likewise.
7551 (proc_prettyprint_faultset): Likewise.
7552 (proc_prettyprint_fault): Likewise.
7553 (proc_prettyprint_actionset): Likewise.
7554 (proc_prettyprint_flags): Move to new proc-flags.c section.
7555 (proc_prettyfprint_flags): New prototype.
7556 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7557 (proc_syscall, proc_cursig): Likewise.
7558 (proc_set_kill_on_last_close): Likewise.
7559 (proc_unset_kill_on_last_close): Likewise.
7560 (proc_set_watchpoint): Make static.
7561 (proc_delete_dead_threads): Likewise.
7562 (procfs_set_watchpoint): Likewise.
7563 (_initialize_procfs): Add prototype.
7564 * proc-events.c: Include proc-utils.h.
7565 (init_syscall_table): Make static.
7566 * proc-api.c (_initialize_proc_api): Add prototype.
7567 * proc-flags.c: Include proc-utils.h.
7569 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7571 * configure.ac: Add AC_ARG_PROGRAM.
7572 * configure: Regenerate.
7574 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7576 Fix DW_AT_lower_bound defaults for DWARF-4+.
7577 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7578 high. New variable low_default_is_valid. Implement DWARF-4+
7579 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7580 no default by the DWARF standard.
7582 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7583 Maciej W. Rozycki <macro@codesourcery.com>
7585 * infrun.c (handle_inferior_event): Move the check for return
7586 trampolines ahead of the check for function trampolines.
7587 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7588 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7589 (mips_str_mips16_ret_stub): Likewise.
7590 (mips_str_call_fp_stub): Likewise.
7591 (mips_str_call_stub): Likewise.
7592 (mips_str_fn_stub): Likewise.
7593 (mips_str_pic): Likewise.
7594 (mips_in_frame_stub): New function.
7595 (mips_unwind_pc): Return the return address rather than the PC
7596 if the PC of an intermediate frame is inside a call thunk.
7597 (mips_is_stub_suffix): New function.
7598 (mips_is_stub_mode): Likewise.
7599 (mips_get_mips16_fn_stub_pc): Likewise.
7600 (mips_skip_mips16_trampoline_code): Update to handle all the
7601 currently generated stub types. Don't recurse into __fn_stub
7602 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7603 Use cooked register accesses.
7604 (mips_in_return_stub): Reintroduce function.
7605 (mips_skip_trampoline_code): Traverse trampolines recursively.
7606 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7608 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7612 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7614 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7615 * features/arm-with-m-vfp-d16.xml: New file. Describes
7616 Cortex-M with VFPv4-sp-d16 FPU register layout.
7617 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7618 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7619 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7620 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7621 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7623 2012-04-25 Doug Evans <dje@google.com>
7625 * cli/cli-decode.c (print_doc_line): Use stream instead of
7628 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7630 * features/arm-with-iwmmxt.c: Regenerate.
7631 * features/arm-with-m-fpa-layout.c: Likewise.
7632 * features/arm-with-m.c: Likewise.
7633 * features/arm-with-neon.c: Likewise.
7634 * features/arm-with-vfpv2.c: Likewise.
7635 * features/arm-with-vfpv3.c: Likewise.
7636 * features/mips-dsp-linux.c: Likewise.
7637 * features/mips-linux.c: Likewise.
7638 * features/mips64-dsp-linux.c: Likewise.
7639 * features/mips64-linux.c: Likewise.
7640 * features/s390-linux32.c: Likewise.
7641 * features/s390-linux32v1.c: Likewise.
7642 * features/s390-linux32v2.c: Likewise.
7643 * features/s390-linux64.c: Likewise.
7644 * features/s390-linux64v1.c: Likewise.
7645 * features/s390-linux64v2.c: Likewise.
7646 * features/s390x-linux64.c: Likewise.
7647 * features/s390x-linux64v1.c: Likewise.
7648 * features/s390x-linux64v2.c: Likewise.
7649 * features/tic6x-c62x-linux.c: Likewise.
7650 * features/tic6x-c62x.c: Likewise.
7651 * features/tic6x-c64x-linux.c: Likewise.
7652 * features/tic6x-c64x.c: Likewise.
7653 * features/tic6x-c64xp-linux.c: Likewise.
7654 * features/tic6x-c64xp.c: Likewise.
7655 * target-descriptions.c: Only generate `field_type' and `type'
7656 variables when needed.
7658 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7660 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7662 2012-04-25 Doug Evans <dje@google.com>
7664 Initial pass at Go language support.
7666 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7668 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7669 (YYFILES): Add go-exp.c.
7670 (YYOBJ): Add go-exp.o.
7671 (local-maintainer-clean): Delete go-exp.c.
7672 * defs.h (enum language): Add language_go.
7673 * dwarf2read.c: #include "go-lang.h".
7674 (fixup_go_packaging): New function.
7675 (process_full_comp_unit): Call it when processing Go CUs.
7676 (dwarf2_physname): Add Go support.
7677 (read_file_scope): Handle missing language spec for GNU Go.
7678 (set_cu_language): Handle DW_LANG_Go.
7679 * go-exp.y: New file.
7680 * go-lang.h: New file.
7681 * go-lang.c: New file.
7682 * go-typeprint.c: New file.
7683 * go-valprint.c: New file.
7684 * symtab.c: #include "go-lang.h".
7685 (symbol_set_language): Handle language_go.
7686 (symbol_find_demangled_name, symbol_set_names): Ditto.
7687 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7689 2012-04-24 Jim Meyering <meyering@redhat.com>
7691 avoid a few strncpy-induced buffer overruns
7692 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7693 fname and psargs before trying to concatenate.
7694 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7695 "name" before applying strchr.
7697 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7699 * CONTRIBUTE: Use unified diff instead of context diff when
7702 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7704 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7705 code. Handle JR.HB correctly.
7707 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7710 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7711 with the other MIPS16 helpers.
7713 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7715 * observer.sh: Conditionally declare `args', thus cleaning up
7716 unused instances of this variable.
7718 2012-04-24 Yao Qi <yao@codesourcery.com>
7720 Revert this patch to allow breakpoint always-inserted
7722 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7723 * breakpoint.c: Include record.h.
7724 (breakpoints_always_inserted_mode): Return false when the record
7727 * breakpoint.c (iterate_over_bp_locations): New.
7728 * breakpoint.h: Declare.
7729 New typedef walk_bp_location_callback.
7730 * record.c (record_open): Call record_init_record_breakpoints.
7731 (record_sync_record_breakpoints): New.
7732 (record_init_record_breakpoints): New.
7733 * NEWS: Mention supporting breakpoint always-inserted mode in
7736 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7738 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7741 2012-04-24 Yao Qi <yao@codesourcery.com>
7743 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7744 (is_catchpoint): ... it.
7745 (print_one_breakpoint_location): Caller update.
7746 * breakpoint.h: Update declaration.
7748 2012-04-23 David S. Miller <davem@davemloft.net>
7750 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7752 2012-04-23 Tom Tromey <tromey@redhat.com>
7754 * buildsym.c (add_free_pendings): Remove.
7755 * buildsym.h (add_free_pendings): Remove.
7757 2012-04-23 Doug Evans <dje@google.com>
7759 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7760 attr.u.unsnd instead of attr.u.addr.
7761 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7762 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7764 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7765 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7767 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7769 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7771 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7772 (mips_o32_return_value): Likewise.
7773 (mips_o64_return_value): Likewise.
7775 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7777 * ada-lang.c (ada_evaluate_subexp): Add cases for
7778 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7779 their treatment in eval.c.
7781 2012-04-21 David S. Miller <davem@davemloft.net>
7783 * sparc-tdep.c (X_DISP10): Define.
7784 (sparc_analyze_control_transfer): Handle compare-and-branch.
7786 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7788 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7789 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7791 2012-04-20 Nigel Stephens <nigel@mips.com>
7792 Maciej W. Rozycki <macro@codesourcery.com>
7794 * mips-tdep.c (mips_float_register_p): New function.
7795 (mips_convert_register_float_case_p): Use mips_float_register_p.
7796 (mips_register_type): Likewise.
7797 (mips_print_register): Likewise.
7798 (print_gp_register_row): Likewise.
7799 (mips_print_registers_info): Likewise.
7801 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7803 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7806 2012-04-20 Andrew Pinski <apinski@cavium.com>
7808 * MAINTAINERS (Write After Approval): Add myself to the list.
7810 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7812 * MAINTAINERS: Update my e-mail address.
7814 2012-04-20 Pedro Alves <palves@redhat.com>
7816 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7818 * configure: Regenerate.
7820 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7822 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7824 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7826 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7828 Fix compilation compatibility with python-2.4
7829 * python/py-type.c (convert_field): Cast ADDRSTRING for
7830 PyObject_SetAttrString as non-const. New comment.
7832 2012-04-19 Tom Tromey <tromey@redhat.com>
7834 * top.c (quit_target): Use all_cleanups.
7835 * main.c (captured_command_loop): Use all_cleanups.
7836 * exceptions.c (throw_exception): Use all_cleanups.
7838 2012-04-19 Pedro Alves <palves@redhat.com>
7840 * Makefile.in (GNULIB_BUILDDIR): New.
7841 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7842 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7843 (CLEANDIRS). Remove gnulib/import.
7844 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7846 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7847 (gnulib/import/Makefile): Replace gnulib/import with
7848 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7849 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7850 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7851 acx_configure_dir.m4.
7852 * acinclude.m4: Include acx_configure_dir.m4.
7853 * acx_configure_dir.m4: New file.
7854 * aclocal.m4: Regenerate.
7855 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7856 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7857 (GNULIB): New variable.
7858 (GNULIB_STDINT_H): Adjust.
7859 (AC_OUTPUT): Don't output gnulib/Makefile.
7860 * gdb/defs.h: Include build-gnulib/config.h.
7861 * aclocal.m4: Regenerate.
7862 * config.in: Regenerate.
7863 * configure: Regenerate.
7865 * gnulib/Makefile.in: New file.
7866 * gnulib/configure.ac: New file.
7867 * gnulib/aclocal.m4: New file.
7868 * gnulib/config.in: New file.
7869 * gnulib/configure: New file.
7870 * gnulib/: Re-run gnulib-tool to adjust.
7872 2012-04-19 Doug Evans <dje@google.com>
7874 * cleanups.h (struct cleanup): Move to cleanups.c.
7875 (make_cleanup_dtor_ftype): New typedef.
7876 (make_cleanup_dtor): Use it.
7877 (ALL_CLEANUPS): Replace with ...
7878 (all_cleanups): ... this. Declare. All uses updated.
7879 * cleanups.c: #include "gdb_assert.h".
7880 (sentinel_cleanup): New static global.
7881 (SENTINEL_CLEANUP): Define.
7882 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7883 (make_my_cleanup2): Assert result is non-NULL.
7884 (all_cleanups): New function.
7885 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7888 2012-04-19 Pedro Alves <palves@redhat.com>
7890 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7891 Adjust paths to gnulib imported files.
7893 2012-04-19 Pedro Alves <palves@redhat.com>
7895 * gnulib/: Move whole directory ...
7896 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7897 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7898 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7899 (aclocal_m4_deps): Adjust.
7900 * aclocal.m4: Regenerate.
7901 * configure: Regenerate.
7902 * configure.ac: Adjust AC_OUTPUT output.
7904 2012-04-19 Yao Qi <yao@codesourcery.com>
7906 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7908 * vec.c: Move it ...
7909 * common/vec.c: ... here.
7910 * vec.h: Move it ...
7911 * common/vec.h: ... here.
7913 2012-04-19 Yao Qi <yao@codesourcery.com>
7915 * gdb-code-style.el: New.
7917 2012-04-18 Pedro Alves <palves@redhat.com>
7919 Update gnulib from latest git.
7920 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7922 * gnulib/Makefile.am: Update.
7923 * gnulib/dummy.c: Update.
7924 * gnulib/extra/arg-nonnull.h: Update.
7925 * gnulib/extra/c++defs.h: Update.
7926 * gnulib/extra/update-copyright: Update.
7927 * gnulib/extra/warn-on-use.h: Update.
7928 * gnulib/inttypes.in.h: Update.
7929 * gnulib/m4/00gnulib.m4: Update.
7930 * gnulib/m4/extensions.m4: Update.
7931 * gnulib/m4/gnulib-cache.m4: Update.
7932 * gnulib/m4/gnulib-common.m4: Update.
7933 * gnulib/m4/gnulib-comp.m4: Update.
7934 * gnulib/m4/gnulib-tool.m4: Update.
7935 * gnulib/m4/include_next.m4: Update.
7936 * gnulib/m4/inttypes-pri.m4: Update.
7937 * gnulib/m4/inttypes.m4: Update.
7938 * gnulib/m4/longlong.m4: Update.
7939 * gnulib/m4/memchr.m4: Update.
7940 * gnulib/m4/memmem.m4: Update.
7941 * gnulib/m4/mmap-anon.m4: Update.
7942 * gnulib/m4/multiarch.m4: Update.
7943 * gnulib/m4/onceonly.m4: Update.
7944 * gnulib/m4/stddef_h.m4: Update.
7945 * gnulib/m4/stdint.m4: Update.
7946 * gnulib/m4/string_h.m4: Update.
7947 * gnulib/m4/warn-on-use.m4: Update.
7948 * gnulib/m4/wchar_h.m4: Update.
7949 * gnulib/m4/wchar_t.m4: Update.
7950 * gnulib/m4/wint_t.m4: Update.
7951 * gnulib/memchr.c: Update.
7952 * gnulib/memmem.c: Update.
7953 * gnulib/stddef.in.h: Update.
7954 * gnulib/stdint.in.h: Update.
7955 * gnulib/str-two-way.h: Update.
7956 * gnulib/string.in.h: Update.
7957 * gnulib/wchar.in.h: Update.
7959 * gnulib/extra/arg-nonnull.h: Delete.
7960 * gnulib/extra/c++defs.h: Delete.
7961 * gnulib/extra/warn-on-use.h: Delete.
7962 * gnulib/m4/wchar_h.m4: Delete.
7963 * gnulib/m4/wint_t.m4: Delete.
7964 * gnulib/wchar.in.h: Delete.
7966 * gnulib/extra/snippets/arg-nonnull.h: New.
7967 * gnulib/extra/snippets/c++defs.h: New.
7968 * gnulib/extra/snippets/warn-on-use.h: New.
7970 * aclocal.m4: Regenerate.
7971 * config.in: Regenerate.
7972 * configure: Regenerate.
7973 * gnulib/Makefile.in: Regenerate.
7975 2012-04-18 Pedro Alves <palves@redhat.com>
7977 Reimport the update-copyright module from gnulib
7978 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7980 * configure: Regenerate.
7981 * gnulib/Makefile.am: Update.
7982 * gnulib/Makefile.in: Regenerate.
7983 * gnulib/extra/update-copyright: Update.
7984 * gnulib/m4/gnulib-cache.m4: Update.
7985 * gnulib/m4/gnulib-comp.m4: Update.
7987 2012-04-18 Tristan Gingold <gingold@adacore.com>
7989 * configure.ac (aix): Put -lpthread into libs.
7990 * configure: Regenerate.
7992 2012-04-18 Tom Tromey <tromey@redhat.com>
7994 * linespec.c (convert_linespec_to_sals): Don't use
7996 (compare_msymbols): Arguments are minsym_and_objfile, not
7997 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7999 2012-04-18 Pedro Alves <palves@redhat.com>
8001 Revert gnulib/ part of:
8002 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8003 Copyright year update in most files (performed by copyright.sh).
8005 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8007 Fix 64-bit constants on 32-bit hosts.
8008 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8009 from unsigned long to ULONGEST.
8010 (read_signed_leb128): Change declaration return type from long to
8012 (dwarf2_const_value_attr): Change declaration parameter value from long
8014 (dwarf2_compute_name): Change variable value from long to LONGEST.
8015 (read_unsigned_leb128): Change return type, variable result and some
8016 casts from unsigned long to ULONGEST.
8017 (read_signed_leb128): Change return type, variable result and some
8018 casts from long to LONGEST.
8019 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8020 value from long to LONGEST.
8021 (dwarf2_const_value): Change variable value from long to LONGEST.
8022 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8023 plongest and hex_string.
8024 * symtab.h (struct general_symbol_info): Change ivalue from long to
8025 LONGEST, remove the comment.
8026 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8027 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8029 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8032 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8033 * ada-lang.c (ada_discrete_type_high_bound)
8034 (ada_discrete_type_low_bound): Fix function comment. Use
8035 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8036 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8037 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8038 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8039 Use TYPE_FIELD_ENUMVAL.
8040 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8041 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8042 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8043 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8045 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8046 * dwarf2read.c (process_enumeration_scope): Likewise.
8047 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8049 (class StructMainTypePrettyPrinter): Support also
8050 FIELD_LOC_KIND_ENUMVAL.
8051 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8053 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8054 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8055 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8056 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8058 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8059 accommodate enumval.
8060 (struct call_site): Adjust loc_kind to accommodate enumval.
8061 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8062 (TYPE_FIELD_ENUMVAL): New macros.
8063 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8064 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8066 * p-typeprint.c (pascal_type_print_base): Likewise.
8067 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8069 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8070 * python/py-type.c (convert_field): New variable addrstring. Use
8071 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8072 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8073 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8074 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8076 * valprint.c (generic_val_print): Likewise.
8078 2012-04-17 Doug Evans <dje@google.com>
8080 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8082 * dwarf2read.c: Whitespace fixes.
8083 (lookup_signatured_type): Tweak comment.
8084 (get_die_type_at_offset): Fix comment.
8086 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8088 * xcoffread.c (xcoff_secnum_to_sections): New function.
8089 (secnum_to_section, secnum_to_bfd_section): Reimplement
8090 using xcoff_secnum_to_sections. Rename "secnum" parameter
8092 (RECORD_MINIMAL_SYMBOL): Delete.
8093 (record_minimal_symbol): New function.
8094 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8095 by call to record_minimal_symbol and set misc_func_recorded
8096 to 1. Set last_csect_sec to the XCOFF section index instead
8097 of GDB's section_offset index. Update calls to
8098 prim_record_minimal_symbol_and_info to pass the BFD section
8101 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8103 * xcoffread.c (read_xcoff_symtab): Delete variables
8104 last_csect_val and last_csect_sec and associated code.
8106 2012-04-17 Doug Evans <dje@google.com>
8108 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8109 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8110 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8111 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8113 * cleanups.h: New file.
8114 * cleanups.c: New file.
8115 * Makefile.in (SFILES): Add cleanups.c.
8116 (HFILES_NO_SRCDIR): Add cleanups.h.
8117 (COMMON_OBS): Add cleanups.o.
8118 * defs.h (struct cleanup): Moved to cleanups.h.
8119 (do_cleanups,do_final_cleanups): Ditto.
8120 (discard_cleanups,discard_final_cleanups): Ditto
8121 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8122 (save_cleanups,save_final_cleanups): Ditto.
8123 (restore_cleanups,restore_final_cleanups): Ditto.
8124 (null_cleanup): Ditto.
8125 (make_my_cleanup,make_my_cleanup2): Ditto.
8126 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8127 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8128 (do_cleanups,do_final_cleanups): Ditto.
8129 (discard_cleanups,discard_final_cleanups): Ditto
8130 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8131 (save_cleanups,save_final_cleanups): Ditto.
8132 (restore_cleanups,restore_final_cleanups): Ditto.
8133 (null_cleanup): Ditto.
8134 (make_my_cleanup,make_my_cleanup2): Ditto.
8135 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8137 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8139 (make_cleanup_dyn_string_delete): Ditto.
8140 (make_cleanup_ui_file_delete): Ditto.
8141 (make_cleanup_ui_out_redirect_pop): Ditto.
8142 (make_cleanup_free_section_addr_info): Ditto.
8143 (make_cleanup_restore_integer): Ditto.
8144 (make_cleanup_unpush_target): Ditto.
8145 (make_cleanup_value_free_to_mark): Ditto.
8146 (make_cleanup_value_free): Ditto.
8147 (make_cleanup_free_so): Ditto.
8149 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8151 New option "set debug auto-load".
8152 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8153 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8154 (auto_load_safe_path_vec_update)
8155 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8157 (file_is_auto_load_safe): New parameters debug_fmt and ....
8158 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8159 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8160 caller by explanatory string.
8161 (_initialize_auto_load): Register "set debug auto-load".
8162 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8164 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8165 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8166 by explanatory string.
8167 * main.c (captured_main): Likewise.
8168 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8169 (source_section_scripts): Likewise.
8171 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8173 New option "set auto-load safe-path".
8174 * NEWS: New commands "set auto-load safe-path"
8175 and "show auto-load safe-path".
8176 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8177 (auto_load_safe_path, auto_load_safe_path_vec)
8178 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8179 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8180 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8181 (source_gdb_script_for_objfile): New variable is_safe. Call
8182 file_is_auto_load_safe. Return if it is not.
8183 (struct loaded_script): New field loaded.
8184 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8185 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8186 output "Missing" to "No".
8187 (_initialize_auto_load): New variable cmd. Initialize
8188 auto_load_safe_path. Register "set auto-load safe-path",
8189 "show auto-load safe-path" and "add-auto-load-safe-path".
8190 * auto-load.h (maybe_add_script): Add parameter loaded.
8191 (file_is_auto_load_safe): New declaration.
8192 * config.in: Regenerate.
8193 * configure: Regenerate.
8194 * configure.ac: New parameters --with-auto-load-safe-path
8195 and --without-auto-load-safe-path.
8196 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8197 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8198 * main.c (captured_main): Check file_is_auto_load_safe for
8200 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8201 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8202 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8205 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8207 auto-load: Implementation.
8208 * NEWS: New descriptions for "info auto-load",
8209 "info auto-load gdb-scripts", "info auto-load python-scripts",
8210 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8211 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8212 and "show auto-load-scripts". New description for "set auto-load",
8213 "show auto-load", "set auto-load gdb-scripts",
8214 "show auto-load gdb-scripts", "set auto-load python-scripts",
8215 "show auto-load python-scripts", "set auto-load local-gdbinit",
8216 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8217 "show auto-load libthread-db".
8218 * auto-load.c: Remove include python/python-internal.h. Add includes
8219 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8221 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8222 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8223 (gdbpy_global_auto_load): Rename to ...
8224 (global_auto_load): ... here.
8225 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8226 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8227 (script_language_gdb, source_gdb_script_for_objfile): New.
8228 (struct loaded_script): New field language.
8229 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8231 (maybe_add_script): Add parameter language. Drop redundant
8232 entry.full_path initialization. Initialize entry.language and
8234 (auto_load_objfile_script): Change parameter suffix to language.
8235 Remove the call of maybe_add_script.
8236 Call language->source_script_for_objfile.
8237 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8239 (collect_matching_scripts): Adjust it for
8240 struct collect_matching_scripts_data.
8241 (auto_load_info_scripts_pattern_nl): New variable.
8242 (info_auto_load_scripts): Rename to ...
8243 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8244 for struct collect_matching_scripts_data.
8245 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8246 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8247 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8248 (auto_load_info_cmdlist_get): New.
8249 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8250 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8251 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8252 "info auto-load local-gdbinit".
8253 * auto-load.h (struct script_language): New.
8254 (gdbpy_global_auto_load): Rename to ...
8255 (global_auto_load): ... here.
8256 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8257 (auto_load_local_gdbinit_loaded): New declarations.
8258 (maybe_add_script): New parameter language.
8259 (auto_load_objfile_script): Change parameter suffix to language.
8260 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8261 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8262 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8264 * linux-thread-db.c: Include auto-load.h and ctype.h.
8265 (auto_load_thread_db, show_auto_load_thread_db): New.
8266 (struct thread_db_info): New field filename.
8267 (delete_thread_db_info): Call xfree for FILENAME.
8268 (try_thread_db_load): Initialize FILENAME.
8269 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8270 if !AUTO_LOAD_THREAD_DB.
8271 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8272 (_initialize_thread_db): Install auto_load_thread_db
8273 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8274 as "info auto-load libthread-db".
8275 * main.c (captured_main): Rename gdbpy_global_auto_load to
8276 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8277 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8278 (print_gdb_help): Extend the help for 'local init file'.
8279 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8280 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8281 (auto_load_scripts): Rename to ...
8282 (auto_load_python_scripts): ... here, update the comment.
8283 (gdbpy_load_auto_script_for_objfile): New declaration.
8284 (show_auto_load_python_scripts, script_language_python)
8285 (gdbpy_load_auto_script_for_objfile): New.
8286 (source_section_scripts): Refactor the code.
8287 (load_auto_scripts_for_objfile): Rename to ...
8288 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8289 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8290 (info_auto_load_python_scripts): New.
8291 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8292 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8293 Register "set auto-load-scripts" as its deprecated alias. Register
8294 "info auto-load python-scripts". Register "info auto-load-scripts" as
8295 its deprecated alias.
8296 (load_auto_scripts_for_objfile): Rename to ...
8297 (gdbpy_load_auto_scripts_for_objfile): ... here.
8298 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8299 (gdbpy_load_auto_scripts_for_objfile): ... here.
8301 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8303 auto-load: Move files.
8304 * Makefile.in (SFILES): Add auto-load.c.
8305 (HFILES_NO_SRCDIR): Add auto-load.h.
8306 (COMMON_OBS): Add auto-load.o.
8307 (distclean): Change .gdbinit for gdb-gdb.gdb.
8308 * auto-load.c: New file, with parts from python/py-auto-load.c.
8309 * auto-load.h: New file, with parts from python/python.h.
8310 * configure: Regenerate.
8311 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8312 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8313 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8314 * main.c: Include auto-load.h.
8315 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8316 command.h, observer.h and progspace.h to auto-load.c. Add include
8318 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8319 (struct loaded_script, auto_load_pspace_data)
8320 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8321 (hash_loaded_script_entry, eq_loaded_script_entry)
8322 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8323 (maybe_add_script): Move to auto-load.c.
8324 (source_section_scripts): Change maybe_add_script parameters passing,
8325 use script_not_found_warning_print.
8326 (clear_section_scripts, auto_load_objfile_script)
8327 (auto_load_new_objfile, loaded_script_ptr)
8328 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8329 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8330 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8331 auto_load_new_objfile and info_auto_load_scripts initizations to
8333 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8335 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8338 * charset.c (find_charset_names): Remove variables ix and elt.
8339 Use free_char_ptr_vec.
8340 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8341 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8342 debugdir_end. New variable debugdir_len.
8343 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8344 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8346 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8347 and elt. Use free_char_ptr_vec.
8348 * source.c (add_path): Remove variables argv, arg and argv_index.
8349 New variables dir_vec, back_to, ix and name.
8350 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8351 make_cleanup_freeargv. Remove variable separator. Simplify the code
8352 no longer expecting DIRNAME_SEPARATOR.
8353 (openp): Remove variable p, p1 and len. New variables dir_vec,
8354 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8355 no longer expecting DIRNAME_SEPARATOR.
8356 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8357 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8359 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8360 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8361 (dirnames_to_char_ptr_vec): New functions.
8363 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8366 * source.c (add_path): Remove always true conditional 'p == 0' and
8367 unindent its code block.
8369 2012-04-17 Pedro Alves <palves@redhat.com>
8371 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8372 (FIELD_BITPOS_LVAL): ... this.
8373 (FIELD_BITPOS): New.
8374 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8375 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8376 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8378 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8380 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8381 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8382 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8385 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8387 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8388 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8389 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8390 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8391 * jv-lang.c (java_link_class_type): Likewise, once.
8392 * stabsread.c (read_enum_type): Likewise.
8394 2012-04-16 Yao Qi <yao@codesourcery.com>
8396 * common/agent.c (agent_run_command): Add one more parameter `len'.
8398 * common/agent.h: Update declaration.
8399 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8401 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8403 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8406 * value.c (value_actual_type): New function.
8407 * value.h (value_actual_type): New declaration.
8408 * varobj.c (update_type_if_necessary): New function.
8409 (varobj_create): Call value_actual_type instead of
8411 (install_dynamic_child): distinct changed and type changed MI variable
8413 (update_dynamic_varobj_children): Updated for install_dynamic_child
8414 change. All callers updated.
8415 (varobj_update): Support for MI variable object type change if
8416 the value changed and RTTI is used to determine the type.
8417 (create_child_with_value): Call value_actual_type instead of
8419 (adjust_value_for_child_access): Extended with a new parameter which
8420 specify whether the given value should be casted to enclosing type.
8421 All callers updated.
8423 2012-04-14 Yao Qi <yao@codesourcery.com>
8425 Import gnulib module inttypes from git
8426 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8427 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8428 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8429 gnulib/m4/inttypes-pri.m4
8430 * aclocal.m4, config.in, configure: Regenerated.
8431 * gnulib/Makefile.am: Update.
8432 * gnulib/Makefile.in: Update.
8433 * gnulib/m4/gnulib-cache.m4: Update.
8434 * gnulib/m4/gnulib-comp.m4: Update.
8435 * gnulib/inttypes.in.h: New.
8436 * gnulib/m4/inttypes-pri.m4: New.
8437 * gnulib/m4/inttypes.m4: New.
8439 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8441 * infrun.c (resume): Update PC address to the real PC after
8442 preparing to do displaced stepping.
8444 2012-04-12 Doug Evans <dje@google.com>
8446 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8447 All callers updated.
8449 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8451 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8453 2012-04-12 Doug Evans <dje@google.com>
8455 * dwarf2read.c (create_all_type_units): Renamed from
8456 create_debug_types_hash_table. All callers updated.
8458 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8459 local type_sig to sig_type, type_offset to type_offset_in_tu.
8460 (hash_signatured_type): Renamed from hash_type_signature,
8461 all callers updated.
8462 (eq_signatured_type): Renamed from eq_type_signature,
8463 all callers updated.
8464 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8465 (process_enumeration_scope): Ditto.
8466 (lookup_signatured_type_at_offset): Ditto.
8467 (load_full_type_unit, read_signatured_type): Ditto.
8469 2012-04-12 Yao Qi <yao@codesourcery.com>
8471 * remote.c (async_remote_interrupt): Correct function name in
8473 (async_remote_interrupt_twice): Ditto.
8475 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8477 * source.c (find_and_open_source): Consistently pass resulting
8478 full path through xfullpath.
8480 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8482 Provide more specific displaced-stepping memory error message.
8483 * infrun.c (displaced_step_prepare): New variable status. Call
8484 target_read_memory instead of read_memory, provide more specific
8487 2012-04-11 Tristan Gingold <gingold@adacore.com>
8490 * darwin-nat.c (darwin_execvp): Revert previous patch.
8492 2012-04-11 Tristan Gingold <gingold@adacore.com>
8495 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8498 2012-04-11 Tristan Gingold <gingold@adacore.com>
8500 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8503 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8505 New command 'explore' which helps explore values and types in
8507 * NEWS: Add an entry about the new 'explore' command.
8508 * data-directory/Makefile.in: Add gdb/command/explore.py
8509 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8510 command using the GDB Python API.
8512 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8514 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8515 extension in jump target calculation.
8517 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8519 * mips-tdep.c (mips32_next_pc): Handle JALX.
8521 2012-04-10 Yao Qi <yao@codesourcery.com>
8523 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8525 2012-04-10 Yao Qi <yao@codesourcery.com>
8527 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8528 and gnulib/m4/gnulib-tool.m4.
8530 2012-04-10 Doug Evans <dje@google.com>
8532 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8533 (load_partial_dies): Clarify comment.
8534 (find_partial_die): Support rereading type units.
8535 Clarify CU handling, if we know offset is in CU, don't search for the
8536 containing CU. Add comment regarding memory waste.
8538 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8540 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8541 i386/x32-avx and i386/x32-avx-linux.
8542 (i386/x32-expedite): New.
8543 (i386/x32-linux-expedite): Likewise.
8544 (i386/x32-avx-expedite): Likewise.
8545 (i386/x32-avx-linux-expedite): Likewise.
8546 ($(outdir)/i386/x32.dat): Likewise.
8547 ($(outdir)/i386/x32-linux.dat): Likewise.
8548 ($(outdir)/i386/x32-avx.dat): Likewise.
8549 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8551 * features/i386/x32-avx-linux.xml: New file.
8552 * features/i386/x32-avx.xml: Likewise.
8553 * features/i386/x32-core.xml: Likewise.
8554 * features/i386/x32-linux.xml: Likewise.
8555 * features/i386/x32.xml: Likewise.
8557 * features/i386/x32-avx-linux.c: New. Generated.
8558 * features/i386/x32-avx.c: Likewise.
8559 * features/i386/x32-linux.c: Likewise.
8560 * features/i386/x32.c: Likewise.
8561 * regformats/i386/x32-avx-linux.dat: Likewise.
8562 * regformats/i386/x32-avx.dat: Likewise.
8563 * regformats/i386/x32-linux.dat: Likewise.
8564 * regformats/i386/x32.dat: Likewise.
8566 2012-04-10 Tristan Gingold <gingold@adacore.com>
8568 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8569 code to kill the inferior.
8571 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8573 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8575 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8577 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8578 (yyvsp): New defines.
8579 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8581 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8583 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8585 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8587 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8590 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8592 * sparc64-tdep.c (sparc64_store_arguments)
8593 (sparc64_store_arguments): Fix coding style.
8595 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8597 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8598 complex floats, adjust some related comments and tighten a related
8600 (sparc64_extract_return_value): Handle complex floats.
8602 2012-04-07 Doug Evans <dje@google.com>
8604 * dwarf2read.c (load_partial_dies): Change condition to assert.
8606 2012-04-06 Doug Evans <dje@google.com>
8608 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8611 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8613 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8615 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8616 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8619 2012-04-05 Keith Seitz <keiths@redhat.com>
8621 * linespec.c (decode_compound): Remove.
8622 (enum offset_relative_sign): New enum.
8623 (struct line_offset): New struct.
8624 (struct linespec): New struct.
8625 (struct linespec_state): Move file_symtabs,
8626 user_filename, and user_function into struct linespec.
8627 Make result an anonymous struct holding vectors of
8628 symbolp and minsym_and_objfile_d.
8629 Add language member.
8630 (enum ls_token_type): New enum.
8631 (linespec_keywords): New array.
8632 (struct ls_token): New struct.
8633 (struct ls_parser): New struct.
8634 (linespec_lexer_lex_number): New function.
8635 (linespec_lexer_lex_keyword): New function.
8636 (is_ada_operator): New function.
8637 (skip_quote_char): New function.
8638 (copy_token_string): New function.
8639 (is_closing_quote_enclosed): New function.
8640 (find_parameter_list_end): New function.
8641 (linespec_lexer_lex_string): New function.
8642 (linespec_lexer_lex_one): New function.
8643 (linespec_lexer_consume_token): New function.
8644 (linespec_lexer_peek_token): New function.
8645 (cplusplus_error): Remove unused function.
8646 (find_methods): Update comment.
8647 (find_toplevel_char): Return const.
8648 (is_objc_method_format): Remove unused function.
8649 (find_toplevel_string): New function.
8650 (is_linespec_boundary): Remove.
8651 (symbol_not_found_error): New function.
8652 (find_method_overload_end): Remove function.
8653 (unexpected_linespec_error): New function.
8654 (keep_name_info): Remove.
8655 (linespec_parse_line_offset): New function.
8656 (linespec_parse_basic): New function.
8657 (canonicalize_linespec): New function.
8658 (decode_line_internal): Remove.
8659 (create_sals_line_offset): New function adapted from
8661 (convert_linespec_to_sals): New function.
8662 (parse_linespec): New function.
8663 (linespec_parser_new): New function.
8664 (linespec_state_destructor): Change parameter type to
8665 struct linespec_state *.
8666 Add language parameter.
8667 Remove freeing of moved members.
8668 (linespec_parser_delete): New function.
8669 (decode_line_full): Use parse_linespec and linespec_parser_new.
8670 (decode_line_1): Likewise.
8671 (decode_indirect): Rename to ...
8672 (linespec_expression_to_pc): ... this and rewrite
8673 to simply find CORE_ADDR, storing this result for later
8675 (locate_first_half): Remove.
8676 (deocde_objc): Add parameter LS.
8677 Initialize new struct collect_info members.
8678 Handle minimal symbols, too.
8679 (decode_compound): Delete.
8680 (lookup_prefix_sym): Rewrite.
8681 (compare_msymbols): New function.
8682 (find_method): Rewrite.
8683 Do not call cplusplus_error.
8684 (symtabs_from_filename): Rewrite.
8685 (collect_function_symbols): Delete.
8686 (find_function_symbols): Rewrite without ARGPTR-style
8688 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8689 (decode_dollar): Adapted and renamed to ...
8690 (linespec_parse_variable): ... this.
8691 (find_linespec_symbols): New function.
8692 (decode_label): Adapted and renamed to ...
8693 (find_label_symbols): ... this.
8694 (decode_digits_list_mode): Add and use LS argument.
8695 (decode_digits_ordinary): Likewise.
8696 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8697 If in list mode, allow any symbol class. Otherwise, only
8698 permit LOC_BLOCK symbols.
8699 (minsym_found): Update comments.
8700 (search_minsyms_for_name): Do not convert the matching symbol
8701 into a SAL. Simply push the symbol and objfile into the
8703 (decode_variable): Delete. Contents adapted into
8704 find_linespec_symbols.
8706 * cp-support.c (SKIP_SPACE): Remove.
8707 (operator_tokens): Remove unused global.
8708 (cp_validate_operator): Remove.
8709 * cp-support.h (cp_validate_operator): Remove declaration.
8711 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8713 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8714 for TYPE_VPTR_FIELDNO.
8715 * valprint.c (valprint_check_validity): Make it global, move the
8716 function comment ...
8717 * value.h (valprint_check_validity): ... to this new declaration.
8719 2012-04-02 Tristan Gingold <gingold@adacore.com>
8721 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8722 the STATE32 api for i386 state.
8723 (i386_darwin_store_inferior_registers): Likewise.
8725 2012-04-02 Tristan Gingold <gingold@adacore.com>
8727 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8729 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8732 2012-04-02 Tristan Gingold <gingold@adacore.com>
8735 * darwin-nat.c (darwin_execvp): Set binary preference.
8737 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8739 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8741 2012-03-30 Tom Tromey <tromey@redhat.com>
8743 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8744 of TRY_CATCH. Fix error handling.
8745 * python/py-value.c (convert_value_from_python): Move 'old'
8746 declaration to innermost scope.
8748 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8749 Andrey Smirnov <andrew.smirnov@gmail.com>
8751 -Wshadow warning fix.
8752 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8753 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8754 Adjust code accordingly.
8756 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8758 * ada-lang.c (symbol_completion_add): Rename parameter
8759 "encoded" into "encoded_p". Ajust code and documentation
8762 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8763 Andrey Smirnov <andrew.smirnov@gmail.com>
8765 -Wshadow warning fix.
8766 * ada-lang.c (symbol_completion_add): Rename parameter
8767 "wild_match" into wild_match_p. Update code and documentation
8770 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8772 * ada-lang.c (symbol_completion_match): Rename parameter
8773 "encoded" into "encoded_p". Ajust code and documentation
8776 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8777 Andrey Smirnov <andrew.smirnov@gmail.com>
8779 -Wshadow warning fix.
8780 * ada-lang.c (symbol_completion_match): Rename parameter
8781 "wild_match" into "wild_match_p". Adjust code and function
8782 documentation accordingly.
8784 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8785 Andrey Smirnov <andrew.smirnov@gmail.com>
8787 -Wshadow warning fix.
8788 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8789 "symbol_info" into "info". Adjust code accordingly.
8790 (ada_lookup_symbol): Likewise.
8792 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8794 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8795 of this function's documentation.
8797 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8798 Andrey Smirnov <andrew.smirnov@gmail.com>
8800 -Wshadow warning fix.
8801 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8802 variable into "wild_match_p". Adjust code accordingly.
8804 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8805 Andrey Smirnov <andrew.smirnov@gmail.com>
8807 -Wshadow warning fix.
8808 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8809 parameter into "wild_match_p". Adjust code accordingly.
8810 Document this parameter in the function description.
8812 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8813 Andrey Smirnov <andrew.smirnov@gmail.com>
8815 -Wshadow warning fix.
8816 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8817 "wild_match" parameter to "wild_match_p" (-Wshadow).
8819 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8821 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8822 in function documentation.
8824 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8825 Andrey Smirnov <andrew.smirnov@gmail.com>
8827 -Wshadow warning fix.
8828 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8829 variable into wild_match_p. Adjust code accordingly.
8831 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8832 Andrey Smirnov <andrew.smirnov@gmail.com>
8834 * ada-valprint.c (ada_val_print_1): Move the code handling
8835 TYPE_CODE_ENUM inside its own lexical block. Declare
8836 variables len and val there, instead of in the function's
8837 top level block. Avoid declaring deref_val again in a way
8838 that shadows another variable of the same name declared
8839 in one of the up-level blocks. Just re-use the up-level
8842 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8844 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8845 Replace block_found argument by symbol_info. Adjust
8846 implementation accordingly. Add function documentation.
8847 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8849 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8850 * ada-exp.y (write_object_renaming): Adjust to new
8851 ada_lookup_encoded_symbol API.
8853 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8855 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8858 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8860 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8861 (v850_register_name): Add the mpu and fpu register names.
8862 (v850e_register_name): Add the mpu and fpu register names.
8863 (v850e2_register_name): New function.
8864 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8867 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8869 * NEWS: Add entry for Ada varobj support.
8871 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8873 * varobj.c (default_value_is_changeable_p): New function,
8874 extracted from varobj_value_is_changeable_p. Add declaration.
8875 (ada_value_is_changeable_p): New function, extracted from
8876 varobj_value_is_changeable_p. Add declaration.
8877 (struct language_specific): New field "value_is_changeable_p".
8878 (languages): Add entries for new field.
8879 (varobj_create): Set language before calling install_new_value.
8880 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8881 "value_is_changeable_p" language callback.
8883 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8885 * ada-varobj.h, ada-varobj.c: New files.
8886 * Makefile.in (SFILES): Add ada-varobj.c.
8887 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8888 (COMMON_OBS): Add ada-varobj.o.
8890 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8892 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8893 (struct language_specific): New field "value_has_mutated".
8894 (languages): Set field "value_has_mutated" in each entry of array.
8895 (varobj_value_has_mutated): New function.
8896 (varobj_udpdate): Add handling of type mutation.
8897 (value_of_root): Add handling of type mutation.
8898 (ada_value_has_mutated): New function.
8900 2012-03-28 Pedro Alves <palves@redhat.com>
8902 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8903 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8905 2012-03-28 Tom Tromey <tromey@redhat.com>
8907 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8908 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8911 2012-03-28 Tom Tromey <tromey@redhat.com>
8913 * .dir-locals.el: New file.
8915 2012-03-28 Pedro Alves <palves@redhat.com>
8917 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8919 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8921 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8924 2012-03-27 Pedro Alves <palves@redhat.com>
8926 Eliminate struct ui_stream.
8928 * ui-out.h (struct ui_stream): Delete.
8929 (ui_out_field_stream): Adjust prototype.
8930 (ui_out_stream_new, ui_out_stream_delete)
8931 (make_cleanup_ui_out_stream_delete): Delete declarations.
8932 * ui-out.c (ui_out_field_stream): Change prototype to take a
8933 ui_file instead of a ui_stream. Adjust.
8934 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8935 (make_cleanup_ui_out_stream_delete): Delete.
8936 * breakpoint.c (print_breakpoint_location)
8937 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8938 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8939 * disasm.c (dump_insns): Ditto.
8940 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8942 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8943 ui_stream/ui_out_stream_new.
8944 * infcmd.c (print_return_value): Ditto.
8945 * osdata.c (info_osdata_command): Don't allocate a local
8947 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8948 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8949 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8950 allocate a local ui_stream.
8951 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8952 instead of ui_stream/ui_out_stream_new.
8953 (list_args_or_locals): Don't allocate a local ui_stream.
8954 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8955 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8956 ui_stream/ui_out_stream_new.
8957 * cli/cli-setshow.c (do_setshow_command): Ditto.
8959 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8961 * arm-linux-tdep.c (arm_linux_init_abi): Call
8962 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8963 * arm-tdep.c (arm_process_record): New function.
8964 (deallocate_reg_mem): New function.
8965 (decode_insn): New function.
8966 (thumb_record_branch): New function.
8967 (thumb_record_ldm_stm_swi(): New function.
8968 (thumb_record_misc): New function.
8969 (thumb_record_ld_st_stack): New function.
8970 (thumb_record_ld_st_imm_offset): New function.
8971 (thumb_record_ld_st_reg_offset(): New function.
8972 (thumb_record_add_sub_cmp_mov): New function.
8973 (thumb_record_shift_add_sub): New function.
8974 (arm_record_coproc_data_proc): New function.
8975 (arm_record_coproc): New function.
8976 (arm_record_b_bl): New function.
8977 (arm_record_ld_st_multiple): New function.
8978 (arm_record_ld_st_reg_offset): New function.
8979 (arm_record_ld_st_imm_offset): New function.
8980 (arm_record_data_proc_imm): New function.
8981 (arm_record_data_proc_misc_ld_str): New function.
8982 (arm_record_extension_space): New function.
8983 (arm_record_strx): New function.
8984 (sbo_sbz): New function.
8985 (struct insn_decode_record): New structure for arm insn record.
8986 (REG_ALLOC): New macro for reg allocations.
8987 (MEM_ALLOC): New macro for memory allocations.
8988 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8990 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8992 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8993 (store_register): Likewise.
8995 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8997 * MAINTAINERS (Write After Approval): Add myself to the list.
8999 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9001 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9002 Describe also the option "auto".
9004 2012-03-22 Richard Henderson <rth@redhat.com>
9006 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9007 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9009 2012-03-22 Richard Henderson <rth@redhat.com>
9011 * jit.c (jit_read_code_entry): Compute alignment and offset of
9012 int64_t member before computing entry_size.
9014 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9016 Python scripting: Add new method Value.referenced_value to
9017 gdb.Value which can dereference pointer as well as reference
9019 * NEWS: Add entry under 'Python scripting' about the new method
9020 Value.referenced_value on gdb.Value objects.
9021 * python/py-value.c (valpy_referenced_value): New function
9022 defining a new method on gdb.Value objects which can dereference
9023 pointer and reference values.
9025 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9027 * MAINTAINERS (Write After Approval): Add myself to the list.
9029 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9031 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9032 in addition to "main".
9034 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9036 * expression.h (op_name): Add declaration.
9037 * expprint.c (op_name): Remove declaration. Make non-static.
9038 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9040 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9042 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9044 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9045 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9046 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9047 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9048 (linux_nat_get_siginfo): Likewise.
9049 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9050 (linux_nat_get_siginfo): Likewise.
9051 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9052 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9053 * procfs.c (gdb_siginfo_t): Likewise.
9055 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9057 * .gitignore: Ignore more files.
9059 2012-03-20 Pedro Alves <palves@redhat.com>
9061 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9064 2012-03-20 Yao Qi <yao@codesourcery.com>
9066 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9069 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9071 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9072 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9073 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9075 * dwarf2expr.h (cu_offset, sect_offset): New types.
9076 (struct dwarf_expr_context_funcs) <dwarf_call>
9077 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9079 (struct dwarf_expr_context) <len>: Improve the comment.
9080 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9081 cu_offset and sect_offset.
9082 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9083 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9084 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9085 * dwarf2loc.h: Include dwarf2expr.h.
9086 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9088 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9089 Improve the comment.
9090 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9091 (struct signatured_type, struct line_header, struct partial_die_info)
9092 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9093 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9094 (get_die_type_at_offset, create_cus_from_index)
9095 (create_signatured_type_table_from_index, dw2_get_file_names)
9096 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9097 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9098 (create_debug_types_hash_table, process_psymtab_comp_unit)
9099 (load_partial_comp_unit, create_all_comp_units)
9100 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9101 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9102 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9103 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9104 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9105 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9106 (find_partial_die, read_attribute_value, lookup_die_type)
9107 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9108 (is_ref_attr): New function comment.
9109 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9110 Use cu_offset and sect_offset.
9111 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9112 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9113 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9114 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9115 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9116 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9117 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9120 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9123 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9124 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9126 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9128 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9130 * NEWS: Describe new options --init-command=FILE, -ix and
9131 --init-eval-command=COMMAND, -iex.
9132 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9133 CMDARG_INIT_COMMAND.
9134 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9135 "init-command", "init-eval-command", "ix" and "iex" to the variable
9136 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9137 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9138 (print_gdb_help): Describe --init-command=FILE, -ix and
9139 --init-eval-command=COMMAND, -iex.
9141 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9144 * main.c (struct cmdarg): Move it here from main. Add more comments.
9145 (cmdarg_s, VEC (cmdarg_s)): New.
9146 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9147 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9148 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9149 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9152 2012-03-19 Tom Tromey <tromey@redhat.com>
9154 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9156 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9159 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9162 2012-03-16 Chris January <chris.january@allinea.com>
9164 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9167 2012-03-16 Chris January <chris.january@allinea.com>
9169 * source.c (add_path): Use memmove instead of strcpy because the
9172 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9174 * value.h (set_value_parent): Add declaration.
9175 * value.c (set_value_parent): New function.
9176 (value_address): If VALUE->PARENT is not NULL, then use it as
9177 the base address instead of VALUE->LOCATION.address.
9178 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9179 the same as OBJ's address. Adjust V's offset accordingly.
9182 2012-03-16 Gary Benson <gbenson@redhat.com>
9184 PR breakpoints/10738
9185 * dwarf2read.c (use_deprecated_index_sections): New global.
9186 (struct partial_die_info): New member may_be_inlined.
9187 (read_partial_die): Set may_be_inlined where appropriate.
9188 (add_partial_subprogram): Add partial symbols for partial
9189 DIEs that may be inlined.
9190 (new_symbol_full): Add inlined subroutines to the current
9192 (write_psymtabs_to_index): Bump version number.
9193 (dwarf2_read_index): Read only version 6 indices unless
9194 use_deprecated_index_sections is set.
9195 * linespec.c (symbol_and_data_callback): New structure.
9196 (iterate_inline_only): New function.
9197 (iterate_over_all_matching_symtabs): New argument
9198 "include_inline". If nonzero, also call the callback for
9199 symbols representing inlined subroutines.
9200 (lookup_prefix_sym): Pass extra argument to the above.
9201 (find_function_symbols): Likewise.
9202 (add_matching_symbols_to_info): Likewise.
9203 * NEWS: Mention that GDB can now set breakpoints on inlined
9206 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9208 * p-typeprint.c (pascal_type_print_method_args):
9209 Fix display of parameter of methods.
9211 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9213 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9214 Add missing prototype.
9216 2012-03-16 Yao Qi <yao@codesourcery.com>
9217 Jan Kratochvil <jan.kratochvil@redhat.com>
9219 Fix false compilation warning.
9220 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9222 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9223 Pedro Alves <pedro@codesourcery.com>
9225 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9226 (arm_register_g_packet_guesses): New function.
9227 (arm_gdbarch_init): Don't force a target description with
9228 registers when the executable is detected as M-profile. Instead
9229 set gdbarch->tdep->is_m. Register `g' packet guesses.
9230 (_initialize_arm_tdep): Initialize the new target description.
9231 * features/arm-with-m-fpa-layout.xml: New description.
9232 * features/arm-with-m-fpa-layout.c: New, generated.
9234 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9236 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9237 Update function description.
9238 (insert_bp_location): Do not wipe bl->target_info out.
9239 * mem-break.c: #include "gdb_string.h".
9240 (default_memory_insert_breakpoint): Do not call target_read_memory
9241 with a pointer to the breakpoint's shadow_contents buffer. Use
9242 a local buffer instead.
9243 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9245 2012-03-15 Tom Tromey <tromey@redhat.com>
9247 * NEWS: Mention "info vtbl", not "info vtable".
9248 * cp-support.c (info_vtbl_command): Fix comment.
9249 (_initialize_cp_support): Fix text.
9251 2012-03-15 Tom Tromey <tromey@redhat.com>
9253 * cp-valprint.c (cp_print_value_fields): Use
9254 print_function_pointer_address for vtable slot.
9256 2012-03-15 Tom Tromey <tromey@redhat.com>
9258 * gnu-v3-abi.c (struct value_and_voffset): New.
9259 (hash_value_and_voffset, eq_value_and_voffset)
9260 (compare_value_and_voffset, compute_vtable_size)
9261 (print_one_vtable, gnuv3_print_vtable): New functions.
9262 (init_gnuv3_ops): Initialize 'print_vtable' field.
9263 * cp-support.c (info_vtbl_command): New function.
9264 (_initialize_cp_support): Add "info vtbl".
9265 * cp-abi.h (cplus_print_vtable): Declare.
9266 (struct cp_abi_ops) <print_vtable>: New field.
9267 * cp-abi.c (cplus_print_vtable): New function.
9270 2012-03-15 Tom Tromey <tromey@redhat.com>
9272 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9273 iterate_over_symbols.
9275 2012-03-14 Doug Evans <dje@google.com>
9277 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9278 DW_OP_GNU_parameter_ref.
9280 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9282 Fix double prompt of 'interpreter-exec mi'.
9283 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9284 (mi_interpreter_resume): use it.
9285 (mi_execute_command_input_handler): New function.
9286 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9287 mi_execute_command_input_handler.
9289 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9291 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9293 (darwin_debug_port_info): Make static.
9294 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9295 * machoread.c (_initialize_machoread): Add prototype.
9296 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9297 (i386_darwin_set_control, i386_darwin_get_control)
9298 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9299 i386_darwin_get_status, i386_darwin_get_control):
9300 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9302 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9304 * ax-gdb.c (gen_usual_unary): Remove special handling of
9305 enum and bool types.
9307 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9309 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9311 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9313 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9315 2012-03-13 Chris January <chris.january@allinea.com>
9317 * aix-thread.c (fill_sprs): Store the floating point registers
9318 at the correct offsets into vals.
9320 2012-03-13 Doug Evans <dje@google.com>
9322 * NEWS: Mention symbol-reloading has been deleted.
9323 * symfile.c (symbol_reloading): Delete.
9324 (show_symbol_reloading): Delete.
9325 (_initialize_symfile): Delete set/show symbol-reloading.
9327 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9328 read_in_chain until we have successfully read it in.
9329 (load_full_comp_unit): Ditto.
9330 (read_signatured_type): Add comment.
9332 2012-03-13 Chris January <chris.january@allinea.com>
9334 * stabsread.c (fix_common_block): Change type of valu argument
9337 2012-03-13 Chris January <chris.january@allinea.com>
9339 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9342 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9344 * common/linux-procfs.c (linux_proc_get_int): New, from
9345 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9347 (linux_proc_get_tgid): Only call linux_proc_get_int.
9348 (linux_proc_get_tracerpid): New.
9349 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9350 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9351 linux_proc_pid_has_state.
9352 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9353 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9354 (linux_ptrace_attach_warnings): New.
9355 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9357 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9358 (linux_nat_attach): New variables ex, buffer, message and message_s.
9359 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9361 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9363 * Makefile.in (linux-ptrace.o): New.
9364 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9366 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9367 * common/linux-ptrace.c: New file.
9368 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9369 * config/arm/linux.mh: Likewise.
9370 * config/i386/linux.mh: Likewise.
9371 * config/i386/linux64.mh: Likewise.
9372 * config/ia64/linux.mh: Likewise.
9373 * config/m32r/linux.mh: Likewise.
9374 * config/m68k/linux.mh: Likewise.
9375 * config/mips/linux.mh: Likewise.
9376 * config/pa/linux.mh: Likewise.
9377 * config/powerpc/linux.mh: Likewise.
9378 * config/powerpc/ppc64-linux.mh: Likewise.
9379 * config/powerpc/spu-linux.mh: Likewise.
9380 * config/s390/s390.mh: Likewise.
9381 * config/sparc/linux.mh: Likewise.
9382 * config/sparc/linux64.mh: Likewise.
9383 * config/xtensa/linux.mh: Likewise.
9384 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9385 common/linux-procfs.c.
9386 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9388 2012-03-13 Hui Zhu <teawater@gmail.com>
9389 Pedro Alves <palves@redhat.com>
9391 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9392 CREATE_BREAKPOINT_FLAGS_INSERTED.
9393 (create_breakpoint_sal, create_breakpoints_sal)
9394 (base_breakpoint_create_breakpoints_sal)
9395 (tracepoint_create_breakpoints_sal)
9396 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9398 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9399 (ftrace_command, strace_command): Adjust.
9400 (create_tracepoint_from_upload): Pass
9401 CREATE_BREAKPOINT_FLAGS_INSERTED.
9402 * breakpoint.h (enum breakpoint_create_flags): New.
9403 (create_breakpoint): New flags parameter.
9404 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9405 * python/py-breakpoint.c (bppy_init): Adjust.
9406 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9407 * spu-tdep.c (spu_catch_start): Adjust.
9409 2012-03-13 Pedro Alves <palves@redhat.com>
9410 Hui Zhu <teawater@gmail.com>
9411 Yao Qi <yao@codesourcery.com>
9413 * remote.c (struct remote_state): New field `starting_up'.
9414 (remote_start_remote): Set and clear it.
9415 (remote_can_download_tracepoint): If starting up, return false.
9417 2012-03-13 Yao Qi <yao@codesourcery.com>
9419 * inferior.h (struct inferior): Remove fields any_syscall_count,
9420 syscalls_counts and total_syscalls_count. Move them to new
9421 struct catch_syscall_inferior_data in breakpoint.c.
9422 * breakpoint.c: Call DEF_VEC_I(int).
9423 (struct catch_syscall_inferior_data): New.
9424 (get_catch_syscall_inferior_data): New.
9425 (catch_syscall_inferior_data_cleanup): New.
9426 (insert_catch_syscall): Update to access data in
9427 struct catch_syscall_inferior_data.
9428 (insert_catch_syscall): Likewise.
9429 (remove_catch_syscall): Likewise.
9430 (remove_catch_syscall): Likewise.
9431 (is_syscall_catchpoint_enabled): Likewise.
9432 (add_catch_command): Likewise.
9433 (_initialize_breakpoint): Register cleanup.
9434 * breakpoint.h: Removed DEF_VEC_I(int).
9435 * dwarf2loc.c: Call DEF_VEC_I(int).
9436 * mi/mi-main.c: Likewise.
9438 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9440 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9442 2012-03-12 Chris January <chris.january@allinea.com>
9444 * aix-thread.c (_initialize_aix_thread): Add prototype.
9445 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9446 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9448 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9450 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9451 include of "amd64-nat.h".
9453 2012-03-12 Tom Tromey <tromey@redhat.com>
9455 * buildsym.c (record_pending_block): Now static.
9456 * buildsym.h: (record_pending_block): Remove.
9458 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9460 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9462 2012-03-09 Tom Tromey <tromey@redhat.com>
9464 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9465 producer_is_gxx_lt_4_6>: New fields.
9466 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9468 2012-03-09 Tom Tromey <tromey@redhat.com>
9470 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9472 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9474 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9477 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9479 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9481 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9483 Fix -Wmissing-prototypes build.
9484 * arm-linux-nat.c (get_thread_id): Make it static.
9485 * xtensa-linux-nat.c (get_thread_id): Likewise.
9487 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9489 * server.c (process_point_options): If a conditional expression
9490 is found, only print a message if remote_debug is nonzero.
9492 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9494 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9495 of internal error for unknown/unsupported types.
9497 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9499 Fix CU relative vs. absolute DIE offsets.
9500 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9501 offset to offset_in_cu.
9502 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9504 (dwarf2_fetch_die_location_block): Rename parameter offset to
9505 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9507 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9509 * libunwind-frame.c: Rename to ...
9510 * ia64-libunwind-tdep.c: ... here.
9511 * libunwind-frame.h: Rename to ...
9512 * ia64-libunwind-tdep.h: ... here.
9513 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9514 ia64-libunwind-tdep.h.
9515 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9516 * README (--with-libunwind): Rename to ...
9517 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9518 * config.in: Regenerate.
9519 * configure: Regenerate.
9520 * configure.ac: New option --with-libunwind-ia64, make the
9521 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9522 Remove AC_DEFINE for HAVE_LIBUNWIND.
9523 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9524 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9525 Rename libunwind-frame in the general comment.
9526 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9527 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9528 Move forward declarations inside #ifndef. Rename libunwind-frame in
9529 the general comment.
9530 * ia64-tdep.c: Rename libunwind-frame.h #include to
9531 ia64-libunwind-tdep.h.
9532 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9533 (ia64_libunwind_descr): Rename libunwind-frame to
9534 ia64-libunwind-tdep in these function comments.
9535 * ia64-tdep.h: Rename libunwind-frame.h #include to
9536 ia64-libunwind-tdep.h.
9537 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9538 ia64-libunwind-tdep in that data comment.
9540 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9542 * libunwind-frame.h (struct frame_unwind): New declaration.
9544 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9546 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9547 "set breakpoint condition-evaluation" command.
9549 2012-03-08 Tristan Gingold <gingold@adacore.com>
9551 * sparc-stub.c: Move to stubs/
9552 * sh-stub.c: Likewise.
9553 * m68k-stub.c: Likewise.
9554 * m32r-stub.c: Likewise.
9555 * i386-stub.c: Likewise.
9557 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9559 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9560 linux_get_siginfo_type.
9562 * m68klinux-nat.c: Include "gdb_proc_service.h".
9563 (PTRACE_GET_THREAD_AREA): Define.
9564 (ps_get_thread_area): New function.
9566 2012-03-08 Yao Qi <yao@codesourcery.com>
9568 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9570 (remote_query_attached): Likewise.
9571 (remote_static_tracepoint_marker_at): Likewise.
9572 (remote_set_permissions): Likewise.
9573 (remote_detach_1, extended_remote_attach_1): Likewise.
9574 (send_g_packet, remote_vkill): Likewise.
9575 (extended_remote_disable_randomization): Likewise.
9576 (remote_add_target_side_condition): Likewise.
9577 (remote_insert_breakpoint): Likewise.
9578 (remote_remove_breakpoint): Likewise.
9579 (remote_insert_watchpoint): Likewise.
9580 (remote_remove_watchpoint): Likewise.
9581 (remote_insert_hw_breakpoint): Likewise.
9582 (remote_insert_hw_breakpoint): Likewise.
9583 (remote_remove_hw_breakpoint): Likewise.
9584 (remote_download_command_source): Likewise.
9585 (remote_download_tracepoint): Likewise.
9586 (remote_download_trace_state_variable): Likewise.
9587 (remote_disable_tracepoint): Likewise.
9588 (remote_trace_set_readonly_regions): Likewise.
9589 (remote_get_tracepoint_status): Likewise.
9590 (remote_trace_find): Likewise.
9591 (remote_get_trace_state_variable_value): Likewise.
9592 (remote_set_disconnected_tracing): Likewise.
9593 (remote_set_circular_trace_buffer): Likewise.
9594 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9595 (remote_use_agent): Likewise.
9596 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9599 2012-03-07 Pedro Alves <palves@redhat.com>
9601 * NEWS: Mention QProgramSignals.
9602 * inferior.h (update_signals_program_target): Declare.
9603 * infrun.c: (update_signals_program_target): New.
9604 (handle_command): Update the target of the new program signals
9606 * remote.c (PACKET_QProgramSignals): New enum.
9607 (last_program_signals_packet): New global.
9608 (remote_program_signals): New.
9609 (remote_start_remote): Update the target with the program signals
9611 (remote_protocol_features): Add entry for QPassSignals.
9612 (remote_open_1): Free anc clear last_program_signals_packet.
9613 (init_remote_ops): Install remote_program_signals.
9614 * target.c (update_current_target): Adjust.
9615 (target_program_signals): New.
9616 * target.h (struct target_ops) <to_program_signals>: New field.
9617 (target_program_signals): Declare.
9619 2012-03-07 Pedro Alves <palves@redhat.com>
9621 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9624 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9626 * m68klinux-nat.c (getregs_supplies): Make static.
9627 (getfpregs_supplies): Likewise.
9628 (have_ptrace_getregs): Likewise.
9630 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9632 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9633 in call to get_die_type_at_offset.
9635 2012-03-06 Stan Shebs <stan@codesourcery.com>
9637 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9638 * mi/mi-cmd-disas.c: Ditto.
9639 * mi/mi-cmd-env.c: Ditto.
9640 * mi/mi-cmd-file.c: Ditto.
9641 * mi/mi-cmd-stack.c: Ditto.
9642 * mi/mi-cmd-target.c: Ditto.
9643 * mi/mi-cmd-var.c: Ditto.
9644 * mi/mi-cmds.c: Ditto.
9645 * mi/mi-cmds.h: Ditto.
9646 * mi/mi-console.c: Ditto.
9647 * mi/mi-getopt.c: Ditto.
9648 * mi/mi-getopt.h: Ditto.
9649 * mi/mi-interp.c: Ditto.
9650 * mi/mi-main.c: Ditto.
9651 * mi/mi-out.c: Ditto.
9652 * mi/mi-parse.c: Ditto.
9653 * mi/mi-parse.h: Ditto.
9654 * mi/mi-symbol-cmds.c: Ditto.
9656 * mi/mi-getopt.h: Move mi_opt struct up.
9657 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9659 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9661 2012-03-06 Tom Tromey <tromey@redhat.com>
9663 * proc-service.c (ps_pglobal_lookup): Set the current program
9666 2012-03-06 Pedro Alves <palves@redhat.com>
9668 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9670 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9672 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9674 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9677 * common/linux-osdata.c (linux_common_core_of_thread): New function
9679 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9680 call by linux_common_core_of_thread.
9681 (linux_nat_core_of_thread_1): Remove.
9682 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9683 * linux-thread-db.c: Include linux-osdata.h.
9684 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9685 linux_common_core_of_thread.
9687 2012-03-05 Tom Tromey <tromey@redhat.com>
9689 * value.c (value_primitive_field): Don't fetch contents for
9692 2012-03-05 Tom Tromey <tromey@redhat.com>
9694 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9696 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9698 * s390-nat.c: Include "gregset.h".
9700 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9702 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9703 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9704 (libunwind_load): New variable so_error, use it for dlerror. Try to
9705 load also LIBUNWIND_SO_7.
9707 2012-03-05 Pedro Alves <palves@redhat.com>
9709 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9710 is not NULL, and remove resulting dead code.
9712 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9714 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9715 prologue to sh_analyze_prologue.
9716 (sh_analyze_prologue): Make better use of such an upper limit, and
9717 generally be more cautious about accessing memory.
9719 2012-03-05 Tom Tromey <tromey@redhat.com>
9721 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9722 _initialize_ia64_hpux_tdep.
9724 2012-03-05 Pedro Alves <palves@redhat.com>
9728 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9729 the register state is clear, supply explicit zero, instead of
9730 marking the register unavailable.
9732 2012-03-05 Tristan Gingold <gingold@adacore.com>
9734 * NEWS: Mention OpenVMS ia64 new target.
9736 2012-03-05 Tristan Gingold <gingold@adacore.com>
9738 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9739 (ia64_unw_accessors, ia64_unw_rse_accessors)
9740 (ia64_libunwind_descr): Declare.
9741 * ia64-vms-tdep.c: New file.
9742 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9743 (ia64_libunwind_descr): Make them public.
9744 * configure.tgt: Add ia64-*-*vms*.
9745 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9746 (ALLDEPFILES): Add ia64-vms-tdep.c
9748 2012-03-05 Tristan Gingold <gingold@adacore.com>
9750 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9751 * remote.c (PACKET_qXfer_uib): New enum value.
9752 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9753 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9754 (_initialize_remote): Call add_packet_config_cmd for
9757 2012-03-05 Tristan Gingold <gingold@adacore.com>
9759 * osabi.c (gdb_osabi_names): Add OpenVMS.
9760 (generic_elf_osabi_sniffer): Likewise.
9761 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9763 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9765 Removed unused code.
9766 * libunwind-frame.c (libunwind_frame_unwind)
9767 (libunwind_frame_base_address): Remove.
9768 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9770 2012-03-04 Yao Qi <yao@codesourcery.com>
9772 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9773 remove trailing new line.
9774 (agent_run_command, agent_run_command): Add _ markup.
9775 (agent_capability_check): Likewise.
9777 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9779 * breakpoint.c (set_condition_evaluation_mode): Set
9780 CONDITION_EVALUATION_MODE unconditionally.
9782 2012-03-03 Yao Qi <yao@codesourcery.com>
9784 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9785 * common/agent.h: Update declaration.
9786 * inf-child.c (inf_child_use_agent): New.
9787 (inf_child_can_use_agent): New.
9788 (inf_child_target): Initialize fields `to_use_agent'
9789 and `to_can_use_agent'.
9790 * agent.c (agent_new_objfile): New.
9791 (_initialize_agent): Add agent_new_objfile to new_objfile
9794 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9796 (linux_target_install_ops): Initialize field
9797 `to_static_tracepoint_markers_by_strid'.
9798 * remote.c (free_current_marker): Move it to ...
9799 * tracepoint.c (free_current_marker): ... here. New.
9800 (cleanup_target_stop): New.
9801 * tracepoint.h: Declare free_current_marker.
9802 * NEWS: Add one entry about `info static-tracepoint-marker'.
9804 2012-03-03 Yao Qi <yao@codesourcery.com>
9806 * common/agent.c (agent_loaded_p): New.
9807 (agent_look_up_symbols): New global.
9808 * common/agent.h: Declare agent_loaded_p.
9810 2012-03-03 Yao Qi <yao@codesourcery.com>
9812 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9813 (agent_capability_check, agent_capability_invalidate): New.
9814 (symbol_list): New array element.
9815 * common/agent.h (enum agent_capa): New.
9816 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9818 2012-03-03 Yao Qi <yao@codesourcery.com>
9820 * target.h (struct target_ops) <to_use_agent>: New field.
9821 (struct target_ops) <to_can_use_agent>: New field.
9822 (target_use_agent, target_can_use_agent): New macro.
9823 * target.c (update_current_target): Update.
9824 * remote.c: New enum `PACKET_QAgent'.
9825 (remote_protocol_features): Add a new element.
9826 (remote_use_agent, remote_can_use_agent): New.
9827 (init_remote_ops): Initialize field `can_use_agent' with
9828 remote_can_use_agent. Intiailize field `use_agent' with
9830 * common/agent.c (use_agent): New global.
9831 * common/agent.h: Declare it.
9832 * tracepoint.c (info_static_tracepoint_markers_command): Add
9834 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9835 (COMMON_OBS): Add common/agent.o and agent.o
9836 (common-agent.o): New rule.
9839 2012-03-03 Yao Qi <yao@codesourcery.com>
9841 * common/agent.c: New.
9842 * common/agent.h: New.
9843 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9845 * configure, configh.in: Regenerated.
9847 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9849 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9850 unless it exists for this architecture.
9852 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9854 * language.h (struct language_defn): New "method" la_read_var_value.
9855 * findvar.c: #include "language.h".
9856 (default_read_var_value): Renames read_var_value. Rewrite
9857 function description.
9858 (read_var_value): New function.
9859 * value.h (default_read_var_value): Add prototype.
9860 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9862 (ada_language_defn): Add entry for la_read_var_value.
9863 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9864 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9865 language_defn structures to add entry for new la_read_var_value
9868 2012-03-02 Tom Tromey <tromey@redhat.com>
9869 Pedro Alves <palves@redhat.com>
9871 PR breakpoints/13776:
9872 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9874 (delete_longjmp_breakpoint_at_next_stop): New.
9875 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9876 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9877 before deleting the inferior. Add comments.
9878 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9879 breakpoints immediately, but only on next stop. Move that code
9880 next to where we mark other breakpoints for deletion.
9882 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9884 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9886 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9889 2012-03-02 Pedro Alves <palves@redhat.com>
9891 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9893 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9895 Fix -Wmissing-prototypes build.
9896 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9897 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9898 (gdbsim_has_memory): Likewise.
9900 2012-03-02 Yao Qi <yao@codesourcery.com>
9902 Fix -Wmissing-prototypes build.
9903 * charset.c (phony_iconv_open): Make static.
9904 (phony_iconv_close, phony_iconv): Likewise.
9905 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9906 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9908 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9909 * ser-mingw.c (create_select_thread): Make static.
9910 * windows-termcap.c (tgetent): New prototype.
9911 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9913 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9915 Fix -Wmissing-prototypes build.
9916 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9917 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9918 (_initialize_loadable): New prototypes.
9920 2012-03-02 Doug Evans <dje@google.com>
9922 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9923 abbrev table, read_comp_unit will do it.
9925 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9927 Fix -Wmissing-prototypes build.
9928 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9929 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9930 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9931 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9932 (_initialize_arm_symbian_tdep): New prototype.
9933 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9934 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9935 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9937 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9938 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9940 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9941 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9942 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9944 * moxie-tdep.c (moxie_process_record): Likewise.
9945 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9946 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9947 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9948 (_initialize_rl78_tdep): New prototype.
9949 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9950 (_initialize_rx_tdep): New prototype.
9951 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9952 (_initialize_darwin_solib): New prototype.
9953 * solib-spu.c: Include solib-spu.h.
9954 (_initialize_spu_solib): New prototype.
9955 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9956 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9957 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9958 (tic6x_software_single_step): Make it static.
9959 (_initialize_tic6x_tdep): New prototype.
9961 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9963 Fix -Wmissing-prototypes build.
9964 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9965 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9967 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9969 Fix -Wmissing-prototypes build.
9970 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9971 (frv_have_stopped_data_address): Remove.
9973 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9975 Fix -Wmissing-prototypes build.
9976 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9977 * sh-tdep.c: Include sh64-tdep.h.
9978 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9979 * sh64-tdep.c: Include sh64-tdep.h.
9980 * sh64-tdep.h: New file.
9982 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9984 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9986 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9988 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9989 sp_regnum once the gdbarch_init_osabi hook has been called.
9991 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9993 * mips-tdep.c (mips32_bc1_pc): New function.
9994 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9995 BPOSGE32 and BPOSGE64 instructions.
9996 (deal_with_atomic_sequence): Likewise.
9997 (mips32_instruction_has_delay_slot): Likewise.
9999 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10000 Chris Dearman <chris@mips.com>
10001 Maciej W. Rozycki <macro@codesourcery.com>
10002 Joseph Myers <joseph@codesourcery.com>
10004 * features/mips-dsp.xml: New file.
10005 * features/mips64-dsp.xml: New file.
10006 * features/mips-dsp-linux.xml: New file.
10007 * features/mips64-dsp-linux.xml: New file.
10008 * features/Makefile (WHICH): Add mips-dsp-linux and
10010 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10011 * features/mips-dsp-linux.c: New file.
10012 * features/mips64-dsp-linux.c: New file.
10013 * regformats/mips-dsp-linux.dat: New file.
10014 * regformats/mips64-dsp-linux.dat: New file.
10015 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10017 (mips64_linux_register_addr): Likewise.
10018 (mips64_linux_regsets_fetch_registers): Likewise.
10019 (mips64_linux_regsets_store_registers): Likewise.
10020 (mips64_linux_fetch_registers): Update call to
10021 mips64_linux_regsets_fetch_registers.
10022 (mips64_linux_store_registers): Update call to
10023 mips64_linux_regsets_store_registers.
10024 (mips_linux_read_description): Probe for DSP registers.
10025 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10026 and initialize_tdesc_mips64_dsp_linux.
10027 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10028 Remove padding of no longer used embedded register slots.
10029 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10030 (MIPS_RESTART_REGNUM): Redefine enum value.
10031 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10033 (mips_tx39_reg_names): Likewise.
10034 (mips_linux_reg_names): New array of register names for Linux
10036 (mips_register_name): Check for a null pointer in
10037 mips_processor_reg_names and return an empty string.
10038 (mips_register_type): Exclude embedded registers for the IRIX
10040 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10041 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10043 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10044 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10045 (mips_gdbarch_init): Likewise. Initialize internal register
10046 indices for the Linux ABI. Use dynamic numbers to refer to
10047 registers, as applicable, while parsing the target description.
10048 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10050 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10052 * frame.h (read_frame_register_unsigned): Fix typo in function
10055 2012-03-01 Pedro Alves <palves@redhat.com>
10057 * jit-reader.in [!__cplusplus]
10058 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10060 2012-03-01 Pedro Alves <palves@redhat.com>
10062 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10063 * configure: Regenerate.
10065 2012-03-01 Pedro Alves <palves@redhat.com>
10067 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10068 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10069 (ftrace_command, strace_command): Make static.
10070 * d-lang.c (_initialize_d_language): Declare.
10071 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10072 * dwarf2loc.c (_initialize_dwarf2loc):
10073 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10074 * exec.c (exec_get_section_table): Make static.
10075 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10076 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10077 * inferior.c (remove_inferior_command, add_inferior_command)
10078 (clone_inferior_command): Make static.
10079 * linux-nat.c (linux_nat_thread_address_space)
10080 (linux_nat_core_of_thread): Make static.
10081 * linux-tdep.c (_initialize_linux_tdep): Declare.
10082 * objc-lang.c (_initialize_objc_lang): Declare.
10083 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10085 (_initialize_opencl_language): Declare.
10086 * record.c (_initialize_record): Declare.
10087 * remote.c (demand_private_info, remote_get_tib_address)
10088 (remote_supports_cond_tracepoints)
10089 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10091 * skip.c (_initialize_step_skip): Declare.
10092 * symtab.c (skip_prologue_using_lineinfo): Make static.
10093 * tracepoint.c (delete_trace_state_variable)
10094 (trace_variable_command, delete_trace_variable_command)
10095 (get_uploaded_tsv, find_matching_tracepoint_location)
10096 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10098 * value.c (pack_unsigned_long): Make static.
10099 * varobj.c (varobj_ensure_python_env): Make static.
10100 * windows-tdep.c (_initialize_windows_tdep): Declare.
10101 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10103 2012-03-01 Pedro Alves <palves@redhat.com>
10105 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10107 (linux_init_abi): Install it as has_shared_address_space gdbarch
10110 2012-03-01 Pedro Alves <palves@redhat.com>
10112 * observer.c (observer_test_first_notification_function)
10113 (observer_test_second_notification_function)
10114 (observer_test_third_notification_function): Add declarations.
10116 2012-03-01 Pedro Alves <palves@redhat.com>
10118 * common/signals.c (default_target_signal_to_host)
10119 (default_target_signal_from_host): Move ...
10120 * arch-utils.c: ... here.
10121 * arch-utils.h (default_target_signal_to_host)
10122 (default_target_signal_from_host): Declare.
10124 * common/signals.c (target_signal_from_command): Move ...
10125 * infrun.c: ... here.
10126 * inferior.h (target_signal_from_command): Declare.
10127 * target.h (target_signal_from_command)
10128 (default_target_signal_from_host, default_target_signal_to_host):
10129 Delete declarations.
10131 * common/signals.c (_initialize_signals): Delete.
10133 2012-03-01 Pedro Alves <palves@redhat.com>
10135 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10136 both __cplusplus and !__cplusplus.
10138 2012-03-01 Pedro Alves <palves@redhat.com>
10140 * psymtab.c (find_and_open_source): Delete declaration.
10141 * source.c (find_and_open_source): Move comment ...
10142 * source.h (find_and_open_source): ... to this new declaration.
10144 2012-03-01 Pedro Alves <palves@redhat.com>
10146 * inline-frame.c: Include inline-frame.h.
10148 2012-03-01 Pedro Alves <palves@redhat.com>
10150 * tui/tui-data.c (set_gen_win_origin): Delete.
10151 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10152 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10154 2012-03-01 Pedro Alves <palves@redhat.com>
10156 * remote.c (encode_actions): Delete declaration.
10157 * tracepoint.c (encode_actions): Make extern.
10158 * tracepoint.h (encode_actions): Declare.
10160 2012-03-01 Pedro Alves <palves@redhat.com>
10162 * python/py-breakpoint.c: Include python.h.
10163 * python/py-continueevent.c (create_continue_event_object): Make
10165 * python/py-lazy-string.c (stpy_get_type): Make static.
10166 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10168 * python/py-utils.c (unicode_to_target_python_string): Make
10170 * python/py-value.c: Include python.h.
10172 2012-03-01 Pedro Alves <palves@redhat.com>
10174 * inferior.c (delete_threads_of_inferior): Delete.
10176 2012-03-01 Pedro Alves <palves@redhat.com>
10178 Import fallback definitions from glibc.
10180 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10181 ps_prochandle): Forward declare.
10182 (ps_err_e): Use glibc's comments.
10183 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10184 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10185 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10186 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10187 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10188 (struct ps_prochandle): Adjust comment.
10190 2012-03-01 Pedro Alves <palves@redhat.com>
10192 * ada-lang.c (ada_modulus_from_name): Delete.
10193 * ada-lex.l (lexer_init): Make static.
10195 2012-03-01 Pedro Alves <palves@redhat.com>
10199 * frame.c (read_frame_register_unsigned): New.
10200 * frame.h (read_frame_register_unsigned): Declare.
10201 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10203 (print_i387_control_word): New parameter `control_p'. Handle it.
10204 (i387_print_float_info): Handle unavailable float registers.
10206 2012-03-01 Keith Seitz <keiths@redhat.com>
10208 * linespec.c (decode_line_2): Sort the list of methods
10209 alphabetically before presenting the user with a selection
10212 2012-03-01 Doug Evans <dje@google.com>
10214 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10215 has_namespace_info.
10216 (dwarf2_read_abbrevs): Remove corresponding initialization.
10218 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10220 * NEWS: Mention new python command class gdb.COMMAND_USER.
10221 * cli/cli-cmds.c (show_user): Print error when used on a python
10223 (init_cli_cmds): Update documentation strings for "show user" and
10224 "set/show max-user-call-depth" to clarify that it does not apply to
10226 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10228 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10230 * top.c (execute_command): Only execute a user-defined command as a
10231 legacy macro if c->user_commands is set.
10233 2012-03-01 Tom Tromey <tromey@redhat.com>
10235 * valprint.h (struct generic_val_print_decorations): New.
10236 (generic_val_print): Declare.
10237 * valprint.c (generic_val_print): New function.
10238 * p-valprint.c (p_decorations): New global.
10239 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10240 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10241 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10242 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10243 * m2-valprint.c (m2_decorations): New global.
10244 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10245 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10246 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10247 TYPE_CODE_ERROR>: Call generic_val_print.
10248 * f-valprint.c (f_decorations): New global.
10249 (f_val_print): Use print_function_pointer_address.
10250 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10251 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10252 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10254 * c-valprint.c (c_decorations): New global.
10255 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10256 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10257 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10258 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10259 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10260 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10263 2012-03-01 Tom Tromey <tromey@redhat.com>
10265 * valprint.c (val_print): Update.
10266 * p-valprint (pascal_val_print): Return void.
10267 * p-lang.h (pascal_val_print): Return void.
10268 * m2-valprint.c (m2_val_print): Return void.
10269 * m2-lang.h (m2_val_print): Return void.
10270 * language.h (struct language_defn) <la_val_print>: Return void.
10271 * language.c (unk_lang_val_print): Return void.
10272 * jv-valprint.c (java_val_print): Return void.
10273 * jv-lang.h (java_val_print): Return void.
10274 * f-valprint.c (f_val_print): Return void.
10275 * f-lang.h (f_val_print): Return void.
10276 * d-valprint.c (d_val_print): Return void.
10277 (dynamic_array_type): Update.
10278 * d-lang.h (d_val_print): Return void.
10279 * c-valprint.c (c_val_print): Return void.
10280 * c-lang.h (c_val_print): Return void.
10281 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10283 * ada-lang.h (ada_val_print): Return void.
10285 2012-03-01 Tom Tromey <tromey@redhat.com>
10287 * value.h (val_print): Return void.
10288 * valprint.c (val_print): Return void.
10290 2012-03-01 Tom Tromey <tromey@redhat.com>
10292 * value.h (common_val_print): Return void.
10293 * valprint.c (common_val_print): Return void.
10295 2012-03-01 Tom Tromey <tromey@redhat.com>
10297 * value.h (value_print): Return void.
10298 * valprint.c (value_print): Return void.
10299 * p-valprint.c (pascal_value_print): Return void.
10300 * p-lang.h (pascal_value_print): Return void.
10301 * language.h (struct language_defn) <la_value_print>: Return
10303 * language.c (unk_lang_value_print): Return void.
10304 * jv-valprint.c (java_value_print): Return void.
10305 * jv-lang.h (java_value_print): Return void.
10306 * f-valprint.c (c_value_print): Don't declare.
10308 * c-valprint.c (c_value_print): Return void.
10309 * c-lang.h (c_value_print): Return void.
10310 * ada-valprint.c (ada_value_print): Return void.
10311 * ada-lang.h (ada_value_print): Return void.
10313 2012-03-01 Tom Tromey <tromey@redhat.com>
10315 * value.c (value_primitive_field): Handle virtual base classes.
10317 2012-03-01 Tom Tromey <tromey@redhat.com>
10319 * gdbtypes.h (struct vbase): Remove.
10321 2012-03-01 Tom Tromey <tromey@redhat.com>
10323 * c-valprint.c (print_function_pointer_address): Move...
10324 * valprint.c: ... here. Make non-static.
10325 * m2-valprint.c (print_function_pointer_address): Remove.
10326 * valprint.h (print_function_pointer_address): Declare.
10328 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10330 * NEWS: Document the fact that one can provide a condition when
10331 creating an Ada exception catchpoint.
10333 2012-03-01 Tom Tromey <tromey@redhat.com>
10335 * valprint.c (val_print_type_code_flags): Fix placement of
10338 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10340 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10341 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10342 environment variable before calling update-copyright.
10344 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10346 * gnulib/extra/update-copyright: Update to the latest from
10347 gnulib's git repository.
10348 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10349 variable to 2 instead of 1.
10351 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10353 * varobj.c (c_value_of_variable): Remove dead code.
10355 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10357 * ada-lex.p (processId): Do not modify already encoded IDs.
10358 Update function documentation.
10360 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10362 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10363 "name" with "struct symbol *name_sym".
10364 * ada-exp.y (write_var_or_type): Update call to
10365 ada_find_renaming_symbol.
10366 "name" with "struct symbol *name_sym". Adjust Implementation
10367 accordingly. Adjust the function documentation.
10369 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10371 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10372 * ada-lang.c (ada_find_any_type): Add advance declaration.
10373 Make static. Replace ada_find_any_symbol by
10374 ada_find_any_type_symbol.
10375 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10376 Improve function description. Make static.
10377 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10378 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10380 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10382 * ada-lang.c (struct tag_args): Delete.
10383 (ada_get_tsd_type): Function body moved up in source file.
10384 (ada_tag_name_1, ada_tag_name_2): Delete.
10385 (ada_get_tsd_from_tag): New function.
10386 (ada_tag_name_from_tsd): New function.
10387 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10388 to determine the tag name.
10390 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10392 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10394 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10397 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10399 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10401 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10403 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10406 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10408 * ada-lang.c (constrained_packed_array_type): If there is a
10409 parallel XA type, use it to determine the array index type.
10411 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10413 * ada-valprint.c (ada_val_print_1): If our value is a reference
10414 to an array descriptor, dereference it before converting it
10417 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10419 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10420 creating fixed value.
10421 (ada_value_ind, ada_coerce_ref, assign_component)
10422 (ada_evaluate_subexp): Remove call to unwrap_value before
10423 call to ada_to_fixed_value.
10425 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10427 * ada-lang.c (to_fixed_array_type): Set result's type name.
10429 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10431 * ada-lang.c (catch_ada_exception_command_split): Add new
10432 argument cond_string. Add support for condition at end of
10433 "catch exception" commands.
10434 (ada_decode_exception_location): Add new argument cond_string.
10435 Update call to catch_ada_exception_command_split.
10436 (create_ada_exception_catchpoint): Add new argument cond_string.
10437 Set the breakpoint condition if needed.
10438 (catch_ada_exception_command): Update call to
10439 ada_decode_exception_location.
10440 (ada_decode_assert_location): Add function documentation.
10441 Add support for condition at end of "catch assert" command.
10442 (catch_assert_command): Update calls to ada_decode_assert_location
10443 and create_ada_exception_catchpoint.
10445 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10447 Fix disp-step-syscall.exp: fork: single step over fork.
10448 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10449 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10450 comment, change parameters gdbarch and ptid to regcache. Remove
10451 parameter regcache, initialize gdbarch from regcache here.
10452 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10454 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10456 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10457 'syscall'. Make the 'int' check more strict.
10459 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10461 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10462 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10463 (i386_linux_intx80_sysenter_syscall_record): ... here.
10464 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10465 Use the renamed function name.
10467 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10469 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10470 * breakpoint.c (until_break_command): Likewise.
10471 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10472 * infcall.c (call_function_by_hand): Likewise.
10473 * infcmd.c (finish_forward): Likewise.
10474 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10476 2012-02-28 Tristan Gingold <gingold@adacore.com>
10478 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10479 avoid variable assignments inside condition.
10481 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10483 Fix static analysis issue found by cppcheck.
10484 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10485 uninitialized BUF for size 2.
10487 2012-02-27 Chris Dearman <chris@mips.com>
10488 Nathan Froyd <froydnj@codesourcery.com>
10489 Maciej W. Rozycki <macro@codesourcery.com>
10491 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10492 (mips16_instruction_has_delay_slot): Likewise.
10493 (mips_segment_boundary): Likewise.
10494 (mips_adjust_breakpoint_address): Likewise.
10495 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10497 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10498 Maciej W. Rozycki <macro@codesourcery.com>
10500 * infrun.c (handle_inferior_event): Don't proceed through
10501 shared library trampolines if stepping at the machine
10504 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10506 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10509 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10511 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10512 (sh_stub_unwind_sniffer): New functions.
10513 (sh_stub_unwind): New variable.
10514 (sh_gdbarch_init): Wire everything.
10516 2012-02-27 Pedro Alves <palves@redhat.com>
10518 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10519 (linux_nat_post_attach_wait): Adjust to use
10520 linux_proc_pid_is_stopped.
10521 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10522 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10523 based on pid_is_stopped from both linux-nat.c and
10524 gdbserver/linux-low.c, and renamed.
10526 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10528 * remote.c (remote_watchpoint_addr_within_range): New function.
10529 (init_remote_ops): Use it.
10531 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10533 * target.h (target_watchpoint_addr_within_range): Document macro.
10535 2012-02-24 Pedro Alves <palves@redhat.com>
10537 * stack.c (set_last_displayed_sal): Issue internal_error instead
10538 of warning, and issue it after clearing the last displayed sal.
10540 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10541 Pedro Alves <palves@redhat.com>
10543 * breakpoint.c (until_break_command): Install breakpoints after
10544 all frame manipulations.
10546 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10548 * remote.c (remote_supports_cond_breakpoints): New forward
10550 (remote_add_target_side_condition): New function.
10551 (remote_insert_breakpoint): Add target-side breakpoint
10552 conditional if supported.
10553 (remote_insert_hw_breakpoint): Likewise.
10554 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10557 * target.c (update_current_target): Inherit
10558 to_supports_evaluation_of_breakpoint_conditions.
10559 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10561 * target.h (struct target_ops)
10562 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10563 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10565 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10566 (condition_evaluation_both, condition_evaluation_auto,
10567 condition_evaluation_host, condition_evaluation_target,
10568 condition_evaluation_enums, condition_evaluation_mode_1,
10569 condition_evaluation_mode): New static globals.
10570 (translate_condition_evaluation_mode): New function.
10571 (breakpoint_condition_evaluation_mode): New function.
10572 (gdb_evaluates_breakpoint_condition_p): New function.
10573 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10574 (mark_breakpoint_modified): New function.
10575 (mark_breakpoint_location_modified): New function.
10576 (set_condition_evaluation_mode): New function.
10577 (show_condition_evaluation_mode): New function.
10578 (bp_location_compare_addrs): New function.
10579 (get_first_location_gte_addr): New helper function.
10580 (set_breakpoint_condition): Free condition bytecode if locations
10581 has become unconditional. Call mark_breakpoint_modified (...).
10582 (condition_command): Call update_global_location_list (1) for
10584 (breakpoint_xfer_memory): Use is_breakpoint (...).
10585 (is_breakpoint): New function.
10586 (parse_cond_to_aexpr): New function.
10587 (build_target_condition_list): New function.
10588 (insert_bp_location): Handle target-side conditional
10589 breakpoints and call build_target_condition_list (...).
10590 (update_inserted_breakpoint_locations): New function.
10591 (insert_breakpoint_locations): Handle target-side conditional
10593 (bpstat_check_breakpoint_conditions): Add comment.
10594 (bp_condition_evaluator): New function.
10595 (bp_location_condition_evaluator): New function.
10596 (print_breakpoint_location): Print information on where the condition
10598 (print_one_breakpoint_location): Likewise.
10599 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10600 breakpoint location.
10601 (force_breakpoint_reinsertion): New functions.
10602 (update_global_location_list): Handle target-side breakpoint
10604 Reinsert locations that are already inserted if conditions have
10606 (bp_location_dtor): Free agent expression bytecode.
10607 (disable_breakpoint): Call mark_breakpoint_modified (...).
10608 Call update_global_location_list (...) with parameter 1 for breakpoints.
10609 (disable_command): Call mark_breakpoint_location_modified (...).
10610 Call update_global_location_list (...) with parameter 1 for breakpoints.
10611 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10612 (enable_command): mark_breakpoint_location_modified (...).
10613 (_initialize_breakpoint): Update documentation and add
10614 condition-evaluation breakpoint subcommand.
10616 * breakpoint.h: Include ax.h.
10617 (condition_list): New data structure.
10618 (condition_status): New enum.
10619 (bp_target_info) <cond_list>: New field.
10620 (bp_location) <condition_changed, cond_bytecode>: New fields.
10621 (is_breakpoint): New prototype.
10623 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10625 * remote.c (remote_state) <cond_breakpoints>: New field.
10626 (PACKET_ConditionalBreakpoints): New enum.
10627 (remote_cond_breakpoint_feature): New function.
10628 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10629 (remote_supports_cond_breakpoints): New function.
10630 (_initialize_remote): Add new packet configuration for
10631 target-side conditional breakpoints.
10633 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10635 * NEWS: Mention target-side conditional breakpoint support,
10636 new condition-evaluation breakpoint subcommand and remote
10639 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10641 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10644 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10646 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10647 (after_prologue): Remove.
10649 2012-02-23 Tom Tromey <tromey@redhat.com>
10651 * jv-valprint.c (java_val_print): Remove dead code.
10653 2012-02-23 Tristan Gingold <gingold@adacore.com>
10655 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10656 known_tasks_element and known_tasks_length fields.
10657 (read_known_tasks_array): Change argument type. Use pointer type
10658 and number of elements from DATA. Adjust.
10659 (read_known_tasks_list): Likewise.
10660 (get_known_tasks_addr): Remove.
10661 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10662 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10663 type and array length. Merge former get_known_tasks_addr code.
10665 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10668 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10669 it after set_momentary_breakpoint.
10671 2012-02-22 Sterling Augustine <saugustine@google.com>
10674 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10676 2012-02-22 Gary Benson <gbenson@redhat.com>
10678 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10679 (find_slot_in_mapped_hash): Likewise.
10681 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10684 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10685 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10686 * configure: Regenerate.
10688 2012-02-21 Tristan Gingold <gingold@adacore.com>
10689 Pedro Alves <palves@redhat.com>
10691 * ia64-tdep.c: Do not include libunwind-ia64.h.
10692 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10693 Include libunwind-ia64.h instead of libunwind.h.
10694 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10695 for libunwind.h existence.
10696 * configure, config.in: Regenerate.
10698 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10700 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10701 instead of value_rtti_target_type.
10702 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10703 instead of value_rtti_target_type.
10704 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10705 value_rtti_target_type.
10706 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10707 (value_rtti_target_type): Rename to ...
10708 (value_rtti_indirect_type): ... here and make it indirect. Update
10710 * value.c (readjust_indirect_value_type): New function.
10711 (coerce_ref): Support for enclosing type setting for references
10712 with readjust_indirect_value_type.
10713 * value.h (readjust_value_type): New declaration.
10714 (value_rtti_target_type): Rename to ...
10715 (value_rtti_indirect_type): ... here.
10717 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10719 * MAINTAINERS (Write After Approval): Add myself to the list.
10721 2012-02-20 Doug Evans <dje@google.com>
10723 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10724 Rename objfile_p_char parameter to objfilep.
10725 (build_objfile_section_table): Result is now void. All callers
10727 * objfiles.h (struct objfile): Tweak comments, whitespace.
10728 (build_objfile_section_table): Update.
10730 * elfread.c (elf_symfile_segments): Fix warning text.
10732 2012-02-20 Tom Tromey <tromey@redhat.com>
10735 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10736 particular set of file names once.
10737 (dw2_map_symbol_filenames): Likewise.
10739 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10742 * main.c (write_files): Remove the declaration.
10743 (external_editor_command): Move the declaration ...
10744 [GDBTK] (external_editor_command): ... here. Fix the comment.
10746 2012-02-20 Tom Tromey <tromey@redhat.com>
10748 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10751 2012-02-20 Tristan Gingold <gingold@adacore.com>
10753 * darwin-nat.h (enum darwin_msg_state): Add comments.
10755 2012-02-20 Tristan Gingold <gingold@adacore.com>
10757 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10760 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10762 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10763 between function description and implementation.
10765 2012-02-17 Tom Tromey <tromey@redhat.com>
10768 * python/py-event.c (event_object_getset): New global.
10769 (event_object_type): Reference it.
10770 * python/py-type.c (field_object_getset): New global.
10771 (field_object_type): Reference it.
10772 * python/python-internal.h (gdb_py_generic_dict): Declare.
10773 * python/py-utils.c (gdb_py_generic_dict): New function.
10775 2012-02-17 Tristan Gingold <gingold@adacore.com>
10777 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10779 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10781 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10782 TYPE_CALLING_CONVENTION annotation.
10784 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10786 * MAINTAINERS: Add rx to target ISA section.
10787 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10788 (ALLDEPFILES): Add rx-tdep.c.
10790 2012-02-16 Tom Tromey <tromey@redhat.com>
10792 * symfile.c (symbol_file_add_main_1): Use inferior's
10794 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10795 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10797 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10799 (follow_exec): Use inferior's symfile_flags.
10800 * inferior.h (struct inferior) <symfile_flags>: New field.
10802 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10805 * remote-sim.c (gdbsim_create_inferior): Call error() when
10806 sim_create_inferior() fails.
10808 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10810 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10812 2012-02-16 Tom Tromey <tromey@redhat.com>
10815 * thread.c (struct current_thread_cleanup) <was_removable>: New
10817 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10818 (make_cleanup_restore_current_thread): Initialize new field.
10820 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10822 * MAINTAINERS: Add rl78 to target ISA section.
10823 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10824 (ALLDEPFILES): Add rl78-tdep.c.
10825 * NEWS: Mention rl78 as a new target.
10827 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10829 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10831 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10833 2012-02-15 Tom Tromey <tromey@redhat.com>
10836 * infcmd.c (registers_info): Print just the current register's
10839 2012-02-15 Tom Tromey <tromey@redhat.com>
10841 * python/py-symbol.c (sympy_value): Use _().
10843 2012-02-15 Pedro Alves <palves@redhat.com>
10845 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10846 output to be like native targets'.
10847 (remote_pid_to_str): Special case the null ptid.
10849 2012-02-14 Stan Shebs <stan@codesourcery.com>
10851 * NEWS: Mention enable count command.
10852 * breakpoint.h (struct breakpoint): New field enable_count.
10853 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10854 (enable_breakpoint): Add arg to call.
10855 (struct disp_data): New struct.
10856 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10857 (do_map_enable_once_breakpoint): Create a struct and pass it.
10858 (do_map_enable_delete_breakpoint): Ditto.
10859 (do_map_enable_count_breakpoint): New function.
10860 (enable_count_command): New function.
10861 (bpstat_stop_status): Decrement enable_count.
10862 (print_one_breakpoint_location): Report enable count.
10863 (_initialize_breakpoint): Add enable count command.
10865 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10867 * rl78-tdep.c (reggroups.h): Include.
10868 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10869 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10870 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10871 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10872 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10873 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10874 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10875 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10876 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10877 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10878 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10879 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10880 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10881 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10882 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10883 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10884 beginning of register list.
10885 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10886 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10887 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10888 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10889 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10890 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10891 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10892 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10893 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10894 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10895 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10896 the pseudo registers. Rearrange other pseudo registers too so
10897 that the bank registers appear at the end.
10898 (rl78_register_type): Account for the fact that the byte sized
10899 bank registers are now pseudo-registers.
10900 (rl78_register_name): Rearrange the register name array. Make
10901 initial set of raw banked registers inaccessible.
10902 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10903 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10904 case for copying bytes back and forth between raw and pseudo
10905 versions of the banked registers. Update other cases to reflect
10907 (rl78_return_value): Update to account for changed names of
10909 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10910 rl78_register_sim_regno().
10912 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10914 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10915 the name parameter being passed to find_pc_partial_function().
10917 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10919 * MAINTAINERS: Step down from being ia64 target maintainer.
10921 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10923 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10924 compilation warning.
10926 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10928 Fix crash on loaded shlibs without loaded exec_bfd.
10929 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10930 (set_section_command): Replace exec_bfd by p->bfd.
10932 2012-02-10 Tom Tromey <tromey@redhat.com>
10934 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10935 when we have a C++ qualified name.
10937 2012-02-10 Pedro Alves <palves@redhat.com>
10939 * inferior.c (inferior_pid_to_str): New.
10940 (print_inferior, inferior_command): Use it.
10942 2012-02-10 Pedro Alves <palves@redhat.com>
10944 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10946 * configure: Regenerate.
10948 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 * linespec.c (decode_line_internal): Fix comment correctness.
10952 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10955 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10956 * amd64bsd-nat.c: Add support for debug registers (adapted from
10958 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10959 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10960 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10961 (amd64bsd_dr_get_control): New functions.
10962 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10963 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10964 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10965 watchpoints initialization.
10966 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10968 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10970 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10972 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10974 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10976 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10978 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10980 * language.h (symbol_name_cmp_ftype): Renames
10981 symbol_name_match_p_ftype.
10982 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10983 la_get_symbol_name_match_p.
10984 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10985 ada_get_symbol_name_match_p. Update comment.
10986 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10987 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10988 Renames symbol_name_match_p. Update field type.
10989 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10990 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10991 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10992 "la_get_symbol_name_cmp" in comments.
10993 * language.c: Likewise.
10995 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10997 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10999 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11000 (amd64_sol2_gregset32_reg_offs): Likewise.
11002 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11004 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11005 of the returned BFD is allocated by GDB.
11007 2012-02-07 Tom Tromey <tromey@redhat.com>
11010 * python/python-internal.h (frame_object_type): Declare.
11011 * python/py-symbol.c (sympy_needs_frame): New function.
11012 (sympy_value): New function.
11013 (symbol_object_getset): Add "needs_frame".
11014 (symbol_object_methods): Add "value".
11015 * python/py-frame.c (frame_object_type): No longer static.
11017 2012-02-07 Tom Tromey <tromey@redhat.com>
11020 * python/py-symbol.c (sympy_line): New function.
11021 (symbol_object_getset): Add "line".
11023 2012-02-07 Tom Tromey <tromey@redhat.com>
11025 * charset.c (find_charset_names): Check 'in' against NULL.
11027 2012-02-06 Doug Evans <dje@google.com>
11029 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11030 and fields.name members from char * to const char *. All uses updated.
11031 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11032 from char * to const char *. All uses updated.
11033 (type_name_no_tag): Update.
11034 (lookup_unsigned_typename, lookup_signed_typename): Update.
11035 * gdbtypes.c (type_name_no_tag): Change result type
11036 from char * to const char *. All callers updated.
11037 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11038 name parameter from char * to const char *.
11039 * symtab.h (struct cplus_specific): Change type of demangled_name
11040 member from char * to const char *. All uses updated.
11041 (struct general_symbol_info): Change type of name and
11042 mangled_lang.demangled_name members from char * to const char *.
11044 (symbol_get_demangled_name, symbol_natural_name): Update.
11045 (symbol_demangled_name, symbol_search_name): Update.
11046 * symtab.c (symbol_get_demangled_name): Change result type
11047 from char * to const char *. All callers updated.
11048 (symbol_natural_name, symbol_demangled_name): Ditto.
11049 (symbol_search_name): Ditto.
11050 (completion_list_add_name): Change type of symname,sym_text,
11051 text,word parameters from char * to const char *.
11052 (completion_list_objc_symbol): Change type of sym_text,
11053 text,word parameters from char * to const char *.
11054 * ada-lang.c (find_struct_field): Change type of name parameter
11055 from char * to const char *.
11056 (encoded_ordered_before): Similarly for N0,N1 parameters.
11057 (old_renaming_is_invisible): Similarly for function_name parameter.
11058 (ada_type_name): Change result type from char * to const char *.
11059 All callers updated.
11060 * ada-lang.h (ada_type_name): Update.
11061 * buildsym.c (hashname): Change type of name parameter
11062 from char * to const char *.
11063 * buildsym.h (hashname): Update.
11064 * dbxread.c (end_psymtab): Change type of include_list parameter
11065 from char ** to const char **.
11066 * dwarf2read.c (determine_prefix): Change result type
11067 from char * to const char *. All callers updated.
11068 * f-lang.c (find_common_for_function): Change type of name, funcname
11069 parameters from char * to const char *.
11070 * f-lang.c (find_common_for_function): Update.
11071 * f-valprint.c (list_all_visible_commons): Change type of funcname
11072 parameters from char * to const char *.
11073 * gdbarch.sh (static_transform_name): Change type of name parameter
11074 and result from char * to const char *.
11075 * gdbarch.c: Regenerate.
11076 * gdbarch.h: Regenerate.
11077 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11078 of name parameter from char * to const char *.
11079 * jv-lang.c (java_primitive_type_from_name): Ditto.
11080 (java_demangled_signature_length): Similarly for signature parameter.
11081 (java_demangled_signature_copy): Ditto.
11082 (java_demangle_type_signature): Ditto.
11083 * jv-lang.h (java_primitive_type_from_name): Update.
11084 (java_demangle_type_signature): Update.
11085 * objc-lang.c (specialcmp): Change type of a,b parameters
11086 from char * to const char *.
11087 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11088 from char * to const char *. All callers updated.
11089 * p-lang.h (is_pascal_string_type): Update.
11090 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11091 of name parameter from char * to const char *.
11092 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11093 * utils.c (fprintf_symbol_filtered): Ditto.
11094 * defs.h (fprintf_symbol_filtered): Update.
11095 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11096 * stabsread.h (end_psymtab): Update.
11097 * stack.c (find_frame_funname): Change type of funname parameter
11098 from char ** to const char **.
11099 * stack.h (find_frame_funname): Update.
11100 * typeprint.c (type_print): Change type of varstring parameter
11101 from char * to const char *.
11102 * value.h (type_print): Update.
11103 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11104 from char * to const char *. All callers updated.
11105 (xcoff_end_psymtab): Change type of include_list parameter
11106 from char ** to const char **. All callers updated.
11107 (swap_sym): Similarly for name parameter. All callers updated.
11108 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11110 (process_coff_symbol): Use xstrdup.
11111 * stabsread.c (stabs_method_name_from_physname): Renamed from
11112 update_method_name_from_physname. Change result type from void
11113 to char *. All callers updated.
11114 (read_member_functions): In has_destructor case, store name in objfile
11115 obstack instead of malloc space. In !has_stub case, fix mem leak.
11117 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11119 * configure: Rebuild.
11120 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11123 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11125 * configure.tgt (rl78-*-elf): New target.
11126 * rl78-tdep.c: New file.
11128 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11130 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11131 and continue the loop. Add QUIT statement.
11133 2012-02-03 Tom Tromey <tromey@redhat.com>
11136 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11137 bfd_lookup_symbol_from_symtab.
11138 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11139 gdb_bfd_lookup_symbol_from_symtab.
11141 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11143 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11144 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11145 symbol. Add assertion that sym2 is never NULL.
11147 2012-02-02 Doug Evans <dje@google.com>
11149 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11150 "name" parameter to const char ** from char **. All callers updated.
11151 (find_pc_partial_function): Ditto.
11152 (cache_pc_function_name): Change type to const char * from char *.
11153 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11154 (find_pc_partial_function): Update.
11155 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11156 type of "name" parameter to const char * from char *.
11158 * arch-utils.c (generic_in_solib_return_trampoline): Change
11159 type of "name" parameter to const char * from char *.
11160 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11161 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11162 type of "name" parameter to const char * from char *.
11163 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11164 * gdbarch.c: Regenerate.
11165 * gdbarch.h: Regenerate.
11166 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11167 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11168 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11169 type of "name" parameter to const char * from char *.
11170 * skip.c (skip_function_pc): Ditto.
11171 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11172 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11173 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11174 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11175 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11176 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11177 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11178 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11179 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11181 2012-02-02 Pedro Alves <palves@redhat.com>
11183 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11184 the current inferior has no execution. Make sure the current
11185 remote process matches gdb's current inferior.
11187 2012-02-02 Tom Tromey <tromey@redhat.com>
11190 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11193 2012-02-02 Tom Tromey <tromey@redhat.com>
11196 * symtab.c (lookup_language_this): Set block_found.
11198 2012-02-01 Tom Tromey <tromey@redhat.com>
11201 * jit.c (struct jit_inferior_data): Rewrite.
11202 (struct jit_objfile_data): New.
11203 (get_jit_objfile_data): New function.
11204 (add_objfile_entry): Update.
11205 (jit_read_descriptor): Return int. Replace descriptor_addr
11206 argument with inf_data. Update. Don't call error.
11207 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11209 (jit_inferior_init): Don't look up descriptor. Don't call error.
11210 (jit_reset_inferior_data_and_breakpoints)
11211 (jit_inferior_created_observer): Remove.
11212 (jit_inferior_exit_hook): Update.
11213 (jit_executable_changed_observer): Remove.
11214 (jit_event_handler): Update.
11215 (free_objfile_data): Reset inferior data if needed.
11216 (_initialize_jit): Update.
11218 2012-02-01 Tom Tromey <tromey@redhat.com>
11220 * jit.c (bfd_open_from_target_memory): Move higher in file.
11222 2012-02-01 Tristan Gingold <gingold@adacore.com>
11224 * libunwind-frame.c (libunwind_load): Display message if dlopen
11227 2012-02-01 Gary Benson <gbenson@redhat.com>
11229 * symtab.h (symbol_found_callback_ftype): New typedef.
11230 (iterate_over_symbols): Use the above.
11231 * symtab.c (iterate_over_symbols): Likewise.
11232 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11233 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11234 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11235 (iterate_name_matcher): Document return values.
11236 (collect_one_symbol): Likewise.
11237 (collect_function_symbols): Likewise.
11238 (collect_symbols): Likewise.
11240 2012-02-01 Tom Tromey <tromey@redhat.com>
11242 * ada-lang.c (resolve_subexp): Update.
11243 (ada_lookup_symbol_list): Add 'full_search' argument.
11244 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11245 ada_lookup_symbol_list.
11246 (ada_lookup_encoded_symbol): Update.
11247 (get_var_value): Update.
11248 * ada-exp.y (block_lookup): Update.
11249 (write_var_or_type): Update.
11250 (write_name_assoc): Update.
11251 * ada-lang.h (ada_lookup_symbol_list): Update.
11253 2012-01-31 Tom Tromey <tromey@redhat.com>
11255 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11258 2012-01-31 Doug Evans <dje@google.com>
11260 * symtab.h: Remove outdated comment.
11261 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11263 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11265 Fix build error in Darwin port.
11266 * i386-darwin-nat.c: Include i386-nat.h.
11268 2012-01-30 Tom Tromey <tromey@redhat.com>
11270 PR breakpoints/13568:
11271 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11272 argument. Check for recursive includes.
11273 (dwarf_decode_macros): Create an include hash.
11275 2012-01-30 Michael Eager <eager@eagercon.com>
11277 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11278 * ppc-linux-tdep.c: Include glibc-tdep.h.
11279 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11280 (powerpc_linux_in_plt_stub): New function.
11281 (powerpc_linux_in_dynsym_resolve_code): New function.
11282 (ppc_skip_trampoline_code): New function.
11283 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11284 Use glibc_skip_solib_resolver.
11286 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11288 Code cleanup: Make 1440 bytes of data segment read-only.
11289 * arch-utils.c (endian_enum): Make it const char *const [].
11290 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11292 * breakpoint.c (always_inserted_enums): Likewise.
11293 * cli/cli-cmds.c (script_ext_enums): Likewise.
11294 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11295 enumlist parameter const char *const *.
11296 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11297 const char *const *.
11298 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11299 parameter const char *const *.
11300 * cris-tdep.c (cris_modes): Make it const char *const [].
11301 * filesystem.c (target_file_system_kinds): Likewise.
11302 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11303 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11304 (can_use_displaced_stepping_enum, scheduler_enums)
11305 (exec_direction_names): Likewise.
11306 * language.c (_initialize_language): Make the type_or_range_names and
11307 case_sensitive_names variables const char *const [].
11308 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11309 * python/python.c (python_excp_enums): Likewise.
11310 * remote.c (interrupt_sequence_modes): Likewise.
11311 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11312 * serial.c (logbase_enums): Likewise.
11313 * sh-tdep.c (sh_cc_enum): Likewise.
11314 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11316 * symtab.c (multiple_symbols_modes): Likewise.
11317 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11319 * utils.c (internal_problem_modes): Likewise.
11321 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11323 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11324 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11327 2012-01-27 Doug Evans <dje@google.com>
11329 * configure.ac (with_python): Fix absolute path handling for win32.
11330 * configure: Regenerate.
11332 2012-01-26 Doug Evans <dje@google.com>
11334 * symtab.c: Whitespace cleanup, no code changes.
11336 * symtab.c (lookup_symbol_in_language): Improve comment.
11337 (lookup_symbol_aux): Fix comment.
11339 * psymtab.c (add_psymbol_to_list): Result is now "void".
11340 * psympriv.h (add_psymbol_to_list): Update.
11342 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11344 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11346 Do not open script filenames twice.
11347 * cli/cli-cmds.c (source_script_from_stream): Pass to
11348 source_python_script also STREAM.
11349 * python/py-auto-load.c (source_section_scripts): Pass to
11350 source_python_script_for_objfile also STREAM.
11351 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11353 * python/python-internal.h (source_python_script_for_objfile): New
11354 parameter file, rename parameter file to filename.
11355 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11356 instead if !_WIN32. Update the function comment.
11357 (source_python_script, source_python_script_for_objfile)
11358 (source_python_script): New parameter file, rename parameter file to
11359 filename. Pass FILENAME to python_run_simple_file.
11360 * python/python.h (source_python_script): New parameter file, rename
11361 parameter file to filename.
11363 2012-01-26 Pedro Alves <palves@redhat.com>
11365 * corelow.c (core_has_fake_pid): Delete.
11366 (core_close): Delete references to `core_has_fake_pid'.
11367 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11368 (core_open): Delete references to `core_has_fake_pid'.
11369 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11370 the removed global.
11372 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11374 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11375 Remove language parameter from name_matcher. Adjust the comment.
11376 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11377 Remove language parameter.
11378 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11379 * linespec.c (iterate_name_matcher): Likewise.
11380 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11381 name_matcher. Adjust call accordingly.
11382 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11383 (maintenance_check_symtabs): Adjust type of parameter "fun".
11384 * psymtab.h (maintenance_check_symtabs): Likewise.
11386 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11388 * language.h (symbol_name_match_p_ftype): New typedef.
11389 (struct language_defn): Replace field la_symbol_name_compare
11390 by la_get_symbol_name_match_p.
11391 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11392 (ada_language_defn): Use it.
11393 * linespec.c (struct symbol_matcher_data): New type.
11394 (iterate_name_matcher): Rewrite.
11395 (iterate_over_all_matching_symtabs): Pass a pointer to
11396 a symbol_matcher_data struct to expand_symtabs_matching
11397 instead of just the lookup name.
11398 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11399 opencl-lang.c, p-lang.c, language.c: Delete field
11400 la_symbol_name_compare, and replace by NULL for new field
11401 la_get_symbol_name_match_p.
11402 * symfile.h (struct quick_symbol_functions): Update comment.
11404 2012-01-25 Tom Tromey <tromey@redhat.com>
11406 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11409 2012-01-24 Tom Tromey <tromey@redhat.com>
11412 * solib.c (update_solib_list): Update the program space's
11413 added_solibs and deleted_solibs fields.
11414 * progspace.h (struct program_space) <added_solibs,
11415 deleted_solibs>: New fields.
11416 (clear_program_space_solib_cache): Declare.
11417 * progspace.c (release_program_space): Call
11418 clear_program_space_solib_cache.
11419 (clear_program_space_solib_cache): New function.
11420 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11421 bpstat_stop_status. Use handle_solib_event.
11422 * breakpoint.c: Include gdb_regex.h.
11423 (print_solib_event): New function.
11424 (bpstat_print): Use print_solib_event.
11425 (bpstat_stop_status): Add special case for bp_shlib_event.
11426 (handle_solib_event): New function.
11427 (bpstat_what): Use handle_solib_event.
11428 (struct solib_catchpoint): New.
11429 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11430 (breakpoint_hit_catch_solib, check_status_catch_solib)
11431 (print_it_catch_solib, print_one_catch_solib)
11432 (print_mention_catch_solib, print_recreate_catch_solib): New
11434 (catch_solib_breakpoint_ops): New global.
11435 (catch_load_or_unload, catch_load_command_1)
11436 (catch_unload_command_1): New functions.
11437 (internal_bkpt_check_status): Add special case for
11439 (internal_bkpt_print_it): Use print_solib_event.
11440 (initialize_breakpoint_ops): Initialize
11441 catch_solib_breakpoint_ops.
11442 (_initialize_breakpoint): Register "catch load" and "catch
11444 * breakpoint.h (handle_solib_event): Declare.
11445 * NEWS: Add entry for "catch load" and "catch unload".
11447 2012-01-24 Tom Tromey <tromey@redhat.com>
11449 * ada-lang.c: Include gdb_vecs.h.
11450 * charset.c: Include gdb_vecs.h.
11451 * tracepoint.h: Include gdb_vecs.h.
11452 * gdb_vecs.h: New file.
11454 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11456 * breakpoint.c (breakpoint_hit_catch_fork)
11457 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11458 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11459 * infrun.c (inferior_has_forked, inferior_has_vforked)
11460 (inferior_has_execd, inferior_has_called_syscall): Delete.
11461 (handle_syscall_event): Get syscall_number from the execution
11462 control state's wait status.
11463 (wait_for_inferior): Don't clear syscall_number.
11465 2012-01-24 Pedro Alves <palves@redhat.com>
11467 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11468 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11469 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11470 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11472 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11473 false for events other than TARGET_SIGNAL_TRAP.
11474 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11475 Add `ws' parameter.
11476 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11477 events other than TARGET_SIGNAL_TRAP.
11478 (tracepoint_breakpoint_hit): Add `ws' parameter.
11479 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11481 (bpstat_stop_status): Same.
11482 (pc_at_non_inline_function): Same.
11483 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11484 to pass the current event's waitstatus to bpstat_stop_status
11485 and pc_at_non_inline_function.
11487 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11490 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11491 Update the function comment for it.
11492 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11493 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11496 2012-01-24 Pedro Alves <palves@redhat.com>
11498 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11499 outside `bs->stop' block.
11500 (bpstat_what): Rework bp_shlib_event handling.
11501 (internal_bkpt_check_status): If the breakpoint is a
11502 bp_shlib_event, then set bs->stop and bs->print if
11503 stop_on_solib_events is set.
11505 2012-01-24 Gary Benson <gbenson@redhat.com>
11507 Delete #if 0'd out code.
11508 * stack.c (print_frame_label_vars): Remove.
11509 (catch_info): Likewise.
11510 (_initialize_stack): Remove "info catch" command.
11511 * NEWS: Mention the above.
11513 2012-01-24 Pedro Alves <palves@redhat.com>
11515 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11517 (remote_notice_new_inferior): If the remote end doesn't support
11518 the multiprocess extensions, then the PID is fake.
11519 (add_current_inferior_and_thread): New.
11520 (remote_start_remote): Use it.
11521 (extended_remote_attach_1): Adjust.
11522 (extended_remote_create_inferior_1): Use
11523 add_current_inferior_and_thread.
11525 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11527 Fix watchpoints to be specific for each inferior.
11528 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11529 current_program_space.
11530 * i386-nat.c (i386_inferior_data_cleanup): New.
11531 (i386_inferior_data_get): Replace variable inf_data_local by an
11532 inferior_data call.
11533 (i386_use_watchpoints): Initialize i386_inferior_data.
11534 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11535 specific iterate_over_lwps.
11537 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11539 Fix watchpoints across inferior fork.
11540 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11541 comment for linux_nat_iterate_watchpoint_lwps.
11542 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11543 linux_nat_iterate_watchpoint_lwps.
11544 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11545 * i386-linux-nat.c (update_debug_registers_callback): Update the
11546 comment for linux_nat_iterate_watchpoint_lwps.
11547 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11548 linux_nat_iterate_watchpoint_lwps.
11549 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11550 * i386-nat.c: Include inferior.h.
11551 (dr_mirror): Remove.
11552 (i386_inferior_data, struct i386_inferior_data)
11553 (i386_inferior_data_get): New.
11554 (i386_debug_reg_state): Use i386_inferior_data_get.
11555 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11556 (i386_insert_watchpoint, i386_remove_watchpoint)
11557 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11558 (i386_remove_hw_breakpoint): New variable state, use
11559 i386_debug_reg_state instead of DR_MIRROR.
11560 * linux-nat.c (delete_lwp): New declaration.
11561 (num_lwps): Move here from downwards.
11562 (delete_lwp_cleanup): New.
11563 (linux_child_follow_fork): Create new child_lp, call
11564 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11566 (num_lwps): Move upwards.
11567 (linux_nat_iterate_watchpoint_lwps): New.
11568 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11569 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11571 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11575 2012-01-23 Pedro Alves <palves@redhat.com>
11577 * top.c (caution): Rename to ...
11578 (confirm): ... this.
11579 (show_caution): Rename to ...
11580 (show_confirm): ... this.
11581 (quit_cover): Adjust.
11582 (init_main): Adjust.
11583 * top.h (caution): Rename to ...
11584 (confirm): ... this.
11585 * utils.c (internal_vproblem, defaulted_query): Adjust.
11587 2012-01-23 Pedro Alves <palves@redhat.com>
11589 * top.c (caution): Update comment.
11590 (execute_command): Don't consider the current value of `caution'.
11592 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11594 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11596 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11598 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11599 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11600 * target.c (target_fileio_pwrite): Remove buffer address from
11602 (target_fileio_pread): Likewise.
11604 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11606 * NEWS: Document remote "info proc" and "generate-core-file".
11608 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11610 * gdbarch.sh (find_memory_regions): New callback.
11611 * gdbarch.c, gdbarch.h: Regenerate.
11613 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11614 callback before falling back to target method.
11616 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11617 (linux_target_install_ops): No longer install it.
11619 * linux-tdep.c (linux_find_memory_regions): New function.
11620 (linux_init_abi): Install it.
11622 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11624 * gdbarch.sh (make_corefile_notes): New architecture callback.
11625 * gdbarch.c: Regenerate.
11626 * gdbarch.h: Likewise.
11628 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11629 before target_make_corefile_notes. If NULL is returned, the
11630 target does not support core file generation.
11632 * linux-nat.c: Include "linux-tdep.h".
11633 (find_signalled_thread, find_stop_signal): Remove.
11634 (linux_nat_do_thread_registers): Likewise.
11635 (struct linux_nat_corefile_thread_data): Likewise.
11636 (linux_nat_corefile_thread_callback): Likewise.
11637 (iterate_over_spus): Likewise.
11638 (struct linux_spu_corefile_data): Likewise.
11639 (linux_spu_corefile_callback): Likewise.
11640 (linux_spu_make_corefile_notes): Likewise.
11641 (linux_nat_collect_thread_registers): New function.
11642 (linux_nat_make_corefile_notes): Replace contents by call to
11643 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11644 as native-only callback.
11646 * linux-tdep.h: Include "bfd.h".
11647 (struct regcache): Add forward declaration.
11648 (linux_collect_thread_registers_ftype): New typedef.
11649 (linux_make_corefile_notes): Add prototype.
11650 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11651 "regset.h", and "elf-bfd.h".
11652 (find_signalled_thread, find_stop_signal): New functions.
11653 (linux_spu_make_corefile_notes): Likewise.
11654 (linux_collect_thread_registers): Likewise.
11655 (struct linux_corefile_thread_data): New data structure.
11656 (linux_corefile_thread_callback): New funcion.
11657 (linux_make_corefile_notes): Likewise.
11658 (linux_make_corefile_notes_1): Likewise.
11659 (linux_init_abi): Install it.
11661 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11663 * gdbarch.sh (info_proc): New callback.
11664 * gdbarch.c, gdbarch.h: Regenerate.
11666 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11667 before falling back to the target info_proc callback.
11669 * linux-nat.c: Do not include "cli/cli-utils.h".
11670 (linux_nat_info_proc): Remove.
11671 (linux_target_install_ops): No longer install it.
11673 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11674 (read_mapping): New function.
11675 (linux_info_proc): Likewise.
11676 (linux_init_abi): Install it.
11678 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11680 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11681 * infcmd.c: (info_proc_cmd_1): New function.
11682 (info_proc_cmd): New function, moved here from equivalent routine
11683 orignally in linux-nat.c.
11684 (info_proc_cmd_mappings): Likewise.
11685 (info_proc_cmd_stat): Likewise.
11686 (info_proc_cmd_status): Likewise.
11687 (info_proc_cmd_cwd): Likewise.
11688 (info_proc_cmd_cmdline): Likewise.
11689 (info_proc_cmd_exe): Likewise.
11690 (info_proc_cmd_all): Likewise.
11691 (_initialize_infcmd): Install "info proc" command and subcommands.
11693 * target.h (struct target_ops): Add to_info_proc.
11694 (target_info_proc): Add prototype.
11695 * target.c (target_info_proc): New function.
11697 * procfs.c (procfs_info_proc): Add prototype.
11698 (info_proc_cmd): Rename into ...
11699 (procfs_info_proc): ... this. Update argument types as appropriate
11700 for a to_info_proc implementation. Handle "what" argument.
11701 (procfs_target): Install procfs_info_proc.
11702 (_initialize_procfs): No longer install "info proc" command.
11704 * linux-nat.c: (enum info_proc_what): Remove.
11705 (linux_nat_info_proc_cmd_1): Rename into ...
11706 (linux_nat_info_proc): ... this. Update argument types as appropriate
11707 for a to_info_proc implementation.
11708 (linux_nat_info_proc_cmd): Remove.
11709 (linux_nat_info_proc_cmd_mappings): Likewise.
11710 (linux_nat_info_proc_cmd_stat): Likewise.
11711 (linux_nat_info_proc_cmd_status): Likewise.
11712 (linux_nat_info_proc_cmd_cwd): Likewise.
11713 (linux_nat_info_proc_cmd_cmdline): Likewise.
11714 (linux_nat_info_proc_cmd_exe): Likewise.
11715 (linux_nat_info_proc_cmd_all): Likewise.
11716 (linux_target_install_ops): Install linux_nat_info_proc.
11717 (_initialize_linux_nat): No longer install "info proc" command
11720 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11722 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11723 * config.in, configure: Regenerate.
11725 * target.h (struct target_ops): Add to_fileio_readlink.
11726 (target_fileio_readlink): Add prototype.
11727 * target.c (target_fileio_readlink): New function.
11729 * inf-child.c: Conditionally include <sys/param.h>.
11730 (inf_child_fileio_readlink): New function.
11731 (inf_child_target): Install it.
11733 * remote.c (PACKET_vFile_readlink): New enum value.
11734 (remote_hostio_readlink): New function.
11735 (init_remote_ops): Install it.
11736 (_initialize_remote): Handle vFile:readlink packet type.
11738 2012-01-20 Pedro Alves <palves@redhat.com>
11739 Ulrich Weigand <ulrich.weigand@linaro.org>
11741 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11742 * config.in, configure: Regenerate.
11744 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11745 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11746 (target_fileio_open): Add prototype.
11747 (target_fileio_pwrite): Likewise.
11748 (target_fileio_pread): Likewise.
11749 (target_fileio_close): Likewise.
11750 (target_fileio_unlink): Likewise.
11751 (target_fileio_read_alloc): Likewise.
11752 (target_fileio_read_stralloc): Likewise.
11754 * target.c: Include "gdb/fileio.h".
11755 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11756 (default_fileio_target): New function.
11757 (target_fileio_open): Likewise.
11758 (target_fileio_pwrite): Likewise.
11759 (target_fileio_pread): Likewise.
11760 (target_fileio_close): Likewise.
11761 (target_fileio_unlink): Likewise.
11762 (target_fileio_close_cleanup): Likewise.
11763 (target_fileio_read_alloc_1): Likewise.
11764 (target_fileio_read_alloc): Likewise.
11765 (target_fileio_read_stralloc): Likewise.
11767 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11768 <fcntl.h>, and <unistd.h>.
11769 (inf_child_fileio_open_flags_to_host): New function.
11770 (inf_child_errno_to_fileio_error): Likewise.
11771 (inf_child_fileio_open): Likewise.
11772 (inf_child_fileio_pwrite): Likewise.
11773 (inf_child_fileio_pread): Likewise.
11774 (inf_child_fileio_close): Likewise.
11775 (inf_child_fileio_unlink): Likewise.
11776 (inf_child_target): Install to_fileio routines.
11778 * remote.c (init_remote_ops): Install to_fileio routines.
11780 2012-01-20 Pedro Alves <palves@redhat.com>
11781 Ulrich Weigand <ulrich.weigand@linaro.org>
11783 * remote.c (remote_multi_process_p): Only check for multi-process
11784 protocol feature, do not check for extended protocol.
11785 (remote_supports_multi_process): Check for extended protocol here.
11786 (set_general_process): Likewise.
11787 (extended_remote_kill): Likewise.
11788 (remote_pid_to_str): Likewise.
11789 (remote_query_supported): Always query multiprocess mode.
11791 2012-01-20 Pedro Alves <palves@redhat.com>
11792 Ulrich Weigand <ulrich.weigand@linaro.org>
11794 * inferior.h (struct inferior): Add fake_pid_p.
11795 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11796 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11797 magic_null_ptid since the remote side doesn't provide a real PID.
11799 2012-01-19 Tom Tromey <tromey@redhat.com>
11801 * NEWS: Combine the two Python sections.
11803 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11805 * target.h (target_close): Update comment on the target's unpush state.
11807 2012-01-19 Pedro Alves <palves@redhat.com>
11809 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11810 linux_nat_async directly instead of going through the target
11812 * target.c (unpush_target): Close target after unpushing it, not
11815 2012-01-19 Gary Benson <gbenson@redhat.com>
11817 * mdebugread.c (sort_blocks): Replace integer constants with ones
11818 derived from FIRST_LOCAL_BLOCK.
11820 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11821 Jan Kratochvil <jan.kratochvil@redhat.com>
11824 * symfile.c (find_separate_debug_file): New function.
11825 (terminate_after_last_dir_separator): Likewise.
11826 (find_separate_debug_file_by_debuglink): Also try realpath.
11827 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11828 * configure: Regenerate.
11829 * config.in: Regenerate.
11831 2012-01-18 Doug Evans <dje@google.com>
11833 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11834 (main.o): Remove rule.
11835 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11836 (--with-sysroot): Rewrite.
11837 * configure: Regenerate.
11838 * config.in: Regenerate.
11840 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11842 * parse.c (initialize_expout): New function.
11843 (reallocate_expout): Likewise.
11844 (parse_exp_in_context): Use `initialize_expout' and
11845 `reallocate_expout' when appropriate.
11847 2012-01-18 Pedro Alves <palves@redhat.com>
11849 * record.c (struct record_breakpoint, record_breakpoint_p)
11850 (record_breakpoints): New.
11851 (record_insert_breakpoint, record_remove_breakpoint): Manage
11852 record breakpoints list. Only remove breakpoints from the
11853 inferior if they had been inserted there in the first place.
11855 2012-01-17 Doug Evans <dje@google.com>
11857 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11858 if we know we don't have a file name to look for.
11860 2012-01-17 Pedro Alves <palves@redhat.com>
11862 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11863 the frame's stop reason is UNWIND_UNAVAILABLE.
11865 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11867 Fix compilation error.
11868 * m2-exp.y (yyerror): Use ANSI C prototype.
11870 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11872 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11873 (growbuf_by_size): Likewise.
11874 (yyerror): Likewise.
11875 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11876 (modblock): Remove variable (was #if 0'ed).
11877 (parse_number): Convert prototype from K&R to ANSI C.
11878 (yyerror): Likewise.
11879 * objc-exp.y (parse_number): Likewise.
11880 (yyerror): Likewise.
11881 (yylex): Remove #if 0'ed code.
11882 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11883 (yyerror): Likewise.
11885 2012-01-16 Tom Tromey <tromey@redhat.com>
11888 * symtab.h (compare_filenames_for_search): Declare.
11889 * symtab.c (compare_filenames_for_search): New function.
11890 (iterate_over_some_symtabs): Use it.
11891 * symfile.h (struct quick_symbol_functions)
11892 <map_symtabs_matching_filename>: Change spec.
11893 * psymtab.c (partial_map_symtabs_matching_filename): Use
11894 compare_filenames_for_search. Update for new spec.
11895 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11896 compare_filenames_for_search. Update for new spec.
11897 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11899 2012-01-16 Tom Tromey <tromey@redhat.com>
11902 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11903 (struct main_type) <flag_flag_enum>: New field.
11904 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11905 * NEWS: Add entries.
11906 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11908 * python/lib/gdb/printing.py (_EnumInstance): New class.
11909 (FlagEnumerationPrinter): Likewise.
11911 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11913 * breakpoint.c (create_sals_from_address_default): New function.
11914 (create_breakpoints_sal_default): Likewise.
11915 (decode_linespec_default): Likewise.
11916 (is_marker_spec): Removed.
11917 (strace_marker_p): New function.
11918 (init_breakpoint_sal): Using `strace_marker_p' instead of
11920 (create_breakpoint): Call method `create_sals_from_address' from
11921 breakpoint_ops, replacing code that created SALs conditionally
11922 on the type of the breakpoint. Call method `create_breakpoints_sal',
11923 replacing code that created breakpoints conditionally on the type
11925 (base_breakpoint_create_sals_from_address): New function.
11926 (base_breakpoint_create_breakpoints_sal): Likewise.
11927 (base_breakpoint_decode_linespec): Likewise.
11928 (base_breakpoint_ops): Add methods
11929 `base_breakpoint_create_sals_from_address',
11930 `base_breakpoint_create_breakpoints_sal' and
11931 `base_breakpoint_decode_linespec'.
11932 (bkpt_create_sals_from_address): New function.
11933 (bkpt_create_breakpoints_sal): Likewise.
11934 (bkpt_decode_linespec): Likewise.
11935 (tracepoint_create_sals_from_address): Likewise.
11936 (tracepoint_create_breakpoints_sal): Likewise.
11937 (tracepoint_decode_linespec): Likewise.
11938 (strace_marker_create_sals_from_address): Likewise.
11939 (strace_marker_create_breakpoints_sal): Likewise.
11940 (strace_marker_decode_linespec): Likewise.
11941 (strace_marker_breakpoint_ops): New variable.
11942 (addr_string_to_sals): Remove `marker_spec'. Call method
11943 `decode_linespec' from breakpoint_ops, replacing code that decoded
11944 an address string into a SAL. Use `strace_marker_p' instead of
11946 (strace_command): Decide whether we are dealing with a static
11947 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11948 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11949 * breakpoint.h (linespec_result, linespec_sals): New forward
11951 (breakpoint_ops) <create_sals_from_address>,
11952 <create_breakpoints_sal>, <decode_linespec>: New methods.
11954 2012-01-14 Doug Evans <dje@google.com>
11956 * NEWS: Update text for "maint set python print-stack".
11957 It is deprecated in gdb 7.4 and deleted in 7.5.
11959 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11961 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11962 including curses.h.
11964 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11966 * configure: Regenerate.
11967 * config.in: Regenerate.
11969 2012-01-12 Keith Seitz <keiths@redhat.com>
11972 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11973 (ANONYMOUS_UNION_NAME): Define.
11974 (is_path_expr_parent): New function.
11975 (get_path_expr_parent): New function.
11976 (is_anonymous_child): New function.
11977 (create_child_with_value): If the child is anonymous and without
11978 a name, assign an object name to it.
11979 (c_describe_child): Use get_path_expr_parent to determine
11980 the parent expression.
11981 If there field represents an anonymous struct or union and
11982 has no name, set an appropriate display name and expression.
11983 (cplus_describe_child): Likewise.
11985 2012-01-12 Pedro Alves <palves@redhat.com>
11987 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11988 available when %ebp is found to be zero (outermost).
11990 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11992 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11993 an internal gdb_static_assert.
11994 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11996 2012-01-11 Tom Tromey <tromey@redhat.com>
11999 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12000 catch" and "catch throw".
12002 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12004 * blockframe.c (block_innermost_frame): Start search from selected
12005 frame, if present, or otherwise the current frame.
12007 * c-exp.y (variable): Update innermost_block for
12008 'block COLONCOLON NAME' clause.
12009 * m2-exp.y (variable): Ditto.
12010 * objc-exp.y (variable): Ditto.
12012 2012-01-10 Tom Tromey <tromey@redhat.com>
12015 * python/python.c (finish_python_initialization): Set sys.argv.
12017 2012-01-10 Doug Evans <dje@google.com>
12019 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12020 "want_line_info". All callers updated.
12021 (dwarf_decode_lines_1): New function.
12022 (handle_DW_AT_stmt_list): Add function comment.
12023 New arg "want_line_info". All callers updated.
12024 (read_file_scope,read_type_unit_scope): Move comment from
12025 handle_DW_AT_stmt_list to here.
12027 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12029 Fix regression after libiberty/ update for GCC PR 6057 and others.
12030 * c-exp.y (operator) <OPERATOR DELETE>
12031 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12032 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12033 (make_builtin_type, make_name): New variable i, add gdb_assert.
12034 (operator) <OPERATOR NEW>: Update ARGS to 3.
12035 (operator) <OPERATOR DELETE>: Add trailing space.
12036 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12037 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12038 * cp-support.c (cp_canonicalize_string): Check NULL from
12039 cp_comp_to_string, call warning and return.
12041 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12043 Fix duplicate .o files after omitting libbfd.a.
12044 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12045 (SFILES): Add corelow.c.
12046 (COMMON_OBS): Add corelow.o.
12047 (ALLDEPFILES): Remove corelow.c.
12048 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12049 * config/alpha/alpha-osf3.mh: Likewise.
12050 * config/alpha/fbsd.mh: Likewise.
12051 * config/arm/nbsdaout.mh: Likewise.
12052 * config/arm/nbsdelf.mh: Likewise.
12053 * config/i386/i386gnu.mh: Likewise.
12054 * config/ia64/hpux.mh: Likewise.
12055 * config/ia64/linux.mh: Likewise.
12056 * config/m32r/linux.mh: Likewise.
12057 * config/m68k/linux.mh: Likewise.
12058 * config/mips/irix5.mh: Likewise.
12059 * config/mips/irix6.mh: Likewise.
12060 * config/pa/hpux.mh: Likewise.
12061 * config/pa/linux.mh: Likewise.
12062 * config/powerpc/aix.mh: Likewise.
12063 * config/sparc/linux.mh: Likewise.
12064 * config/sparc/linux64.mh: Likewise.
12065 * config/sparc/sol2.mh: Likewise.
12066 * config/vax/vax.mh: Likewise.
12067 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12068 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12069 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12070 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12071 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12072 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12073 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12074 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12075 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12076 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12077 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12078 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12079 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12080 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12081 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12082 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12083 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12084 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12085 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12086 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12087 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12088 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12089 corelow.o from gdb_target_obs.
12090 * corefile.c (core_target): Update the comment on NULL value.
12091 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12092 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12093 MATCHES. Drop YUMMY set on NULL.
12094 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12095 reclaim CORE_DATA if it is already NULL.
12097 2012-01-09 Doug Evans <dje@google.com>
12099 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12100 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12102 2012-01-09 Keith Seitz <keiths@redhat.com>
12104 * breakpoint.c (wrapper.h): Don't include.
12106 2012-01-09 Keith Seitz <keiths@redhat.com>
12108 * Makefile.in (SFILES): Remove wrapper.c.
12109 (HFILES_NO_SRCDIR): Remove wrapper.h.
12110 (COMMON_OBS): Remove wrapper.o.
12111 * cli/cli-interp.c: Don't inlude wrapper.h.
12112 * corelow.c: Likewise.
12113 (core_open): Replace gdb_target_find_new_threads with
12114 TRY_CATCH around target_find_new_threads.
12115 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12116 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12117 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12118 evaluate_expression.
12119 (varobj_set_value): Likewise for evaluate_expression and
12121 (install_new_variable): Likewise for value_fetch_lazy.
12122 (adjust_value_for_child_access): Likewise for value_ind.
12123 (c_describe_child): Likewise for value_subscript and
12125 (c_value_of_root): Likewise for evaluate_expression.
12126 * wrapper.c: Remove.
12127 * wrapper.h: Remove.
12129 2012-01-09 Doug Evans <dje@google.com>
12131 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12132 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12133 "abfd" args with "section". All callers updated.
12134 Error checking code moved ...
12135 (error_check_comp_unit_head): ... here. New function.
12136 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12137 Delete arg "abfd". New arg "type_offset". All callers updated.
12138 (create_debug_types_hash_table): Simplify by using
12139 read_and_check_type_unit_head.
12141 * parser-defs.h (namecopy): Delete.
12142 * parse.c (namecopy, namecopy_size): Move into copy_name.
12144 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12146 Partially fix duplicate .o files after omitting libbfd.a.
12147 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12148 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12149 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12150 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12151 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12152 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12153 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12155 2012-01-09 Pedro Alves <palves@redhat.com>
12157 * MAINTAINERS: Update my email address.
12159 2012-01-08 Doug Evans <dje@google.com>
12161 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12162 n_type_units. Rename type_comp_units to all_type_units.
12164 (add_signatured_type_cu_to_table): Renamed from
12165 add_signatured_type_cu_to_list. All callers updated.
12167 * gdbtypes.h (struct cplus_struct_type): Delete member
12168 nfn_fields_total. All uses removed.
12170 2012-01-06 Doug Evans <dje@google.com>
12172 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12174 (dwarf2_find_comp_unit): Delete.
12175 (process_psymtab_comp_unit): Make result "void".
12176 Delete args buffer, info_ptr, buffer_size, and replace with
12177 "section". All callers updated.
12178 (dwarf2_build_psymtabs_hard): Simplify.
12180 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12181 Thiago Jung Bauermann <bauerman@br.ibm.com>
12183 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12184 before `struct gdb_exception'.
12185 * breakpoint.c (update_global_location_list_nothrow)
12186 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12187 * cp-abi.c (value_rtti_type): Likewise.
12188 * cp-support.c (cp_validate_operator): Likewise.
12189 * infrun.c (insert_exception_resume_breakpoint)
12190 (check_exception_resume, keep_going): Likewise.
12191 * mi-interp.c (mi_breakpoint_created)
12192 (mi_breakpoint_modified): Likewise.
12193 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12194 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12195 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12197 2012-01-05 Doug Evans <dje@google.com>
12199 * dwarf2read.c (statement_prologue): Delete, unused.
12201 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12202 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12204 * dwarf2read.c (comp_unit_header): Delete, unused.
12206 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12208 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12209 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12211 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12213 * infrun.c (normal_stop): Don't skip calling the normal_stop
12214 observers if the thread was doing a multi-step, but stopped for
12215 some reason other than stepping.
12217 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12219 * cli/cli-decode.h: Add comments.
12220 (CMD_LIST_AMBIGUOUS): Moved to command.h
12221 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12222 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12223 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12224 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12225 (add_com, add_com_alias, add_info, add_info_alias)
12226 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12228 * command.h: Add and adjust comments.
12229 (CMD_LIST_AMBIGUOUS): Moved here.
12230 (help_cmd, help_cmd_list): Delete declarations.
12232 2012-01-04 Doug Evans <dje@google.com>
12234 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12235 All callers updated.
12236 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12237 Replace all arguments with "per_cu". All callers updated.
12239 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12241 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12242 New arg "per_cu". All callers updated.
12244 Delete #if 0'd out code.
12245 * language.c (binop_result_type): Delete.
12246 (simple_type, ordered_type, same_type, integral_type): Delete.
12247 (numeric_type, character_type, string_type, boolean_type): Delete.
12248 (float_type, structured_type): Delete.
12249 * language.h: Update.
12251 2012-01-04 Tom Tromey <tromey@redhat.com>
12253 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12255 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12257 * corefile.c (close_exec_file): Delete.
12258 (reopen_exec_file): Remove commented out code that seems related
12259 to close_exec_file, which is being deleted here.
12260 * inferior.h (close_exec_file): Delete.
12261 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12263 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12265 * ada-lang.c: #include "cli/cli-utils.h".
12266 (get_selections): Use skip_spaces.
12267 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12268 (catch_ada_exception_command_split): Use skip_spaces.
12269 (ada_decode_assert_location): Likewise.
12271 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12273 * linespec.c (decode_line_internal): Check for C++ or Java
12274 compound constructs only if the current language is C, C++
12277 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12280 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12281 Joel Brobecker <brobecker@adacore.com>
12282 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12283 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12285 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12286 fall through into AT_ENTRY_POINT.
12287 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12288 DUMMY_ADDR with it.
12289 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12290 PPC_INSN_SIZE skip to 3 times.
12292 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12294 * linespec.c (add_minsym): Preserve function descriptors.
12296 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12298 * breakpoint.c (all_locations_are_pending): Consider locations
12299 in program spaces executing during startup pending as well.
12301 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12303 Copyright year update in most files of the GDB Project.
12305 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12307 * copyright.sh: Delete.
12308 * copyright.py: Rewrite.
12310 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12312 * gnulib/extra/update-copyright: New file, imported from gnulib.
12314 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12316 * README (Copyright and License Notices): New section.
12318 2012-01-03 Tom Tromey <tromey@redhat.com>
12321 * python/py-value.c (valpy_dereference, valpy_get_address
12322 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12323 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12324 (valpy_absolute, valpy_richcompare): Free intermediate values.
12326 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12328 * ada-lang.c: Reformat the copyright notice.
12330 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12332 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12333 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12334 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12335 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12336 Revert this part of:
12337 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12338 Build gdb directly from *.o files not using libgdb.a.
12339 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12341 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12343 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12344 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12345 Reformat the copyright header.
12347 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12349 Revert this part of:
12350 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12351 Remove the gdbtui binary.
12352 * gdb.c (main): Remove args.interpreter_p initialization.
12353 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12354 * main.h (struct captured_main_args): Remove interpreter_p.
12356 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12358 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12360 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12362 * top.c (print_gdb_version): Update copyright year.
12364 2012-01-02 Yao Qi <yao@codesourcery.com>
12366 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12368 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12369 Joel Brobecker <brobecker@adacore.com>
12371 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12372 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12374 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12375 fall through into AT_ENTRY_POINT.
12376 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12377 DUMMY_ADDR with it.
12378 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12379 PPC_INSN_SIZE skip to 3 times.
12381 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12383 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12385 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12387 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12389 Build gdb directly from *.o files not using libgdb.a.
12390 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12391 (COMMON_OBS): Remove solib-target.o.
12392 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12393 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12394 (LIBGDB_OBS, libgdb.a): Move it above.
12395 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12396 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12397 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12398 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12399 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12400 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12401 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12402 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12403 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12404 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12405 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12406 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12407 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12408 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12409 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12410 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12411 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12412 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12413 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12414 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12415 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12416 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12417 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12418 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12419 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12420 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12421 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12423 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12425 Remove the gdbtui binary.
12426 * .gitignore (/gdbtui): Remove.
12427 * Makefile.in (TUI): Remove.
12428 (SUBDIR_TUI_OBS): Remove tui-main.o.
12429 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12430 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12431 (tui-main.o): Remove.
12432 (all_object_files): Remove tui-main.o.
12433 * NEWS: New note for the gdbtui removal.
12434 * configure: Rebuilt.
12435 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12436 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12437 CONFIG_UNINSTALL respectively.
12438 * gdb.c (main): Remove args.interpreter_p initialization.
12439 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12440 * main.h (struct captured_main_args): Remove interpreter_p.
12441 * tui/tui-main.c: Remove.
12443 2012-01-01 Doug Evans <dje@google.com>
12445 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12446 (dwarf2_physname, read_import_statement): Ditto.
12447 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12448 (process_structure_scope read_subroutine_type): Ditto.
12449 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12450 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12451 (dwarf2_fetch_die_location_block): Ditto.
12452 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12454 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12455 All callers updated.
12456 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12457 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12458 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12460 * dwarf2read.c (load_cu): Move assert to more useful location.
12462 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12463 All callers updated.
12465 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12466 (dwarf2_elf_names): Minor reformat.
12467 (dwarf2_per_cu_data): Tweak comment.
12468 (dwarf2_read_section): Fix comment.
12469 (create_all_comp_units): Fix comment.
12470 (load_full_comp_unit): Fix comment.
12471 (process_full_comp_unit): Fix comment.
12472 (read_signatured_type): Fix comment.
12474 For older changes see ChangeLog-2011.
12480 version-control: never