1 2012-11-26 Yao Qi <yao@codesourcery.com>
3 * remote.c (remote_start_remote): Typo fix.
5 2012-11-23 David S. Miller <davem@davemloft.net>
7 * sparc-tdep.h (struct sparc_fpregset): New data structure.
8 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
9 sparc32_sol2_fpregset): Declare new globals.
10 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
12 * sparc64-tdep.h (sparc64_supply_fpregset,
13 sparc64_collect_fpregset): Likewise.
14 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
16 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
17 (sparc_fpregset): Declare new global.
18 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
20 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
22 (fill_fpregset): Likewise.
23 (_initialize_sparc_linux_nat): Set sparc_fpregset to
25 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
26 sparc32_bsd_fpregset down into handler.
27 (sparc32_linux_collect_core_fpregset): Likewise.
28 * sparc-nat.c (sparc_fpregset): Define.
29 (sparc_supply_fpregset): Add 'fpregset' argument.
30 (sparc_collect_fpregset): Likewise.
31 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
32 into fpregset handler.
33 (sparc_store_inferior_registers): Likewise.
34 (_initialize_sparc_nat): Set sparc_fpregset to
35 sparc32_sunos4_fpregset if NULL.
36 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
38 (fill_fpregset): Likewise.
39 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
40 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
41 use it to compute offsets.
42 (sparc32_collect_fpregset): Likewise.
43 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
44 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
46 (fill_fpregset): Likewise.
47 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
49 (sparc64_linux_collect_core_fpregset): Likewise.
50 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
51 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
52 use it to compute offsets.
53 (sparc64_collect_fpregset): Likewise.
54 (sparc64_bsd_fpregset): Define.
55 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
56 sparc64_bsd_fpregset down into handler.
57 (sparc64fbsd_collect_fpregset): Likewise.
58 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
59 and pass sparc{32,64}_bsd_fpregset down into handler.
60 (sparc64nbsd_collect_fpregset): Likewise.
61 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
62 sparc64_bsd_fpregset down into handler.
63 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
64 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
65 to sparc32_bsd_fpregset.
66 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
67 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
68 (sparc32nbsd_supply_fpregset): Likewise.
70 2012-11-21 Tom Tromey <tromey@redhat.com>
72 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
74 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
76 * c-typeprint.c (c_type_print_base): Update.
78 2012-11-21 Yao Qi <yao@codesourcery.com>
81 * gdbarch.sh (smash_text_address): Remove.
82 * gdbarch.c, gdbarch.h: Regenerate.
83 * arm-tdep.c (arm_smash_text_address): Remove.
84 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
85 * hppa-tdep.c (hppa_smash_text_address): Remove.
86 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
87 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
89 * coffread.c (coff_symtab_read): Caller update.
90 * dbxread.c (process_one_symbol): Likewise.
91 * elfread.c (record_minimal_symbol): Likewise.
92 * somread.c (som_symtab_read): Likewise.
94 2012-11-20 Pierre Muller <muller@sourceware.org>
96 ARI fixes: sprintf rule.
97 Replace sprintf function calls for char arrays by
98 calls to xsnprintf calls.
99 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
100 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
101 (arm_neon_quad_read, arm_pseudo_read): Ditto.
102 (arm_neon_quad_write, arm_pseudo_write): Ditto.
103 * breakpoint.c (condition_completer): Ditto.
104 (create_tracepoint_from_upload): Ditto.
105 * dwarf2read.c (file_full_name): Ditto.
106 * gcore.c (gcore_command): Ditto.
107 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
108 * go32-nat.c (go32_sysinfo): Ditto.
109 * interps.c (interp_set): Ditto.
110 * m32c-tdep.c (make_types): Ditto.
111 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
112 * remote-m32r-sdi.c (m32r_open): Ditto.
113 * sol-thread.c (td_err_string): Ditto.
114 (td_state_string, solaris_pid_to_str): Ditto.
115 * symtab.c (gdb_mangle_name): Ditto.
116 * cli/cli-script.c (execute_control_command): Ditto.
117 (define_command, document_command): Ditto.
118 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
119 * tui/tui-stack.c (tui_make_status_line): Ditto.
120 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
122 2012-11-20 Mike Frysinger <vapier@gentoo.org>
124 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
125 it when looking at ptr->func.
126 * command.h (complete_on_cmdlist): Add a fourth arg.
127 * completer.c (complete_line_internal): Add local ignore_help_classes,
128 and set it to 1 when reason is not handle_help. Pass this down to
129 lookup_cmd_1 and complete_on_cmdlist.
131 2012-11-20 Tom Tromey <tromey@redhat.com>
133 * completer.c (count_struct_fields): Remove.
134 (expression_completer): Don't call count_struct_fields.
136 2012-11-20 Pedro Alves <palves@redhat.com>
138 * annotate.c (breakpoints_changed): Rename to ...
139 (annotate_breakpoints_changed): ... this.
140 (annotate_stopped, breakpoint_changed): Adjust caller.
141 * annotate.h (breakpoints_changed): Rename to ...
142 (annotate_breakpoints_changed): ... this.
143 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
144 (do_map_commands_command, init_raw_breakpoint, clear_command)
145 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
147 2012-11-20 David S. Miller <davem@davemloft.net>
149 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
150 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
152 (get_cores_used_by_process): Update comment.
154 2012-11-20 Yao Qi <yao@codesourcery.com>
156 * objfiles.c (init_entry_point_info): Remove trailing spaces.
158 2012-11-20 Yao Qi <yao@codesourcery.com>
160 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
161 to deprecated_context_hook.
163 2012-11-19 Yao Qi <yao@codesourcery.com>
165 * infrun.c (infwait_state): Add static.
167 2012-11-16 Keith Seitz <keiths@redhat.com>
170 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
171 parameter and pass it to lookup_symbol_file.
172 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
173 to search base classes.
174 (cp_lookup_symbol_namespace): Likewise.
175 (lookup_namespace_scope): Likewise.
176 (lookup_symbol_file): Add SEARCH parameter.
177 If SEARCH is non-zero and no symbol is found, lookup the class
178 and call cp_lookup_nested_symbol.
179 (find_symbol_in_baseclass): New function.
180 (cp_lookup_nested_symbol): Do not let
181 cp_lookup_symbol_in_namespace search through base classes.
182 Do that later when there is no global symbol match.
184 2012-11-16 Doug Evans <dje@google.com>
186 * main.c (gdb_datadir_provided): New static global.
187 (get_init_files): If --data-directory is provided,
188 and SYSTEM_GDBINIT lives in data-directory, look for it there.
191 2012-11-15 Pierre Muller <muller@sourceware.org>
193 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
194 * gdb_stat.h: Delete. Moved to common directory.
195 * common/gdb_stat.h: New file.
196 * gdb_wait.h: Delete. Moved to common directory.
197 * common/gdb_wait.h: New file.
198 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
200 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
202 (stat.h rule): Adapt to new gdb_stat.h location.
203 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
205 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
208 2012-11-15 Pierre Muller <muller@sourceware.org>
210 * configure.ac (AC_HEADER_STAT): Remove.
211 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
212 and corresponding code.
213 * configure: Regenerate.
214 * config.in: Regenerate.
216 2012-11-15 Pierre Muller <muller@sourceware.org>
218 ARI xasprintf rule fixes.
219 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
220 instead of xasprintf.
221 (open_and_init_dwp_file): Ditto.
223 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
225 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
228 2012-11-14 Tom Tromey <tromey@redhat.com>
230 * configure, config.in: Rebuild.
231 * configure.ac: Don't check for ctype.h, time.h.
232 * expprint.c: Don't use HAVE_CTYPE_H.
234 2012-11-13 Tom Tromey <tromey@redhat.com>
236 * gdbarch.h, gdbarch.c: Rebuild.
237 * gdbarch.sh (set_target_gdbarch): Rename from
238 deprecated_target_gdbarch_select_hack.
239 * arch-utils.c (gdbarch_update_p): Update.
240 (set_gdbarch_from_file): Update.
242 2012-11-14 Pierre Muller <muller@sourceware.org>
244 * MAINTAINERS (Responsible Maintainers/misc): Add myself
245 as responsible of contrib/ari directory.
247 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
248 Yao Qi <yao@codesourcery.com>
250 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
252 (arm_m_exception_cache, arm_m_exception_this_id)
253 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
254 (arm_m_exception_unwind): New.
255 (arm_gdbarch_init): Register arm_m_exception_unwind.
257 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
259 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
260 parameter COUNT, for pattern filling of memory regions.
263 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
265 * disasm.h (DISASSEMBLY_FILENAME): New macro.
266 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
267 to print_source_lines ().
268 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
270 * source.c (print_source_lines_base): Prefix source line with
271 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
273 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
275 * symtab.h (print_source_lines_flags): New enum.
276 * source.c (print_source_lines_base): Change noerror to flags.
277 (print_source_lines): Change noerror to flags.
279 2012-11-13 Pierre Muller <muller@sourceware.org>
281 ARI fixes: Avoid sprintf function use rule.
282 * charset.c (convert_between_encodings): Use xsnprintf.
283 * cli-out.c (cli_field_int): Likewise.
284 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
285 * expprint.c (op_name_standard): Likewise.
286 * frv-tdep.c (set_variant_num_gprs): Likewise.
287 (set_variant_num_fprs): Likewise.
288 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
289 * nto-tdep.c (nto_find_and_open_solib): Likewise.
290 (nto_init_solib_absolute_prefix): Likewise.
291 * source.c (init_source_path): Likewise.
292 (print_source_lines_base): Likewise.
293 * valprint.c (print_wchar): Likewise.
294 * mi/mi-out.c (mi_field_int): Likewise.
295 windows-nat.c (windows_pid_to_exec_file): Likewise.
296 (windows_create_inferior): Likewise.
297 (_initialize_check_for_gdb_ini): Likewise.
299 2012-11-12 Joel Brobecker <brobecker@adacore.com>
301 * frame.h (deprecated_frame_register_read): Renames
303 * frame.c (deprecated_frame_register_read): Renames
304 frame_register_read. Update all callers.
305 * i386-tdep.c: Update all callers of frame_register_read.
306 * infcmd.c: Likewise.
308 * mips-tdep.c: Likewise.
309 * mt-tdep.c: Likewise.
310 * sh64-tdep.c: Likewise.
312 2012-11-12 Joel Brobecker <brobecker@adacore.com>
314 * frame.h (frame_register_read): Remove FIXME comment.
315 * frame.c (frame_register_read): Add suggestion explaining
316 which function to use in place of this one.
318 2012-11-12 Tom Tromey <tromey@redhat.com>
320 * python/python.c (start_type_printers): Initialize 'result_obj'.
322 2012-11-12 Tom Tromey <tromey@redhat.com>
325 * data-directory/Makefile.in (PYTHON_FILES): Add
327 * python/lib/gdb/command/type_printers.py: New file.
328 * python/lib/gdb/command/types.py (TypePrinter): New class.
329 (_get_some_type_recognizers, get_type_recognizers,
330 apply_type_recognizers, register_type_printer): New
332 * python/py-objfile.c (objfile_object) <type_printers>: New
334 (objfpy_dealloc): Decref new field.
335 (objfpy_new): Set new field.
336 (objfpy_get_type_printers, objfpy_set_type_printers): New
338 (objfile_to_objfile_object): Set new field.
339 (objfile_getset): Add "type_printers".
340 * python/py-progspace.c (pspace_object) <type_printers>: New
342 (pspy_dealloc): Decref new field.
343 (pspy_new): Set new field.
344 (pspy_get_type_printers, pspy_set_type_printers): New functions.
345 (pspace_to_pspace_object): Set new field.
346 (pspace_getset): Add "type_printers".
347 * python/python.c (start_type_printers, apply_type_printers,
348 free_type_printers): New functions.
349 (_initialize_python): Set gdb.type_printers.
350 * python/python.h (start_type_printers, apply_type_printers,
351 free_type_printers): Declare.
352 * typeprint.c (type_print_raw_options, default_ptype_flags):
353 Update for new fields.
354 (do_free_global_table, create_global_typedef_table,
355 find_global_typedef): New functions.
356 (find_typedef_in_hash): Use find_global_typedef.
357 (whatis_exp): Use create_global_typedef_table. Change cleanup
359 * typeprint.h (struct type_print_options) <global_typedefs,
360 global_printers>: New fields.
362 2012-11-12 Tom Tromey <tromey@redhat.com>
364 * c-typeprint.c (find_typedef_for_canonicalize,
365 print_name_maybe_canonical): New functions.
366 (c_print_type): Look up type name.
367 (cp_type_print_derivation_info): Add flags argument. Use
368 print_name_maybe_canonical.
369 (cp_type_print_method_args): Add wrapping.
370 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
371 (c_type_print_template_args): New function.
372 (c_type_print_base): Change wrapping. Use
373 print_name_maybe_canonical.
374 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
376 * gdbtypes.c (types_equal): No longer static.
377 * gdbtypes.h (types_equal): Declare.
378 * typeprint.c (type_print_raw_options, default_ptype_flags):
380 (struct typedef_hash_table): New.
381 (hash_typedef_field, eq_typedef_field,
382 recursively_update_typedef_hash, add_template_parameters,
383 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
384 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
385 copy_typedef_hash, find_typedef_in_hash): New functions.
386 * typeprint.h (struct type_print_options) <local_typedefs>:
388 (recursively_update_typedef_hash, add_template_parameters,
389 create_typedef_hash, free_typedef_hash,
390 make_cleanup_free_typedef_hash, copy_typedef_hash,
391 find_typedef_in_hash): Declare.
393 2012-11-12 Tom Tromey <tromey@redhat.com>
395 * cp-support.c (inspect_type,
396 replace_typedefs_qualified_name, replace_typedefs): Add
397 finder, data arguments. Call as needed.
398 (cp_canonicalize_string_full): New function.
399 (cp_canonicalize_string_no_typedefs): Rewrite.
400 * cp-support.h (canonicalization_ftype): New typedef.
401 (cp_canonicalize_string_full): Declare.
403 2012-11-12 Tom Tromey <tromey@redhat.com>
406 * c-typeprint.c (c_type_print_base): Handle print_method and
407 print_typedefs flags.
408 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
409 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
411 * typeprint.c (type_print_raw_options, default_ptype_flags):
412 Update for new field.s
413 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
414 (setprinttypelist, showprinttypelist, print_methods,
415 print_typedefs): New globals.
416 (set_print_type, show_print_type, set_print_type_methods,
417 show_print_type_methods, set_print_type_typedefs,
418 show_print_type_typedefs): New functions.
419 (_initialize_typeprint): Update documentation. Add "print
420 type methods" and "print type typedefs" parameters.
421 * typeprint.h (struct type_print_options) <print_methods,
422 print_typedefs>: New fields.
424 2012-11-12 Tom Tromey <tromey@redhat.com>
426 * c-typeprint.c (cp_type_print_method_args): Add flags
427 argument. Call c_print_type, not type_print.
428 (c_type_print_base): Call c_print_type, not type_print.
431 2012-11-12 Tom Tromey <tromey@redhat.com>
433 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
434 to type-printing functions.
435 * ada-lang.h (ada_print_type): Add argument.
436 * ada-typeprint.c (print_array_type, print_variant_clauses,
437 print_variant_part, print_selected_record_field_types,
438 print_record_field_types, print_unchecked_union_type,
439 print_func_type, ada_print_type): Add flags argument.
440 (ada_print_typedef): Update.
441 * c-exp.y (OPERATOR conversion_type_id): Update.
442 * c-lang.h (c_print_type, c_type_print_base): Update.
443 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
444 c_type_print_modifier, c_type_print_args,
445 c_type_print_varspec_suffix, c_type_print_base): Add flags
447 * cp-valprint.c (cp_print_class_member): Update.
448 * dwarf2read.c (dwarf2_compute_name): Update.
449 * f-lang.h (f_print_type): Add argument.
450 * f-typeprint.c (f_print_type): Add flags argument.
451 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
452 * go-lang.h (go_print_type): Add argument.
453 * go-typeprint.c (go_print_type): Add flags argument.
454 * jv-lang.h (java_print_type): Add argument.
455 * jv-typeprint.c (java_type_print_base, java_print_type): Add
457 * language.c (unk_lang_print_type): Add flags argument.
458 * language.h (struct language_defn) <la_print_type>: Add flags
460 (LA_PRINT_TYPE): Likewise.
461 * m2-lang.h (m2_print_type): Add argument.
462 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
463 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
464 m2_unbounded_array, m2_record_fields): Add flags argument.
465 * p-lang.h (pascal_print_type, pascal_type_print_base,
466 pascal_type_print_varspec_prefix): Add argument.
467 * p-typeprint.c (pascal_print_type,
468 pascal_type_print_varspec_prefix, pascal_print_func_args,
469 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
471 * symmisc.c (print_symbol): Update.
472 * typeprint.c (type_print_raw_options, default_ptype_flags):
474 (type_print): Update.
475 * typeprint.h (struct type_print_options): New.
476 (type_print_raw_options): Declare.
477 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
479 2012-11-10 Keith Seitz <keiths@redhat.com>
481 * breakpoint.c (clear_command): Add cleanup for
482 sals.sals if an argument is given.
484 * linespec.c (parse_linespec): Do cleanups after
485 parsing a convenience variable.
487 2012-11-10 Keith Seitz <keiths@redhat.com>
490 * c-valprint.c (c_val_print): For character arrays
491 with "print null" option on, print ellipses if
492 the output is truncated and the next character is not \000.
493 * valprint.c (MAX_WCHARS): Define.
494 (WCHAR_BUFLEN): Likewise.
495 (WCHAR_BUFLEN_MAX): Likewise.
496 (struct converted_character): New structure.
497 (count_next_character): New function.
498 (print_converted_chars_to_obstack): New function.
499 (generic_printstr): Rewrite using count_next_character
500 and print_converted_chars_to_obstack.
502 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
504 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
505 while executing the gdb command.
506 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
507 are called from prompt_for_continue.
508 * tui/tui-io.c (tui_redisplay_readline): Likewise.
510 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
514 * tui/tui.c (tui_rl_command_key): Do not call execute_command
515 but insert the command to execute in readline's buffer.
517 2012-11-09 Tom Tromey <tromey@redhat.com>
519 * gdbarch.sh (target_gdbarch): Remove macro.
520 (get_target_gdbarch): Rename to target_gdbarch.
521 * gdbarch.c, gdbarch.h: Rebuild.
522 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
523 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
524 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
525 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
526 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
527 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
528 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
529 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
530 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
531 procfs.c, progspace.c, ravenscar-thread.c, record.c,
532 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
533 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
534 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
535 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
536 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
537 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
538 target-descriptions.c, target.c, target.h, tracepoint.c,
539 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
540 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
541 python/py-inferior.c, python/python.c: Update.
543 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
545 * source.c (print_source_lines_base): Add fullname field giving
546 full path to file in mi output.
547 * NEWS: Mention the new fullname field.
549 2012-11-09 Yao Qi <yao@codesourcery.com>
551 * NEWS: Mention the fix to the ambiguity of 'fo' command.
553 2012-11-09 Pedro Alves <palves@redhat.com>
557 * infrun.c: Include target-descriptions.h.
558 (follow_exec): Fetch new target description.
560 2012-11-09 Yao Qi <yao@codesourcery.com>
562 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
565 2012-11-09 Yao Qi <yao@codesourcery.com>
567 * breakpoint.c: Declare set_tracepoint_count.
568 (install_breakpoint): Call set_tracepoint_count if B is a
570 (trace_command): Don't call set_tracepoint_count. Re-indent.
571 (strace_command, ftrace_command):
572 (create_tracepoint_from_upload): Likewise.
574 2012-11-09 Pedro Alves <palves@redhat.com>
576 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
577 (get_target_gdbarch) <gdbarch.h>: New function.
578 (startup_gdbarch) <gdbarch.h>: Declare.
579 <gdbarch.c> (target_gdbarch): Delete.
580 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
581 current inferior's gdbarch.
582 <gdbarch.c> (get_target_gdbarch): New function.
583 * inferior.c: Include target-descriptions.h.
584 (free_inferior): Free target description info.
585 (add_inferior_with_spaces): Set the inferior's initial
587 (clone_inferior_command): Copy the original inferior's target
588 description if it was user specified.
589 (initialize_inferiors): Add comment.
590 * inferior.h (struct target_desc_info): Forward declare.
591 (struct inferior) <gdbarch>: New field.
592 * linux-nat.c: Include target-descriptions.h.
593 (linux_child_follow_fork): Copy the parent's architecture and
594 target description to the child.
595 * target-descriptions.c: Include inferior.h.
596 (struct target_desc_info): New structure, holding the equivalents
598 (target_desc_fetched, current_target_desc)
599 (target_description_filename): ... these removed globals.
600 (get_tdesc_info, target_desc_info_from_user_p)
601 (copy_inferior_target_desc_info, target_desc_info_free): New.
602 (target_desc_fetched, current_target_desc)
603 (target_description_filename): Reimplemented as convenience
605 (tdesc_filename_cmd_string): New global.
606 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
607 tdescs filename ..." commands to the per-inferior equivalent.
608 (show_tdesc_filename_cmd): Get the value to show from the
609 per-inferior description filename.
610 (_initilize_target_descriptions): Change the "set/show tdesc
611 filename" commands' variable.
612 * target-descriptions.h (struct target_desc, struct target_desc_info)
613 (struct inferior): Forward declare.
614 (target_find_description, target_clear_description)
615 (target_current_description): Adjust comments.
616 (copy_inferior_target_desc_info, target_desc_info_free)
617 (target_desc_info_from_user_p). Declare.
619 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
621 * tui/tui-hooks.c (tui_about_to_proceed): New function.
622 (tui_target_wait_hook): Remove.
623 (tui_install_hooks): Install the about_to_proceed observer.
624 (tui_remove_hooks): And remove it here.
626 2012-11-08 Tom Tromey <tromey@redhat.com>
628 * linux-tdep.c (linux_make_siginfo_note): New function.
629 (linux_make_corefile_notes): Use it.
630 * corelow.c (get_core_siginfo): New function.
631 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
633 2012-11-08 Tom Tromey <tromey@redhat.com>
636 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
637 (zlib_decompress_section): Remove.
638 (gdb_bfd_map_section): Only check for compressed section
639 in mmap case. Use bfd_get_full_section_contents.
640 * osabi.c (check_note): Add 'sectsize' argument. Read
642 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
643 section data. Update for check_note change.
644 * xcoffread.c (xcoff_initial_scan): Use
645 bfd_get_full_section_contents.
646 * py-auto-load.c (auto_load_section_scripts): Use
647 bfd_get_full_section_contents.
648 * contrib/cc-with-tweaks.sh: Add -Z option.
650 2012-11-08 Tom Tromey <tromey@redhat.com>
652 * python/py-bpevent.c: Include defs.h.
653 * python/py-continueevent.c: Include defs.h.
654 * python/py-event.c: Include defs.h.
655 * python/py-event.h: Don't include defs.h.
656 * python/py-events.h: Don't include defs.h.
657 * python/py-evts.c: Include defs.h.
658 * python/py-exitedevent.c: Include defs.h.
659 * python/py-newobjfileevent.c: Include defs.h.
660 * python/py-signalevent.c: Include defs.h.
661 * python/py-stopevent.c: Include defs.h.
662 * python/py-threadevent.c: Include defs.h.
664 2012-11-08 Pierre Muller <muller@sourceware.org>
666 * update-web-ari.sh (print_heading): Add number of files
668 (nb_files): New variable counting the number of sources
669 files found by gdb_find.sh script.
670 (debug_awk): New variable to allow extra debug output.
671 (indexes): Add more information if DEBUG_AWK is set.
673 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
675 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
676 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
677 following the change in PLT call stubs on linker.
679 2012-11-08 Pierre Muller <muller@sourceware.org>
681 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
683 (AWK): Use = instead of == for sh test to avoid warning.
684 (Linux rule): Correct [:digit] into [[:digit:]].
685 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
686 (vasprintf rule): Adapt to common subdirectory moves.
687 (xasprintf rule): Idem.
688 (xvasprintf rule): Idem.
689 (var_boolean rule): Accept occurence in == or != test.
691 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
693 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
695 * tui/tui-hooks.c (tui_inferior_exit): New function.
696 (tui_detach_hook): Remove.
697 (tui_install_hooks): Install the inferior exit observer.
698 (tui_remove_hooks): Remove it.
700 2012-11-08 Yao Qi <yao@codesourcery.com>
703 * source.c (_initialize_source): Call add_com_alias to abbreviate
704 'forward-search' as 'fo'.
706 2012-11-07 Pedro Alves <palves@redhat.com>
708 * arm-tdep.c: Make defs.h be the first include.
709 * coff-pe-read.c: Ditto.
713 * ppcnbsd-nat.c: Ditto.
714 * ada-varobj.h: Don't include defs.h.
715 * i386-darwin-tdep.h: Ditto.
718 2012-11-07 Pedro Alves <palves@redhat.com>
720 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
723 2012-11-07 Pierre Muller <muller@sourceware.org>
725 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
726 File already uses "gdb_dirent.h" header.
728 2012-11-07 Yao Qi <yao@codesourcery.com>
730 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
733 2012-11-06 Tom Tromey <tromey@redhat.com>
735 * target.h (inferior_has_forked, inferior_has_vforked)
736 (inferior_has_execd, inferior_has_called_syscall): Remove
739 2012-11-06 Pierre Muller <muller@sourceware.org>
741 * remote.c (remote_insert_hw_breakpoint): ARI fix,
742 add missing internalization markup.
744 2012-11-06 Pedro Alves <palves@redhat.com>
748 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
750 2012-11-06 Pierre Muller <muller@sourceware.org>
752 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
755 2012-11-05 Joel Brobecker <brobecker@adacore.com>
757 * gnulib/update-gnulib.sh: New script.
759 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
761 * MAINTAINERS: Update my email address.
763 2012-11-05 Tom Tromey <tromey@redhat.com>
765 * frame.c (put_frame_register): Don't use temporary buffer.
767 2012-11-05 Pedro Alves <palves@redhat.com>
769 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
770 child. Clear 'pending_detach'.
771 * infrun.c (handle_vfork_child_exec_or_exit): Clear
772 'pending_detach' in the vfork parent.
774 2012-11-05 Doug Evans <dje@google.com>
776 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
777 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
778 * dwarf2read.c: #include "elf-bfd.h".
779 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
780 (dwop_section_names): Renamed from dwo_section names. All uses
781 updated. Add entries for .debug_cu_index, .debug_tu_index.
782 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
784 (struct dwp_sections): New type.
785 (struct virtual_dwo_sections): New type.
786 (struct dwp_hash_table): New type.
787 (struct dwp_file): New type.
788 (init_cutu_and_read_dies): Ensure DWO info/types section has been
789 read in. Handle DWOs coming from DWP files.
790 (lookup_dwo_file_slot): New function.
791 (dwarf2_locate_dwo_sections): Move definition closer to use.
792 (create_dwo_debug_info_hash_table_reader): Renamed from
793 create_debug_info_hash_table_reader. All callers updated.
794 (create_dwo_debug_info_hash_table): Renamed from
795 create_debug_info_hash_table. All callers updated.
796 (create_dwp_hash_table): New function.
797 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
798 (lookup_dwo_in_dwp): New function.
799 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
800 is_dwp. All callers updated.
801 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
802 (open_and_init_dwo_file): Renamed from init_dwo_file.
804 (lookup_dwo_file): Delete.
805 (dwarf2_locate_dwp_sections): New function.
806 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
807 (allocate_dwp_loaded_cutus_table): New function.
808 (open_and_init_dwp_file): New function.
809 (lookup_dwo_cutu): New function.
810 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
812 2012-11-03 Yao Qi <yao@codesourcery.com>
815 * breakpoint.c (trace_pass_set_count): Call
816 observer_notify_breakpoint_modified instead of
817 observer_notify_tracepoint_modified.
818 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
820 2012-11-02 Tom Tromey <tromey@redhat.com>
822 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
823 argument to complete_on_enum.
825 2012-11-02 Tom Tromey <tromey@redhat.com>
827 * configure: Rebuild.
828 * configure.ac (build_warnings): Add -Wempty-body.
829 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
830 * remote.c (handle_notification): Use braces for empty 'else' body.
831 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
833 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
835 * solib-som.c (som_relocate_section_addresses): Use braces
836 for empty 'else' body.
837 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
838 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
840 2012-11-02 Pedro Alves <palves@redhat.com>
844 * infrun.c (handle_inferior_event)
845 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
846 null_ptid before handling a vfork child exec or exit. Switch to
847 the event ptid afterwards.
849 2012-11-02 Yao Qi <yao@codesourcery.com>
851 * std-operator.def: Remove OP_LABELED.
852 * eval.c: Remove the declaration of 'get_label'.
854 (evaluate_struct_tuple): Remove code handling OP_LABELED.
856 Remove local variable 'variantno' and related code.
857 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
859 * expprint.c (print_subexp_standard): Likewise.
860 (dump_subexp_body_standard): Likewise.
861 * parse.c (operator_length_standard): Likewise.
863 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
865 Incorporate ARI web page generator into GDB sources.
866 * contrib/ari/create-web-ari-in-src.sh: New file.
867 * contrib/ari/gdb_ari.sh: New file.
868 * contrib/ari/gdb_find.sh: New file.
869 * contrib/ari/update-web-ari.sh: New file.
871 2012-10-31 Tom Tromey <tromey@redhat.com>
873 * gdbarch.c: Rebuild.
874 * gdbarch.sh: Remove references to gdbarch_swap.
875 * corelow.c (core_open): Remove obsolete comment.
877 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
880 * c-typeprint.c (c_print_type): Don't print a space for vector
881 types, this is handled within the suffix.
882 (c_type_print_varspec_suffix): Add a space to vector suffix.
884 2012-10-26 Pedro Alves <palves@redhat.com>
886 * amd64-tdep.c (amd64_relocate_instruction): Use
887 store_unsigned_integer instead of memcpy.
888 * i386-tdep.c (i386_relocate_instruction): Ditto.
890 2012-10-26 Pedro Alves <palves@redhat.com>
892 * infrun.c (handle_inferior_event): Merge handling of
893 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
896 2012-10-26 Pedro Alves <palves@redhat.com>
898 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
901 2012-10-26 Pedro Alves <palves@redhat.com>
903 * target.c (target_waitstatus_to_string): Handle
904 TARGET_WAITKIND_VFORK_DONE.
906 2012-10-26 Pedro Alves <palves@redhat.com>
908 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
909 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
911 2012-10-24 Tristan Gingold <gingold@adacore.com>
913 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
916 2012-10-24 Joel Brobecker <brobecker@adacore.com>
918 * ravenscar-thread.c (ravenscar_wait): Only update the list
919 of threads and inferior_ptid if the inferior is still alive.
921 2012-10-24 Joel Brobecker <brobecker@adacore.com>
923 * ada-lang.c (is_known_support_routine): Use lbasename when
924 matching the symtab's filename against
925 known_runtime_file_name_patterns.
927 2012-10-24 Joel Brobecker <brobecker@adacore.com>
929 * ada-lang.c (ada_same_array_size_p): New function.
930 (ada_promote_array_of_integrals): New function.
931 (coerce_for_assign): Add handling of arrays where the elements
932 are integrals of a smaller size than the size of the target
935 2012-10-24 Joel Brobecker <brobecker@adacore.com>
937 * doublest.c (convert_doublest_to_floatformat): Fix comparison
938 against maximum exponent value.
940 2012-10-24 Joel Brobecker <brobecker@adacore.com>
942 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
945 2012-10-24 Joel Brobecker <brobecker@adacore.com>
947 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
948 strip typedef layer when computing the fixed type's field type,
949 only when computing its size.
951 2012-10-24 Mark Kettenis <kettenis@gnu.org>
954 * i386-tdep.c (i386_return_value): Handle complex double and long
957 2012-10-24 Joel Brobecker <brobecker@adacore.com>
959 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
960 New local variable args_len.
961 Quote the name of the executable when computing the command line.
963 2012-10-23 Mark Kettenis <kettenis@gnu.org>
968 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
970 * amd64-tdep.c (amd64_classify): Classify complex types.
971 (amd64_return_value): Handle the COMPLEX_X87 class.
973 2012-10-23 Joel Brobecker <brobecker@adacore.com>
975 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
976 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
978 2012-10-23 Joel Brobecker <brobecker@adacore.com>
980 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
982 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
983 to amd64_windows_auto_wide_charset.
985 2012-10-23 Yao Qi <yao@codesourcery.com>
987 * event-top.c (mark_async_signal_handler_wrapper): Remove.
988 * event-top.h: Remove its declaration.
989 (async_request_quit): Call mark_async_signal_handler instead of
990 mark_async_signal_handler_wrapper.
991 (async_do_nothing, async_disconnect): Likewise.
992 (async_stop_sig): Likewise.
993 * remote.c (handle_remote_sigint): Likewise.
994 (handle_remote_sigint_twice): Likewise.
996 2012-10-23 Yao Qi <yao@codesourcery.com>
998 * event-top.c (sigint_token, sighup_token): Replace 'void *'
999 with 'static struct async_signal_handler *'.
1000 (sighup_token, sigquit_token, sigstp_token): Likewise.
1002 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1004 * gdbarch.sh (function_list): Use 'pstring' when printing
1005 a variable which could return NULL.
1006 * gdbarch.c: Regenerate.
1008 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1009 Tom Tromey <tromey@redhat.com>
1011 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1012 inneffective if condition by gdb assertion. Add function
1013 description comment.
1015 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1017 * parser-defs.h (struct exp_descriptor): Document constraint
1018 on return value for "op_name" callbacks.
1020 2012-10-18 Tom Tromey <tromey@redhat.com>
1022 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1023 * symtab.c (iterate_over_some_symtabs): Constify.
1024 * source.h (symtab_to_fullname): Return 'const char *'.
1025 * source.c (symtab_to_fullname): Return 'const char *'.
1026 * python/py-symtab.c (stpy_fullname): Constify.
1027 * cli/cli-cmds.c (edit_command): Constify.
1028 * breakpoint.c (print_breakpoint_location)
1029 (update_static_tracepoint): Constify.
1031 2012-10-18 Tom Tromey <tromey@redhat.com>
1033 * breakpoint.c (compare_breakpoints): Fix comparison.
1035 2012-10-18 Tom Tromey <tromey@redhat.com>
1037 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1038 gdb_wchar_t to convert_between_encodings.
1040 2012-10-17 Yao Qi <yao@codesourcery.com>
1042 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1043 more parameter 'inferior'.
1044 * corefile.c (write_memory_with_notification): Caller update.
1046 * mi/mi-cmd-var.c: Include "mi-main.h".
1047 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1048 to 1 and restore it later.
1049 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1050 and "data-write-memory-bytes.
1051 * mi/mi-interp.c: Include objfiles.h.
1052 (mi_interpreter_init): Call observer_attach_memory_changed.
1053 (mi_memory_changed): New.
1054 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1057 * NEWS: Mention new MI notification "memory-changed".
1059 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1061 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1063 2012-10-15 Doug Evans <dje@google.com>
1065 New option -nh: inhibit loading of ~/.gdbinit.
1066 * NEWS: Mention -nh.
1067 * main.c (captured_main): Recognize and process -nh.
1068 (print_gdb_help): Mention -nh.
1069 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1071 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1075 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1077 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1078 nor pc_regnum_from_eax.
1079 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1080 nor pc_regnum_from_eax.
1082 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1084 Fix entry values resolving in inlined frames.
1085 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1086 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1089 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1091 * configure.ac: Build with -DMS_WIN64 if building with Python
1092 enabled using GCC on amd64-windows.
1093 * configure: Regenerate.
1095 2012-10-15 Tom Tromey <tromey@redhat.com>
1098 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1101 2012-10-15 Tom Tromey <tromey@redhat.com>
1104 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1106 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1108 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1109 reset thread numbering back to 1.
1111 2012-10-11 Doug Evans <dje@google.com>
1113 PR breakpoints/14643.
1114 * linespec.c (struct ls_parser): New member keyword_ok.
1115 (linespec_lexer_lex_string): Add comment.
1116 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1118 (parse_linespec): Set keyword_ok.
1120 2012-10-10 Doug Evans <dje@google.com>
1122 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1123 "0x" prefix on address in log message.
1125 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1126 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1127 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1128 (lookup_dwo_file): Add const to dwo_name parameter.
1129 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1131 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1133 Fix crash during stepping on ppc32.
1134 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1137 2012-10-03 Doug Evans <dje@google.com>
1140 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1142 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1144 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1145 output and use uint32_t not long to ensure 4 byte size.
1147 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1149 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1152 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1154 * target.c (simple_search_memory): Include access length in
1157 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1158 Edjunior Machado <emachado@linux.vnet.ibm.com>
1161 * solib.c (solib_find): Prevent GDB from loading native libraries when
1162 debugging a cross-target corefile.
1164 2012-09-28 selven <pcthegreat@gmail.com>
1166 Make definition match declaration.
1168 * regcache.c (regcache_register_status): Change return type to
1169 enum register_status.
1171 2012-09-28 Yao Qi <yao@codesourcery.com>
1173 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1174 write_memory_with_notification instead of write_memory.
1175 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1176 instead of target_write_memory.
1178 2012-09-28 Yao Qi <yao@codesourcery.com>
1180 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1181 when the length of content is not an even number.
1183 2012-09-27 Tom Tromey <tromey@redhat.com>
1185 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1186 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1188 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1190 * sol-thread.c (sol_thread_fetch_registers)
1191 (sol_thread_store_registers): Delete commented out code.
1193 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1195 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1196 Move these functions to sparc-sol-thread.c.
1197 * sparc-sol-thread.c: New file.
1198 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1199 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1201 * configure: Regenerate.
1203 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1205 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1206 Remove commented-out code.
1208 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1210 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1211 Enable this code for sparc hosts only.
1213 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1215 * procfs.h (procfs_find_LDT_entry): Add declaration.
1216 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1217 function procfs_find_LDT_entry.
1219 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1221 * procfs.c (proc_get_LDT_entry): Make static.
1223 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1225 * procfs.c (proc_find_memory_regions): Fix declaration.
1227 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1229 * amd64-tdep.c (amd64_return_value): Revert previous change
1230 that used TYPE_LENGTH directly.
1231 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1232 (bfin_store_return_value): Likewise.
1233 * cris-tdep.c (cris_store_return_value): Likewise.
1234 (cris_extract_return_value): Likewise.
1235 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1236 * hppa-tdep.c (hppa64_return_value): Likewise.
1237 * lm32-tdep.c (lm32_store_return_value): Likewise.
1238 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1239 * spu-tdep.c (spu_value_from_register): Likewise.
1240 * vax-tdep.c (vax_return_value): Likewise.
1242 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1244 * gdbtypes.c (lookup_array_range_type): Expand parameters
1245 LOW_BOUND and HIGH_BOUND to LONGEST.
1246 (lookup_string_range_type): Likewise.
1247 * gdbtypes.h (lookup_array_range_type): Likewise.
1248 (lookup_string_range_type): Likewise.
1249 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1250 Expand HIGHBOUND to ssize_t.
1251 (value_string): Likewise.
1252 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1253 (value_string): Likewise.
1255 2012-09-27 Yao Qi <yao@codesourcery.com>
1257 PR breakpoints/13898
1258 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1260 per breakpoint type.
1262 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1264 * procfs.c: Add gdb_bfd header.
1265 * rs6000-nat.c: Likewise.
1266 * solib-pa64.c: Likewise.
1267 * spu-linux-nat.c: Likewise.
1268 * windows-nat.c: Likewise.
1270 2012-09-26 Tom Tromey <tromey@redhat.com>
1272 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1274 2012-09-26 Tom Tromey <tromey@redhat.com>
1276 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1277 (read_common_block): Handle child DIEs with
1278 DW_AT_data_member_location.
1279 (new_symbol_full): Add special case for common blocks.
1281 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1282 Tom Tromey <tromey@redhat.com>
1284 * dwarf2read.c (read_common_block): Rewrite.
1285 (new_symbol_full): Handle DW_TAG_common_block.
1286 * f-lang.c (head_common_list, find_common_for_function):
1288 * f-lang.h (struct common_entry, struct saved_f77_common,
1289 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1290 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1291 BLANK_COMMON_NAME_LOCAL): Remove.
1292 (struct common_block): New.
1293 * f-valprint.c (list_all_visible_commons): Remove.
1294 (info_common_command_for_block): New function.
1295 (info_common_command): Use it.
1296 * stack.c (iterate_over_block_locals): Special case for
1297 COMMON_BLOCK_DOMAIN.
1298 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1300 (struct general_symbol_info) <value.common_block>: New field.
1301 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1303 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 Tom Tromey <tromey@redhat.com>
1306 * f-lang.c (allocate_saved_bf_node,
1307 allocate_saved_function_node, allocate_saved_f77_common_node,
1308 allocate_common_entry_node, tail_common_list, current_common,
1309 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1310 tmp_bf_ptr, add_common_block, add_common_entry,
1311 find_first_common_named, patch_common_entries,
1312 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1313 global_remote_debug, get_bf_for_fcn, saved_function_list,
1314 saved_function_list_end, clear_function_list, struct saved_fcn,
1315 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1316 SAVED_BF, SAVED_BF_PTR): Remove.
1317 * f-lang.h (tail_common_list, current_common,
1318 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1319 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1320 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1321 real_main_c_value): Remove.
1322 * f-valprint.c (there_is_a_visible_common_named): Remove.
1324 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1326 * breakpoint.c (update_global_location_list): Ignore previous
1327 duplicate status of a breakpoint when starting a new scan for
1328 duplicate breakpoints.
1330 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1331 PR breakpoints/14419
1332 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1333 support LLVM compiler.
1335 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1337 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1338 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1339 (bfin_store_return_value): Likewise.
1340 * cris-tdep.c (cris_store_return_value): Likewise.
1341 (cris_extract_return_value): Likewise.
1342 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1343 * hppa-tdep.c (hppa64_return_value): Likewise.
1344 * lm32-tdep.c (lm32_store_return_value): Likewise.
1345 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1346 * spu-tdep.c (spu_value_from_register): Likewise.
1347 * vax-tdep.c (vax_return_value): Likewise.
1349 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1351 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1352 parameter LEN to ssize_t.
1354 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1356 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1358 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1360 (alpha_store_return_value): Likewise.
1361 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1362 (amd64_push_arguments): Likewise.
1363 * ax-gdb.c (gen_trace_static_fields): Likewise.
1364 (gen_traced_pop): Likewise.
1365 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1366 * breakpoint.c (update_watchpoint): Likewise.
1367 * findcmd.c (parse_find_args): Use local variable for type
1369 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1370 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1371 (h8300_store_return_value): Likewise.
1372 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1373 Use i386_darwin_arg_type_alignment directly.
1374 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1375 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1376 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1377 (m68hc11_extract_return_value): Likewise.
1378 * mep-tdep.c (mep_push_dummy_call): Likewise.
1379 * printcmd.c (float_type_from_length): Likewise.
1380 * s390-tdep.c (s390_value_from_register): Likewise.
1381 * stack.c (read_frame_arg): Likewise.
1382 * tracepoint.c (encode_actions_1): Likewise.
1383 * valops.c (value_fetch_lazy): Use local variable for type
1384 instead of length. Use TYPE_LENGTH directly.
1385 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1387 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1389 * symtab.c (skip_prologue_sal): Fix typo in comment.
1391 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1393 * linespec.c (create_sals_line_offset): Fix typo in comment.
1395 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1397 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1398 use plongest to print the array size.
1400 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1402 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1403 * p-valprint.c (pascal_type_print_base): Likewise.
1405 2012-09-22 Yao Qi <yao@codesourcery.com>
1407 * remote.c (remote_get_trace_status): Remove setting default
1408 values of fields of 'ts'.
1410 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1412 Fix internal error on canonicalization of clang types.
1413 * cp-name-parser.y (operator): New comment at make_operator call for
1414 new, delete, new[] and delete[].
1415 (exp): Use "sizeof ". Add new comment at make_operator call.
1417 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1419 Fix disassemble without parameters in tailcall frame.
1420 * cli/cli-cmds.c (disassemble_current_function): Use
1421 get_frame_address_in_block.
1423 2012-09-21 Tom Tromey <tromey@redhat.com>
1425 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1426 TYPE_CODE_UNION>: Unify, removing a goto.
1428 2012-09-21 Tom Tromey <tromey@redhat.com>
1430 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1432 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1434 * findvar.c (read_frame_register_value): Mark the result value as
1435 optimized out if any of the input registers have been optimized out.
1437 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1439 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1441 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1443 * eval.c (evaluate_subexp_standard): Eliminate single-use
1446 2012-09-21 Yao Qi <yao@codesourcery.com>
1448 * mi/mi-interp.c: Declare mi_record_changed.
1449 (mi_interpreter_init): Call observer_attach_record_changed.
1450 (mi_record_changed): New.
1451 * record.c (record_open): Call observer_notify_record_changed.
1452 (cmd_record_stop): Call observer_notify_record_changed.
1455 2012-09-20 Tom Tromey <tromey@redhat.com>
1458 * python/python.c (finalize_python): New function.
1459 (_initialize_python): Make a final cleanup.
1461 2012-09-19 Doug Evans <dje@google.com>
1463 * buildsym.h (param_symbols): Delete, unused.
1464 (context_stack): Delete member "params", unused.
1465 * buildsym.c (push_context): Update.
1466 * dwarf2read.c (read_func_scope): Update.
1468 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1470 * sh-tdep.c (sh_register_convert_to_virtual)
1471 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1472 all callers. Just do a memcpy if not the little-endian case.
1474 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1475 set_gdbarch_double_format and set_gdbarch_long_double_format.
1476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1477 set_gdbarch_double_format.
1478 * sh-tdep.c (sh_gdbarch_init): Likewise.
1480 * NEWS: Document the removal of SH's 'regs' command.
1481 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1484 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1486 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1489 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1491 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1492 language when iterating over symbols.
1494 2012-09-18 Yao Qi <yao@codesourcery.com>
1496 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1497 (mi_interpreter_init): Call observer_attach_tsv_created and
1498 observer_attach_tsv_deleted.
1499 (mi_tsv_created, mi_tsv_deleted): New.
1500 * tracepoint.c (delete_trace_state_variable): Call
1501 observer_notify_tsv_deleted.
1502 (trace_variable_command): Call observer_notify_tsv_created.
1503 (delete_trace_variable_command): Call
1504 observer_notify_tsv_deleted.
1505 (create_tsv_from_upload): Call observer_notify_tsv_created.
1508 2012-09-18 Yao Qi <yao@codesourcery.com>
1510 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1511 if traceframe changed.
1512 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1514 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1515 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1516 'traceframe_changed'.
1517 (mi_traceframe_changed): New.
1518 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1520 * NEWS: Mention the new MI notification.
1522 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1524 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1526 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1528 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1529 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1530 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1531 Extend code also for PaX support. Convert all gdb_assert to warning
1534 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1536 Implement auto-load user conveniences suggested by Doug Evans.
1537 * auto-load.c: Include top.h.
1538 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1539 (_initialize_auto_load): New variable scripts_directory_help. Mention
1540 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1541 scripts-directory. Document in online help one can use also files for
1542 set auto-load safe-path.
1543 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1544 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1546 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1548 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1551 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1553 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1554 ELTLEN and use TYPE_LENGTH directly.
1555 (m2_val_print): Likewise.
1556 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1557 variable LEN and use TYPE_LENGTH directly.
1558 (m68k_svr4_store_return_value): Likewise.
1559 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1560 ARGLEN and use TYPE_LENGTH directly.
1561 (mips_o64_push_dummy_call): Likewise.
1562 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1563 variable LENGTH and use TYPE_LENGTH directly.
1564 (s390_function_arg_float): Likewise.
1565 (s390_function_arg_integer): Likewise.
1566 (s390_push_dummy_call): Likewise.
1567 (s390_return_value_convention): Likewise.
1568 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1569 TYPE_LENGTH directly.
1571 2012-09-17 Yao Qi <yao@codesourcery.com>
1573 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1574 Update comment to add_setshow_integer_cmd.
1575 * cli/cli-setshow.c (do_set_command): Handle case
1576 'var_zuinteger_unlimited'.
1577 (do_show_command): Likewise.
1578 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1579 for command 'remotetimeout'.
1580 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1582 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1583 for command 'set listsize'.
1585 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1587 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1590 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1593 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1594 (frame_pop): Drop also TAILCALL_FRAME frames.
1595 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1597 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1598 Pedro Alves <palves@redhat.com>
1601 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1602 function start if we are already at function start. Both for
1603 reverse-next and for reverse-step into function without line number
1606 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 Code cleanup - rename 'inline' depth to 'artificial' depth.
1609 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1610 frame_id_artificial_p, extend the comment.
1611 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1612 * frame.c (fprint_frame_id): Rename at a user, change debug output
1613 text to "artificial=".
1614 (skip_inlined_frames): Rename to ...
1615 (skip_artificial_frames): ... here. Extend the comment.
1616 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1617 (frame_id_inlined_p): Rename to ...
1618 (frame_id_artificial_p): ... here. Rename at a user.
1619 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1620 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1622 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1624 (frame_id_inlined_p): Rename to ...
1625 (frame_id_artificial_p): ... here.
1626 * inline-frame.c (inline_frame_this_id): Rename at a user.
1628 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1630 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1631 vector variables using vector_size syntax rather than array
1634 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1636 * valarith.c (value_concat): Replace unsafe ALLOCA with
1639 2012-09-14 Pedro Alves <palves@redhat.com>
1641 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1643 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1645 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1646 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1647 data-directory as appropriate.
1649 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1651 * printcmd.c (ui_printf): Eliminate single-use variable
1654 2012-09-14 Yao Qi <yao@codesourcery.com>
1655 Pedro Alves <palves@redhat.com>
1657 * valops.c (value_assign): Move observer_notify_target_changed
1658 below to replace reinit_frame_cache.
1660 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1662 Refactor Python "gdb" module into a proper Python package, by
1663 introducing a new "_gdb" module for code implemented in C, and
1664 using reload/__import__ instead of exec.
1665 * python/lib/gdb/__init__.py: Import * from _gdb.
1666 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1667 prompt_hook, sys.argv): Moved from finish_python_initialization.
1668 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1669 (packages, auto_load_packages): New list and function replacing
1670 module_dict and auto-loading code, using __file__ instead of
1671 gdb.PYTHONDIR and reload/__import__ instead of exec.
1672 (GdbSetPythonDirectory): Replacing function of the same name
1673 from finish_python_initialization, using reload/__import__ instead
1674 of exec, as well as call auto_load_packages.
1675 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1676 gdb_python_module and not gdb_module.
1677 * python/python-internal.h (gdb_python_module): Declare.
1678 * python/python.c (gdb_python_module): New global.
1679 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1680 (_initialize_python): Rename gdb module to _gdb.
1681 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1682 (finish_python_initialization): Move Python code to
1683 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1686 2012-09-13 Pedro Alves <palves@redhat.com>
1688 * Makefile.in (COMMON_OBS): Add registry.o.
1689 * registry.c: New file.
1690 * registry.h (struct registry_container): Declare.
1691 (registry_data_callback): New typedef.
1692 (struct registry_data, struct registry_data_registration, struct
1693 registry_data_registry): New type.
1694 (register_data_with_cleanup, registry_alloc_data)
1695 (registry_callback_adaptor, registry_clear_data)
1696 (registry_container_free_data, registry_set_data, registry_data):
1698 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1699 the new common structures and functions.
1700 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1703 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1705 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1706 there is an error inserting hardware breakpoints and use the
1707 error message from the target.
1709 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1710 Catch this exception and print the error message contained within. Do not
1711 print the default hardware error breakpoint message in this case.
1713 2012-09-12 Doug Evans <dje@google.com>
1715 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1718 2012-09-11 Doug Evans <dje@google.com>
1720 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1721 .gdb_index symbol attributes if there are none.
1723 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1725 * symtab.h (struct minimal_symbol) [has_size]: New field.
1726 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1727 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1728 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1729 minimal symbols if the symbol's size is actually known.
1730 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1731 of msymbol's size field. Add comment.
1732 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1733 SET_MSYMBOL_SIZE to set the minimal symbol size.
1735 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1737 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1738 minimal_symbol struct object, rather than setting some of its
1741 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1743 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1744 passed_a_ptr flag when displaying typedef types.
1746 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1748 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1749 the optimized_out flag is preserved.
1751 2012-09-10 Anthony Green <green@moxielogic.com>
1753 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1754 prologue changes in GCC.
1756 2012-09-10 Keith Seitz <keiths@redhat.com>
1759 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1760 (BOOL_CONVERSION_BADNESS): ... this.
1761 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1762 (rank_one_type): Allow all boolean conversions
1763 permitted by the standard.
1765 2012-09-06 Tom Tromey <tromey@redhat.com>
1767 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1768 Don't decref py_objfile.
1770 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1772 Do not enable -lmcheck by default when Python is enabled with
1774 * configure.ac: (python_has_threads) New variable, by testing
1775 if WITH_THREAD is defined in Python.h.
1776 Move --enable-lmcheck after --with-python.
1777 Do not enable -lmcheck by default if python_has_threads=yes.
1778 Warn if --enable-lmcheck and python_has_threads=yes.
1779 * configure: Regenerate.
1781 2012-08-31 Yao Qi <yao@codesourcery.com>
1783 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1784 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1785 Update some commands.
1786 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1787 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1790 2012-08-31 Yao Qi <yao@codesourcery.com>
1792 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1794 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1796 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1798 2012-08-29 Doug Evans <dje@google.com>
1800 * main.c (print_gdb_help): Remove reference to
1801 --use-deprecated-index-sections.
1803 2012-08-28 Yao Qi <yao@codesourcery.com>
1805 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1806 (init_cmds): Call add_setshow_uinteger_cmd for command
1807 'max-user-call-depth'.
1808 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1809 declaration of 'max_user_call_depth'.
1810 * frame.c (backtrace_limit): Add 'unsigned'.
1811 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1813 * remote.c (remoteaddresssize): Add 'unsigned'.
1814 (remote_address_masked): Change local var 'address_size' to
1816 (_initialize_remote): Call add_setshow_uinteger_cmd for
1817 'remoteaddresssize'.
1818 * top.c (history_size): Add 'unsigned'.
1819 (show_commands): Change local variables to 'unsigned'.
1820 (set_history_size_command): Don't check history_size is negative.
1821 Adjust the condition to call unstifle_history and set history_size
1824 2012-08-28 Pedro Alves <palves@redhat.com>
1828 * infcmd.c (default_print_one_register_info): New, factored out
1829 from default_print_registers_info.
1830 (default_print_registers_info): Use it. Mark value unavailable if
1832 (registers_info): Print user registers with
1833 default_print_one_register_info.
1835 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1838 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1839 is not NULL before referencing it.
1841 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1843 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1844 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1847 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1848 Jan Kratochvil <jan.kratochvil@redhat.com>
1850 * auto-load.c (auto_load_objfile_script): Rename to ...
1851 (auto_load_objfile_script_1): ... here, change variable realname to
1852 parameter realname, document it, add return value, add variable retval.
1853 (auto_load_objfile_script): New function.
1855 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1858 followed by a whitespace.
1860 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1864 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1865 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1868 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1870 * memattr.c (create_mem_region): Fix memory region overlapping
1873 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1875 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1876 with xmalloc/cleanup.
1877 * mt-tdep.c (mt_push_dummy_call): Likewise.
1878 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1879 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1881 2012-08-24 Yao Qi <yao@codesourcery.com>
1883 * jv-exp.y (push_expression_name): Add "." at the end of error
1886 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1888 Document how to return from "python-interactive" to GDB.
1889 * python/python.c (_initialize_python): Update documentation.
1891 2012-08-23 Pedro Alves <palves@redhat.com>
1893 * infrun.c (_initialize_infrun) <handle command help text>:
1894 Mention that multiple signals are supported.
1896 2012-08-23 Pedro Alves <palves@redhat.com>
1898 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1901 2012-08-23 Yao Qi <yao@codesourcery.com>
1903 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1904 (tfind_1): Don't call registers_changed, set_traceframe_num,
1905 and clear_traceframe_info.
1906 Call set_current_traceframe.
1907 (set_current_traceframe): call set_traceframe_num.
1909 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1911 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1912 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1914 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1916 Enable readline in Python in a GDB-specific way and block the
1917 standard Python readline module to prevent conflicts with GDB.
1918 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1919 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1920 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1921 * python/py-gdb-readline.c: New file.
1922 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1924 * python/python.c (_initialize_python): Call
1925 gdbpy_initialize_gdb_readline.
1927 2012-08-22 Keith Seitz <keiths@redhat.com>
1929 * defs.h: Include build-gnulib/config.h
1931 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1933 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1936 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1938 Add a new "python-interactive" command that starts a standard
1939 Python interactive prompt with "pi" as alias, and add "py" as
1940 an alias to "python".
1941 * NEWS: Mention the new commands.
1942 * python/python.c (eval_python_command): New function.
1943 (python_interactive_command): For "python-interactive" with
1944 arguments, call eval_python_command. For "python-interactive"
1945 without arguments, call PyRun_InteractiveLoop.
1946 (_initialize_python): Add "python-interactive" command with
1947 "pi" as alias, and add "py" as an alias to "python".
1949 2012-08-22 Tom Tromey <tromey@redhat.com>
1951 * defs.h (quit_flag): Don't declare.
1952 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1953 (QUIT): Use new functions.
1954 * event-top.c (command_handler): Use clear_quit_flag.
1955 (handle_sigint): Use set_quit_flag.
1956 (async_request_quit): Use check_quit_flag. Don't check
1958 * exceptions.c (throw_exception): Use clear_quit_flag.
1959 * main.c (captured_main): Use clear_quit_flag.
1960 * python/python.c (clear_quit_flag, set_quit_flag)
1961 (check_quit_flag): New functions.
1962 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1964 * remote.c (remote_wait_as): Use check_quit_flag,
1966 (remote_start_remote): Call QUIT.
1967 * symfile.c (load_progress): Use check_quit_flag.
1968 * top.c (command_loop): Use clear_quit_flag.
1969 (command_line_input): Call QUIT.
1970 * utils.c (quit_flag): Conditionally define.
1971 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1973 (prompt_for_continue): Call QUIT. Use quit, not
1975 * remote-mips.c (mips_expect_timeout): Call QUIT.
1976 * monitor.c (monitor_expect): Call QUIT.
1978 2012-08-22 Tom Tromey <tromey@redhat.com>
1980 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1981 (async_init_signals): Update.
1982 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1983 (SIGWINCH_HANDLER_BODY): Remove.
1985 2012-08-22 Tom Tromey <tromey@redhat.com>
1987 * jit.c (jit_object_close_impl): Don't malloc the objfile
1989 * objfiles.c (allocate_objfile): Don't malloc the objfile
1991 (free_objfile): Don't free the objfile name.
1992 * objfiles.h (struct objfile) <name>: Update comment.
1993 * symfile.c (reread_symbols): Fix reference counting. Don't
1994 malloc objfile name.
1996 2012-08-22 Tom Tromey <tromey@redhat.com>
1998 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1999 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2000 (symfile_bfd_open): Likewise.
2001 (generic_load): Likewise.
2002 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2003 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2005 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2007 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2008 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2009 (pmon_load_fast): Likewise.
2010 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2011 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2012 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2013 (macho_check_dsym): Likewise.
2014 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2015 (m32r_upload_command): Likewise.
2016 * gdb_bfd.h (gdb_bfd_cache): Declare.
2017 * gdb_bfd.c (struct gdb_bfd_data): New.
2018 (gdb_bfd_cache): New global.
2019 (struct gdb_bfd_cache_search): New.
2020 (hash_bfd): New function.
2022 (gdb_bfd_open): Likewise.
2023 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2024 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2026 * exec.c (exec_file_attach): Use gdb_bfd_open.
2027 * dsrec.c (load_srec): Use gdb_bfd_open.
2029 2012-08-22 Tom Tromey <tromey@redhat.com>
2031 * dwarf2read.c (macro_start_file): Update.
2032 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2033 (free_objfile_per_bfd_storage): Destroy macro_cache.
2034 (allocate_objfile, free_objfile): Update.
2035 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2037 (struct objfile) <macro_cache>: Remove.
2038 * symfile.c (reread_symbols): Update.
2039 * symmisc.c (print_symbol_bcache_statistics): Update.
2040 (print_objfile_statistics): Update.
2042 2012-08-22 Tom Tromey <tromey@redhat.com>
2044 * elfread.c (elf_symtab_read): Update.
2045 * objfiles.c (objfiles_bfd_data): New global.
2046 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2047 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2048 (allocate_objfile, free_objfile): Update.
2049 (_initialize_objfiles): Initialize objfiles_bfd_data.
2050 * objfiles.h (struct objfile_per_bfd_storage): New.
2051 (struct objfile) <per_bfd>: New field.
2052 <filename_cache>: Remove.
2053 (set_objfile_per_bfd): Declare.
2054 * symfile.c (reread_symbols): Update. Call
2055 set_objfile_per_bfd.
2056 (allocate_symtab): Update.
2057 * symmisc.c (print_symbol_bcache_statistics): Update.
2058 (print_objfile_statistics): Print the size of the BFD obstack.
2060 2012-08-22 Tom Tromey <tromey@redhat.com>
2062 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2063 * gdb_bfd.c: Use DEFINE_REGISTRY.
2064 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2065 (gdb_bfd_ref): Call bfd_alloc_data.
2066 (gdb_bfd_unref): Call bfd_free_data.
2068 2012-08-22 Tom Tromey <tromey@redhat.com>
2070 * registry.h (struct registry_fields): New.
2071 (REGISTRY_FIELDS): Redefine.
2072 (REGISTRY_ACCESS_FIELD): New macro.
2073 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2076 2012-08-22 Tom Tromey <tromey@redhat.com>
2078 * auto-load.c (_initialize_auto_load): Update.
2079 * solib-svr4.c (_initialize_svr4_solib): Update
2080 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2081 * solib-darwin.c (_initialize_darwin_solib): Update.
2082 * registry.h: New file.
2083 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2084 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2085 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2086 (register_program_space_data_with_cleanup)
2087 (register_program_space_data, program_space_alloc_data)
2088 (clear_program_space_data, set_program_space_data)
2089 (program_space_data): Don't declare.
2090 * progspace.c: Use DEFINE_REGISTRY.
2091 (struct program_space_data, struct
2092 program_space_data_registration, struct
2093 program_space_data_registry, program_space_data_registry)
2094 (register_program_space_data_with_cleanup)
2095 (register_program_space_data, program_space_alloc_data)
2096 (program_space_free_data, clear_program_space_data)
2097 (set_program_space_data, program_space_data): Remove.
2098 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2099 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2100 (register_objfile_data_with_cleanup, register_objfile_data)
2101 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2103 * objfiles.c: Use DEFINE_REGISTRY.
2104 (struct objfile_data, struct objfile_data_registration, struct
2105 objfile_data_registry, objfile_data_registry)
2106 (register_objfile_data_with_cleanup, register_objfile_data)
2107 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2108 (set_objfile_data, objfile_data): Remove.
2109 (_initialize_objfiles): Update.
2110 * jit.c (_initialize_jit): Update.
2111 * inflow.c (_initialize_inflow): Update.
2112 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2113 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2114 (register_inferior_data_with_cleanup, register_inferior_data)
2115 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2117 * inferior.c: Use DEFINE_REGISTRY.
2118 (struct inferior_data, struct inferior_data_registration, struct
2119 inferior_data_registry, inferior_data_registry)
2120 (register_inferior_data_with_cleanup, register_inferior_data)
2121 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2122 (set_inferior_data, inferior_data): Remove.
2123 * auxv.c (_initialize_auxv): Update.
2124 * ada-lang.c (_initialize_ada_language): Update.
2125 * breakpoint.c (_initialize_breakpoint): Update.
2126 * i386-nat.c (i386_use_watchpoints): Update.
2128 2012-08-22 Tom Tromey <tromey@redhat.com>
2130 * exec.c (exec_close, exec_file_attach): Update.
2131 (add_to_section_table): Initialize 'key' field.
2132 (add_target_sections, remove_target_sections): Add 'key' argument.
2133 * exec.h (add_target_sections, remove_target_sections): Add
2135 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2136 (reload_shared_libraries_1): Update.
2137 * target.h (struct target_section) <key>: New field.
2139 2012-08-22 Tom Tromey <tromey@redhat.com>
2141 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2143 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2145 * symfile.c (allocate_symtab): Use host_address_to_string
2146 function instead of cast of pointer to long which is not
2147 compatible with x86_64-w64-mingw32 build.
2149 2012-08-19 Andrew Pinski <apinski@cavium.com>
2151 * mips-tdep.c (is_octeon): New function.
2152 (is_octeon_bbit_op): New function.
2153 (mips32_next_pc): Handle Octeon's bbit instructions.
2154 (mips32_instruction_has_delay_slot): Likewise.
2156 2012-08-19 Andrew Pinski <apinski@cavium.com>
2158 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2159 before the function.
2161 2012-08-19 Andrew Pinski <apinski@cavium.com>
2163 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2165 2012-08-19 Keith Seitz <keiths@redhat.com>
2168 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2169 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2171 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2173 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2174 The typo broke "make TAGS".
2176 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2180 2012-08-17 Keith Seitz <keiths@redhat.com>
2183 * gdbtypes.c (strict_type_checking): New variable.
2184 (show_strict_type_checking): New function.
2185 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2186 if strict type checking is disabled.
2187 (_initialize_gdbtypes): Add "check type" subcommand.
2188 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2190 2012-08-17 Keith Seitz <keiths@redhat.com>
2192 * language.h (type_mode): Remove.
2193 (type_check): Remove.
2194 (struct language_defn): Remove la_type_check.
2195 (STRICT_TYPE): Remove unused macro.
2196 (type_error): Remove.
2197 * language.c (set_type_range_case): Renamed to ...
2198 (set_range_case): ... this. Update all callers.
2199 Remove type_mode/type_check.
2200 (type_mode): Remove.
2201 (type_check): Remove.
2202 (show_type_command): Remove.
2203 (set_type_command): Remove.
2204 (language_info): Remove type checking output.
2205 (type_error): Remove unused function.
2206 (range_error): Update comment.
2207 (unknown_language_defn): Remove la_type_check.
2208 (auto_language_defn): Likewise.
2209 (local_language_defn): Likewise.
2210 (_initialize_language): Remove "check type" subcommand.
2211 * ada-lang.c (ada_language_defn): Remove la_type_check.
2212 * c-lang.c (c_language_defn): Likewise.
2213 (cplus_language_defn): Likewise.
2214 (asm_language_defn): Likewise.
2215 (minimal_language_defn): Likewise.
2216 * d-lang.c (d_language_defn): Likewise.
2217 * f-lang.c (f_language_defn): Likewise.
2218 * go-lang.c (go_language_defn): Likewise.
2219 * jv-lang.c (java_language_defn): Likewise.
2220 * m2-lang.c (m2_language_defn): Likewise.
2221 * objc-lang.c (objc_language_defn): Likewise.
2222 * opencl-lang.c (opencl_language_defn): Likewise.
2223 * p-lang.c (pascal_language_defn): Likewise.
2225 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2227 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2229 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2231 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2233 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2234 using the regache. Use ia64_hpux_get_register_from_save_state_t
2235 to access the bsp and bspstore registers if not.
2237 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2239 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2240 * breakpoint.c (detach_breakpoints): Change pid parameter into
2241 a ptid. Adjust code accordingly.
2242 * infrun.c (handle_inferior_event): Delete variable child_pid.
2243 Update call to detach_breakpoints to pass the child ptid for
2245 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2246 assert that inferior_ptid's lwp is zero.
2247 (linux_handle_extended_wait): Update call to detach_breakpoints.
2248 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2251 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2253 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2254 parent, only call detach_breakpoints if tts.tts_event ==
2257 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2259 * dwarf2-frame.c (dwarf2_frame_cache): Use
2260 get_frame_address_in_block instead of get_frame_pc as
2261 the bound for executing the frame's FDE.
2263 2012-08-16 Yao Qi <yao@codesourcery.com>
2265 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2266 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2267 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2268 (c_type_print_varspec_suffix): Likewise.
2269 * eval.c (evaluate_subexp_standard): Likewise.
2270 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2271 (f_type_print_varspec_suffix): Likewise.
2272 * gdbtypes.c (is_scalar_type): Likewise.
2273 (recursive_dump_type): Likewise.
2274 * infcall.c (value_arg_coerce): Likewise.
2275 * m2-valprint.c (m2_val_print): Likewise.
2276 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2277 (pascal_type_print_varspec_suffix): Likewise.
2278 (pascal_type_print_base): Likewise.
2279 * p-valprint.c (pascal_val_print): Likewise.
2280 (pascal_val_print): Likewise.
2281 * valops.c (value_slice): Likewise.
2282 * valprint.c (scalar_type_p): Likewise.
2283 * valarith.c (value_bitstring_subscript): Remove.
2284 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2285 Remove comment on TYPE_CODE_BITSTRING.
2287 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2288 TYPE_CODE_BITSTRING.
2290 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2293 2012-08-16 Yao Qi <yao@codesourcery.com>
2295 * tracepoint.c (trace_find_none_command): Remove.
2296 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2298 2012-08-16 Yao Qi <yao@codesourcery.com>
2300 * remote.c (handle_notification): Remove parameter 'length'.
2301 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2303 2012-08-15 Keith Seitz <keiths@redhat.com>
2305 * gdbtypes.c (opaque_type_resolution): Make static.
2306 Add missing comment.
2307 (overload_debug): Add missing comment.
2308 (show_opaque_type_resolution): Likewise.
2309 (show_overload_debug): Likewise.
2310 (print_bit_vector): Remove unnecessary forward declaration.
2311 (print_arg_types): Likewise.
2312 (dump_fn_fieldlists): Likewise.
2313 (print_cplus_stuff): Likewise.
2315 2012-08-15 Tom Tromey <tromey@redhat.com>
2317 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2318 (gdb_bfd_ref): Initialize new field.
2319 (gdb_bfd_unref): Unref the archive BFD.
2320 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2323 2012-08-15 Tom Tromey <tromey@redhat.com>
2326 * python/py-bpevent.c (create_breakpoint_event_object): Update
2328 * python/py-event.c (evpy_add_attribute): Update comment.
2329 * python/py-exitedevent.c (create_exited_event_object): Fix
2330 reference counting and error handling.
2331 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2332 Fix reference counting.
2333 * python/py-signalevent.c (create_signal_event_object): Fix
2334 reference counting and error handling.
2335 * python/py-stopevent.c (emit_stop_event): Fix reference
2337 * python/py-threadevent.c (get_event_thread): Return a
2339 * python/py-type.c (convert_field): Fix reference counting.
2341 2012-08-15 Tom Tromey <tromey@redhat.com>
2343 * dwarf2read.c (dwarf_decode_macro_bytes)
2344 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2347 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2349 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2350 stepi, nexti, finish, next, step, jump, and continue commands.
2351 * infrun.c (_initialize_infrun): Update help text for the handle
2354 2012-08-14 Doug Evans <dje@google.com>
2356 * gdbtypes.c (struct extra): Delete, unused.
2358 * gdbtypes.c: Whitespace cleanup.
2359 (address_space_name_to_int): Remove "extern" from definition.
2360 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2362 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2363 TYPE_POINTER_TYPE (type).
2365 2012-08-14 Gary Benson <gbenson@redhat.com>
2367 * solib-svr4.c (svr4_free_library_list): Use free_so.
2369 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2371 * .gitignore: Add go-exp.c.
2373 2012-08-13 Doug Evans <dje@google.com>
2375 * value.c (show_convenience): Tweak comment.
2376 (_initialize_values): Mention convenience functions in the help text
2377 for "show convenience".
2379 2012-08-13 Yao Qi <yao@codesourcery.com>
2381 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2382 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2384 * eval.c (evaluate_subexp_standard): Likewise.
2385 * expprint.c (print_subexp_standard): Likewise.
2386 (dump_subexp_body_standard): Likewise.
2387 * parse.c (operator_length_standard): Likewise.
2389 2012-08-13 Yao Qi <yao@codesourcery.com>
2391 * std-operator.def: Remove OP_BITSTRING.
2392 * breakpoint.c (watchpoint_exp_is_const): Update.
2393 * eval.c (evaluate_subexp_standard): Remove handling to
2395 * expprint.c (print_subexp_standard): Likewise.
2396 (dump_subexp_body_standard): Likewise.
2397 * parse.c (operator_length_standard): Likewise.
2398 * valops.c (value_bitstring): Remove.
2399 * value.h: Remove the declaration of 'value_bitstring'.
2401 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2403 * linespec.c (find_methods): Remove unused variables `i1' and
2405 (decode_line_full): Likewise for `arg_start'.
2407 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2409 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2410 (zlib_decompress_section): Likewise for `section_data'.
2411 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2413 2012-08-10 Doug Evans <dje@google.com>
2415 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2416 * NEWS: Document them.
2417 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2419 * python/py-type.c (typy_array_1): New function.
2420 (typy_array): Call it.
2421 (typy_vector): New function.
2422 (type_object_methods): Add "vector".
2423 * python/lib/gdb/function/__init__.py: New file.
2424 * python/lib/gdb/function/strfns.py: New file.
2426 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2428 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2429 for TYPE_FIELD_BITPOS.
2430 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2432 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2435 * common/vec.h (VEC_merge): Define.
2436 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2437 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2438 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2439 * completer.c: Include gdb_signals.h.
2440 (signal_completer): Define.
2441 * completer.h (signal_completer): Add prototype.
2442 * infcmd.c (_initialize_infcmd): Assign the command
2443 completer for "signal" to handle_completer.
2444 * infrun.c: Include completer.h.
2445 (handle_completer): Define.
2446 (_initialize_infrun): Declare a new local variable c. Store the
2447 result of add_com("handle") to it. Assign the command
2448 completer for "handle" to handle_completer.
2450 2012-08-09 Yao Qi <yao@codesourcery.com>
2452 * cli/cli-decode.c (set_cmd_prefix): New.
2453 (lookup_cmd_for_prefixlist): New.
2454 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2455 of each cmd_list_element in *prefixlist.
2456 (add_setshow_cmd_full): set_cmd_prefix.
2457 (add_alias_cmd): Likewise.
2458 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2459 Declare 'auto_boolean_enums'.
2460 * cli/cli-setshow.c: Include "observer.h".
2461 (notify_command_param_changed_p): New.
2462 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2464 (do_setshow_command): Split it to ...
2465 (do_set_command, do_show_command): ... them. New.
2466 (do_set_command): Call observer_notify_command_param_changed if
2467 notify_command_param_changed_p returns true.
2468 (cmd_show_list): Caller update.
2469 * auto-load.c (set_auto_load_cmd): Likewise.
2470 * remote.c (show_remote_cmd): Likewise.
2471 * cli/cli-setshow.h: Update declarations.
2472 * top.c (execute_command): Call do_set_command and do_show_command.
2474 * NEWS: Mention new MI notification.
2475 * mi/mi-interp.c: Declare mi_command_param_changed.
2476 (mi_interpreter_init): Attach mi_command_param_changed to
2477 observer command_param_changed.
2478 (mi_command_param_changed): New.
2479 Remove mi_suppress_breakpoint_notifications.
2480 Define global variable mi_suppress_notification.
2481 (mi_breakpoint_created): Update.
2482 (mi_breakpoint_deleted): Likewise.
2483 (mi_breakpoint_modified): Likewise.
2484 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2485 'gdb-set' and set mi_suppress_notification.
2486 * mi/mi-main.h: (mi_suppress_notification): New struct.
2488 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2489 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2493 2012-08-09 Yao Qi <yao@codesourcery.com>
2495 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2496 (skiplist): Move it to skip.c.
2497 (init_cmd_lists): Remove code setting enablebreaklist and
2499 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2500 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2502 * gdbcmd.h: Likewise.
2503 * skip.c (_initialize_step_skip): Move 'skiplist' from
2506 2012-08-09 Yao Qi <yao@codesourcery.com>
2508 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2509 * gnu-nat.c, symfile.c: Likewise.
2511 2012-08-08 Aaron Gamble <agamble@google.com>
2513 * utils.c (prompt_for_continue_wait_time): New static global.
2514 (make_command_stats_cleanup): Initialize it.
2515 (report_command_stats): Subtract time waiting for user.
2516 (prompt_for_continue): Track time waiting for user.
2517 (defaulted_query): Track time waiting for user.
2519 2012-08-08 Doug Evans <dje@google.com>
2521 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2523 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2524 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2525 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2526 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2527 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2528 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2530 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2531 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2532 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2533 (dump_prefix_expression): Handle OP_TYPE.
2535 2012-08-08 Keith Seitz <keiths@redhat.com>
2537 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2540 2012-08-08 Doug Evans <dje@google.com>
2542 * linux-thread-db.c: #include "gdb_vecs.h".
2543 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2545 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2546 (thread_db_load_search): Use a vector to iterate over path elements.
2547 Handle text appearing after "$pdir".
2549 * gdb_string.h: Moved to ...
2550 * common/gdb_string.h: ... here.
2551 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2552 gdb_string.h and gdb_assert.h.
2554 2012-08-08 Yao Qi <yao@codesourcery.com>
2556 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2557 (tic6x_value_to_register): Likewise.
2558 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2559 and set_gdbarch_value_to_register.
2561 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2562 Jean-Marc Saffroy <saffroy@gmail.com>
2565 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2566 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2567 * gcore.c (gcore_create_callback): New function comment. Add modified
2568 parameter. Only write modified regions. Set SEC_READONLY exactly
2569 according to MODIFIED.
2570 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2571 the passed modified value to FUNC.
2572 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2573 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2574 first. New variables modified and has_anonymous. Parse the lines of
2575 smaps file. Add the passed MODIFIED value to FUNC.
2576 * procfs.c (find_memory_regions_callback): Add the passed modified
2579 2012-08-06 Tom Tromey <tromey@redhat.com>
2581 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2582 (dwarf2_frame_cache): Use it.
2583 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2584 cache initialization constraint.
2586 2012-08-06 Tom Tromey <tromey@redhat.com>
2589 * varobj.c (update_dynamic_varobj_children): Don't call
2592 2012-08-06 Tom Tromey <tromey@redhat.com>
2595 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2597 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2599 * NEWS: New entry for 'cd' default parameters.
2600 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2602 2012-08-03 Tom Tromey <tromey@redhat.com>
2604 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2607 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2609 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2610 to attempting lseek/write.
2611 (inf_child_fileio_pread): Likewise for pread.
2613 2012-08-02 Yao Qi <yao@codesourcery.com>
2615 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2616 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2617 add_setshow_zinteger_cmd.
2618 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2619 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2620 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2621 instead of add_setshow_zinteger_cmd.
2622 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2623 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2624 instead of add_setshow_zinteger_cmd.
2625 * frame.c (frame_debug): Add 'unsigned'.
2626 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2627 add_setshow_zinteger_cmd.
2628 * frame.h: Update the declaration of 'frame_debug'.
2629 * gdbtypes.c (overload_debug): Add 'unsigned'.
2630 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2631 add_setshow_zinteger_cmd.
2632 * inferior.h: Update declaration of 'debug_infrun'.
2633 * infrun.c (debug_infrun): Add 'unsigned'.
2634 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2635 add_setshow_zinteger_cmd.
2636 * jit.c (jit_debug): Add 'unsigned'.
2637 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2638 add_setshow_zinteger_cmd.
2639 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2640 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2641 instead of add_setshow_zinteger_cmd.
2642 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2643 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2644 add_setshow_zinteger_cmd.
2645 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2646 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2647 instead of add_setshow_zinteger_cmd.
2648 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2649 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2650 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2651 intead of add_setshow_zinteger_cmd.
2652 * mips-tdep.c (mips_debug): Add 'unsigned'.
2653 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2654 instead of add_setshow_zinteger_cmd.
2655 * monitor.c (monitor_debug): Add 'unsigned'.
2656 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2657 add_setshow_zinteger_cmd.
2658 * observer.c (observer_debug): Add 'unsigned'.
2659 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2660 add_setshow_zinteger_cmd.
2661 * parse.c (expressiondebug): Add 'unsigned'.
2662 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2663 add_setshow_zinteger_cmd.
2664 * record.c (record_debug): Add 'unsigned'.
2665 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2666 add_setshow_zinteger_cmd.
2667 * record.h: Update the declaration of 'record_debug'.
2668 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2669 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2670 add_setshow_zinteger_cmd.
2671 * serial.c (global_serial_debug_p): Add 'unsigned'.
2672 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2673 add_setshow_zinteger_cmd.
2674 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2675 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2676 add_setshow_zinteger_cmd.
2677 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2678 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2679 add_setshow_zinteger_cmd.
2680 * target.c (targetdebug): Add 'unsigned'.
2681 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2682 add_setshow_zinteger_cmd.
2683 * valops.c (overload_debug): Add 'unsigned'.
2684 * varobj.c (varobjdebug): Add 'unsigned'.
2685 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2686 add_setshow_zinteger_cmd.
2687 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2688 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2689 instead of add_setshow_zinteger_cmd.
2691 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2692 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2693 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2694 instead of add_setshow_zinteger_cmd.
2695 * gdbarch.c, gdbarch.h: Re-generated.
2697 2012-08-02 Yao Qi <yao@codesourcery.com>
2699 * nto-tdep.c: Don't include cli/cli-decode.h and
2701 (_initialize_nto_tdep): Remove.
2702 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2704 Remove macro nto_internal_debugging.
2706 2012-08-01 Richard Henderson <rth@redhat.com>
2708 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2709 (mep-*-*) [gdb_target_obs]: Likewise.
2711 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2713 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2714 linux_get_siginfo_type.
2716 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2720 (call_function_by_hand) <ON_STACK>: Call write_memory with
2721 gdbarch_breakpoint_from_pc, if possible.
2722 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2725 2012-07-31 Yao Qi <yao@codesourcery.com>
2727 * tracepoint.c: Add 'static' for some variables.
2729 2012-07-31 Yao Qi <yao@codesourcery.com>
2731 * go32-nat.c: Declare _initialize_go32_nat.
2732 * ser-go32.c: Declare _initialize_ser_dos.
2733 * top.c (do_chdir_cleanup): Add 'static'.
2735 2012-07-30 Keith Seitz <keiths@redhat.com>
2737 * linespec.c (linespec_lex_number): A number followed
2738 by quotes is a valid number, too.
2740 2012-07-30 Tom Tromey <tromey@redhat.com>
2742 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2744 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2746 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2747 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2749 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2751 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2752 invalid or reevaluated to prevent prevent references to possibly
2753 delete'd type objects being left in the varobj.
2755 2012-07-27 Tom Tromey <tromey@redhat.com>
2756 Jan Kratochvil <jan.kratochvil@redhat.com>
2758 * copying.awk: Print buffer-read-only and vi ro markers.
2759 * copying.c: Rebuild.
2760 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2761 * gdbarch.c, gdbarch.h: Rebuild.
2762 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2763 buffer-read-only and vi ro markers.
2764 * features/arm-with-iwmmxt.c: Rebuild.
2765 * features/arm-with-m-fpa-layout.c: Rebuild.
2766 * features/arm-with-m-vfp-d16.c: Rebuild.
2767 * features/arm-with-m.c: Rebuild.
2768 * features/arm-with-neon.c: Rebuild.
2769 * features/arm-with-vfpv2.c: Rebuild.
2770 * features/arm-with-vfpv3.c: Rebuild.
2771 * features/i386/amd64-avx-linux.c: Rebuild.
2772 * features/i386/amd64-avx.c: Rebuild.
2773 * features/i386/amd64-linux.c: Rebuild.
2774 * features/i386/amd64.c: Rebuild.
2775 * features/i386/i386-avx-linux.c: Rebuild.
2776 * features/i386/i386-avx.c: Rebuild.
2777 * features/i386/i386-linux.c: Rebuild.
2778 * features/i386/i386-mmx-linux.c: Rebuild.
2779 * features/i386/i386-mmx.c: Rebuild.
2780 * features/i386/i386.c: Rebuild.
2781 * features/i386/x32-avx-linux.c: Rebuild.
2782 * features/i386/x32-avx.c: Rebuild.
2783 * features/i386/x32-linux.c: Rebuild.
2784 * features/i386/x32.c: Rebuild.
2785 * features/mips-dsp-linux.c: Rebuild.
2786 * features/mips-linux.c: Rebuild.
2787 * features/mips64-dsp-linux.c: Rebuild.
2788 * features/mips64-linux.c: Rebuild.
2789 * features/rs6000/powerpc-32.c: Rebuild.
2790 * features/rs6000/powerpc-32l.c: Rebuild.
2791 * features/rs6000/powerpc-403.c: Rebuild.
2792 * features/rs6000/powerpc-403gc.c: Rebuild.
2793 * features/rs6000/powerpc-405.c: Rebuild.
2794 * features/rs6000/powerpc-505.c: Rebuild.
2795 * features/rs6000/powerpc-601.c: Rebuild.
2796 * features/rs6000/powerpc-602.c: Rebuild.
2797 * features/rs6000/powerpc-603.c: Rebuild.
2798 * features/rs6000/powerpc-604.c: Rebuild.
2799 * features/rs6000/powerpc-64.c: Rebuild.
2800 * features/rs6000/powerpc-64l.c: Rebuild.
2801 * features/rs6000/powerpc-7400.c: Rebuild.
2802 * features/rs6000/powerpc-750.c: Rebuild.
2803 * features/rs6000/powerpc-860.c: Rebuild.
2804 * features/rs6000/powerpc-altivec32.c: Rebuild.
2805 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2806 * features/rs6000/powerpc-altivec64.c: Rebuild.
2807 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2808 * features/rs6000/powerpc-cell32l.c: Rebuild.
2809 * features/rs6000/powerpc-cell64l.c: Rebuild.
2810 * features/rs6000/powerpc-e500.c: Rebuild.
2811 * features/rs6000/powerpc-e500l.c: Rebuild.
2812 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2813 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2814 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2815 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2816 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2817 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2818 * features/rs6000/powerpc-vsx32.c: Rebuild.
2819 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2820 * features/rs6000/powerpc-vsx64.c: Rebuild.
2821 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2822 * features/rs6000/rs6000.c: Rebuild.
2823 * features/s390-linux32.c: Rebuild.
2824 * features/s390-linux32v1.c: Rebuild.
2825 * features/s390-linux32v2.c: Rebuild.
2826 * features/s390-linux64.c: Rebuild.
2827 * features/s390-linux64v1.c: Rebuild.
2828 * features/s390-linux64v2.c: Rebuild.
2829 * features/s390x-linux64.c: Rebuild.
2830 * features/s390x-linux64v1.c: Rebuild.
2831 * features/s390x-linux64v2.c: Rebuild.
2832 * features/tic6x-c62x-linux.c: Rebuild.
2833 * features/tic6x-c62x.c: Rebuild.
2834 * features/tic6x-c64x-linux.c: Rebuild.
2835 * features/tic6x-c64x.c: Rebuild.
2836 * features/tic6x-c64xp-linux.c: Rebuild.
2837 * features/tic6x-c64xp.c: Rebuild.
2839 2012-07-27 Tom Tromey <tromey@redhat.com>
2841 * c-exp.y (classify_name): Avoid assignment in condition.
2843 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2845 * amd64-windows-tdep.c: Include "frame.h".
2846 (amd64_windows_skip_trampoline_code): New function.
2847 (amd64_windows_init_abi): Add trampoline registration.
2849 2012-07-27 Yao Qi <yao@codesourcery.com>
2851 * tracepoint.c (cur_traceframe_number): Remove.
2852 (set_tfile_traceframe): Remove.
2853 (tfile_trace_find, tfile_fetch_registers): Update callers.
2854 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2855 (tfile_open, tfile_trace_find): Likewise.
2857 2012-07-27 Yao Qi <yao@codesourcery.com>
2859 * thread.c (switch_to_thread): Don't call registers_changed.
2861 2012-07-26 Tom Tromey <tromey@redhat.com>
2863 * Makefile.in (SFILES): Remove objc-exp.y.
2864 (YYFILES): Remove objc-exp.c.
2865 (YYOBJ): Remove objc-exp.o.
2866 (local-maintainer-clean): Don't mention objc-exp.c.
2867 * c-exp.y: Include objc-lang.h.
2868 (%union) <class>: New field.
2869 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2870 (exp): Clone subscript production for OBJC_LBRAC. Add various
2871 Objective C productions.
2872 (msglist, msgarglist, msgarg): New productions.
2873 (array_mod, func_mod, operator): Clone productions for
2875 (parse_string_or_char): Handle '@' strings.
2876 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2877 (classify_name): Check la_name_of_this. Recognize ObjC class
2879 * objc-exp.y: Remove.
2880 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2881 * objc-lang.h (objc_parse, objc_error): Don't declare.
2883 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2885 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2887 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2892 2012-07-26 Tom Tromey <tromey@redhat.com>
2894 * copying.c: Rebuild.
2895 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2898 2012-07-26 Tom Tromey <tromey@redhat.com>
2900 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2902 (print_objfile_statistics): Likewise.
2903 (maintenance_print_symbols): Likewise.
2904 (maintenance_print_msymbols): Likewise.
2905 (maintenance_print_objfiles): Likewise.
2906 * psymtab.c (print_partial_symbols): Call QUIT.
2907 (maintenance_print_psymbols): Likewise. Don't modify
2909 * copying.c (show_copying_command): Don't modify immediate_quit.
2910 (show_warranty_command): Likewise.
2911 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2913 2012-07-26 Keith Seitz <keiths@redhat.com>
2915 * linespec.c (linespec_lexer_lex_number): The input
2916 is also a valid number if the next character is a comma
2919 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2921 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2924 2012-07-26 Tristan Gingold <gingold@adacore.com>
2926 * machoread.c: Include gdb_bfd.h.
2928 2012-07-26 Tristan Gingold <gingold@adacore.com>
2930 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2933 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2935 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2937 (dwarf2_evaluate_loc_desc): Likewise.
2938 (dwarf2_loc_desc_needs_frame): Likewise.
2939 (locexpr_describe_location_1): Likewise.
2940 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2942 (struct dwarf2_loclist_baton): Likewise.
2943 * dwarf2read.c (struct dwarf_block): Likewise.
2944 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2945 (decode_locdesc): Expand SIZE and I to size_t.
2947 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2949 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2951 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2953 * doublest.c (convert_doublest_to_floatformat): If the exponent
2954 is too small, treat the value as zero. If the exponent is too
2955 large, treat the value as infinity.
2957 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2959 * configure.ac: Add --enable-lmcheck configure option.
2960 * configure: Regenerate.
2962 2012-07-25 Tom Tromey <tromey@redhat.com>
2964 * NEWS: Mention maint info bfds.
2965 * gdb_bfd.c (all_bfds): New global.
2966 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2967 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2970 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2972 * configure.tgt: Add v850*-*-rtems*.
2974 2012-07-25 Tom Tromey <tromey@redhat.com>
2976 * macrotab.c (macro_bcache_str): Remove cast.
2978 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2980 * linespec.c (linespec_lexer_lex_number): Update comments,
2981 change the return and add check to make sure the input is
2982 the decimal numbers.
2983 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2984 false, call linespec_lexer_lex_string.
2986 2012-07-24 Tom Tromey <tromey@redhat.com>
2988 * symfile.c (symbol_file_add): Don't open BFD twice.
2990 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2992 * breakpoint.c (create_breakpoint): Store condition for pending
2995 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2997 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2998 (m68k_return_value): Handle complex types like structures.
2999 (m68k_svr4_return_value): Likewise.
3001 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3003 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3004 parameters to bfd_get_section_name.
3006 2012-07-24 Yao Qi <yao@codesourcery.com>
3008 * cli/cli-setshow.c: Handle case 'var_uinteger'
3009 and 'var_zuninteger' together. Handle case 'var_integer' and
3010 'var_zinteger' together.
3012 2012-07-23 Keith Seitz <keiths@redhat.com>
3014 * linespec.c (convert_linespec_to_sal): Don't add
3015 any symbols to the result vector if symbol_to_sal
3018 2012-07-23 Keith Seitz <keiths@redhat.com>
3020 * linespec.c (decode_objc): Record the function name
3023 2012-07-23 Tom Tromey <tromey@redhat.com>
3025 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3027 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3028 (map_vmap): Acquire a reference to the BFD.
3030 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3032 * p-valprint.c (pascal_object_print_value): Replace potentially
3033 unsafe alloca with xmalloc/xfree.
3034 * valops.c (search_struct_method): Likewise.
3036 2012-07-23 Tom Tromey <tromey@redhat.com>
3038 * solib-svr4.c (enable_break): Update.
3039 * bfd-target.h (target_bfd_reopen): Update documentation.
3041 2012-07-23 Tom Tromey <tromey@redhat.com>
3043 * symfile.c (separate_debug_file_exists): Update.
3044 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3045 (reread_symbols): Update.
3046 * elfread.c (build_id_verify): Update.
3047 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3048 bfd_open_maybe_remote.
3050 2012-07-23 Tom Tromey <tromey@redhat.com>
3052 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3054 2012-07-23 Tom Tromey <tromey@redhat.com>
3056 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3058 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3060 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3061 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3063 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3064 * objfiles.c (allocate_objfile): Acquire a new reference.
3065 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3066 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3067 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3068 a cleanup for 'nbfd'.
3069 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3071 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3072 make a cleanup for 'abfd'.
3073 (symbol_file_add): Make a BFD cleanup.
3075 2012-07-23 Tom Tromey <tromey@redhat.com>
3077 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3078 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3079 * corelow.c (core_open): Use gdb_bfd_fopen.
3080 * dsrec.c (load_srec): Use gdb_bfd_openr.
3081 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3082 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3083 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3084 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3085 (gdb_bfd_fdopenr): New functions.
3086 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3087 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3088 (gdb_bfd_fdopenr): Declare.
3089 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3090 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3091 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3092 gdb_bfd_openr_next_archived_file.
3093 (macho_check_dsym): Use gdb_bfd_openr.
3094 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3095 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3096 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3097 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3099 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3100 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3101 gdb_bfd_openr_next_archived_file.
3102 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3104 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3106 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3107 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3108 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3109 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3110 (symfile_bfd_open): Use gdb_bfd_fopen.
3111 (generic_load): Use gdb_bfd_openr.
3112 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3114 2012-07-23 Tom Tromey <tromey@redhat.com>
3116 * bfd-target.c (target_bfd_reopen): Update.
3117 * cli/cli-dump.c (bfd_openr_with_cleanup)
3118 (bfd_openw_with_cleanup): Update.
3119 * corelow.c (core_open): Update.
3120 * dsrec.c (load_srec): Update.
3121 * exec.c (exec_file_attach): Update.
3122 * gcore.c (create_gcore_bfd): Update.
3123 * gdb_bfd.c (gdb_bfd_ref): Return void.
3124 (gdb_bfd_open): Update.
3125 * gdb_bfd.h (gdb_bfd_ref): Return void.
3127 * jit.c (jit_bfd_try_read_symtab): Update.
3128 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3129 * machoread.c (macho_symfile_read_all_oso): Update.
3130 (macho_check_dsym): Update.
3131 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3132 * remote-m32r-sdi.c (m32r_load): Update.
3133 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3134 * rs6000-nat.c (add_vmap): Update.
3135 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3137 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3138 * solib-spu.c (spu_bfd_open): Update.
3139 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3140 * spu-linux-nat.c (spu_bfd_open): Update.
3141 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3142 (generic_load): Update.
3143 * windows-nat.c (windows_make_so): Update.
3145 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3147 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3149 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3151 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3152 SIGTRAMP_FRAME unwinding.
3154 2012-07-20 Doug Evans <dje@google.com>
3156 * NEWS: Document new options "set/show use-deprecated-index-sections",
3157 and delete reference to --use-deprecated-index-sections.
3158 * symfile.h (use_deprecated_index_sections): Delete.
3159 * dwarf2read.c (use_deprecated_index_sections): Make static.
3160 (read_index_from_section): Update wording of how to load
3161 deprecated index sections.
3162 (_initialize_dwarf2_read): New options
3163 "set/show use-deprecated-index-sections".
3164 * main.c (captured_main): Delete --use-deprecated-index-sections.
3166 2012-07-20 Pedro Alves <palves@redhat.com>
3171 * infrun.c (handle_inferior_event) <new thread>: Don't special
3172 case minus_one_ptid.
3173 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3174 * linux-thread-db.c (thread_get_info_callback): Don't return early
3175 if the thread is zombie.
3176 (thread_from_lwp): Change return type to void. Rewrite stale
3178 (attach_thread): Don't return early if the thread is zombie,
3179 instead set its "dying" flag.
3180 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3181 (find_new_threads_callback): Don't return early if the thread is
3184 2012-07-20 Pedro Alves <palves@redhat.com>
3186 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3187 * target.c (target_wait): Likewise.
3188 (str_comma_list_concat_elem, do_option, target_options_to_string):
3190 * target.h (target_options_to_string): Declare.
3192 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3193 Tom Tromey <tromey@redhat.com>
3195 * dwarf2read.c (dwarf_decode_macros)
3196 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3197 DW_MACRO_GNU_transparent_include_alt>: New cases.
3198 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3199 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3201 2012-07-20 Tom Tromey <tromey@redhat.com>
3203 * dwarf2read.c (try_open_dwo_file): Don't call
3204 gdb_bfd_stash_filename.
3206 2012-07-20 Pedro Alves <palves@redhat.com>
3208 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3209 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3210 (i386_process_record): Tweak description comments.
3212 2012-07-20 Pedro Alves <palves@redhat.com>
3214 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3215 (i386_process_record): Use record_read_memory.
3216 * record.c (record_read_memory): New function.
3217 (record_arch_list_add_mem, record_exec_insn): Use
3219 * record.h (record_read_memory): Declare.
3221 2012-07-20 Yao Qi <yao@codesourcery.com>
3223 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3226 2012-07-19 Pedro Alves <palves@redhat.com>
3228 * record.c (record_resume): Ask the target beneath to report all
3231 2012-07-19 Doug Evans <dje@google.com>
3233 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3234 there's no section at address zero.
3235 (dwarf2_record_block_ranges): Ditto.
3237 2012-07-19 Yao Qi <yao@codesourcery.com>
3239 * command.h, remote.c: Fix a typo in comment.
3241 2012-07-19 Tom Tromey <tromey@redhat.com>
3244 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3245 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3246 OP_DECLTYPE>: New cases.
3247 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3248 (type_exp): Add new productions.
3249 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3251 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3253 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3254 OP_DECLTYPE>: New case.
3255 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3257 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3258 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3260 2012-07-19 Tom Tromey <tromey@redhat.com>
3262 * c-exp.y (enum token_flags): New.
3263 (struct token) <cxx_only>: Remove.
3265 (tokentab3, tokentab2, ident_tokens): Update.
3266 (lex_one_token): Update. Handle FLAG_SHADOW.
3268 2012-07-19 Tom Tromey <tromey@redhat.com>
3270 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3271 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3272 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3273 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3274 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3275 type_exp production where appropriate.
3276 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3277 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3278 <UNOP_MEMVAL_TYPE>: New case.
3279 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3280 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3281 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3282 <UNOP_MEMVAL_TYPE>: New case.
3283 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3284 UNOP_REINTERPRET_CAST>: Update.
3285 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3286 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3287 UNOP_REINTERPRET_CAST>: Update.
3288 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3289 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3290 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3293 2012-07-19 Yao Qi <yao@codesourcery.com>
3294 Jan Kratochvil <jan.kratochvil@redhat.com>
3296 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3297 and case 'var_optional_filename' together.
3298 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3299 instead of add_setshow_optional_filename_cmd for setshow command
3300 'args'. Set completer for 'set args'.
3302 2012-07-18 Doug Evans <dje@google.com>
3304 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3305 * common/gdb_vecs.c: New file, contents from utils.c.
3306 * common/host-defs.h: New file, contents from defs.h.
3307 * utils.h: New file, contents from defs.h.
3308 * defs.h: Move all declarations of objects defined in utils.c
3309 to utils.h (except QUIT() and related).
3310 #include "utils.h", "host-defs.h".
3311 * probe.h (probe_p): Move here from gdb_vecs.h.
3312 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3313 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3314 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3315 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3316 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3317 (COMMON_OBS): Add gdb_vecs.o.
3318 (gdb_vecs.o): New rule.
3320 2012-07-18 Keith Seitz <keiths@redhat.com>
3322 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3323 parameter. If non-zero, use SYMNAME as the canonical name
3326 (convert_linespec_to_sals): Use add_sal_to_sals for
3328 (decode_line_full): No need to "fill in missing canonical names"
3329 anymore. Simply make cleanups for the allocated names.
3331 2012-07-18 Keith Seitz <keiths@redhat.com>
3333 * linespec.c (struct linespec): Constify expression,
3334 source_filename, function_name, and label_name.
3335 (symbol_not_found_error): Make all parameters const.
3336 (linespec_parser_delete): No need to check for NULL
3337 when using xfree. Cast const char * to char * for xfree.
3339 2012-07-18 Keith Seitz <keiths@redhat.com>
3341 * breakpoint.c (invalid_thread_id_error): New function.
3342 (find_condition_and_thread): Use invalid_thread_id_error.
3343 (watch_command_1): Likewise.
3345 2012-07-18 Tom Tromey <tromey@redhat.com>
3347 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3348 * contrib/cc-with-tweaks.sh: New file.
3350 2012-07-18 Tom Tromey <tromey@redhat.com>
3352 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3353 (locate_dwz_sections): Recognize .gdb_index.
3354 (create_cus_from_index_list): New function.
3355 (create_cus_from_index): Use it. Handle .dwz data.
3356 (read_index_from_section): New function, extracted from
3358 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3361 2012-07-18 Tom Tromey <tromey@redhat.com>
3363 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3364 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3365 <is_dwz>: New field.
3366 (struct dwz_file): New.
3367 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3368 (locate_dwz_sections, dwarf2_get_dwz_file)
3369 (get_abbrev_section_for_cu): New functions.
3370 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3371 (read_and_check_type_unit_head): Add abbrev_section argument.
3372 (create_debug_types_hash_table): Update.
3373 (init_cutu_and_read_dies): Use proper abbrev section.
3374 (init_cutu_and_read_dies_no_follow): Likewise.
3375 (set_partial_user): Do nothing if PST==NULL.
3376 (read_comp_units_from_section): New function.
3377 (create_all_comp_units): Use it.
3378 (scan_partial_symbols, partial_die_parent_scope): Update.
3379 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3380 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3381 (find_partial_die): Add offset_in_dwz argument. Update.
3382 (guess_partial_die_structure_name, fixup_partial_die): Update.
3383 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3384 DW_FORM_GNU_strp_alt.
3385 (read_indirect_string_from_dwz): New function.
3386 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3387 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3388 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3389 (follow_die_offset): Add offset_in_dwz argument.
3390 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3391 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3392 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3393 Handle new macro forms.
3394 (dwarf_decode_macros): Update.
3395 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3396 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3397 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3398 (create_debug_types_hash_table): Use correct abbrev section.
3399 (get_debug_line_section): New function.
3400 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3401 (process_full_comp_unit): Pass 'required' argument to
3402 end_symtab_get_static_block.
3403 * buildsym.h (end_symtab_get_static_block): Update.
3404 * buildsym.c (end_symtab_get_static_block): Add 'required'
3406 (end_symtab, end_expandable_symtab): Update.
3408 2012-07-18 Tom Tromey <tromey@redhat.com>
3410 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3412 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3413 (zlib_decompress_section): Remove.
3414 (dwarf2_read_section): Use gdb_bfd_map_section.
3415 (munmap_section_buffer): Remove.
3416 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3417 munmap_section_buffer.
3418 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3419 (struct gdb_bfd_section_data): New.
3420 (free_one_bfd_section): New function.
3421 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3422 (get_section_descriptor, zlib_decompress_section)
3423 (gdb_bfd_map_section): New functions.
3424 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3426 2012-07-18 Tom Tromey <tromey@redhat.com>
3428 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3430 2012-07-18 Tom Tromey <tromey@redhat.com>
3432 * gdb_bfd.c (struct gdb_bfd_data): New.
3433 (gdb_bfd_cache): New global.
3434 (struct gdb_bfd_cache_search): New.
3435 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3436 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3437 * gdb_bfd.h (gdb_bfd_open): Declare.
3439 2012-07-18 Tom Tromey <tromey@redhat.com>
3441 * utils.c (make_cleanup_bfd_unref): Rename from
3442 make_cleanup_bfd_close.
3443 * defs.h (make_cleanup_bfd_unref): Rename from
3444 make_cleanup_bfd_close.
3445 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3446 (bfd_openw_with_cleanup): Update.
3447 * corelow.c (core_open): Update.
3448 * dsrec.c (load_srec): Update.
3449 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3450 * remote-m32r-sdi.c (m32r_load): Update.
3451 * remote-mips.c (mips_load_srec): Update.
3452 (pmon_load_fast): Update.
3453 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3455 (darwin_bfd_open): Update.
3456 * solib.c (solib_bfd_fopen): Update.
3457 * symfile-mem.c (symbol_file_add_from_memory): Update.
3458 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3459 (symfile_bfd_open): Update.
3460 (generic_load): Update.
3462 2012-07-18 Tom Tromey <tromey@redhat.com>
3464 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3465 (pmon_load_fast): Likewise.
3466 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3467 (m32r_upload_command): Likewise.
3468 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3469 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3470 Use make_cleanup_bfd_close.
3472 2012-07-18 Tom Tromey <tromey@redhat.com>
3474 * symfile.c (symfile_bfd_open): Don't copy name. Call
3475 gdb_bfd_stash_filename.
3476 (load_command): Open the new BFD before freeing the old.
3477 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3478 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3479 Call gdb_bfd_stash_filename.
3480 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3481 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3482 gdb_bfd_stash_filename.
3483 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3484 Free found_pathname.
3485 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3486 gdb_bfd_stash_filename.
3487 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3488 * machoread.c (macho_add_oso_symfile): Call
3489 gdb_bfd_stash_filename.
3490 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3491 gdb_bfd_stash_filename.
3492 (macho_check_dsym): Don't copy filename. Call
3493 gdb_bfd_stash_filename.
3494 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3495 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3496 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3497 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3498 * exec.c (exec_close): Don't free the BFD's filename.
3499 (exec_file_attach): Don't copy the filename. Call
3500 gdb_bfd_stash_filename.
3501 * corelow.c (core_close): Don't free the BFD's filename.
3502 (core_open): Call gdb_bfd_stash_filename.
3503 * corefile.c (reopen_exec_file): Remove #if 0 code.
3504 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3506 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3508 2012-07-18 Tom Tromey <tromey@redhat.com>
3510 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3512 (free_dwo_file): Use gdb_bfd_unref.
3513 * cli/cli-dump.c: Include gdb_bfd.h.
3514 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3515 (bfd_openr_with_cleanup): Likewise.
3516 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3518 * utils.c: Include gdb_bfd.h.
3519 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3520 * symfile.c: Include gdb_bfd.h.
3521 (separate_debug_file_exists): Use gdb_bfd_unref.
3522 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3523 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3524 (generic_load): Use gdb_bfd_ref.
3525 (reread_symbols): Use gdb_bfd_unref.
3526 * symfile-mem.c: Include gdb_bfd.h.
3527 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3528 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3529 * solib.c: Include gdb_bfd.h.
3530 (solib_bfd_fopen): Use gdb_bfd_ref.
3531 (solib_bfd_open): Use gdb_bfd_unref.
3532 (free_so_symbols): Use gdb_bfd_unref.
3533 (reload_shared_libraries_1): Use gdb_bfd_unref.
3534 * solib-spu.c: Include gdb_bfd.h.
3535 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3536 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3538 * solib-frv.c: Include gdb_bfd.h.
3539 (enable_break2): Use gdb_bfd_unref.
3540 * solib-dsbt.c: Include gdb_bfd.h.
3541 (enable_break2): Use gdb_bfd_unref.
3542 * solib-darwin.c: Include gdb_bfd.h.
3543 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3545 (darwin_bfd_open): Use gdb_bfd_unref.
3546 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3547 * remote-mips.c: Include gdb_bfd.h.
3548 (mips_load_srec): Use gdb_bfd_ref.
3549 (pmon_load_fast): Use gdb_bfd_ref.
3550 * remote-m32r-sdi.c: Include gdb_bfd.h.
3551 (m32r_load): Use gdb_bfd_ref.
3552 * record.c: Include gdb_bfd.h.
3553 (record_save_cleanups): Use gdb_bfd_unref.
3554 (cmd_record_save): Use gdb_bfd_unref.
3555 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3557 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3558 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3559 * objfiles.c: Include gdb_bfd.h.
3560 (free_objfile): Use gdb_bfd_unref.
3561 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3563 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3564 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3565 (macho_check_dsym): Likewise.
3566 * m32r-rom.c: Include gdb_bfd.h.
3567 (m32r_load): Use gdb_bfd_ref.
3568 (m32r_upload_command): Use gdb_bfd_ref.
3569 * jit.c: Include gdb_bfd.h.
3570 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3571 * gdb_bfd.h: New file.
3572 * gdb_bfd.c: New file.
3573 * gcore.c: Include gdb_bfd.h.
3574 (create_gcore_bfd): Use gdb_bfd_ref.
3575 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3576 (gcore_command): Use gdb_bfd_unref.
3577 * exec.c: Include gdb_bfd.h.
3578 (exec_close): Use gdb_bfd_unref.
3579 (exec_close_1): Use gdb_bfd_unref.
3580 (exec_file_attach): Use gdb_bfd_ref.
3581 * elfread.c: Include gdb_bfd.h.
3582 (build_id_verify): Use gdb_bfd_unref.
3583 * dsrec.c: Include gdb_bfd.h.
3584 (load_srec): Use gdb_bfd_ref.
3585 * corelow.c: Include gdb_bfd.h.
3586 (core_close): Use gdb_bfd_unref.
3587 (core_open): Use gdb_bfd_ref.
3588 * bfd-target.c: Include gdb_bfd.h.
3589 (target_bfd_xclose): Use gdb_bfd_unref.
3590 (target_bfd_reopen): Use gdb_bfd_ref.
3591 * Makefile.in (SFILES): Add gdb_bfd.c.
3592 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3593 (COMMON_OBS): Add gdb_bfd.o.
3595 2012-07-18 Keith Seitz <keiths@redhat.com>
3597 * breakpoint.c (find_condition_and_thread): Initialize
3599 (create_breakpiont): find_condition_and_thread will now
3600 initialize COND_STRING, THREAD, and REST (and TASK).
3601 (addr_string_to_sals): Likewise.
3603 2012-07-18 Pedro Alves <palves@redhat.com>
3605 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3606 Pull the single step breakpoints out of the target.
3608 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3610 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3611 * stap-probe.c (compile_probe_arg): Likewise.
3613 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3615 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3616 (elf_compile_to_ax): Likewise.
3617 * infrun.c (insert_exception_resume_from_probe): Likewise.
3618 (check_exception_resume): Remove `objfile' variable.
3619 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3620 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3621 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3622 (compare_entries): Rename to...
3623 (compare_probes): ...this. Adjust function to work with
3624 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3626 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3628 (print_ui_out_info): Adjust argument to be `struct probe *'.
3629 (info_probes_for_ops): Adjust internal computations to use
3631 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3632 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3633 gen_info_probes_table_values>: Remove `objfile' argument.
3634 (struct probe) <objfile>: New field.
3635 (find_probe_by_pc): Remove `objfile' argument.
3636 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3637 (stap_get_probe_argument_count): Likewise.
3638 (stap_get_arg): Likewise.
3639 (stap_evaluate_probe_argument): Likewise.
3640 (stap_compile_to_ax): Likewise.
3641 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3642 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3643 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3644 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3645 sym_compile_to_ax>: Likewise.
3647 2012-07-18 Terry Guo <terry.guo@arm.com>
3650 * defs.h (GDB_MI_MSG_WIDTH): New.
3651 * ser_base (ser_base_read_error_fd): New function.
3652 (do_ser_base_readchar): Poll error file descriptor as well as
3654 (generic_readchar): Refactor error handling.
3656 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3658 * NEWS: Create a new section for the next release branch.
3659 Rename the section of the current branch, now that it has
3662 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3664 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3665 * version.in: Bump version to 7.5.50.20120718-cvs.
3667 2012-07-17 Keith Seitz <keiths@redhat.com>
3669 * linespec.c (linespec_parse_line_offset): Make parameter
3672 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3675 * f-valprint.c (info_common_command): New variable frame_id.
3676 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3677 * printcmd.c (print_variable_and_value): Extend function comment.
3678 Add comment for invalidated FRAME.
3679 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3680 FI form FRAME_ID after each print_frame_local_vars.
3681 (struct print_variable_and_value_data): Change frame to frame_id.
3682 (do_print_variable_and_value): New variable frame, initialize it from
3683 p->frame_id. Add comment for invalidated FRAME.
3684 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3685 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3686 for invalidated FRAME.
3688 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3689 Pedro Alves <palves@redhat.com>
3691 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3694 2012-07-16 Tom Tromey <tromey@redhat.com>
3696 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3698 2012-07-15 Doug Evans <dje@google.com>
3700 * dwarf2read.c (stmt_list_hash): New struct.
3701 (type_unit_group): Embed "per_cu" member, remove pointer.
3702 New union member "t", move member "tus" into it, all uses updated.
3703 New member "hash", replaces member "line_offset, all uses updated.
3704 (quick_file_names): Replace member "offset" with "hash", all uses
3706 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3707 (hash_file_name_entry, eq_file_name_entry): Call them.
3708 (hash_type_unit_group, eq_type_unit_group): Ditto.
3709 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3710 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3711 (dw2_get_file_names): Update.
3712 (create_type_unit_group): Replace "per_cu" arg with "cu".
3713 All callers updated. Fix "quick" (.gdb_index) handling.
3714 (get_type_unit_group): Replace "per_cu" arg with "cu".
3715 All callers updated.
3716 (build_type_unit_groups): Don't reset tu_stats.
3718 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3719 "tab_cur_size". Change member "tab" to be a htab_t.
3720 (create_filename_seen_cache): Update.
3721 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3722 (filename_seen): Update.
3724 2012-07-13 Doug Evans <dje@google.com>
3726 * symtab.c (filename_seen): Update comment.
3728 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3729 Doug Evans <dje@google.com>
3731 * buildsym.c (end_symtab_1): Split it to ...
3732 (end_symtab_get_static_block): ... this ...
3733 (end_symtab_from_static_block): ... and this function.
3734 (end_symtab, end_expandable_symtab): Call them.
3735 * buildsym.h (end_symtab_get_static_block)
3736 (end_symtab_from_static_block): New declarations.
3737 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3738 Set its valid CU ranges.
3740 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3743 DW_OP_GNU_parameter_ref.
3745 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3747 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3748 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3750 2012-07-13 Doug Evans <dje@google.com>
3752 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3753 (filename_seen_cache): New struct.
3754 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3755 (create_filename_seen_cache): New function.
3756 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3757 (filename_seen): Delete arg "first". New arg "cache". All callers
3759 (output_source_filename_data): New struct.
3760 (output_source_filename): Delete arg "first". New arg "data".
3761 All callers updated.
3762 (sources_info): Delete local "first". New locals "data", "cleanups".
3763 Rewrite to use filename_seen_cache.
3764 (add_partial_filename_data): Delete member "first". New member
3765 "filename_seen_cache". All uses updated.
3766 (make_source_files_completion_list): Rewrite to use
3767 filename_seen_cache.
3769 2012-07-12 Doug Evans <dje@google.com>
3771 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3773 2012-07-10 Doug Evans <dje@google.com>
3776 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3777 all_type_unit_groups, type_unit_groups, tu_stats.
3778 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3779 All uses updated. Add type_unit_group to union "s".
3780 (type_unit_group): New struct.
3781 (IS_TYPE_UNIT_GROUP): New macro.
3782 (abbrev_table): Delete unused member "section".
3783 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3784 (dw2_get_cu): Assert not used with type_unit_group.
3785 (dw2_get_primary_cu): New function.
3786 (dw2_build_type_unit_groups_reader): New function.
3787 (dw2_build_type_unit_groups): New function.
3788 (dw2_get_file_names): Assert not called on type units.
3789 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3790 Redo loop to iterate over type unit groups instead of type units.
3791 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3792 (read_abbrev_offset): New function.
3793 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3795 (create_partial_symtab): New function.
3796 (process_psymtab_comp_unit_reader): Assert not used with type units.
3797 Call create_partial_symtab.
3798 (process_psymtab_type_unit): Delete.
3799 (hash_type_unit_group, eq_type_unit_group): New functions.
3800 (allocate_type_unit_groups_table): New function.
3801 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3802 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3803 (create_type_unit_group, get_type_unit_group): New functions.
3804 (tu_abbrev_offset): New struct.
3805 (sort_tu_by_abbrev_offset): New function.
3806 (add_type_unit_group_to_table): New function.
3807 (build_type_unit_groups): New function.
3808 (build_type_psymtabs_reader): New function.
3809 (build_type_psymtab_dependencies): New function.
3810 (build_type_psymtabs): Rewrite.
3811 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3812 is seen in a type unit.
3813 (process_queue): Move symtab expansion debugging printfs here.
3814 Call process_full_type_unit for type units.
3815 (compute_symtab_includes): Assert not called for type units.
3816 (process_cu_includes): Don't call compute_symtab_includes for
3818 (process_full_type_unit): New function.
3819 (process_imported_unit_die): Flag an error if called for type units.
3820 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3821 updated. Assert not called for type units.
3822 (read_file_scope): Call dwarf2_start_symtab.
3823 (setup_type_unit_groups): New function.
3824 (read_type_unit_scope): Rewrite.
3825 (abbrev_table_read_table): Initialize abbrev_table->offset.
3826 (abbrev_table_free_cleanup): New function.
3827 (dwarf2_start_symtab): New function.
3828 (load_full_type_unit): Assert not called for type unit groups.
3829 * buildsym.c (finish_block_internal): New arg "expandable".
3830 All callers updated.
3831 (start_symtab): Move most contents to ...
3832 (restart_symtab): ... here. New function.
3833 (reset_symtab_globals): New function.
3834 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3835 Call reset_symtab_globals.
3836 (end_symtab, end_expandable_symtab): New functions.
3837 (set_missing_symtab, augment_type_symtab): New functions.
3838 * buildsym.h (end_expandable_symtab): Declare.
3839 (augment_type_symtab, restart_symtab): Declare.
3840 * psympriv.h (struct partial_symtab): New member "anonymous".
3841 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3843 (read_psymtabs_with_filename): Ditto.
3844 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3845 (expand_symtabs_matching_via_partial): Ditto.
3846 (dump_psymtab): Update.
3847 * dictionary.c (dict_add_pending): New function.
3848 * dictionary.h (dict_add_pending): Declare.
3850 2012-07-09 Doug Evans <dje@google.com>
3852 * buildsym.c (start_subfile): Remove unnecessary check for
3855 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3857 * dwarf2read.c (load_full_type_unit): Simplify.
3859 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3860 to struct signatured_type **. All uses updated.
3862 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3863 All callers updated.
3865 2012-07-09 Tom Tromey <tromey@redhat.com>
3867 * c-exp.y (check_parameter_typelist): New function.
3868 (parameter_typelist): Call it.
3869 * eval.c (make_params): Handle '(void)' case.
3870 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3873 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3875 * common/linux-ptrace.c: Include gdb_assert.h.
3876 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3877 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3879 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3881 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3882 * linux-nat.c (linux_child_post_attach)
3883 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3885 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3887 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3888 nptl <2.7 bug workaround for core files.
3890 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3892 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3894 (save_siginfo): Remove.
3895 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3897 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3898 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3899 * linux-nat.h (struct lwp_info): Remove field siginfo.
3901 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3903 Code cleanup for the next patch.
3904 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3905 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3907 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3908 (ia64_linux_stopped_data_address):
3909 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3911 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3912 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3913 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3916 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3919 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3920 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3922 2012-07-06 Tom Tromey <tromey@redhat.com>
3924 * c-exp.y (DOTDOTDOT): New token.
3925 (func_mod, exp): Use parameter_typelist.
3926 (parameter_typelist): New production.
3927 (tokentab3): Add "..." token.
3928 * eval.c (make_params): Handle varargs.
3929 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3932 2012-07-06 Tom Tromey <tromey@redhat.com>
3935 * c-exp.y (%union) <tvec>: Change type.
3936 (func_mod): Now uses <tvec> type.
3937 (exp): Update for tvec change.
3938 (direct_abs_decl): Push the typelist.
3939 (func_mod): Return a typelist.
3940 (nonempty_typelist): Update for tvec change.
3941 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3942 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3943 * parse.c (pop_type_list): New function.
3944 (push_typelist): New function.
3945 (follow_types): Handle tp_function_with_arguments.
3946 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3947 (enum type_pieces) <tp_function_with_arguments>: New constant.
3948 (union type_stack_elt) <typelist_val>: New field.
3949 (push_typelist): Declare.
3951 2012-07-06 Tom Tromey <tromey@redhat.com>
3953 * c-exp.y (%union) <type_stack>: New field.
3954 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3955 (ptr_operator_ts): New production.
3957 * parse.c (type_stack_reserve): New function.
3958 (check_type_stack_depth): Use it.
3959 (pop_type_stack, append_type_stack, push_type_stack)
3960 (get_type_stack, type_stack_cleanup): New functions.
3961 (follow_types): Handle tp_type_stack.
3962 (_initialize_parse): Simplify initialization.
3963 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3965 (union type_stack_elt) <stack_val>: New field.
3966 (get_type_stack, append_type_stack, push_type_stack)
3967 (type_stack_cleanup): Declare.
3969 2012-07-06 Tom Tromey <tromey@redhat.com>
3971 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3973 (struct type_stack): New.
3974 * parse.c (type_stack, type_stack_size, type_stack_depth):
3976 (type_stack): New global.
3977 (parse_exp_in_context, check_type_stack_depth)
3978 (insert_into_type_stack, insert_type, push_type, push_type_int)
3979 (insert_type_address_space, pop_type, pop_type_int)
3980 (_initialize_parse): Update.
3982 2012-07-06 Tom Tromey <tromey@redhat.com>
3984 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3987 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3989 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3991 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3992 Jan Kratochvil <jan.kratochvil@redhat.com>
3994 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3995 alloca with xmalloc/xfree.
3997 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3999 * MAINTAINERS (Write After Approval): Add myself to the list.
4001 2012-07-05 Doug Evans <dje@google.com>
4003 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4005 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4007 * ax-gdb.c (cli/cli-utils.h): New include.
4008 (linespec.h): Ditto.
4009 (agent_eval_command_one): New function.
4010 (agent_command_1): Ditto.
4011 (agent_command): Call function agent_command_1.
4012 (agent_eval_command): Ditto.
4013 (_initialize_ax_gdb): Change help for "maint agent"
4014 and "maint agent-eval".
4016 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4018 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4019 * cli/cli-utils.c (check_for_argument): New function.
4020 * cli/cli-utils.h (check_for_argument): Ditto.
4022 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4024 * NEWS: Mention x32 ABI support.
4026 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4028 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4029 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4031 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4032 and pc_regnum_from_eax to -1. Update SP regnum from
4033 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4036 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4039 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4041 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4042 * dwarf2expr.h: Include gdbtypes.h.
4043 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4044 these forward declarations.
4045 (cu_offset, sect_offset): Move these ...
4046 * gdbtypes.h: Remove include dwarf2expr.h.
4047 (cu_offset, sect_offset): ... here.
4049 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4051 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4052 (amd64_linux_sigtramp_code): This.
4053 (amd64_x32_linux_sigtramp_code): New.
4054 (LINUX_SIGTRAMP_LEN): Updated.
4055 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4057 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4059 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4061 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4063 * config.in: Regenerate.
4064 * configure: Regenerate.
4065 * configure.ac: Remove check for gnu/libc-version.h.
4066 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4068 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4069 variables libc_version, libc_major and libc_minor. Replace sscanf by
4070 inferior_has_bug. Extend the comment.
4072 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4074 * linux-thread-db.c (inferior_has_bug): New function.
4075 (thread_db_find_new_threads_silently): Return boolean as checked by
4076 inferior_has_bug, describe it in the comments.
4077 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4078 earlier. Abort the initialization if it returned non-zero.
4079 (thread_db_new_objfile): Exclude debug files.
4080 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4083 2012-07-02 Doug Evans <dje@google.com>
4085 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4086 related to queue management.
4088 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4089 instead of "debug dwarf2-die" in debugging printfs.
4090 (create_debug_info_hash_table_reader): Ditto.
4091 (create_debug_info_hash_table): Ditto.
4092 (init_dwo_file): Ditto.
4093 (init_cutu_and_read_dies): Add debugging printf.
4094 (init_cutu_and_read_dies_no_follow): Ditto.
4095 (process_psymtab_comp_unit_reader): Ditto.
4097 2012-07-02 Stan Shebs <stan@codesourcery.com>
4099 Add target-side support for dynamic printf.
4100 * NEWS: Mention the additional style.
4101 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4102 (struct bp_location): New field cmd_bytecode.
4103 * breakpoint.c: Include format.h.
4104 (disconnected_dprintf): New global.
4105 (parse_cmd_to_aexpr): New function.
4106 (build_target_command_list): New function.
4107 (insert_bp_location): Call it.
4108 (remove_breakpoints_pid): Skip dprintf breakpoints.
4109 (print_one_breakpoint_location): Ditto.
4110 (dprintf_style_agent): New global.
4111 (dprintf_style_enums): Add dprintf_style_agent.
4112 (update_dprintf_command_list): Add agent case.
4113 (agent_printf_command): New function.
4114 (_initialize_breakpoint): Add new commands.
4115 * common/ax.def (printf): New bytecode.
4116 * ax.h (ax_string): Declare.
4117 * ax-gdb.h (gen_printf): Declare.
4118 * ax-gdb.c: Include cli-utils.h, format.h.
4119 (gen_printf): New function.
4120 (maint_agent_print_command): New function.
4121 (_initialize_ax_gdb): Add maint agent-printf command.
4122 * ax-general.c (ax_string): New function.
4123 (ax_print): Add printf disassembly.
4124 * Makefile.in (SFILES): Add format.c
4125 (COMMON_OBS): Add format.o.
4126 * common/format.h: New file.
4127 * common/format.c: New file.
4128 * printcmd.c: Include format.h.
4129 (ui_printf): Call parse_format_string.
4130 * remote.c (remote_state): New field breakpoint_commands.
4131 (PACKET_BreakpointCommands): New enum.
4132 (remote_breakpoint_commands_feature): New function.
4133 (remote_protocol_features): Add new BreakpointCommands entry.
4134 (remote_can_run_breakpoint_commands): New function.
4135 (remote_add_target_side_commands): New function.
4136 (remote_insert_breakpoint): Call it.
4137 (remote_insert_hw_breakpoint): Ditto.
4138 (_initialize_remote): Add new packet configuration for
4139 target-side breakpoint commands.
4140 * target.h (struct target_ops): New field
4141 to_can_run_breakpoint_commands.
4142 (target_can_run_breakpoint_commands): New macro.
4143 * target.c (update_current_target): Handle
4144 to_can_run_breakpoint_commands.
4146 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 Execute -ix and -iex only after system and user gdbinit files.
4149 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4150 processing down after gdbinit files.
4152 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 Add fnmatch-gnu module.
4155 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4156 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4157 * gnulib/aclocal.m4: Regenerate.
4158 * gnulib/config.in: Regenerate.
4159 * gnulib/configure: Regenerate.
4160 * gnulib/import/dummy.c: Remove.
4161 * gnulib/import/Makefile.am: Regenerate.
4162 * gnulib/import/Makefile.in: Likewise.
4163 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4164 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4165 * gnulib/import/alloca.c: New file.
4166 * gnulib/import/alloca.in.h: Likewise.
4167 * gnulib/import/config.charset: Likewise.
4168 * gnulib/import/fnmatch.c: Likewise.
4169 * gnulib/import/fnmatch.in.h: Likewise.
4170 * gnulib/import/fnmatch_loop.c: Likewise.
4171 * gnulib/import/localcharset.c: Likewise.
4172 * gnulib/import/localcharset.h: Likewise.
4173 * gnulib/import/m4/alloca.m4: Likewise.
4174 * gnulib/import/m4/codeset.m4: Likewise.
4175 * gnulib/import/m4/configmake.m4: Likewise.
4176 * gnulib/import/m4/fcntl-o.m4: Likewise.
4177 * gnulib/import/m4/fnmatch.m4: Likewise.
4178 * gnulib/import/m4/glibc21.m4: Likewise.
4179 * gnulib/import/m4/localcharset.m4: Likewise.
4180 * gnulib/import/m4/locale-fr.m4: Likewise.
4181 * gnulib/import/m4/locale-ja.m4: Likewise.
4182 * gnulib/import/m4/locale-zh.m4: Likewise.
4183 * gnulib/import/m4/mbrtowc.m4: Likewise.
4184 * gnulib/import/m4/mbsinit.m4: Likewise.
4185 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4186 * gnulib/import/m4/mbstate_t.m4: Likewise.
4187 * gnulib/import/m4/stdbool.m4: Likewise.
4188 * gnulib/import/m4/wchar_h.m4: Likewise.
4189 * gnulib/import/m4/wctype_h.m4: Likewise.
4190 * gnulib/import/m4/wint_t.m4: Likewise.
4191 * gnulib/import/mbrtowc.c: Likewise.
4192 * gnulib/import/mbsinit.c: Likewise.
4193 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4194 * gnulib/import/mbsrtowcs-state.c: Likewise.
4195 * gnulib/import/mbsrtowcs.c: Likewise.
4196 * gnulib/import/ref-add.sin: Likewise.
4197 * gnulib/import/ref-del.sin: Likewise.
4198 * gnulib/import/stdbool.in.h: Likewise.
4199 * gnulib/import/streq.h: Likewise.
4200 * gnulib/import/strnlen1.c: Likewise.
4201 * gnulib/import/strnlen1.h: Likewise.
4202 * gnulib/import/verify.h: Likewise.
4203 * gnulib/import/wchar.in.h: Likewise.
4204 * gnulib/import/wctype.in.h: Likewise.
4206 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4208 Support shell wildcards for 'set auto-load safe-path'.
4209 * auto-load.c: Include fnmatch.h.
4210 (filename_is_in_dir): Rename to ...
4211 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4212 it. Update function comment. Rename dir_len to pattern_len. New
4213 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4214 messages. Use gdb_filename_fnmatch.
4215 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4217 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4218 * defs.h (gdb_filename_fnmatch): New declaration.
4219 * utils.c: Include fnmatch.h.
4220 (gdb_filename_fnmatch): New function.
4222 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4224 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4225 `-probe' and `-probe-stap' options.
4227 2012-07-01 Yao Qi <yao@codesourcery.com>
4229 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4230 always_inserted_off, and always_inserted_enums.
4231 Change always_inserted_mode's type to 'enum auto_boolean'.
4232 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4234 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4235 of add_setshow_enum_cmd.
4236 * infrun.c: Remove can_use_displaced_stepping_auto,
4237 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4238 can_use_displaced_stepping_enum.
4239 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4240 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4241 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4242 add_setshow_enum_cmd.
4244 2012-06-30 Doug Evans <dje@google.com>
4246 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4247 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4248 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4250 2012-06-29 Doug Evans <dje@google.com>
4252 * linespec.c: #include "stack.h".
4253 (decode_line_with_current_source): Moved here from symtab.c and
4254 renamed from decode_line_spec. All callers updated.
4255 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4256 renamed from decode_line_spec_1. All callers updated.
4257 * linespec.h (decode_line_with_current_source): Move declaration here
4258 from symtab.h and renamed from decode_line_spec.
4259 (decode_line_with_last_displayed): Move declaration here from symtab.h
4260 and renamed from decode_line_spec_1.
4261 * macrocmd.c: #include "linespec.h".
4262 * symtab.c: Remove #include "linespec.h".
4264 2012-06-28 Doug Evans <dje@google.com>
4266 * dwarf2read.c (get_cu_length): New function.
4267 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4268 (create_debug_types_hash_table): Ditto.
4269 (init_cutu_and_read_dies): Ditto.
4270 (init_cutu_and_read_dies_no_follow): Ditto.
4272 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4274 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4275 (struct abbrev_table): Define.
4276 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4278 (init_cutu_and_read_dies): Update.
4279 (abbrev_table_alloc_abbrev): New function. Replaces
4280 dwarf_alloc_abbrev. All callers updated.
4281 (abbrev_table_add_abbrev): New function.
4282 (abbrev_table_lookup_abbrev): New function. Replaces
4283 dwarf2_lookup_abbrev. All callers updated.
4284 (abbrev_table_read_table): New function. Contents moved here from
4285 dwarf2_read_abbrevs.
4286 (dwarf2_read_abbrevs): Call it.
4287 (abbrev_table_free): New function.
4288 (dwarf2_free_abbrev_table): Call it.
4290 2012-06-28 Stan Shebs <stan@codesourcery.com>
4292 * osdata.c (info_osdata_command): Filter out "Title" columns
4294 * common/linux-osdata.c (struct osdata_type): Add title field.
4295 (osdata_table): Add titles to each entry.
4296 (linux_command_xfer_osdata): Add a column for title data.
4298 2012-06-28 Stan Shebs <stan@codesourcery.com>
4300 Make logging work for MI.
4302 * interps.h (interp_set_logging_ftype): New typedef.
4303 (struct interp_procs): New field set_logging_proc.
4304 (current_interp_set_logging): Declare.
4305 * interps.c (current_interp_set_logging): New function.
4306 * cli/cli-logging.c: Include interps.h.
4307 (set_logging_redirect): Call current_interp_set_logging.
4308 (pop_output_files): Ditto.
4309 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4310 * mi/mi-console.h (mi_console_set_raw): Declare.
4311 * mi/mi-console.c (mi_console_set_raw): New function.
4312 * mi/mi-interp.c (saved_raw_stdout): New global.
4313 (mi_set_logging): New function.
4314 (_initialize_mi_interp): Add it to interp procs.
4316 2012-06-28 Doug Evans <dje@google.com>
4318 * symtab.c (lookup_symbol_aux_objfile): Use
4319 ALL_OBJFILE_PRIMARY_SYMTABS.
4321 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4323 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4325 * common/buffer.c: Include inttypes.h and stdint.h.
4326 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4328 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4329 Pedro Alves <palves@redhat.com>
4331 * gdbthread.h (ALL_THREADS): New macro.
4332 (thread_list): Declare.
4333 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4334 going, but instead fall through to the stepping handling.
4335 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4336 the passed in signal. Adjust debug output.
4337 (resume_callback): Rename to ...
4338 (linux_nat_resume_callback): ... this. Pass the thread's last
4339 stop signal, if in "pass" state.
4340 (linux_nat_resume): Adjust to rename.
4341 (stop_wait_callback): New assertion. Don't respawn signals;
4342 instead let the LWP remain with SIGNALLED set.
4343 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4344 * remote.c (append_pending_thread_resumptions): New.
4345 (remote_vcont_resume): Call it.
4346 * target.h (target_resume): Extend comment.
4348 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4350 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4352 2012-06-27 Doug Evans <dje@google.com>
4354 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4355 Delete have_addr_base, unused. All uses updated.
4356 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4357 (dwarf2_get_pc_bounds): Add ranges_base.
4358 (dwarf2_record_block_ranges): Ditto.
4360 2012-06-27 Tom Tromey <tromey@redhat.com>
4363 * varobj.c (varobj_create): Update.
4364 (varobj_set_value): Update.
4365 * tracepoint.c (validate_actionline): Update.
4366 (encode_actions_1): Update.
4367 * parse.c (parse_exp_1): Add 'pc' argument.
4368 (parse_exp_in_context): Add 'pc' argument. Change how
4369 expression_context_pc is set.
4370 (parse_expression): Update.
4371 (parse_field_expression): Update.
4372 * expression.h (parse_exp_1): Update.
4373 * eval.c (parse_to_comma_and_eval): Update.
4374 * breakpoint.c (set_breakpoint_condition): Update.
4375 (update_watchpoint): Update.
4376 (init_breakpoint_sal): Update
4377 (find_condition_and_thread): Update.
4378 (watch_command_1): Update.
4379 (update_breakpoint_locations): Update.
4380 * ada-lang.c (ada_read_renaming_var_value): Update.
4381 (create_excep_cond_exprs): Update.
4383 2012-06-27 Doug Evans <dje@google.com>
4385 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4388 2012-06-26 Doug Evans <dje@google.com>
4390 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4392 (error_check_comp_unit_head): New arg abbrev_section. All callers
4394 (read_and_check_comp_unit_head): Ditto.
4395 (read_and_check_type_unit_head): Ditto.
4397 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4399 New attribute 'last' for gdb.Symtab_and_line.
4400 * NEWS (Python Scripting): Add entry about the new attribute.
4401 * python/py-symtab.c (salpy_get_last): New function which
4402 implements the get method for the 'last' attribute of
4403 gdb.Symtab_and_line.
4404 (sal_object_getset): Add entry for the 'last' attribute.
4406 2012-06-26 Doug Evans <dje@google.com>
4408 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4409 (dwo_sections): Add macinfo, macro.
4410 (dwarf2_locate_dwo_sections): Watch for macro sections.
4411 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4412 All callers updated. Handle DWO files.
4414 * NEWS: Mention new options "set debug dwarf2-read" and
4415 "set debug symtab-create".
4416 * dwarf2read.c (dwarf2_read_debug): New static global.
4417 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4418 (process_queue): Ditto.
4419 (process_full_comp_unit): Ditto.
4420 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4421 * elfread.c (elf_symfile_read): Add debugging printf.
4422 * minsyms.c (install_minimal_symbols): Ditto.
4423 * psymtab.c (allocate_psymtab): Ditto.
4424 * symfile.c (allocate_symtab): Ditto.
4425 * symtab.c (symtab_create_debug): New global.
4426 (_initialize_symtab): Add new option "set debug symtab-create".
4427 * symtab.h (symtab_create_debug): Declare.
4429 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4430 (lookup_dwo_type_unit): Ditto.
4432 2012-06-26 Roland McGrath <roland@hack.frob.com>
4433 H.J. Lu <hongjiu.lu@intel.com>
4435 * amd64-linux-nat.c: Include <sys/user.h>.
4436 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4437 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4438 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4440 * configure.ac: Check if the fs_base and gs_base members of
4441 `struct user_regs_struct' exist.
4442 * config.in: Regenerated.
4443 * configure: Likewise.
4445 2012-06-25 Michael Eager <eager@eagercon.com>
4448 * python/python.c (gdbpy_write): Check for interrupted output.
4450 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4452 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4453 register as a stack alignment in ARM mode.
4455 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4457 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4458 * gnulib/config.in: Regenerate.
4459 * gnulib/configure: Likewise.
4460 * gnulib/import/m4/extensions.m4: Update it.
4461 * gnulib/import/m4/gnulib-common.m4: Likewise.
4462 * gnulib/import/m4/memmem.m4: Likewise.
4463 * gnulib/import/m4/mmap-anon.m4: Likewise.
4464 * gnulib/import/m4/multiarch.m4: Likewise.
4465 * gnulib/import/stdint.in.h: Likewise.
4467 2012-06-24 Yao Qi <yao@codesourcery.com>
4469 * corefile.c (write_memory_with_notification): New.
4470 * gdbcore.h: Declare write_memory_with_notification.
4471 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4472 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4473 * valops.c (value_assign): Likewise.
4474 * python/py-inferior.c (infpy_write_memory): Call
4475 'write_memory_with_notification'.
4477 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4479 * cc-with-index.sh: Use also -ex "set auto-load no".
4481 2012-06-23 Doug Evans <dje@google.com>
4484 * NEWS: Document additions to .gdb_index.
4485 * dwarf2read.c: #include "gdb/gdb-index.h".
4486 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4487 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4488 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4489 (dwarf2_read_index): Recognize version 7.
4490 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4491 block_kind, domain): All callers updated.
4492 (dw2_find_symbol_file): Handle new index CU values.
4493 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4494 (add_index_entry): New args is_static, kind. All callers updated.
4495 (offset_type_compare, uniquify_cu_indices): New functions
4496 (symbol_kind): New function.
4497 (write_psymtabs_to_index): Remove duplicate CU values.
4498 (write_psymtabs_to_index): Write .gdb_index version 7.
4500 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4502 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4503 * configure: Regenerate.
4505 2012-06-20 Yao Qi <yao@codesourcery.com>
4507 * python/py-inferior.c: Update comments of infpy_read_memory
4508 and infpy_write_memory.
4510 2012-06-19 Tom Tromey <tromey@redhat.com>
4513 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4514 (push_type_address_space): Remove.
4515 * parse.c (insert_into_type_stack): New function.
4516 (insert_type): Likewise.
4517 (insert_type_address_space): Rename from push_type_address_space.
4518 Insert tp_space_identifier.
4519 * c-exp.y (ptr_operator): New production.
4520 (abs_decl): Use ptr_operator.
4521 (space_identifier): Call insert_type_address_space.
4522 (ptype): Don't use const_or_volatile_or_space_identifier.
4523 (const_or_volatile_noopt): Call insert_type.
4524 (conversion_type_id, conversion_declarator): New productions.
4525 (operator): Use conversion_type_id.
4527 2012-06-18 Doug Evans <dje@google.com>
4529 * symtab.h (minimal_symbol): New member created_by_gdb.
4530 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4532 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4533 (search_symbols): Call it instead of lookup_symbol.
4534 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4536 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4537 Adjust address for DW_OP_GNU_addr_index.
4538 * dwarf2expr.h (dwarf_expr_context): Update comment.
4539 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4540 all callers updated. Handle TLS vars described with
4541 DW_OP_GNU_const_index.
4542 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4543 and DW_OP_GNU_const_index.
4544 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4546 * block.c (find_block_in_blockvector): Make explicit the fact that we
4547 ignore GLOBAL_BLOCK.
4549 2012-06-18 Tom Tromey <tromey@redhat.com>
4551 * c-exp.y (operator): Remove trailing space after "delete" and
4554 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4555 Jan Kratochvil <jan.kratochvil@redhat.com>
4557 Switch i386 and derived targets to ON_STACK.
4558 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4559 (amd64_dicos_init_abi): Remove its installment.
4560 * dicos-tdep.c (dicos_init_abi): Remove the
4561 set_gdbarch_call_dummy_location call. Update the comment here.
4562 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4563 (i386_dicos_init_abi): Remove its installment.
4564 * i386-tdep.c (i386_push_dummy_code): New function.
4565 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4566 i386_push_dummy_code.
4568 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4570 Remove stale dummy frames.
4571 * breakpoint.c: Include dummy-frame.h.
4572 (longjmp_breakpoint_ops): New variable.
4573 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4574 bp_longjmp_call_dummy.
4575 (bpstat_what, bptype_string, print_one_breakpoint_location)
4576 (init_bp_location): Support bp_longjmp_call_dummy.
4577 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4578 (set_longjmp_breakpoint_for_call_dummy)
4579 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4581 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4582 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4583 FIXME comment and extend the other comment for bp_call_dummy.
4584 (set_longjmp_breakpoint_for_call_dummy)
4585 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4586 * dummy-frame.c: Include gdbthread.h.
4587 (pop_dummy_frame_bpt): New function.
4588 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4589 (dummy_frame_discard): New function.
4590 (cleanup_dummy_frames): Update the comment about longjmps.
4591 * dummy-frame.h (dummy_frame_discard): New declaration.
4592 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4593 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4594 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4595 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4596 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4597 keep_going if IS_LONGJMP and there is no other reason to stop.
4599 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4601 * remote-sim.c (sim_command_completer): Initialize
4604 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4607 * dwarf2loc.c (call_site_parameter_matches): Support
4608 CALL_SITE_PARAMETER_PARAM_OFFSET.
4609 (needs_dwarf_reg_entry_value): Push stub value.
4610 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4611 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4612 * gdbtypes.h (enum call_site_parameter_kind): New item
4613 CALL_SITE_PARAMETER_PARAM_OFFSET.
4614 (struct call_site.parameter.u): New field param_offset.
4616 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4618 Code cleanup: Generalize call_site.parameter key.
4619 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4620 variable dwarf_reg. New variable kind_u. Update parameters to
4621 push_dwarf_reg_entry_value.
4622 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4623 * dwarf2expr.h (enum call_site_parameter_kind)
4624 (union call_site_parameter_u): Forward declarations.
4625 (struct dwarf_expr_context_funcs): Update parameters and their
4626 description for push_dwarf_reg_entry_value.
4627 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4628 * dwarf2loc.c (call_site_parameter_matches): New function.
4629 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4630 description. Use call_site_parameter_matches.
4631 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4632 Update parameters and their description.
4633 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4634 New variable kind_u. Adjust the caller for updated parameters.
4635 (needs_dwarf_reg_entry_value): Update parameters.
4636 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4637 instead of attr. Update for the changed fields of struct
4638 call_site_parameter.
4639 * gdbtypes.h: Include dwarf2expr.h.
4640 (enum call_site_parameter_kind): New.
4641 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4642 fb_offset into new union u.
4644 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4646 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4647 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4650 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4652 * amd64-linux-nat.c (compat_x32_clock_t): New.
4653 (compat_x32_siginfo_t): Likewise.
4654 (compat_x32_siginfo_from_siginfo): Likewise.
4655 (siginfo_from_compat_x32_siginfo): Likewise.
4656 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4657 and siginfo_from_compat_x32_siginfo for x32.
4659 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4661 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4663 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4665 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4666 instead of gdbarch_ptr_bit.
4667 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4668 (amd64_supply_native_gregset): Likewise.
4669 (amd64_collect_native_gregset): Likewise.
4670 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4671 (amd64_supply_xsave): Likewise.
4672 (amd64_collect_fxsave): Likewise.
4673 (amd64_collect_xsave): Likewise.
4675 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4677 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4678 (amd64_linux_read_description): Check DS segment register for
4681 2012-06-15 Tom Tromey <tromey@redhat.com>
4683 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4684 init_cutu_and_read_dies.
4686 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4688 * MAINTAINERS (Write After Approval): Add myself to the list.
4690 2012-06-15 Tom Tromey <tromey@redhat.com>
4692 * valops.c (value_find_oload_method_list): Now static.
4693 * value.h (value_find_oload_method_list): Don't declare.
4695 2012-06-15 Tom Tromey <tromey@redhat.com>
4697 * valops.c (find_overload_match): Use value_ind.
4699 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4701 * infrun.c (handle_inferior_event): Correct indentation.
4703 2012-06-14 Doug Evans <dje@google.com>
4705 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4706 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4708 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4709 updated. Handle DEBUG_LOC_START_LENGTH.
4710 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4711 (loclist_describe_location): Ditto.
4713 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4716 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4717 after hiding inline functions.
4719 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4721 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4722 _initialize_inf_ttrace.
4724 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4726 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4727 _initialize_hppa_hpux_nat.
4729 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4731 * remote-sim.c (sim_command_completer): Change type of return
4732 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4734 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4735 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4739 stack on a 16-byte boundary.
4741 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4743 * jit.c (finalize_symtab): Set function's return type to 'void' by
4746 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4747 H.J. Lu <hongjiu.lu@intel.com>
4749 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4750 Move bits common to both the classic LP64 and the new x32 ILP32
4752 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4753 (amd64_x32_linux_init_abi): New function.
4754 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4757 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4758 * i386-tdep.c (i386_pseudo_register_name): Make public.
4759 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4760 * amd64-tdep.c (amd64_dword_names): Add "eip".
4761 (amd64_x32_pseudo_register_type): New function
4762 (amd64_x32_init_abi): New function.
4764 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4767 * inferior.h (struct inferior_suspend_state): Comment out.
4768 (struct inferior): Comment out the field suspend.
4769 * infrun.c (struct infcall_suspend_state): Comment out the field
4771 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4774 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4776 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4777 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4778 function comment. Return ERROR for unresolved cases. Implement
4779 returning proper NAME.
4780 (yylex): Accept also NAME from classify_inner_name.
4781 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4782 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4784 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4786 2012-06-13 Tom Tromey <tromey@redhat.com>
4788 * breakpoint.c (condition_completer): New function.
4789 (_initialize_breakpoint): Use it.
4790 * value.c (complete_internalvar): New function.
4791 * value.h (complete_internalvar): Declare.
4793 2012-06-13 Tom Tromey <tromey@redhat.com>
4795 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4796 * breakpoint.c (catch_syscall_completer): Return a VEC.
4797 * cli/cli-cmds.c (complete_command): Update.
4798 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4799 (complete_on_enum): Likewise.
4800 * command.h: Include gdb_vecs.h.
4801 (completer_ftype): Change return type.
4802 (complete_on_cmdlist, complete_on_enum): Likewise.
4803 * completer.c (noop_completer, filename_completer)
4804 (location_completer): Return a VEC.
4805 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4807 (expression_completer, complete_line_internal, complete_line)
4808 (command_completer): Return a VEC.
4809 (gdb_completion_word_break_characters, line_completion_function):
4811 * completer.h: Include gdb_vecs.h.
4812 (complete_line, noop_completer, filename_completer)
4813 (expression_completer, location_completer, command_completer):
4815 * f-lang.c (f_word_break_characters): Return a VEC.
4816 * interps.c (interpreter_completer): Return a VEC.
4817 * language.h (struct language_defn)
4818 <la_make_symbol_completion_list>: Return a VEC.
4819 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4820 * symtab.c (free_completion_list): Take a VEC.
4821 (return_val_size, return_val_index): Remove.
4822 (return_val): Now a VEC.
4823 (completion_list_add_name): Update.
4824 (default_make_symbol_completion_list_break_on)
4825 (default_make_symbol_completion_list, make_symbol_completion_list)
4826 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4828 (add_filename_to_list): Update.
4829 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4831 (maybe_add_partial_symtab_filename): Update.
4832 (make_source_files_completion_list): Return a VEC.
4833 * symtab.h (default_make_symbol_completion_list_break_on)
4834 (default_make_symbol_completion_list, make_symbol_completion_list)
4835 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4836 (make_source_files_completion_list): Update.
4838 2012-06-13 Tom Tromey <tromey@redhat.com>
4840 * breakpoint.c (add_catch_command): Use completer_ftype.
4841 * breakpoint.h: Include command.h.
4842 (add_catch_command): Use completer_ftype.
4843 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4844 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4845 Use completer_ftype.
4846 * command.h (completer_ftype): New typedef.
4847 (set_cmd_completer): Use it.
4848 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4851 2012-06-13 Pedro Alves <palves@redhat.com>
4853 Partial revert of previous change.
4855 * serial.c (scb_base): New global.
4856 (serial_for_fd): New.
4857 (serial_open, serial_fdopen_ops): Link new serial in open serials
4859 (do_serial_close): Unlink serial from the open serials chain.
4861 2012-06-12 Pedro Alves <palves@redhat.com>
4863 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4865 (prepare_for_detach): No longer context switch here in non-stop
4867 (fetch_inferior_event): Ditto.
4868 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4869 to the event thread before removing breakpoints. Switch to the
4870 event thread before inserting breakpoints and resuming.
4871 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4872 event thread before resuming.
4873 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4874 Switch to the event thread before removing breakpoints.
4876 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4878 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4879 special characters correctly for the Windows shells. See
4880 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4882 [!__MINGW32__]: Remove extra double quote character from special
4885 2012-06-11 Stan Shebs <stan@codesourcery.com>
4887 * ui-out.h: Remove #if 0 declarations.
4888 * ui-out.c: Remove #if 0 functions.
4890 2012-06-11 Pedro Alves <palves@redhat.com>
4892 * ser-base.c (run_async_handler_and_reschedule): New.
4893 (fd_event, push_event): Use it.
4894 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4895 reference count to 1.
4896 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4898 (serial_is_open, serial_ref, serial_unref): New.
4899 * serial.h (serial_open): Adjust comment.
4900 (serial_is_open): Declare.
4901 (serial_close): Adjust comment.
4902 (serial_ref, serial_unref) Declare.
4903 (struct serial): New field 'refcnt'.
4905 2012-06-11 Pedro Alves <palves@redhat.com>
4907 Remove #if 0'd "connect" command, and unnecessary associated
4908 refcounting and serial reuse bits.
4910 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4911 * serial.c (last_serial_opened): Delete.
4913 (serial_open): Adjust.
4914 (serial_for_fd): Delete.
4915 (serial_fdopen_ops, do_serial_close): Adjust.
4916 (serial_fdopen_ops): Adjust.
4918 2012-06-11 Pedro Alves <palves@redhat.com>
4920 * serial.c (do_serial_close): Remove early return when SCB is
4923 2012-06-11 Tom Tromey <tromey@redhat.com>
4925 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4927 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4929 Fix regression by the "ambiguous linespec" series.
4930 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4931 get_last_displayed_symtab and get_last_displayed_line and depending
4934 2012-06-11 Tom Tromey <tromey@redhat.com>
4936 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4937 (dw2_find_symbol_file): Use it.
4939 2012-06-11 Michael Eager <eager@eagercon.com>
4941 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4942 * mips-linux-tdep.h (mips_signals): New
4944 2012-06-11 Tom Tromey <tromey@redhat.com>
4946 * infrun.c (handle_inferior_event)
4947 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4949 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4950 exception logic in all cases. Update comments.
4951 (insert_longjmp_resume_breakpoint): Set the exception resume
4954 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4956 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4958 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4960 * valarith.c (binop_types_user_defined_p): Fix a typo.
4962 2012-06-08 Yao Qi <yao@codesourcery.com>
4963 Chung-Lin Tang <cltang@codesourcery.com>
4965 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4966 * arch-utils.h: Declare.
4967 * gdbarch.sh: Add return_in_first_hidden_param_p.
4968 * gdbarch.c, gdbarch.h: Regenerated.
4969 * infcall.c (call_function_by_hand): Call
4970 gdbarch_return_in_first_hidden_param_p instead of
4971 language_pass_by_reference.
4973 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4974 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4975 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4976 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4977 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4978 `cplus_return_struct_by_reference'.
4979 (tic6x_return_value): Handle language cplusplus.
4980 (tic6x_return_in_first_hidden_param_p): New.
4981 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4983 2012-06-07 Doug Evans <dje@google.com>
4985 * dwarf2read.c (dwarf2_cu): Add comment.
4987 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4989 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4991 (mips_eabi_push_dummy_call): Likewise.
4992 (mips_n32n64_push_dummy_call): Likewise.
4993 (mips_o32_push_dummy_call): Likewise.
4994 (mips_o64_push_dummy_call): Likewise.
4996 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4998 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5000 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5002 * mips-tdep.c (mips_pseudo_register_type): Use
5003 mips_float_register_p.
5005 2012-06-06 Pedro Alves <palves@redhat.com>
5007 * infrun.c (handle_inferior_event): Remove calls to
5008 reinit_frame_cache that follow a context_switch call.
5010 2012-06-06 Pedro Alves <palves@redhat.com>
5012 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5013 context_switch and remove stale comment.
5015 2012-06-06 Pedro Alves <palves@redhat.com>
5017 * infrun.c (struct execution_control_state): Remove
5018 `new_thread_event' field.
5019 (handle_inferior_event): Simplify new threads handling; don't
5020 resume the inferior if we find a new thread.
5022 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5024 * NEWS: Document the deprecation of SH's 'regs' command.
5025 * inferior.h (all_registers_info): Add function declaration.
5026 * sh-tdep.c (sh_show_regs): Remove variable.
5027 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5028 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5029 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5030 (sh_show_regs_command): Remove functions.
5031 (sh_gdbarch_init): Don't set sh_show_regs.
5032 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5033 'info all-registers'.
5034 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5035 (sh64_show_regs): Remove functions.
5036 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5038 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5040 * configure.ac: Move development=true below AC_INIT.
5041 * configure: Regenerate.
5043 2012-06-05 Stan Shebs <stan@codesourcery.com>
5045 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5048 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5050 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5051 argument as ssize_t.
5052 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5053 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5054 * target.c (target_read_stack, target_write_memory)
5055 (target_write_raw_memory): Likewise.
5056 * target.h (target_read_stack, target_write_memory)
5057 (target_write_raw_memory): Likewise.
5059 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5061 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5062 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5063 * target.c (target_read_memory): Change LEN to ssize_t.
5064 * target.h (target_read_memory): Change LEN to ssize_t.
5066 2012-06-05 Pedro Alves <palves@redhat.com>
5070 * breakpoint.c (until_break_command): Only fetch the selected
5071 frame after decode_line_1.
5073 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5075 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5076 event breakpoint at _start, __start or main if a program
5077 interpreter is not found.
5079 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5081 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5083 * windows-tdep.c: #include "objfiles.h".
5084 (windows_iterate_over_objfiles_in_search_order): New function.
5085 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5086 iterate_over_objfiles_in_search_order gdbarch method to
5087 windows_iterate_over_objfiles_in_search_order.
5088 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5090 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5092 * gdbarch.sh: Add generation of
5093 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5094 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5095 (iterate_over_objfiles_in_search_order): New gdbarch method.
5096 * gdbarch.h, gdbarch.c: Regenerate.
5097 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5099 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5101 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5102 out of lookup_symbol_aux_symtabs.
5103 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5104 call to lookup_symbol_aux_objfile.
5105 (struct global_sym_lookup_data): New type.
5106 (lookup_symbol_global_iterator_cb): New function.
5107 (lookup_symbol_global): Search for symbol using
5108 gdbarch_iterate_over_objfiles_in_search_order and
5109 lookup_symbol_global_iterator_cb.
5110 * findvar.c (struct minsym_lookup_data): New type.
5111 (minsym_lookup_iterator_cb): New function.
5112 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5113 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5114 and minsym_lookup_iterator_cb.
5116 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5118 Revert the following patch:
5119 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5120 try locating the symbol in the symbol's own objfile first, before
5121 extending the search to all objfiles.
5122 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5123 out of lookup_symbol_aux_symtabs.
5124 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5125 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5126 Do not search EXCLUDE_OBJFILE.
5127 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5128 (lookup_symbol_global): Search for matches in the block's objfile
5129 first, before searching all other objfiles.
5131 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5133 * breakpoint.c (find_condition_and_thread): Stop parsing
5134 as soon as the first invalid keyword is found.
5136 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5138 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5140 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5142 * config/djgpp/djcheck.sh: Add copyright header.
5144 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5146 * copyright.py (update_files, main): Fix path to update-copyright
5149 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5151 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5152 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5153 for which a reminder to update by hand is printed.
5155 2012-06-04 Doug Evans <dje@google.com>
5157 * buildsym.c (make_blockvector): Add comment.
5159 2012-06-04 Pedro Alves <palves@redhat.com>
5161 * arch-utils.c (default_gdb_signal_from_target): Delete.
5162 * arch-utils.h (default_gdb_signal_from_target): Delete.
5163 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5164 gdbarch_gdb_signal_from_target_p.
5165 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5167 * gdbarch.h: Regenerate.
5168 * gdbarch.c: Regenerate.
5170 2012-06-04 Pedro Alves <palves@redhat.com>
5172 * gdbarch.sh (gdb_signal_from_target): Mention that the
5173 implementation of the method must be host independent.
5174 * gdbarch.h: Regenerate.
5176 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5178 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5180 (target_read_memory_bfd): New function.
5181 (symbol_file_add_from_memory): Use it.
5183 2012-06-03 Doug Evans <dje@google.com>
5185 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5187 (basic_lookup_transparent_type): Ditto.
5189 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5190 (ALL_PRIMARY_SYMTABS): Use it.
5191 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5192 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5193 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5194 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5195 (basic_lookup_transparent_type): Ditto.
5197 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5199 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5200 it to optimize resolution of demangled name.
5202 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 * configure.ac (development): Define new variable.
5205 Call AC_CHECK_LIB for mcheck if $development.
5206 (ERROR_ON_WARNING): Enable it by default only if $development.
5207 * config.in: Regenerate.
5208 * configure: Regenerate.
5210 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5212 * target.c (target_read_memory): Make LEN argument as size_t.
5213 * target.h (target_read_memory): Likewise.
5215 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5217 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5219 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5221 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5222 BookE interface for PowerPC server processors if not available
5223 in the Linux Kernel.
5225 2012-05-31 Keith Seitz <keiths@redhat.com>
5227 * linespec.c (decode_objc): Add cleanup to free
5229 (find_linespec_symbols): Add cleanup to free CLASSES.
5230 * symfile.c (find_separate_debug_file_by_debuglink): Add
5231 cleanup to free DEBUGLINK.
5232 * ui-out.c (clear_header_list): No need to check if
5233 HEADER_NEXT.COLHDR is NULL.
5234 Free HEADER_NEXT.COL_NAME.
5236 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5238 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5241 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5243 * configure.host (gdb_host_cpu): Handle tilegx*.
5244 (gdb_host): Handle tilegx-*-linux*.
5245 * tilegx-linux-nat.c: New file.
5246 * config/tilegx/linux.mh: New file.
5248 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5250 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5251 tilegx-linux-tdep.o.
5252 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5253 tilegx-linux-tdep.c.
5254 * configure.tgt: Handle tilegx-*-linux*.
5255 * tilegx-tdep.h: New file.
5256 * tilegx-tdep.c: New file.
5257 * tilegx-linux-tdep.c: New file.
5258 * regformats/reg-tilegx.dat: New file.
5260 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5262 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5263 accounting of hw watchpoints on ppc.
5265 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5267 * source.c (openp): Expand tilde in path entries.
5269 2012-05-29 Doug Evans <dje@google.com>
5271 * buildsym.c (block_compar): Fix comment.
5272 (end_symtab): Fix and clarify some comments.
5274 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5275 cleanup_undefined_types.
5276 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5277 All callers updated.
5279 2012-05-29 Tom Tromey <tromey@redhat.com>
5281 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5283 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5284 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5286 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5289 2012-05-29 Tristan Gingold <gingold@adacore.com>
5291 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5292 (struct darwin_info): ... New struct.
5293 (solib_darwin_pspace_data): New variable.
5294 (darwin_pspace_data_cleanup): New function.
5295 (get_darwin_info): Likewise.
5296 (darwin_dyld_version_ok, darwin_load_image_infos)
5297 (darwin_solib_get_all_image_info_addr_at_init)
5298 (darwin_solib_read_all_image_info_addr): Add info argument.
5300 (darwin_current_sos): Use per pspace structure.
5301 (darwin_solib_create_inferior_hook): Likewise.
5302 (darwin_clear_solib): Likewise.
5303 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5305 2012-05-28 Pedro Alves <palves@redhat.com>
5307 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5308 block that uses them. Clear ecss before handling each event.
5310 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5312 * solib-svr4.c (svr4_current_sos): New comment on
5313 svr4_current_sos_via_xfer_libraries fall back.
5315 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5317 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5318 it as a fallback for TYPE_IS_OPAQUE.
5319 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5320 symbols for lookup_symbol.
5322 2012-05-24 John Steele Scott <toojays@toojays.net>
5324 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5325 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5326 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5327 (check_producer): ... this new function, which also checks for ICC
5328 and caches the result.
5329 (producer_is_icc): New function.
5330 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5333 2012-05-24 Pedro Alves <palves@redhat.com>
5337 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5338 (default_gdb_signal_to_target): ... this. Add comment.
5339 (default_gdb_signal_from_host): Rename to ...
5340 (default_gdb_signal_from_target): ... this. Add comment.
5341 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5342 (default_gdb_signal_to_target): ... this.
5343 (default_gdb_signal_from_host): Rename to ...
5344 (default_gdb_signal_from_target): ... this.
5345 * corelow.c (core_open): Adjust to naming change. Replace comment.
5346 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5347 (gdb_signal_from_target): ... this. Adjust to
5348 default_gdb_signal_from_host naming change. Extend comment.
5349 (gdb_signal_to_host): Rename to ...
5350 (gdb_signal_to_target): ... this. Adjust to
5351 default_gdb_signal_to_host naming change.
5352 * gdbarch.h, gdbarch.c: Renegerate.
5354 2012-05-24 Pedro Alves <palves@redhat.com>
5358 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5360 2012-05-24 Pedro Alves <palves@redhat.com>
5364 Replace target_signal with gdb_signal throughout.
5366 2012-05-24 Pedro Alves <palves@redhat.com>
5370 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5371 string, instead of reusing the va_list argument.
5373 2012-05-24 Tom Tromey <tromey@redhat.com>
5375 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5378 2012-05-23 Doug Evans <dje@google.com>
5380 * symtab.c (search_symbols): Formatting fixes.
5381 (print_symbol_info): Formatting fixes.
5383 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5384 int64_t change to leb128 API.
5385 (read_encoded_value, decode_frame_entry_1): Ditto.
5386 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5387 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5388 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5389 (execute_stack_op): Ditto.
5390 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5391 (safe_read_uleb128, safe_read_sleb128): Ditto.
5392 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5393 (dwarf2_compile_expr_to_ax): Ditto.
5394 (locexpr_describe_location_piece): Ditto.
5395 (disassemble_dwarf_expression): Ditto.
5396 (locexpr_describe_location_1): Ditto.
5398 2012-05-23 Stan Shebs <stan@codesourcery.com>
5399 Kwok Cheung Yeung <kcy@codesourcery.com>
5401 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5402 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5403 (mi-cmd-info.o): New rule.
5404 * osdata.h (info_osdata_command): New declaration.
5405 * osdata.c (info_osdata_command): Change to non-static.
5406 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5407 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5408 * mi/mi-cmd-info.c: New file.
5410 2012-05-23 Doug Evans <dje@google.com>
5412 * symtab.c (search_symbols): Pass NULL for file_matcher to
5413 expand_symtabs_matching if there are no files to match.
5415 * gdbtypes.c (lookup_typename): Simplify.
5417 2012-05-23 Pedro Alves <palves@redhat.com>
5419 * arch-utils.h (default_target_signal_to_host): Delete.
5420 * arch-utils.c (default_target_signal_to_host): Delete.
5421 * gdbarch.sh (target_signal_to_host): Remove.
5422 * gdbarch.h, gdbarch.c: Regenerate.
5424 2012-05-22 Doug Evans <dje@google.com>
5426 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5428 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5429 (execute_cfa_program): Update to match API of leb128 functions.
5430 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5432 (read_unsigned_leb128, read_signed_leb128): Delete.
5433 (read_initial_length): Change type of buf argument to
5435 (read_encoded_value): Update to match API of leb128 functions.
5436 (decode_frame_entry): Change result to "const gdb_byte *", and
5437 similarly for "start" parameter.
5438 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5439 (dwarf2_build_frame_info): Change local frame_ptr to
5441 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5442 read_uleb128, read_sleb128. All callers updated.
5443 (safe_skip_leb128): New function.
5444 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5445 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5446 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5447 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5448 read_uleb128, read_sleb128.
5449 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5450 (execute_stack_op): Update to match API of leb128 functions.
5451 * dwarf2expr.h: #include "leb128.h".
5452 (read_uleb128, read_sleb128): Delete.
5453 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5454 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5455 * dwarf2loc.c (debug_loc_kind): New enum.
5456 (decode_debug_loc_addresses): New function.
5457 (decode_debug_loc_dwo_addresses): New function.
5458 (dwarf2_find_location_expression): Rewrite.
5459 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5460 (locexpr_describe_location_piece): Ditto.
5461 (disassemble_dwarf_expression): Ditto.
5462 (locexpr_describe_location_1): Ditto.
5463 (loclist_describe_location): Rewrite.
5464 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5465 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5466 (dwarf2_section_buffer_overflow_complaint): Renamed from
5467 dwarf2_macros_too_long_complaint. All callers updated.
5468 (skip_leb128): Delete.
5469 (init_cu_die_reader): Initialize reader->buffer_end.
5470 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5471 (skip_form_bytes): New arg buffer_end. All callers updated.
5472 Replace call to skip_leb128 with gdb_skip_leb128.
5473 (skip_unknown_opcode): New arg mac_end. All callers updated.
5474 (fill_in_loclist_baton): Initialize baton->from_dwo.
5476 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5478 * mips-linux-nat.c (mips_linux_read_description): Use a more
5479 verbose error message.
5481 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5483 * NEWS: Add MIPS/Linux DSP support.
5484 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5485 (SIGCONTEXT_DSPCTL): New macro.
5486 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5487 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5488 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5489 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5490 (N64_SIGCONTEXT_HI3): Likewise.
5491 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5492 (N64_SIGCONTEXT_LO3): Likewise.
5493 (N64_SIGCONTEXT_DSPCTL): Likewise.
5494 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5495 (mips_linux_o32_sigframe_init): Handle DSP registers.
5496 (mips_linux_n32n64_sigframe_init): Likewise.
5498 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5500 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5503 2012-05-22 Pedro Alves <palves@redhat.com>
5505 * target.h (store_waitstatus): Move declaration ...
5506 * inf-child.h (store_waitstatus): ... here.
5507 * target.c: Move inclusion of gdb_wait.h, and ...
5508 (store_waitstatus): ... this ...
5509 * inf-child.c: ... here.
5510 * linux-nat.c: Include inf-child.h.
5511 * rs6000-nat.c: Include inf-child.h.
5512 * spu-linux-nat.c: Include inf-child.h.
5514 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5516 * tracepoint.c (start_tracing): Add missing i18n markup.
5517 (stop_tracing, set_trace_user): Ditto.
5518 (set_trace_notes, set_trace_stop_notes): Ditto.
5520 2012-05-21 Tom Tromey <tromey@redhat.com>
5523 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5525 * value.h (value_cast_pointers): Update.
5526 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5527 (value_cast): Update.
5528 (update_search_result): New function.
5529 (do_search_struct_field): New, from search_struct_field. Check
5530 for ambiguous results.
5531 (search_struct_field): Rewrite.
5532 * infcall.c (value_arg_coerce): Update.
5533 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5534 value_cast_pointers.
5535 * ada-lang.c (ada_convert_actual): Update.
5537 2012-05-21 Tom Tromey <tromey@redhat.com>
5539 * macroexp.c (macro_stringify): Terminate the string.
5541 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5543 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5545 * auto-load.c (auto_load_expand_dir_vars): New function.
5546 (auto_load_safe_path_vec_update): Use it, remove the
5547 substitute_path_component call thanks to it.
5548 (auto_load_objfile_script): Remove the debug_file_directory processing.
5549 Use auto_load_expand_dir_vars, remove the substitute_path_component
5551 * configure: Regenerate.
5552 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5553 path. Escape $ also for $debugdir.
5554 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5555 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5557 2012-05-20 Doug Evans <dje@google.com>
5559 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5560 before use. Check for symtab->includes == NULL before scanning it.
5562 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5564 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5566 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5568 * NEWS: Add microMIPS support and "set mips compression",
5569 "show mips compression" commands.
5570 * mips-tdep.h (mips_isa): New enum.
5571 (gdbarch_tdep): Add mips_isa.
5572 (mips_pc_is_mips16): Update prototype.
5573 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5574 * mips-tdep.c (mips_compression_mips16): New variable.
5575 (mips_compression_micromips): Likewise.
5576 (mips_compression_strings): Likewise.
5577 (mips_compression_string): Likewise.
5578 (is_mips16_isa, is_micromips_isa): New functions.
5579 (is_mips16_addr): Rename to...
5580 (is_compact_addr): ... this.
5581 (unmake_mips16_addr): Likewise to...
5582 (unmake_compact_addr): ... this.
5583 (make_mips16_addr): Likewise to...
5584 (make_compact_addr): ... this.
5585 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5587 (mips_elf_make_msymbol_special): Handle microMIPS code.
5588 (msymbol_is_special): Rename to...
5589 (msymbol_is_mips16): ... this.
5590 (mips_make_symbol_special, mips_pc_is_mips16): Update
5592 (msymbol_is_mips, msymbol_is_micromips): New functions.
5593 (mips16_to_32_reg): Rename to...
5594 (mips_reg3_to_reg): ... this.
5595 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5596 (mips_pc_isa): Likewise.
5597 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5599 (mips_fetch_instruction): Pass return status instead of printing
5600 an error message if requested. Handle microMIPS code. Bail out
5602 (micromips_op): New macro.
5603 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5604 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5605 (b6s4_op, b7s3_reg): Likewise.
5606 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5607 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5608 (mips_insn_size): New function.
5609 (mips32_next_pc): Update mips_fetch_instruction call.
5610 (micromips_relative_offset7): New function.
5611 (micromips_relative_offset10): Likewise.
5612 (micromips_relative_offset16): Likewise.
5613 (micromips_pc_insn_size): Likewise.
5614 (micromips_bc1_pc): Likewise.
5615 (micromips_next_pc): Likewise.
5616 (unpack_mips16): Update mips_fetch_instruction call.
5617 (extended_mips16_next_pc): Update according to change to
5619 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5621 (mips16_scan_prologue): Update mips_fetch_instruction call.
5622 Update according to change to mips16_to_32_reg.
5623 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5624 (mips_insn16_frame_base_sniffer): Likewise.
5625 (micromips_decode_imm9): New function.
5626 (micromips_scan_prologue): Likewise.
5627 (mips_micro_frame_cache): Likewise.
5628 (mips_micro_frame_this_id): Likewise.
5629 (mips_micro_frame_prev_register): Likewise.
5630 (mips_micro_frame_sniffer): Likewise.
5631 (mips_micro_frame_unwind): New variable.
5632 (mips_micro_frame_base_address): New function.
5633 (mips_micro_frame_base): New variable.
5634 (mips_micro_frame_base_sniffer): New function.
5635 (mips32_scan_prologue): Update mips_fetch_instruction call.
5636 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5637 rather than for MIPS16.
5638 (mips_insn32_frame_base_sniffer): Likewise.
5639 (mips_addr_bits_remove): Handle microMIPS code.
5640 (deal_with_atomic_sequence): Rename to...
5641 (mips_deal_with_atomic_sequence): ... this. Update the type
5642 of the variable used to hold an instruction. Remove the ISA bit
5643 check. Update mips_fetch_instruction call.
5644 (micromips_deal_with_atomic_sequence): New function.
5645 (deal_with_atomic_sequence): Likewise.
5646 (mips_about_to_return): Handle microMIPS code. Update
5647 mips_fetch_instruction call.
5648 (heuristic_proc_start): Check for the standard MIPS ISA rather
5649 than for MIPS16. Update mips_pc_is_mips16 and
5650 mips_fetch_instruction calls. Handle microMIPS code.
5651 (mips_push_dummy_code): Handle microMIPS code.
5652 (mips_eabi_push_dummy_call): Likewise.
5653 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5654 (mips_o64_push_dummy_call): Handle microMIPS code.
5655 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5656 (is_delayed): Remove function.
5657 (mips_single_step_through_delay): Replace the call to is_delayed
5658 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5659 Handle microMIPS code.
5660 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5662 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5664 (micromips_in_function_epilogue_p): New function.
5665 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5667 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5669 (gdb_print_insn_mips): Likewise.
5670 (mips_breakpoint_from_pc): Likewise.
5671 (mips_remote_breakpoint_from_pc): New function.
5672 (mips32_instruction_has_delay_slot): Simplify making use of the
5673 updated mips_fetch_instruction interface.
5674 (micromips_instruction_has_delay_slot): New function.
5675 (mips16_instruction_has_delay_slot): Simplify making use of the
5676 updated mips_fetch_instruction interface.
5677 (mips_adjust_breakpoint_address): Check for the standard MIPS
5678 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5679 calls. Handle microMIPS code.
5680 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5681 (mips_skip_trampoline_code): Handle microMIPS code.
5682 (global_mips_compression): New function.
5683 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5684 file flags. Register the microMIPS remote breakpoint handler
5685 and heuristic frame unwinder.
5686 (show_mips_compression): New function.
5687 (_initialize_mips_tdep): Add the "set mips compression" and
5688 "show mips compression" commands.
5690 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5695 * amd64-darwin-tdep.c:
5696 * arm-symbian-tdep.c:
5700 * bfin-linux-tdep.c:
5707 * dwarf2-frame-tailcall.c:
5736 * microblaze-tdep.c:
5737 * mips-linux-tdep.c:
5745 * python/py-finishbreakpoint.c:
5746 * python/py-inferior.c:
5747 * python/py-infthread.c:
5751 * remote-m32r-sdi.c:
5755 * rs6000-aix-tdep.c:
5781 * amd64-darwin-tdep.c:
5782 * arm-symbian-tdep.c:
5783 * arm-tdep.c: Delete unused variables.
5785 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 Rename $ddir to $datadir.
5788 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5789 * auto-load.c (auto_load_safe_path_vec_update)
5790 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5791 * configure: Regenerate.
5792 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5793 Likewise. Remove the 'use $ddir' help string.
5795 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5797 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5798 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5800 2012-05-18 Tom Tromey <tromey@redhat.com>
5803 * valprint.h (struct value_print_options) <symbol_print>: New
5805 * valprint.c (user_print_options): Add default for symbol_print.
5806 (show_symbol_print): New function.
5807 (generic_val_print): Respect symbol_print.
5808 (_initialize_valprint): Add "print symbol" setting.
5809 * f-valprint.c (f_val_print): Respect symbol_print.
5810 * c-valprint.c (c_val_print): Respect symbol_print.
5812 * printcmd.c (print_address_symbolic): Return int. Ignore some
5814 (print_address_demangle): Return int.
5815 * defs.h: (print_address_symbolic): Return int.
5816 * value.h (print_address_demangle): Return int.
5818 2012-05-18 Tom Tromey <tromey@redhat.com>
5820 * valprint.c (val_print_string): Don't print leading space.
5821 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5822 print space before string or vtbl.
5823 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5825 * jv-valprint.c (java_value_print): Print space before string.
5826 * go-valprint.c (print_go_string): Print space before string.
5827 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5828 space before string.
5829 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5830 space before string or vtbl.
5831 * auxv.c (fprint_target_auxv): Print space after address.
5833 2012-05-18 Tom Tromey <tromey@redhat.com>
5835 * printcmd.c (print_address_demangle): Remove special case for 0.
5837 2012-05-18 Tom Tromey <tromey@redhat.com>
5839 * printcmd.c (print_address_demangle): Add 'opts' argument.
5840 * p-valprint.c (pascal_val_print): Update.
5841 * jv-valprint.c (java_val_print): Update.
5843 * valprint.c (generic_val_print): Update.
5844 (print_function_pointer_address): Add 'options' argument. Remove
5845 'addressprint' argument. Update.
5846 * m2-valprint.c (print_unpacked_pointer): Update.
5847 * gnu-v3-abi.c (print_one_vtable): Update.
5848 (gnuv3_print_method_ptr): Update.
5849 * f-valprint.c (f_val_print): Update.
5850 * cp-valprint.c (cp_print_value_fields): Update.
5851 * valprint.h (print_function_pointer_address): Update.
5852 * c-valprint.c (c_val_print): Update.
5854 2012-05-18 Tom Tromey <tromey@redhat.com>
5856 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5857 directly corresponding to the found psymtab.
5858 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5859 (dw2_find_pc_sect_symtab): Use it.
5860 * block.h (blockvector_contains_pc): Declare.
5861 * block.c (find_block_in_blockvector): New function.
5862 (blockvector_for_pc_sect): Use it.
5863 (blockvector_contains_pc): New function.
5865 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5867 * mips-tdep.h (mips_write_pc): New prototype.
5868 * mips-tdep.c (mips_write_pc): Make external, add description.
5869 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5872 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5874 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5876 (mips_unwind_pc, mips_write_pc): Likewise.
5877 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5880 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5882 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5883 proc_warn, proc_error, proc_get_status, proc_flags,
5884 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5885 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5886 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5887 proc_stop_process, proc_wait_for_stop, proc_run_process,
5888 proc_set_traced_signals, proc_set_traced_faults,
5889 proc_set_traced_sysentry, proc_set_traced_sysexit,
5890 proc_set_held_signals, proc_get_held_signals,
5891 proc_get_traced_signals, proc_get_traced_faults,
5892 proc_get_traced_sysentry, proc_get_traced_sysexit,
5893 proc_clear_current_fault, proc_set_current_signal,
5894 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5895 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5896 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5897 proc_get_current_thread, proc_get_current_thread,
5898 proc_get_current_thread, proc_update_threads,
5899 proc_update_threads, proc_update_threads, proc_update_threads,
5900 proc_iterate_over_threads, procfs_find_new_threads,
5901 procfs_pid_to_str): Make static. Remove advance declaration.
5902 (proc_cursig): Make static. Conditionalized defintion on
5903 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5904 (proc_syscall, proc_set_kill_on_last_close,
5905 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5906 proc_get_pending_signals, proc_get_signal_actions,
5907 proc_trace_signal, proc_ignore_signal): Delete.
5909 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5911 * coffread.c (cs_section_address): Passing proper argument for
5912 `bfd_get_section_vma'.
5913 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5914 `bfd_get_section_flags'.
5915 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5916 `bfd_get_section_vma'.
5918 2012-05-16 Tom Tromey <tromey@redhat.com>
5921 * macrotab.h: (macro_define_special): Declare.
5922 (enum macro_special_kind): New.
5923 (struct macro_definition) <argc, replacement>: Update comments.
5924 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5925 (macro_define_object_internal): New function.
5926 (macro_define_object): Use it.
5927 (macro_define_special): New function.
5928 (fixup_definition): New function.
5929 (macro_lookup_definition, foreach_macro_in_scope)
5930 (foreach_macro): Use fixup_definition.
5931 * macroexp.h (macro_stringify): Declare.
5932 * macroexp.c (free_buffer_return_text): New function.
5933 (stringify): Constify "arg".
5934 (macro_stringify): New function.
5935 * dwarf2read.c (macro_start_file): Call macro_define_special.
5937 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5938 Maciej W. Rozycki <macro@mips.com>
5940 * breakpoint.h (bp_location): Add related_address member.
5941 * inferior.h (get_return_value): Take a pointer to struct value
5942 instead of struct type for the function requested.
5943 * value.h (using_struct_return): Likewise.
5944 * gdbarch.sh (return_value): Take a pointer to struct value
5945 instead of struct type for the function requested.
5946 * breakpoint.c (set_breakpoint_location_function): Initialize
5947 related_address for bp_gnu_ifunc_resolver breakpoints.
5948 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5949 requested function's address to gdbarch_return_value.
5950 * eval.c (evaluate_subexp_standard): Pass the requested
5951 function's address to using_struct_return.
5952 * infcall.c (call_function_by_hand): Pass the requested
5953 function's address to using_struct_return and
5954 gdbarch_return_value.
5955 * infcmd.c (get_return_value): Take a pointer to struct value
5956 instead of struct type for the function requested.
5957 (print_return_value): Update accordingly.
5958 (finish_command_continuation): Likewise.
5959 * stack.c (return_command): Pass the requested function's
5960 address to using_struct_return and gdbarch_return_value.
5961 * value.c (using_struct_return): Take a pointer to struct value
5962 instead of struct type for the function requested. Pass the
5963 requested function's address to gdbarch_return_value.
5964 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5965 New function_value member, replacing function_type.
5966 (bpfinishpy_dealloc): Update accordingly.
5967 (bpfinishpy_pre_stop_hook): Likewise.
5968 (bpfinishpy_init): Likewise. Record the requested function's
5970 * mips-tdep.c (mips_fval_reg): New enum.
5971 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5972 words put in GP registers.
5973 (mips_o64_push_dummy_call): Update a comment.
5974 (mips_o32_return_value): Take a pointer to struct value instead
5975 of struct type for the function requested and use it to check if
5976 using the MIPS16 calling convention. Return the designated
5977 general purpose registers for floating-point values returned in
5979 (mips_o64_return_value): Likewise.
5980 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5981 (ppc_sysv_abi_broken_return_value): Likewise.
5982 (ppc64_sysv_abi_return_value): Likewise.
5983 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5984 value instead of struct type for the function requested.
5985 * amd64-tdep.c (amd64_return_value): Likewise.
5986 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5987 * arm-tdep.c (arm_return_value): Likewise.
5988 * avr-tdep.c (avr_return_value): Likewise.
5989 * bfin-tdep.c (bfin_return_value): Likewise.
5990 * cris-tdep.c (cris_return_value): Likewise.
5991 * frv-tdep.c (frv_return_value): Likewise.
5992 * h8300-tdep.c (h8300_return_value): Likewise.
5993 (h8300h_return_value): Likewise.
5994 * hppa-tdep.c (hppa32_return_value): Likewise.
5995 (hppa64_return_value): Likewise.
5996 * i386-tdep.c (i386_return_value): Likewise.
5997 * ia64-tdep.c (ia64_return_value): Likewise.
5998 * iq2000-tdep.c (iq2000_return_value): Likewise.
5999 * lm32-tdep.c (lm32_return_value): Likewise.
6000 * m32c-tdep.c (m32c_return_value): Likewise.
6001 * m32r-tdep.c (m32r_return_value): Likewise.
6002 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6003 * m68k-tdep.c (m68k_return_value): Likewise.
6004 (m68k_svr4_return_value): Likewise.
6005 * m88k-tdep.c (m88k_return_value): Likewise.
6006 * mep-tdep.c (mep_return_value): Likewise.
6007 * microblaze-tdep.c (microblaze_return_value): Likewise.
6008 * mn10300-tdep.c (mn10300_return_value): Likewise.
6009 * moxie-tdep.c (moxie_return_value): Likewise.
6010 * mt-tdep.c (mt_return_value): Likewise.
6011 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6012 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6013 (ppc_sysv_abi_broken_return_value): Likewise.
6014 (ppc64_sysv_abi_return_value): Likewise.
6015 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6016 * rl78-tdep.c (rl78_return_value): Likewise.
6017 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6018 * rx-tdep.c (rx_return_value): Likewise.
6019 * s390-tdep.c (s390_return_value): Likewise.
6020 * score-tdep.c (score_return_value): Likewise.
6021 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6022 (sh_return_value_fpu): Likewise.
6023 * sh64-tdep.c (sh64_return_value): Likewise.
6024 * sparc-tdep.c (sparc32_return_value): Likewise.
6025 * sparc64-tdep.c (sparc64_return_value): Likewise.
6026 * spu-tdep.c (spu_return_value): Likewise.
6027 * tic6x-tdep.c (tic6x_return_value): Likewise.
6028 * v850-tdep.c (v850_return_value): Likewise.
6029 * vax-tdep.c (vax_return_value): Likewise.
6030 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6031 * xtensa-tdep.c (xtensa_return_value): Likewise.
6032 * gdbarch.c: Regenerate.
6033 * gdbarch.h: Regenerate.
6035 2012-05-15 Tom Tromey <tromey@redhat.com>
6037 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6039 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6041 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6042 of command in two error message.
6044 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6046 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6048 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6050 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6052 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6054 * NEWS (show auto-load scripts-directory): Add forgotten command.
6056 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6058 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6061 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6063 * amd64-tdep.c: Include features/i386/x32.c and
6064 features/i386/x32-avx.c.
6065 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6066 initialize_tdesc_x32_avx.
6068 2012-05-14 Stan Shebs <stan@codesourcery.com>
6071 * breakpoint.h (enum bptype): New type bp_dprintf.
6072 (struct breakpoint): New field extra_string.
6073 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6074 (create_breakpoint): Add extra_string arg.
6075 * breakpoint.c (dprintf_breakpoint_ops): New.
6076 (is_breakpoint): Add bp_dprintf.
6077 (bpstat_what): Add dprintf case.
6078 (bptype_string): Ditto.
6079 (print_one_breakpoint_location): Ditto.
6080 (init_bp_location): Ditto.
6081 (bkpt_print_mention): Ditto.
6082 (dprintf_style_enums): New array.
6083 (dprintf_style): New global.
6084 (dprintf_function): New global.
6085 (dprintf_channel): New global.
6086 (update_dprintf_command_list): New function.
6087 (update_dprintf_commands): New function.
6088 (init_breakpoint_sal): Add extra_string argument, handle it.
6089 (create_breakpoint_sal): Add extra_string argument.
6090 (create_breakpoints_sal): Add extra_string argument, update callers.
6091 (find_condition_and_thread): Add extra argument.
6092 (create_breakpoint): Add extra_string argument, record it.
6093 (dprintf_command): New function.
6094 (break_command_1): Add arg to create_breakpoint call.
6095 (handle_gnu_v3_exceptions): Ditto.
6096 (trace_command): Ditto.
6097 (ftrace_command): Ditto.
6098 (strace_command): Ditto.
6099 (bkpt_print_mention): Add dprintf case.
6100 (create_breakpoint_sal_default): Add extra_string argument.
6101 (_initialize_breakpoint): Add new commands.
6102 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6103 * python/py-breakpoint.c (bppy_init): Ditto.
6104 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6106 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6108 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6110 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6112 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6115 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6117 Add a new function gdb.find_pc_line to the Python API.
6118 * NEWS (Python Scripting): Add entry about the new function.
6119 * python/python.c (gdbpy_find_pc_line): New function which
6120 implements gdb.find_pc_line.
6121 (GdbMethods): Add entry for the new function.
6123 2012-05-12 Pedro Alves <palves@redhat.com>
6125 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6126 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6128 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6130 * inferior.c: Include completer.h
6131 (initialize_inferiors): Set completer of add-inferior to
6134 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6136 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6137 gdbarch_ptr_bit for x32 core dump.
6139 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6141 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6142 and features/i386/x32-avx-linux.c.
6144 2012-05-11 Stan Shebs <stan@codesourcery.com>
6145 Kwok Cheung Yeung <kcy@codesourcery.com>
6147 * NEWS: Describe new info os commands.
6148 * common/linux-osdata.c (PID_T, TIME_T): Define.
6149 (MAX_PID_T_STRLEN): New.
6150 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6152 (command_from_pid): Add comment. Change to use PID_T.
6153 (commandline_from_pid): Change to use PID_T.
6154 (user_from_pid): Add comment.
6155 (get_process_owner): Add comment. Change to use PID_T and
6157 (get_number_of_cpu_cores): Add comment.
6158 (get_cores_used_by_process): Add comment. Change to use PID_T and
6160 (linux_xfer_osdata_processes): Change to use PID_T and
6162 (compare_processes): New function.
6163 (linux_xfer_osdata_processgroups): New function.
6164 (linux_xfer_osdata_threads): Change to use PID_T.
6165 (linux_xfer_osdata_fds): New function.
6166 (format_socket_state, print_sockets): New functions.
6167 (union socket_addr): New union.
6168 (linux_xfer_osdata_isockets): New function.
6169 (time_from_time_t, group_from_gid): New functions.
6170 (linux_xfer_osdata_shm): New function.
6171 (linux_xfer_osdata_sem): New function.
6172 (linux_xfer_osdata_msg): New function.
6173 (linux_xfer_osdata_modules): New function.
6174 (osdata_table): Add new entries.
6175 * common/buffer.c (buffer_xml_printf): Add support for long and
6176 long long format specifiers.
6178 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6180 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6181 (tdesc_x32_avx_linux): Likewise.
6183 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6185 Implement multi-component --with-auto-load-dir.
6186 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6188 (--with-auto-load-safe-path): Update the default value description.
6189 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6191 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6192 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6193 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6194 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6195 "set auto-load scripts-directory".
6196 * config.in: Regenerate.
6197 * configure: Regenerate.
6198 * configure.ac (--with-auto-load-dir): New configure option.
6199 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6201 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6203 Provide $ddir substitution for --with-auto-load-safe-path.
6204 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6206 * auto-load.c: Include observer.h.
6207 (auto_load_safe_path_vec_update): Call substitute_path_component for
6208 each component. New variable ddir_subst.
6209 (auto_load_gdb_datadir_changed): New function.
6210 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6211 AUTO_LOAD_SAFE_PATH. New comment.
6212 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6213 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6214 * config.in: Regenerate.
6215 * configure: Regenerate.
6216 * configure.ac (--auto-load-safe-path): Rename
6217 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6218 GDB_DATADIR/auto-load.
6219 * defs.h (substitute_path_component): New declaration.
6220 * top.c: Include observer.h.
6221 (set_gdb_datadir): New function.
6222 (init_main): Install it for "set data-directory".
6223 * utils.c (substitute_path_component): New function.
6225 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6227 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6228 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6229 DEBUG_FILE_DIRECTORY. Handle multiple components of
6230 DEBUG_FILE_DIRECTORY.
6232 2012-05-10 Tom Tromey <tromey@redhat.com>
6234 * dwarf2read.c (recursively_write_psymbols): New function.
6235 (write_psymtabs_to_index): Use it.
6237 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6239 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6240 (load_partial_comp_unit): Update.
6241 (queue_comp_unit): Add argument 'pretend_language'.
6242 (process_queue): Update.
6243 (psymtab_to_symtab_1): Skip dependencies that have a user.
6244 (load_partial_comp_unit_reader): Give meaning to the 'data'
6246 (load_full_comp_unit): Add 'pretend_language' argument.
6247 (process_full_comp_unit): Add 'pretend_language' argument. Set
6249 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6251 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6252 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6254 (prepare_one_comp_unit): Add 'pretend_language' argument.
6256 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6257 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6258 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6259 (dw2_do_instantiate_symtab): Check whether symtab was read in
6261 (dw2_instantiate_symtab): Add assertion. Call
6262 process_cu_includes.
6263 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6264 (partial_symtab_p): New typedef.
6265 (set_partial_user): New function.
6266 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6267 (scan_partial_symbols): Add imported CU to imported_symtabs.
6268 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6269 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6270 (get_symtab, recursively_compute_inclusions)
6271 (compute_symtab_includes, process_cu_includes)
6272 (process_imported_unit_die): New functions.
6273 (process_die) <DW_TAG_imported_unit>: New case.
6274 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6276 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6278 (struct partial_die_info) <locdesc>: Remove.
6280 (process_psymtab_comp_unit): Add 'read_partial' argument.
6282 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6283 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6284 (add_partial_symbol): Update.
6285 (process_die): Handle DW_TAG_partial_unit.
6286 (read_file_scope): Update comment.
6287 (load_partial_dies): Handle DW_TAG_imported_unit.
6288 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6289 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6291 2012-05-10 Tom Tromey <tromey@redhat.com>
6293 * cc-with-dwz.sh: New file.
6295 2012-05-10 Tom Tromey <tromey@redhat.com>
6297 * symtab.h (struct symtab) <includes, user>: New fields.
6298 * block.h (struct block_iterator) <d, idx, which>: New fields.
6299 * block.c (initialize_block_iterator, find_iterator_symtab)
6300 (block_iterator_step, block_iter_name_step)
6301 (block_iter_match_step): New functions.
6302 (block_iterator_first, block_iterator_next)
6303 (block_iter_name_first, block_iter_name_next)
6304 (block_iter_match_first, block_iter_match_next): Rewrite.
6305 (get_block_symtab): New function.
6307 2012-05-10 Tom Tromey <tromey@redhat.com>
6309 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6311 * jit.c (finalize_symtab): Use allocate_global_block,
6313 * buildsym.c (finish_block_internal): New function, from old
6315 (finish_block): Rewrite.
6316 (end_symtab): Use finish_block_internal, set_block_symtab.
6317 * block.h (struct global_block): New.
6318 (allocate_global_block, set_block_symtab): Declare.
6319 * block.c (allocate_global_block, set_block_symtab): New
6322 2012-05-10 Tom Tromey <tromey@redhat.com>
6324 * psymtab.c (partial_map_expand_apply): Add assertion.
6325 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6326 (psymtab_to_symtab): Find unshared psymtab.
6327 (dump_psymtab): Print including psymtabs.
6328 (recursively_search_psymtabs): New function.
6329 (expand_symtabs_matching_via_partial): Use it.
6330 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6332 (enum psymtab_search_status): New.
6334 2012-05-10 Tom Tromey <tromey@redhat.com>
6336 * tracepoint.c (scope_info): Update.
6337 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6338 (find_pc_sect_symtab, search_symbols)
6339 (default_make_symbol_completion_list_break_on)
6340 (make_file_symbol_completion_list): Update.
6341 * symmisc.c (dump_symtab_1): Update.
6342 * stack.c (print_frame_args, iterate_over_block_locals)
6343 (print_frame_labels, iterate_over_block_arg_vars): Update.
6344 * python/py-block.c (block_object) <dict>: Remove.
6346 <iter>: Change type.
6347 (blpy_iter): Update.
6348 (blpy_block_syms_iternext): Update.
6349 * psymtab.c (map_block): Use block iterators.
6350 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6351 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6352 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6353 * infrun.c (check_exception_resume): Update.
6354 * cp-support.c (make_symbol_overload_list_block): Update.
6355 * coffread.c (patch_opaque_types): Update.
6356 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6357 * block.h (struct block_iterator): New.
6358 (block_iterator_first, block_iterator_next, block_iter_name_first)
6359 (block_iter_name_next, block_iter_match_first)
6360 (block_iter_match_next): Declare.
6361 (ALL_BLOCK_SYMBOLS): Redefine.
6362 * block.c (block_iterator_first, block_iterator_next)
6363 (block_iter_name_first, block_iter_name_next)
6364 (block_iter_match_first, block_iter_match_next): New functions.
6365 * ada-lang.c (ada_add_block_symbols)
6366 (ada_make_symbol_completion_list): Use block iterator.
6368 2012-05-10 Tom Tromey <tromey@redhat.com>
6370 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6371 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6372 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6373 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6374 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6377 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6379 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6380 print-file-var-lib2.c, print-file-var-main.c and
6381 print-file-var.exp (located in gdb/testsuite/gdb.base).
6383 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6385 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6386 try locating the symbol in the symbol's own objfile first, before
6387 extending the search to all objfiles.
6388 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6389 out of lookup_symbol_aux_symtabs.
6390 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6391 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6392 Do not search EXCLUDE_OBJFILE.
6393 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6394 (lookup_symbol_global): Search for matches in the block's objfile
6395 first, before searching all other objfiles.
6397 2012-05-10 Tristan Gingold <gingold@adacore.com>
6399 * printcmd.c (set_command): Add pre/post inc/dec.
6401 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6403 * gdb.1: Document -ex option.
6405 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6407 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6408 * inferior.h (AT_SYMBOL): Delete.
6410 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6412 * mips-tdep.c (mips_push_dummy_code): New function.
6413 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6414 ON_STACK and install mips_push_dummy_code as our gdbarch
6415 push_dummy_code routine.
6417 2012-05-09 Pedro Alves <palves@redhat.com>
6419 * target.c (set_maintenance_target_async_permitted): Rename to ...
6420 (set_target_async_command): ... this.
6421 (show_maintenance_target_async_permitted): Rename to ...
6422 (show_target_async_command): ... this.
6423 (initialize_targets): Adjust.
6425 2012-05-08 Doug Evans <dje@google.com>
6427 * go-exp.y (classify_name): Add missing assignment of fields of
6430 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6432 Display the ">" prompt in interactive mode while reading canned
6433 commands, even when the current interpreter is MI.
6435 * interps.c (interp_set_temp): New function.
6437 * interps.h (interp_set_temp): Add prototype.
6439 * cli/cli-script.c (restore_interp): New cleanup function.
6440 (read_command_lines): Temporarily override the current interpreter
6441 with CLI and arrange for restoring the original one.
6443 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6445 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6447 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6449 * probe.c (parse_probes): Move conditional to check for
6450 debuginfo files from here...
6451 * stap-probe.c (stap_get_probes): ... to here.
6453 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6454 H.J. Lu <hongjiu.lu@intel.com>
6456 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6457 `movl %esp, %ebp' for the X32 ABI.
6459 2012-05-07 Tom Tromey <tromey@redhat.com>
6461 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6463 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6464 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6465 (dwarf_stack_op_name): Remove.
6466 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6467 (decode_locdesc): Use get_DW_OP_name.
6468 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6469 (dwarf2_compile_expr_to_ax): Likewise.
6470 (disassemble_dwarf_expression): Likewise.
6471 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6473 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6475 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6476 (sh_linux_sigtramp_cache): New function.
6477 (sh_linux_sigreturn_init): New function.
6478 (sh_linux_rt_sigreturn_init): New function.
6479 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6481 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6483 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6484 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6485 (sh_linux_init_abi): Add init calls to register new tramp_frame
6486 definitions under 32-bit SH, update comments.
6488 2012-05-07 Pedro Alves <palves@redhat.com>
6492 * amd64-linux-tdep.c: Include glibc-tdep.h.
6493 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6494 gdbarch_skip_solib_resolver callback.
6496 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6498 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6499 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6500 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6501 (add_auto_load_safe_path): Change the error message.
6502 (_initialize_auto_load): Change the "safe-path" help text.
6503 * configure: Regenerate
6504 * configure.ac (--without-auto-load-safe-path): Set
6505 WITH_AUTO_LOAD_SAFE_PATH to /.
6507 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6509 * stap-probe.h: Do not include unecessary `probe.h'.
6511 2012-05-05 Alan Modra <amodra@gmail.com>
6513 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6514 bfd_und_section_ptr.
6515 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6516 and bfd_com_section_ptr.
6518 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6520 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6522 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6524 * windows-nat.h (segment_register_p_ftype): New typedef.
6525 (windows_set_segment_register_p): Add declaration.
6526 * windows-nat.c (segment_register_p): New static global.
6527 (windows_set_segment_register_p): New function.
6528 (do_windows_fetch_inferior_registers): Add special handling
6529 for segment registers.
6530 * amd64-windows-nat.c: #include "amd64-tdep.h".
6531 (amd64_windows_segment_register_p): New function.
6532 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6533 * i386-windows-nat.c: #include "i386-tdep.h".
6534 (i386_windows_segment_register_p): New function.
6535 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6537 2012-05-04 Tristan Gingold <gingold@adacore.com>
6539 * printcmd.c (set_command): Emit a warning if the expression is not
6542 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6544 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6547 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6549 * stap-probe.c (stap_is_operator): Change declaration.
6550 (stap_get_opcode): Change return value.
6551 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6552 `stap_parse_argument_1'.
6554 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6556 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6559 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6561 Add two new methods global_block and static_block to gdb.Symtab
6563 * NEWS (Python scripting): Add entry about the new methods.
6564 * python/py-symtab.c (stpy_global_block): New function which
6565 implements the gdb.Symtab.global_block() method.
6566 (stpy_static_block): New function which implements the
6567 gdb.Symtab.static_block() method.
6568 (symtab_object_methods): Add entries for the two new methods.
6570 2012-05-03 Doug Evans <dje@google.com>
6572 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6575 2012-05-03 Yao Qi <yao@codesourcery.com>
6577 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6579 (i386_process_record): Ditto.
6581 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6583 * infcall.c (unwind_on_signal_p): Make static.
6585 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6587 * sol-thread.c (solaris_pid_to_str): Make static.
6588 (_initialize_sol_thread): Add prototype.
6590 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6592 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6594 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6596 * MAINTAINERS: Remove myself.
6598 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6600 Fix --without-auto-load-safe-path for MS-Windows host platform.
6601 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6603 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6605 * gdb_curses.h: Undefine KEY_EVENT before including curses
6606 headers. Move "#undef MOUSE_MOVED" before any curses header
6609 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6611 * features/i386/i386-mmx-linux.c: Regenerate.
6612 * features/rs6000/powerpc-32.c: Likewise.
6613 * features/rs6000/powerpc-32l.c: Likewise.
6614 * features/rs6000/powerpc-403.c: Likewise.
6615 * features/rs6000/powerpc-403gc.c: Likewise.
6616 * features/rs6000/powerpc-405.c: Likewise.
6617 * features/rs6000/powerpc-505.c: Likewise.
6618 * features/rs6000/powerpc-601.c: Likewise.
6619 * features/rs6000/powerpc-602.c: Likewise.
6620 * features/rs6000/powerpc-603.c: Likewise.
6621 * features/rs6000/powerpc-604.c: Likewise.
6622 * features/rs6000/powerpc-64.c: Likewise.
6623 * features/rs6000/powerpc-64l.c: Likewise.
6624 * features/rs6000/powerpc-750.c: Likewise.
6625 * features/rs6000/powerpc-860.c: Likewise.
6626 * features/rs6000/powerpc-e500.c: Likewise.
6627 * features/rs6000/powerpc-e500l.c: Likewise.
6628 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6629 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6630 * features/rs6000/rs6000.c: Likewise.
6632 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6634 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6636 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6637 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6638 (stap_parse_argument) <e>: Likewise.
6639 (handle_stap_probe) <byte_order>: Likewise.
6641 2012-04-30 Doug Evans <dje@google.com>
6643 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6644 init_and_read_dies_worker. All callers updated.
6645 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6646 replaced with init_cutu_and_read_dies.
6647 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6648 (find_partial_die): Remove FIXME. Don't free current CU.
6650 2012-04-30 Sterling Augustine <saugustine@google.com>
6652 * contrib: New directory.
6653 * contrib/test_pubnames_and_indexes.py: New file.
6655 2012-04-30 Doug Evans <dje@google.com>
6657 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6658 All callers updated.
6659 (init_cu_die_reader): Verify the section is non-empty.
6660 (dwarf_decode_line_header): Don't dereference section->asection
6661 until we know the section is present.
6663 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6665 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6668 2012-04-29 Yao Qi <yao@codesourcery.com>
6670 * gdb-code-style.el: New hook gdb-markup-hook
6671 and gdb-comment-hook.
6673 2012-04-28 Doug Evans <dje@google.com>
6675 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6676 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6678 * symfile.h (dwarf2_debug_sections): New member addr.
6679 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6680 (ctx_no_get_addr_index): New function.
6681 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6682 (ctx_no_get_addr_index): Declare.
6683 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6684 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6685 (dwarf_expr_ctx_funcs): Update.
6686 (needs_get_addr_index): New function.
6687 (needs_frame_ctx_funcs): Update.
6688 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6689 * dwarf2read.c: #include "gdbcore.h".
6690 (dwarf2_per_objfile): New members addr, dwo_files.
6691 (dwarf2_elf_names): Add entry for addr.
6692 (struct dwo_section_names): New type.
6693 (dwo_section_names): New static global.
6694 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6695 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6696 old debug_types_section member updated to use this.
6697 Rename member debug_types_section to info_or_types_section,
6699 (signatured_type): Rename member type_offset to type_offset_in_tu,
6700 all uses updated. New member type_offset_in_section.
6701 (struct dwo_sections): New type.
6702 (struct dwo_unit): New type.
6703 (struct dwo_file): New type.
6704 (die_reader_specs): New member dwo_file.
6705 (dwarf2_locate_sections): Watch for .debug_addr.
6706 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6707 (dwarf2_read_section): Get bfd of section from bfd's asection,
6709 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6710 (create_signatured_type_table_from_index): Initialize
6711 sig_type->info_or_types_section.
6712 (dw2_get_file_names): Statement lists for type units with DWO files
6713 live in the DWO file.
6714 (create_debug_types_hash_table): New function.
6715 (create_all_type_units): Rewrite.
6716 (init_cu_die_reader): New arg dwo_file, all callers updated.
6717 (init_and_read_dies_worker): Get section from
6718 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6719 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6720 continue reading the CU/TU from there.
6721 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6722 updated. Get section from this_cu->info_or_types_section.
6723 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6724 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6725 DW_FORM_GNU_str_index.
6726 (hash_dwo_file, eq_dwo_file): New functions.
6727 (allocate_dwo_file_hash_table): New function.
6728 (hash_dwo_unit, eq_dwo_unit): New functions.
6729 (allocate_dwo_unit_table): New function.
6730 (dwarf2_locate_dwo_sections): New function.
6731 (struct create_dwo_info_table_data): New type.
6732 (create_debug_info_hash_table_reader): New function.
6733 (create_debug_info_hash_table): New function.
6734 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6735 (lookup_dwo_file): New function.
6736 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6737 (free_dwo_file, free_dwo_file_cleanup): New functions.
6738 (free_dwo_file_from_slot, free_dwo_files): New functions.
6739 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6740 (dwarf2_record_block_ranges): Ditto.
6741 (read_partial_die): Ditto.
6742 (process_enumeration_scope): Update to use type_offset_in_section.
6743 (read_full_die_1): New function.
6744 (read_full_die): Rewrite.
6745 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6746 DW_FORM_GNU_str_index.
6747 (read_addr_index_1, read_addr_index): New functions.
6748 (read_addr_index_from_leb128): New function.
6749 (struct dwarf2_read_addr_index_data): New type.
6750 (dwarf2_read_addr_index_reader): New function.
6751 (dwarf2_read_addr_index): New function.
6752 (read_str_index): New function.
6753 (leb128_size): New function.
6754 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6755 If processing a type unit from a DWO file, get the line section
6757 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6758 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6759 DW_FORM_GNU_str_index.
6760 (lookup_die_type): Check whether section offset of type's die is
6761 known before looking it up. Remove assert. Condition can
6762 legimately happen for inter-cu type references.
6763 (dwarf_attr_name): Handle Fission attributes.
6764 (dwarf_form_name): Handle Fission forms.
6765 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6766 DW_FORM_GNU_str_index.
6767 (follow_die_sig): Update to use type_offset_in_section.
6768 (decode_locdesc): New case DW_OP_GNU_addr_index.
6769 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6770 DW_FORM_GNU_str_index.
6771 (cu_debug_loc_section): New function.
6772 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6773 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6774 Free DWO files if present.
6775 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6777 Refactor DIE reading.
6778 * dwarf2read.c (dwarf2_per_objfile): Replace members
6779 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6780 (die_reader_specs): New member "die_section". Temporarily make
6781 member "buffer" non-const, pending constifying all info_ptr uses.
6782 (die_reader_func_ftype): New typedef.
6783 (dw2_get_file_names_reader): New function.
6784 (dw2_get_file_names): Rewrite.
6785 (read_and_check_type_unit_head): Rename arg type_offset to
6787 (create_all_type_units): Improve debugging message.
6788 Improve dummy type unit check.
6789 (init_cu_die_reader): New arg "section". All callers updated.
6790 (init_and_read_dies_worker): New function.
6791 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6792 (init_cutu_and_read_dies_no_follow): New function.
6793 (init_cutu_and_read_dies_simple): New function.
6794 (process_psymtab_comp_unit_reader): New function.
6795 (process_psymtab_comp_unit): Delete args section,
6796 is_debug_types_section. Rewrite. All callers updated.
6797 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6798 All callers updated. Rewrite.
6799 (load_partial_comp_unit_reader): New function.
6800 (load_partial_comp_unit): Rewrite.
6801 (skip_children): New arg reader. Delete args buffer, cu.
6802 All callers updated.
6803 (skip_one_die): New arg reader. Delete args buffer, cu.
6804 All callers updated.
6805 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6806 All callers updated.
6807 (load_full_comp_unit_reader): New function.
6808 (load_full_comp_unit): Rewrite.
6809 (read_comp_unit): Delete.
6810 (read_die_and_children_1): Delete, contents moved ...
6811 (read_die_and_children): ... here.
6812 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6813 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6814 All callers updated.
6815 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6816 All callers updated.
6817 (find_partial_die): Rewrite load_all_dies support.
6818 (read_attribute_value): New arg reader. Delete args abfd, cu.
6819 All callers updated.
6820 (read_attribute): New arg reader. Delete args abfd, cu.
6821 All callers updated.
6822 (load_full_type_unit): Add assert.
6823 (read_signatured_type_reader): New function.
6824 (read_signatured_type): Rewrite.
6825 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6826 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6827 All callers updated. Set per_cu->cu = NULL after freeing it.
6828 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6829 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6830 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6831 (set_die_type): Update.
6832 (get_die_type_at_offset): Update.
6833 (read_file_scope): Call prepare_one_comp_unit.
6834 (read_type_unit_scope): Ditto.
6835 (prepare_one_comp_unit): Set producer if present.
6837 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6839 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6840 gettext function on `error'.
6842 2012-04-27 Doug Evans <dje@google.com>
6844 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6847 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6848 Tom Tromey <tromey@redhat.com>
6850 * breakpoint.c (struct breakpoint_objfile_data)
6851 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6852 <exception_probes>: New fields.
6853 (free_breakpoint_probes): New function.
6854 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6855 `_Unwind_DebugHook'.
6856 (create_exception_master_breakpoint): Likewise.
6857 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6858 * infrun.c: Including necessary header files for handling SystemTap
6860 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6861 via SystemTap probes.
6862 (check_exception_resume): Remove `func' argument. Handle exception
6863 unwinding breakpoint set via a SystemTap probe.
6864 (insert_exception_resume_from_probe): New function.
6866 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6867 Tom Tromey <tromey@redhat.com>
6868 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6871 (COMMON_OBS): Likewise.
6872 (HFILES_NO_SRCDIR): Add `probe'.
6873 * NEWS: Mention support for static and SystemTap probes.
6874 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6875 SystemTap probes' arguments parser.
6876 * arm-linux-tdep.c: Including headers needed to perform the parsing
6877 of SystemTap probes' arguments.
6878 (arm_stap_is_single_operand): New function.
6879 (arm_stap_parse_special_token): Likewise.
6880 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6881 probes' arguments parser.
6882 * ax-gdb.c (require_rvalue): Removing static declaration.
6883 (gen_expr): Likewise.
6884 * ax-gdb.h (gen_expr): Declaring function.
6885 (require_rvalue): Likewise.
6886 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6887 (bkpt_probe_breakpoint_ops): New variable.
6888 (momentary_breakpoint_from_master): Set the `probe' value.
6889 (add_location_to_breakpoint): Likewise.
6890 (break_command_1): Using proper breakpoint_ops according to the
6891 argument passed by the user in the command line.
6892 (bkpt_probe_insert_location): New function.
6893 (bkpt_probe_remove_location): Likewise.
6894 (bkpt_probe_create_sals_from_address): Likewise.
6895 (bkpt_probe_decode_linespec): Likewise.
6896 (tracepoint_probe_create_sals_from_address): Likewise.
6897 (tracepoint_probe_decode_linespec): Likewise.
6898 (tracepoint_probe_breakpoint_ops): New variable.
6899 (trace_command): Using proper breakpoint_ops according to the
6900 argument passed by the user in the command line.
6901 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6902 static probes on breakpoints and tracepoints.
6903 * breakpoint.h (struct bp_location) <probe>: New field.
6904 * cli-utils.c (skip_spaces_const): New function.
6905 (extract_arg): Likewise.
6906 * cli-utils.h (skip_spaces_const): Likewise.
6907 (extract_arg): Likewise.
6908 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6909 * configure.ac: Append `stap-probe.o' to be generated when ELF
6911 * configure: Regenerate.
6912 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6913 * elfread.c: Include `probe.h' and `arch-utils.h'.
6914 (probe_key): New variable.
6915 (elf_get_probes): New function.
6916 (elf_get_probe_argument_count): Likewise.
6917 (elf_evaluate_probe_argument): Likewise.
6918 (elf_compile_to_ax): Likewise.
6919 (elf_symfile_relocate_probe): Likewise.
6920 (stap_probe_key_free): Likewise.
6921 (elf_probe_fns): New variable.
6922 (elf_sym_fns): Add `sym_probe_fns' value.
6923 (elf_sym_fns_lazy_psyms): Likewise.
6924 (elf_sym_fns_gdb_index): Likewise.
6925 (_initialize_elfread): Initialize objfile cache for static
6927 * gdb_vecs.h (struct probe): New forward declaration.
6928 (probe_p): New VEC declaration.
6929 * gdbarch.c: Regenerate.
6930 * gdbarch.h: Regenerate.
6931 * gdbarch.sh (stap_integer_prefix): New variable.
6932 (stap_integer_suffix): Likewise.
6933 (stap_register_prefix): Likewise.
6934 (stap_register_suffix): Likewise.
6935 (stap_register_indirection_prefix): Likewise.
6936 (stap_register_indirection_suffix): Likewise.
6937 (stap_gdb_register_prefix): Likewise.
6938 (stap_gdb_register_suffix): Likewise.
6939 (stap_is_single_operand): New function.
6940 (stap_parse_special_token): Likewise.
6941 (struct stap_parse_info): Forward declaration.
6942 * i386-tdep.c: Including headers needed to perform the parsing
6943 of SystemTap probes' arguments.
6944 (i386_stap_is_single_operand): New function.
6945 (i386_stap_parse_special_token): Likewise.
6946 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6947 probes' arguments parser.
6948 * i386-tdep.h (i386_stap_is_single_operand): New function.
6949 (i386_stap_parse_special_token): Likewise.
6950 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6951 * mipsread.c (ecoff_sym_fns): Likewise.
6952 * objfiles.c (objfile_relocate1): Support relocation for static
6954 * parse.c (prefixify_expression): Remove static declaration.
6955 (initialize_expout): Likewise.
6956 (reallocate_expout): Likewise.
6957 * parser-defs.h (initialize_expout): Declare function.
6958 (reallocate_expout): Likewise.
6959 (prefixify_expression): Likewise.
6960 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6961 of SystemTap probes' arguments.
6962 (ppc_stap_is_single_operand): New function.
6963 (ppc_stap_parse_special_token): Likewise.
6964 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6965 probes' arguments parser.
6966 * probe.c: New file, for generic statically defined probe support.
6967 * probe.h: Likewise.
6968 * s390-tdep.c: Including headers needed to perform the parsing of
6969 SystemTap probes' arguments.
6970 (s390_stap_is_single_operand): New function.
6971 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6972 probes' arguments parser.
6973 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6974 * stap-probe.c: New file, for SystemTap probe support.
6975 * stap-probe.h: Likewise.
6976 * symfile.h: Include `gdb_vecs.h'.
6977 (struct sym_probe_fns): New struct.
6978 (struct sym_fns) <sym_probe_fns>: New field.
6979 * symtab.c (init_sal): Initialize `probe' field.
6980 * symtab.h (struct probe): Forward declaration.
6981 (struct symtab_and_line) <probe>: New field.
6982 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6984 (stop_tracing): Likewise.
6985 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6987 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6988 Tom Tromey <tromey@redhat.com>
6990 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6991 and to compile agent expressions.
6992 * infrun.c (siginfo_make_value): New argument `ignore'.
6993 (siginfo_funcs): New struct.
6994 (_initialize_infrun): New argument when calling
6995 `create_internalvar_type_lazy'.
6996 * thread.c (thread_id_make_value): New argument `ignore'.
6997 (thread_funcs): New struct.
6998 (_initialize_thread): New argument when calling
6999 `create_internalvar_type_lazy'.
7000 * tracepoint.c (sdata_make_value): New argument `ignore'.
7001 (sdata_funcs): New struct.
7002 (_initialize_tracepoint): New argument when calling
7003 `create_internalvar_type_lazy'.
7004 * value.c (make_value): New struct.
7005 (create_internalvar_type_lazy): New argument `data'.
7006 (compile_internalvar_to_ax): New function.
7007 (value_of_internalvar): Properly handling `make_value' case.
7008 (clear_internalvar): Likewise.
7009 (show_convenience): Adding `TRY_CATCH' block.
7010 * value.h (internalvar_make_value): Delete, replace by...
7011 (struct internalvar_funcs): ... this.
7012 (create_internalvar_type_lazy) <fun>: Delete argument.
7013 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7014 (compile_internalvar_to_ax): New function.
7015 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7016 (tlb_funcs): New struct.
7017 (_initialize_windows_tdep): New argument when calling
7018 `create_internalvar_type_lazy'.
7020 2012-04-27 Mark Wielaard <mjw@redhat.com>
7022 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7023 see whether it is an address or a constant offset from DW_AT_low_pc.
7024 (dwarf2_record_block_ranges): Likewise.
7025 (read_partial_die): Likewise.
7027 2012-04-26 Mark Wielaard <mjw@redhat.com>
7029 * MAINTAINERS (Write After Approval): Add myself to the list.
7031 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7033 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7034 (proc_prettyprint_signal): Likewise.
7035 (proc_prettyprint_faultset): Likewise.
7036 (proc_prettyprint_fault): Likewise.
7037 (proc_prettyprint_actionset): Likewise.
7038 (proc_prettyprint_flags): Move to new proc-flags.c section.
7039 (proc_prettyfprint_flags): New prototype.
7040 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7041 (proc_syscall, proc_cursig): Likewise.
7042 (proc_set_kill_on_last_close): Likewise.
7043 (proc_unset_kill_on_last_close): Likewise.
7044 (proc_set_watchpoint): Make static.
7045 (proc_delete_dead_threads): Likewise.
7046 (procfs_set_watchpoint): Likewise.
7047 (_initialize_procfs): Add prototype.
7048 * proc-events.c: Include proc-utils.h.
7049 (init_syscall_table): Make static.
7050 * proc-api.c (_initialize_proc_api): Add prototype.
7051 * proc-flags.c: Include proc-utils.h.
7053 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7055 * configure.ac: Add AC_ARG_PROGRAM.
7056 * configure: Regenerate.
7058 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7060 Fix DW_AT_lower_bound defaults for DWARF-4+.
7061 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7062 high. New variable low_default_is_valid. Implement DWARF-4+
7063 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7064 no default by the DWARF standard.
7066 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7067 Maciej W. Rozycki <macro@codesourcery.com>
7069 * infrun.c (handle_inferior_event): Move the check for return
7070 trampolines ahead of the check for function trampolines.
7071 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7072 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7073 (mips_str_mips16_ret_stub): Likewise.
7074 (mips_str_call_fp_stub): Likewise.
7075 (mips_str_call_stub): Likewise.
7076 (mips_str_fn_stub): Likewise.
7077 (mips_str_pic): Likewise.
7078 (mips_in_frame_stub): New function.
7079 (mips_unwind_pc): Return the return address rather than the PC
7080 if the PC of an intermediate frame is inside a call thunk.
7081 (mips_is_stub_suffix): New function.
7082 (mips_is_stub_mode): Likewise.
7083 (mips_get_mips16_fn_stub_pc): Likewise.
7084 (mips_skip_mips16_trampoline_code): Update to handle all the
7085 currently generated stub types. Don't recurse into __fn_stub
7086 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7087 Use cooked register accesses.
7088 (mips_in_return_stub): Reintroduce function.
7089 (mips_skip_trampoline_code): Traverse trampolines recursively.
7090 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7092 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7096 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7098 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7099 * features/arm-with-m-vfp-d16.xml: New file. Describes
7100 Cortex-M with VFPv4-sp-d16 FPU register layout.
7101 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7102 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7103 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7104 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7105 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7107 2012-04-25 Doug Evans <dje@google.com>
7109 * cli/cli-decode.c (print_doc_line): Use stream instead of
7112 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7114 * features/arm-with-iwmmxt.c: Regenerate.
7115 * features/arm-with-m-fpa-layout.c: Likewise.
7116 * features/arm-with-m.c: Likewise.
7117 * features/arm-with-neon.c: Likewise.
7118 * features/arm-with-vfpv2.c: Likewise.
7119 * features/arm-with-vfpv3.c: Likewise.
7120 * features/mips-dsp-linux.c: Likewise.
7121 * features/mips-linux.c: Likewise.
7122 * features/mips64-dsp-linux.c: Likewise.
7123 * features/mips64-linux.c: Likewise.
7124 * features/s390-linux32.c: Likewise.
7125 * features/s390-linux32v1.c: Likewise.
7126 * features/s390-linux32v2.c: Likewise.
7127 * features/s390-linux64.c: Likewise.
7128 * features/s390-linux64v1.c: Likewise.
7129 * features/s390-linux64v2.c: Likewise.
7130 * features/s390x-linux64.c: Likewise.
7131 * features/s390x-linux64v1.c: Likewise.
7132 * features/s390x-linux64v2.c: Likewise.
7133 * features/tic6x-c62x-linux.c: Likewise.
7134 * features/tic6x-c62x.c: Likewise.
7135 * features/tic6x-c64x-linux.c: Likewise.
7136 * features/tic6x-c64x.c: Likewise.
7137 * features/tic6x-c64xp-linux.c: Likewise.
7138 * features/tic6x-c64xp.c: Likewise.
7139 * target-descriptions.c: Only generate `field_type' and `type'
7140 variables when needed.
7142 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7144 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7146 2012-04-25 Doug Evans <dje@google.com>
7148 Initial pass at Go language support.
7150 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7152 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7153 (YYFILES): Add go-exp.c.
7154 (YYOBJ): Add go-exp.o.
7155 (local-maintainer-clean): Delete go-exp.c.
7156 * defs.h (enum language): Add language_go.
7157 * dwarf2read.c: #include "go-lang.h".
7158 (fixup_go_packaging): New function.
7159 (process_full_comp_unit): Call it when processing Go CUs.
7160 (dwarf2_physname): Add Go support.
7161 (read_file_scope): Handle missing language spec for GNU Go.
7162 (set_cu_language): Handle DW_LANG_Go.
7163 * go-exp.y: New file.
7164 * go-lang.h: New file.
7165 * go-lang.c: New file.
7166 * go-typeprint.c: New file.
7167 * go-valprint.c: New file.
7168 * symtab.c: #include "go-lang.h".
7169 (symbol_set_language): Handle language_go.
7170 (symbol_find_demangled_name, symbol_set_names): Ditto.
7171 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7173 2012-04-24 Jim Meyering <meyering@redhat.com>
7175 avoid a few strncpy-induced buffer overruns
7176 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7177 fname and psargs before trying to concatenate.
7178 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7179 "name" before applying strchr.
7181 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7183 * CONTRIBUTE: Use unified diff instead of context diff when
7186 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7188 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7189 code. Handle JR.HB correctly.
7191 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7194 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7195 with the other MIPS16 helpers.
7197 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7199 * observer.sh: Conditionally declare `args', thus cleaning up
7200 unused instances of this variable.
7202 2012-04-24 Yao Qi <yao@codesourcery.com>
7204 Revert this patch to allow breakpoint always-inserted
7206 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7207 * breakpoint.c: Include record.h.
7208 (breakpoints_always_inserted_mode): Return false when the record
7211 * breakpoint.c (iterate_over_bp_locations): New.
7212 * breakpoint.h: Declare.
7213 New typedef walk_bp_location_callback.
7214 * record.c (record_open): Call record_init_record_breakpoints.
7215 (record_sync_record_breakpoints): New.
7216 (record_init_record_breakpoints): New.
7217 * NEWS: Mention supporting breakpoint always-inserted mode in
7220 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7222 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7225 2012-04-24 Yao Qi <yao@codesourcery.com>
7227 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7228 (is_catchpoint): ... it.
7229 (print_one_breakpoint_location): Caller update.
7230 * breakpoint.h: Update declaration.
7232 2012-04-23 David S. Miller <davem@davemloft.net>
7234 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7236 2012-04-23 Tom Tromey <tromey@redhat.com>
7238 * buildsym.c (add_free_pendings): Remove.
7239 * buildsym.h (add_free_pendings): Remove.
7241 2012-04-23 Doug Evans <dje@google.com>
7243 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7244 attr.u.unsnd instead of attr.u.addr.
7245 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7246 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7248 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7249 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7251 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7253 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7255 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7256 (mips_o32_return_value): Likewise.
7257 (mips_o64_return_value): Likewise.
7259 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7261 * ada-lang.c (ada_evaluate_subexp): Add cases for
7262 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7263 their treatment in eval.c.
7265 2012-04-21 David S. Miller <davem@davemloft.net>
7267 * sparc-tdep.c (X_DISP10): Define.
7268 (sparc_analyze_control_transfer): Handle compare-and-branch.
7270 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7272 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7273 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7275 2012-04-20 Nigel Stephens <nigel@mips.com>
7276 Maciej W. Rozycki <macro@codesourcery.com>
7278 * mips-tdep.c (mips_float_register_p): New function.
7279 (mips_convert_register_float_case_p): Use mips_float_register_p.
7280 (mips_register_type): Likewise.
7281 (mips_print_register): Likewise.
7282 (print_gp_register_row): Likewise.
7283 (mips_print_registers_info): Likewise.
7285 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7287 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7290 2012-04-20 Andrew Pinski <apinski@cavium.com>
7292 * MAINTAINERS (Write After Approval): Add myself to the list.
7294 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7296 * MAINTAINERS: Update my e-mail address.
7298 2012-04-20 Pedro Alves <palves@redhat.com>
7300 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7302 * configure: Regenerate.
7304 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7306 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7308 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7310 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7312 Fix compilation compatibility with python-2.4
7313 * python/py-type.c (convert_field): Cast ADDRSTRING for
7314 PyObject_SetAttrString as non-const. New comment.
7316 2012-04-19 Tom Tromey <tromey@redhat.com>
7318 * top.c (quit_target): Use all_cleanups.
7319 * main.c (captured_command_loop): Use all_cleanups.
7320 * exceptions.c (throw_exception): Use all_cleanups.
7322 2012-04-19 Pedro Alves <palves@redhat.com>
7324 * Makefile.in (GNULIB_BUILDDIR): New.
7325 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7326 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7327 (CLEANDIRS). Remove gnulib/import.
7328 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7330 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7331 (gnulib/import/Makefile): Replace gnulib/import with
7332 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7333 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7334 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7335 acx_configure_dir.m4.
7336 * acinclude.m4: Include acx_configure_dir.m4.
7337 * acx_configure_dir.m4: New file.
7338 * aclocal.m4: Regenerate.
7339 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7340 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7341 (GNULIB): New variable.
7342 (GNULIB_STDINT_H): Adjust.
7343 (AC_OUTPUT): Don't output gnulib/Makefile.
7344 * gdb/defs.h: Include build-gnulib/config.h.
7345 * aclocal.m4: Regenerate.
7346 * config.in: Regenerate.
7347 * configure: Regenerate.
7349 * gnulib/Makefile.in: New file.
7350 * gnulib/configure.ac: New file.
7351 * gnulib/aclocal.m4: New file.
7352 * gnulib/config.in: New file.
7353 * gnulib/configure: New file.
7354 * gnulib/: Re-run gnulib-tool to adjust.
7356 2012-04-19 Doug Evans <dje@google.com>
7358 * cleanups.h (struct cleanup): Move to cleanups.c.
7359 (make_cleanup_dtor_ftype): New typedef.
7360 (make_cleanup_dtor): Use it.
7361 (ALL_CLEANUPS): Replace with ...
7362 (all_cleanups): ... this. Declare. All uses updated.
7363 * cleanups.c: #include "gdb_assert.h".
7364 (sentinel_cleanup): New static global.
7365 (SENTINEL_CLEANUP): Define.
7366 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7367 (make_my_cleanup2): Assert result is non-NULL.
7368 (all_cleanups): New function.
7369 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7372 2012-04-19 Pedro Alves <palves@redhat.com>
7374 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7375 Adjust paths to gnulib imported files.
7377 2012-04-19 Pedro Alves <palves@redhat.com>
7379 * gnulib/: Move whole directory ...
7380 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7381 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7382 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7383 (aclocal_m4_deps): Adjust.
7384 * aclocal.m4: Regenerate.
7385 * configure: Regenerate.
7386 * configure.ac: Adjust AC_OUTPUT output.
7388 2012-04-19 Yao Qi <yao@codesourcery.com>
7390 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7392 * vec.c: Move it ...
7393 * common/vec.c: ... here.
7394 * vec.h: Move it ...
7395 * common/vec.h: ... here.
7397 2012-04-19 Yao Qi <yao@codesourcery.com>
7399 * gdb-code-style.el: New.
7401 2012-04-18 Pedro Alves <palves@redhat.com>
7403 Update gnulib from latest git.
7404 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7406 * gnulib/Makefile.am: Update.
7407 * gnulib/dummy.c: Update.
7408 * gnulib/extra/arg-nonnull.h: Update.
7409 * gnulib/extra/c++defs.h: Update.
7410 * gnulib/extra/update-copyright: Update.
7411 * gnulib/extra/warn-on-use.h: Update.
7412 * gnulib/inttypes.in.h: Update.
7413 * gnulib/m4/00gnulib.m4: Update.
7414 * gnulib/m4/extensions.m4: Update.
7415 * gnulib/m4/gnulib-cache.m4: Update.
7416 * gnulib/m4/gnulib-common.m4: Update.
7417 * gnulib/m4/gnulib-comp.m4: Update.
7418 * gnulib/m4/gnulib-tool.m4: Update.
7419 * gnulib/m4/include_next.m4: Update.
7420 * gnulib/m4/inttypes-pri.m4: Update.
7421 * gnulib/m4/inttypes.m4: Update.
7422 * gnulib/m4/longlong.m4: Update.
7423 * gnulib/m4/memchr.m4: Update.
7424 * gnulib/m4/memmem.m4: Update.
7425 * gnulib/m4/mmap-anon.m4: Update.
7426 * gnulib/m4/multiarch.m4: Update.
7427 * gnulib/m4/onceonly.m4: Update.
7428 * gnulib/m4/stddef_h.m4: Update.
7429 * gnulib/m4/stdint.m4: Update.
7430 * gnulib/m4/string_h.m4: Update.
7431 * gnulib/m4/warn-on-use.m4: Update.
7432 * gnulib/m4/wchar_h.m4: Update.
7433 * gnulib/m4/wchar_t.m4: Update.
7434 * gnulib/m4/wint_t.m4: Update.
7435 * gnulib/memchr.c: Update.
7436 * gnulib/memmem.c: Update.
7437 * gnulib/stddef.in.h: Update.
7438 * gnulib/stdint.in.h: Update.
7439 * gnulib/str-two-way.h: Update.
7440 * gnulib/string.in.h: Update.
7441 * gnulib/wchar.in.h: Update.
7443 * gnulib/extra/arg-nonnull.h: Delete.
7444 * gnulib/extra/c++defs.h: Delete.
7445 * gnulib/extra/warn-on-use.h: Delete.
7446 * gnulib/m4/wchar_h.m4: Delete.
7447 * gnulib/m4/wint_t.m4: Delete.
7448 * gnulib/wchar.in.h: Delete.
7450 * gnulib/extra/snippets/arg-nonnull.h: New.
7451 * gnulib/extra/snippets/c++defs.h: New.
7452 * gnulib/extra/snippets/warn-on-use.h: New.
7454 * aclocal.m4: Regenerate.
7455 * config.in: Regenerate.
7456 * configure: Regenerate.
7457 * gnulib/Makefile.in: Regenerate.
7459 2012-04-18 Pedro Alves <palves@redhat.com>
7461 Reimport the update-copyright module from gnulib
7462 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7464 * configure: Regenerate.
7465 * gnulib/Makefile.am: Update.
7466 * gnulib/Makefile.in: Regenerate.
7467 * gnulib/extra/update-copyright: Update.
7468 * gnulib/m4/gnulib-cache.m4: Update.
7469 * gnulib/m4/gnulib-comp.m4: Update.
7471 2012-04-18 Tristan Gingold <gingold@adacore.com>
7473 * configure.ac (aix): Put -lpthread into libs.
7474 * configure: Regenerate.
7476 2012-04-18 Tom Tromey <tromey@redhat.com>
7478 * linespec.c (convert_linespec_to_sals): Don't use
7480 (compare_msymbols): Arguments are minsym_and_objfile, not
7481 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7483 2012-04-18 Pedro Alves <palves@redhat.com>
7485 Revert gnulib/ part of:
7486 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7487 Copyright year update in most files (performed by copyright.sh).
7489 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 Fix 64-bit constants on 32-bit hosts.
7492 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7493 from unsigned long to ULONGEST.
7494 (read_signed_leb128): Change declaration return type from long to
7496 (dwarf2_const_value_attr): Change declaration parameter value from long
7498 (dwarf2_compute_name): Change variable value from long to LONGEST.
7499 (read_unsigned_leb128): Change return type, variable result and some
7500 casts from unsigned long to ULONGEST.
7501 (read_signed_leb128): Change return type, variable result and some
7502 casts from long to LONGEST.
7503 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7504 value from long to LONGEST.
7505 (dwarf2_const_value): Change variable value from long to LONGEST.
7506 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7507 plongest and hex_string.
7508 * symtab.h (struct general_symbol_info): Change ivalue from long to
7509 LONGEST, remove the comment.
7510 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7511 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7513 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7516 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7517 * ada-lang.c (ada_discrete_type_high_bound)
7518 (ada_discrete_type_low_bound): Fix function comment. Use
7519 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7520 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7521 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7522 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7523 Use TYPE_FIELD_ENUMVAL.
7524 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7525 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7526 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7527 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7529 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7530 * dwarf2read.c (process_enumeration_scope): Likewise.
7531 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7533 (class StructMainTypePrettyPrinter): Support also
7534 FIELD_LOC_KIND_ENUMVAL.
7535 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7537 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7538 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7539 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7540 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7542 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7543 accommodate enumval.
7544 (struct call_site): Adjust loc_kind to accommodate enumval.
7545 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7546 (TYPE_FIELD_ENUMVAL): New macros.
7547 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7548 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7550 * p-typeprint.c (pascal_type_print_base): Likewise.
7551 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7553 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7554 * python/py-type.c (convert_field): New variable addrstring. Use
7555 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7556 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7557 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7558 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7560 * valprint.c (generic_val_print): Likewise.
7562 2012-04-17 Doug Evans <dje@google.com>
7564 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7566 * dwarf2read.c: Whitespace fixes.
7567 (lookup_signatured_type): Tweak comment.
7568 (get_die_type_at_offset): Fix comment.
7570 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7572 * xcoffread.c (xcoff_secnum_to_sections): New function.
7573 (secnum_to_section, secnum_to_bfd_section): Reimplement
7574 using xcoff_secnum_to_sections. Rename "secnum" parameter
7576 (RECORD_MINIMAL_SYMBOL): Delete.
7577 (record_minimal_symbol): New function.
7578 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7579 by call to record_minimal_symbol and set misc_func_recorded
7580 to 1. Set last_csect_sec to the XCOFF section index instead
7581 of GDB's section_offset index. Update calls to
7582 prim_record_minimal_symbol_and_info to pass the BFD section
7585 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7587 * xcoffread.c (read_xcoff_symtab): Delete variables
7588 last_csect_val and last_csect_sec and associated code.
7590 2012-04-17 Doug Evans <dje@google.com>
7592 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7593 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7594 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7595 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7597 * cleanups.h: New file.
7598 * cleanups.c: New file.
7599 * Makefile.in (SFILES): Add cleanups.c.
7600 (HFILES_NO_SRCDIR): Add cleanups.h.
7601 (COMMON_OBS): Add cleanups.o.
7602 * defs.h (struct cleanup): Moved to cleanups.h.
7603 (do_cleanups,do_final_cleanups): Ditto.
7604 (discard_cleanups,discard_final_cleanups): Ditto
7605 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7606 (save_cleanups,save_final_cleanups): Ditto.
7607 (restore_cleanups,restore_final_cleanups): Ditto.
7608 (null_cleanup): Ditto.
7609 (make_my_cleanup,make_my_cleanup2): Ditto.
7610 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7611 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7612 (do_cleanups,do_final_cleanups): Ditto.
7613 (discard_cleanups,discard_final_cleanups): Ditto
7614 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7615 (save_cleanups,save_final_cleanups): Ditto.
7616 (restore_cleanups,restore_final_cleanups): Ditto.
7617 (null_cleanup): Ditto.
7618 (make_my_cleanup,make_my_cleanup2): Ditto.
7619 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7621 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7623 (make_cleanup_dyn_string_delete): Ditto.
7624 (make_cleanup_ui_file_delete): Ditto.
7625 (make_cleanup_ui_out_redirect_pop): Ditto.
7626 (make_cleanup_free_section_addr_info): Ditto.
7627 (make_cleanup_restore_integer): Ditto.
7628 (make_cleanup_unpush_target): Ditto.
7629 (make_cleanup_value_free_to_mark): Ditto.
7630 (make_cleanup_value_free): Ditto.
7631 (make_cleanup_free_so): Ditto.
7633 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7635 New option "set debug auto-load".
7636 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7637 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7638 (auto_load_safe_path_vec_update)
7639 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7641 (file_is_auto_load_safe): New parameters debug_fmt and ....
7642 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7643 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7644 caller by explanatory string.
7645 (_initialize_auto_load): Register "set debug auto-load".
7646 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7648 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7649 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7650 by explanatory string.
7651 * main.c (captured_main): Likewise.
7652 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7653 (source_section_scripts): Likewise.
7655 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7657 New option "set auto-load safe-path".
7658 * NEWS: New commands "set auto-load safe-path"
7659 and "show auto-load safe-path".
7660 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7661 (auto_load_safe_path, auto_load_safe_path_vec)
7662 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7663 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7664 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7665 (source_gdb_script_for_objfile): New variable is_safe. Call
7666 file_is_auto_load_safe. Return if it is not.
7667 (struct loaded_script): New field loaded.
7668 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7669 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7670 output "Missing" to "No".
7671 (_initialize_auto_load): New variable cmd. Initialize
7672 auto_load_safe_path. Register "set auto-load safe-path",
7673 "show auto-load safe-path" and "add-auto-load-safe-path".
7674 * auto-load.h (maybe_add_script): Add parameter loaded.
7675 (file_is_auto_load_safe): New declaration.
7676 * config.in: Regenerate.
7677 * configure: Regenerate.
7678 * configure.ac: New parameters --with-auto-load-safe-path
7679 and --without-auto-load-safe-path.
7680 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7681 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7682 * main.c (captured_main): Check file_is_auto_load_safe for
7684 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7685 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7686 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7689 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7691 auto-load: Implementation.
7692 * NEWS: New descriptions for "info auto-load",
7693 "info auto-load gdb-scripts", "info auto-load python-scripts",
7694 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7695 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7696 and "show auto-load-scripts". New description for "set auto-load",
7697 "show auto-load", "set auto-load gdb-scripts",
7698 "show auto-load gdb-scripts", "set auto-load python-scripts",
7699 "show auto-load python-scripts", "set auto-load local-gdbinit",
7700 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7701 "show auto-load libthread-db".
7702 * auto-load.c: Remove include python/python-internal.h. Add includes
7703 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7705 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7706 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7707 (gdbpy_global_auto_load): Rename to ...
7708 (global_auto_load): ... here.
7709 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7710 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7711 (script_language_gdb, source_gdb_script_for_objfile): New.
7712 (struct loaded_script): New field language.
7713 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7715 (maybe_add_script): Add parameter language. Drop redundant
7716 entry.full_path initialization. Initialize entry.language and
7718 (auto_load_objfile_script): Change parameter suffix to language.
7719 Remove the call of maybe_add_script.
7720 Call language->source_script_for_objfile.
7721 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7723 (collect_matching_scripts): Adjust it for
7724 struct collect_matching_scripts_data.
7725 (auto_load_info_scripts_pattern_nl): New variable.
7726 (info_auto_load_scripts): Rename to ...
7727 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7728 for struct collect_matching_scripts_data.
7729 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7730 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7731 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7732 (auto_load_info_cmdlist_get): New.
7733 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7734 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7735 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7736 "info auto-load local-gdbinit".
7737 * auto-load.h (struct script_language): New.
7738 (gdbpy_global_auto_load): Rename to ...
7739 (global_auto_load): ... here.
7740 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7741 (auto_load_local_gdbinit_loaded): New declarations.
7742 (maybe_add_script): New parameter language.
7743 (auto_load_objfile_script): Change parameter suffix to language.
7744 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7745 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7746 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7748 * linux-thread-db.c: Include auto-load.h and ctype.h.
7749 (auto_load_thread_db, show_auto_load_thread_db): New.
7750 (struct thread_db_info): New field filename.
7751 (delete_thread_db_info): Call xfree for FILENAME.
7752 (try_thread_db_load): Initialize FILENAME.
7753 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7754 if !AUTO_LOAD_THREAD_DB.
7755 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7756 (_initialize_thread_db): Install auto_load_thread_db
7757 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7758 as "info auto-load libthread-db".
7759 * main.c (captured_main): Rename gdbpy_global_auto_load to
7760 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7761 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7762 (print_gdb_help): Extend the help for 'local init file'.
7763 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7764 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7765 (auto_load_scripts): Rename to ...
7766 (auto_load_python_scripts): ... here, update the comment.
7767 (gdbpy_load_auto_script_for_objfile): New declaration.
7768 (show_auto_load_python_scripts, script_language_python)
7769 (gdbpy_load_auto_script_for_objfile): New.
7770 (source_section_scripts): Refactor the code.
7771 (load_auto_scripts_for_objfile): Rename to ...
7772 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7773 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7774 (info_auto_load_python_scripts): New.
7775 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7776 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7777 Register "set auto-load-scripts" as its deprecated alias. Register
7778 "info auto-load python-scripts". Register "info auto-load-scripts" as
7779 its deprecated alias.
7780 (load_auto_scripts_for_objfile): Rename to ...
7781 (gdbpy_load_auto_scripts_for_objfile): ... here.
7782 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7783 (gdbpy_load_auto_scripts_for_objfile): ... here.
7785 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7787 auto-load: Move files.
7788 * Makefile.in (SFILES): Add auto-load.c.
7789 (HFILES_NO_SRCDIR): Add auto-load.h.
7790 (COMMON_OBS): Add auto-load.o.
7791 (distclean): Change .gdbinit for gdb-gdb.gdb.
7792 * auto-load.c: New file, with parts from python/py-auto-load.c.
7793 * auto-load.h: New file, with parts from python/python.h.
7794 * configure: Regenerate.
7795 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7796 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7797 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7798 * main.c: Include auto-load.h.
7799 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7800 command.h, observer.h and progspace.h to auto-load.c. Add include
7802 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7803 (struct loaded_script, auto_load_pspace_data)
7804 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7805 (hash_loaded_script_entry, eq_loaded_script_entry)
7806 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7807 (maybe_add_script): Move to auto-load.c.
7808 (source_section_scripts): Change maybe_add_script parameters passing,
7809 use script_not_found_warning_print.
7810 (clear_section_scripts, auto_load_objfile_script)
7811 (auto_load_new_objfile, loaded_script_ptr)
7812 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7813 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7814 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7815 auto_load_new_objfile and info_auto_load_scripts initizations to
7817 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7819 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7822 * charset.c (find_charset_names): Remove variables ix and elt.
7823 Use free_char_ptr_vec.
7824 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7825 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7826 debugdir_end. New variable debugdir_len.
7827 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7828 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7830 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7831 and elt. Use free_char_ptr_vec.
7832 * source.c (add_path): Remove variables argv, arg and argv_index.
7833 New variables dir_vec, back_to, ix and name.
7834 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7835 make_cleanup_freeargv. Remove variable separator. Simplify the code
7836 no longer expecting DIRNAME_SEPARATOR.
7837 (openp): Remove variable p, p1 and len. New variables dir_vec,
7838 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7839 no longer expecting DIRNAME_SEPARATOR.
7840 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7841 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7843 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7844 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7845 (dirnames_to_char_ptr_vec): New functions.
7847 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7850 * source.c (add_path): Remove always true conditional 'p == 0' and
7851 unindent its code block.
7853 2012-04-17 Pedro Alves <palves@redhat.com>
7855 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7856 (FIELD_BITPOS_LVAL): ... this.
7857 (FIELD_BITPOS): New.
7858 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7859 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7860 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7862 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7864 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7865 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7866 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7869 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7871 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7872 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7873 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7874 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7875 * jv-lang.c (java_link_class_type): Likewise, once.
7876 * stabsread.c (read_enum_type): Likewise.
7878 2012-04-16 Yao Qi <yao@codesourcery.com>
7880 * common/agent.c (agent_run_command): Add one more parameter `len'.
7882 * common/agent.h: Update declaration.
7883 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7885 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7887 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7890 * value.c (value_actual_type): New function.
7891 * value.h (value_actual_type): New declaration.
7892 * varobj.c (update_type_if_necessary): New function.
7893 (varobj_create): Call value_actual_type instead of
7895 (install_dynamic_child): distinct changed and type changed MI variable
7897 (update_dynamic_varobj_children): Updated for install_dynamic_child
7898 change. All callers updated.
7899 (varobj_update): Support for MI variable object type change if
7900 the value changed and RTTI is used to determine the type.
7901 (create_child_with_value): Call value_actual_type instead of
7903 (adjust_value_for_child_access): Extended with a new parameter which
7904 specify whether the given value should be casted to enclosing type.
7905 All callers updated.
7907 2012-04-14 Yao Qi <yao@codesourcery.com>
7909 Import gnulib module inttypes from git
7910 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7911 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7912 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7913 gnulib/m4/inttypes-pri.m4
7914 * aclocal.m4, config.in, configure: Regenerated.
7915 * gnulib/Makefile.am: Update.
7916 * gnulib/Makefile.in: Update.
7917 * gnulib/m4/gnulib-cache.m4: Update.
7918 * gnulib/m4/gnulib-comp.m4: Update.
7919 * gnulib/inttypes.in.h: New.
7920 * gnulib/m4/inttypes-pri.m4: New.
7921 * gnulib/m4/inttypes.m4: New.
7923 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7925 * infrun.c (resume): Update PC address to the real PC after
7926 preparing to do displaced stepping.
7928 2012-04-12 Doug Evans <dje@google.com>
7930 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7931 All callers updated.
7933 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7935 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7937 2012-04-12 Doug Evans <dje@google.com>
7939 * dwarf2read.c (create_all_type_units): Renamed from
7940 create_debug_types_hash_table. All callers updated.
7942 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7943 local type_sig to sig_type, type_offset to type_offset_in_tu.
7944 (hash_signatured_type): Renamed from hash_type_signature,
7945 all callers updated.
7946 (eq_signatured_type): Renamed from eq_type_signature,
7947 all callers updated.
7948 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7949 (process_enumeration_scope): Ditto.
7950 (lookup_signatured_type_at_offset): Ditto.
7951 (load_full_type_unit, read_signatured_type): Ditto.
7953 2012-04-12 Yao Qi <yao@codesourcery.com>
7955 * remote.c (async_remote_interrupt): Correct function name in
7957 (async_remote_interrupt_twice): Ditto.
7959 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7961 * source.c (find_and_open_source): Consistently pass resulting
7962 full path through xfullpath.
7964 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7966 Provide more specific displaced-stepping memory error message.
7967 * infrun.c (displaced_step_prepare): New variable status. Call
7968 target_read_memory instead of read_memory, provide more specific
7971 2012-04-11 Tristan Gingold <gingold@adacore.com>
7974 * darwin-nat.c (darwin_execvp): Revert previous patch.
7976 2012-04-11 Tristan Gingold <gingold@adacore.com>
7979 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7982 2012-04-11 Tristan Gingold <gingold@adacore.com>
7984 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7987 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7989 New command 'explore' which helps explore values and types in
7991 * NEWS: Add an entry about the new 'explore' command.
7992 * data-directory/Makefile.in: Add gdb/command/explore.py
7993 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7994 command using the GDB Python API.
7996 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7998 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7999 extension in jump target calculation.
8001 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8003 * mips-tdep.c (mips32_next_pc): Handle JALX.
8005 2012-04-10 Yao Qi <yao@codesourcery.com>
8007 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8009 2012-04-10 Yao Qi <yao@codesourcery.com>
8011 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8012 and gnulib/m4/gnulib-tool.m4.
8014 2012-04-10 Doug Evans <dje@google.com>
8016 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8017 (load_partial_dies): Clarify comment.
8018 (find_partial_die): Support rereading type units.
8019 Clarify CU handling, if we know offset is in CU, don't search for the
8020 containing CU. Add comment regarding memory waste.
8022 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8024 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8025 i386/x32-avx and i386/x32-avx-linux.
8026 (i386/x32-expedite): New.
8027 (i386/x32-linux-expedite): Likewise.
8028 (i386/x32-avx-expedite): Likewise.
8029 (i386/x32-avx-linux-expedite): Likewise.
8030 ($(outdir)/i386/x32.dat): Likewise.
8031 ($(outdir)/i386/x32-linux.dat): Likewise.
8032 ($(outdir)/i386/x32-avx.dat): Likewise.
8033 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8035 * features/i386/x32-avx-linux.xml: New file.
8036 * features/i386/x32-avx.xml: Likewise.
8037 * features/i386/x32-core.xml: Likewise.
8038 * features/i386/x32-linux.xml: Likewise.
8039 * features/i386/x32.xml: Likewise.
8041 * features/i386/x32-avx-linux.c: New. Generated.
8042 * features/i386/x32-avx.c: Likewise.
8043 * features/i386/x32-linux.c: Likewise.
8044 * features/i386/x32.c: Likewise.
8045 * regformats/i386/x32-avx-linux.dat: Likewise.
8046 * regformats/i386/x32-avx.dat: Likewise.
8047 * regformats/i386/x32-linux.dat: Likewise.
8048 * regformats/i386/x32.dat: Likewise.
8050 2012-04-10 Tristan Gingold <gingold@adacore.com>
8052 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8053 code to kill the inferior.
8055 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8057 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8059 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8061 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8062 (yyvsp): New defines.
8063 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8065 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8067 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8069 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8071 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8074 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8076 * sparc64-tdep.c (sparc64_store_arguments)
8077 (sparc64_store_arguments): Fix coding style.
8079 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8081 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8082 complex floats, adjust some related comments and tighten a related
8084 (sparc64_extract_return_value): Handle complex floats.
8086 2012-04-07 Doug Evans <dje@google.com>
8088 * dwarf2read.c (load_partial_dies): Change condition to assert.
8090 2012-04-06 Doug Evans <dje@google.com>
8092 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8095 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8097 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8099 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8100 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8103 2012-04-05 Keith Seitz <keiths@redhat.com>
8105 * linespec.c (decode_compound): Remove.
8106 (enum offset_relative_sign): New enum.
8107 (struct line_offset): New struct.
8108 (struct linespec): New struct.
8109 (struct linespec_state): Move file_symtabs,
8110 user_filename, and user_function into struct linespec.
8111 Make result an anonymous struct holding vectors of
8112 symbolp and minsym_and_objfile_d.
8113 Add language member.
8114 (enum ls_token_type): New enum.
8115 (linespec_keywords): New array.
8116 (struct ls_token): New struct.
8117 (struct ls_parser): New struct.
8118 (linespec_lexer_lex_number): New function.
8119 (linespec_lexer_lex_keyword): New function.
8120 (is_ada_operator): New function.
8121 (skip_quote_char): New function.
8122 (copy_token_string): New function.
8123 (is_closing_quote_enclosed): New function.
8124 (find_parameter_list_end): New function.
8125 (linespec_lexer_lex_string): New function.
8126 (linespec_lexer_lex_one): New function.
8127 (linespec_lexer_consume_token): New function.
8128 (linespec_lexer_peek_token): New function.
8129 (cplusplus_error): Remove unused function.
8130 (find_methods): Update comment.
8131 (find_toplevel_char): Return const.
8132 (is_objc_method_format): Remove unused function.
8133 (find_toplevel_string): New function.
8134 (is_linespec_boundary): Remove.
8135 (symbol_not_found_error): New function.
8136 (find_method_overload_end): Remove function.
8137 (unexpected_linespec_error): New function.
8138 (keep_name_info): Remove.
8139 (linespec_parse_line_offset): New function.
8140 (linespec_parse_basic): New function.
8141 (canonicalize_linespec): New function.
8142 (decode_line_internal): Remove.
8143 (create_sals_line_offset): New function adapted from
8145 (convert_linespec_to_sals): New function.
8146 (parse_linespec): New function.
8147 (linespec_parser_new): New function.
8148 (linespec_state_destructor): Change parameter type to
8149 struct linespec_state *.
8150 Add language parameter.
8151 Remove freeing of moved members.
8152 (linespec_parser_delete): New function.
8153 (decode_line_full): Use parse_linespec and linespec_parser_new.
8154 (decode_line_1): Likewise.
8155 (decode_indirect): Rename to ...
8156 (linespec_expression_to_pc): ... this and rewrite
8157 to simply find CORE_ADDR, storing this result for later
8159 (locate_first_half): Remove.
8160 (deocde_objc): Add parameter LS.
8161 Initialize new struct collect_info members.
8162 Handle minimal symbols, too.
8163 (decode_compound): Delete.
8164 (lookup_prefix_sym): Rewrite.
8165 (compare_msymbols): New function.
8166 (find_method): Rewrite.
8167 Do not call cplusplus_error.
8168 (symtabs_from_filename): Rewrite.
8169 (collect_function_symbols): Delete.
8170 (find_function_symbols): Rewrite without ARGPTR-style
8172 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8173 (decode_dollar): Adapted and renamed to ...
8174 (linespec_parse_variable): ... this.
8175 (find_linespec_symbols): New function.
8176 (decode_label): Adapted and renamed to ...
8177 (find_label_symbols): ... this.
8178 (decode_digits_list_mode): Add and use LS argument.
8179 (decode_digits_ordinary): Likewise.
8180 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8181 If in list mode, allow any symbol class. Otherwise, only
8182 permit LOC_BLOCK symbols.
8183 (minsym_found): Update comments.
8184 (search_minsyms_for_name): Do not convert the matching symbol
8185 into a SAL. Simply push the symbol and objfile into the
8187 (decode_variable): Delete. Contents adapted into
8188 find_linespec_symbols.
8190 * cp-support.c (SKIP_SPACE): Remove.
8191 (operator_tokens): Remove unused global.
8192 (cp_validate_operator): Remove.
8193 * cp-support.h (cp_validate_operator): Remove declaration.
8195 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8197 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8198 for TYPE_VPTR_FIELDNO.
8199 * valprint.c (valprint_check_validity): Make it global, move the
8200 function comment ...
8201 * value.h (valprint_check_validity): ... to this new declaration.
8203 2012-04-02 Tristan Gingold <gingold@adacore.com>
8205 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8206 the STATE32 api for i386 state.
8207 (i386_darwin_store_inferior_registers): Likewise.
8209 2012-04-02 Tristan Gingold <gingold@adacore.com>
8211 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8213 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8216 2012-04-02 Tristan Gingold <gingold@adacore.com>
8219 * darwin-nat.c (darwin_execvp): Set binary preference.
8221 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8223 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8225 2012-03-30 Tom Tromey <tromey@redhat.com>
8227 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8228 of TRY_CATCH. Fix error handling.
8229 * python/py-value.c (convert_value_from_python): Move 'old'
8230 declaration to innermost scope.
8232 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8233 Andrey Smirnov <andrew.smirnov@gmail.com>
8235 -Wshadow warning fix.
8236 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8237 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8238 Adjust code accordingly.
8240 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8242 * ada-lang.c (symbol_completion_add): Rename parameter
8243 "encoded" into "encoded_p". Ajust code and documentation
8246 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8247 Andrey Smirnov <andrew.smirnov@gmail.com>
8249 -Wshadow warning fix.
8250 * ada-lang.c (symbol_completion_add): Rename parameter
8251 "wild_match" into wild_match_p. Update code and documentation
8254 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8256 * ada-lang.c (symbol_completion_match): Rename parameter
8257 "encoded" into "encoded_p". Ajust code and documentation
8260 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8261 Andrey Smirnov <andrew.smirnov@gmail.com>
8263 -Wshadow warning fix.
8264 * ada-lang.c (symbol_completion_match): Rename parameter
8265 "wild_match" into "wild_match_p". Adjust code and function
8266 documentation accordingly.
8268 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8269 Andrey Smirnov <andrew.smirnov@gmail.com>
8271 -Wshadow warning fix.
8272 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8273 "symbol_info" into "info". Adjust code accordingly.
8274 (ada_lookup_symbol): Likewise.
8276 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8278 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8279 of this function's documentation.
8281 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8282 Andrey Smirnov <andrew.smirnov@gmail.com>
8284 -Wshadow warning fix.
8285 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8286 variable into "wild_match_p". Adjust code accordingly.
8288 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8289 Andrey Smirnov <andrew.smirnov@gmail.com>
8291 -Wshadow warning fix.
8292 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8293 parameter into "wild_match_p". Adjust code accordingly.
8294 Document this parameter in the function description.
8296 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8297 Andrey Smirnov <andrew.smirnov@gmail.com>
8299 -Wshadow warning fix.
8300 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8301 "wild_match" parameter to "wild_match_p" (-Wshadow).
8303 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8305 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8306 in function documentation.
8308 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8309 Andrey Smirnov <andrew.smirnov@gmail.com>
8311 -Wshadow warning fix.
8312 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8313 variable into wild_match_p. Adjust code accordingly.
8315 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8316 Andrey Smirnov <andrew.smirnov@gmail.com>
8318 * ada-valprint.c (ada_val_print_1): Move the code handling
8319 TYPE_CODE_ENUM inside its own lexical block. Declare
8320 variables len and val there, instead of in the function's
8321 top level block. Avoid declaring deref_val again in a way
8322 that shadows another variable of the same name declared
8323 in one of the up-level blocks. Just re-use the up-level
8326 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8328 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8329 Replace block_found argument by symbol_info. Adjust
8330 implementation accordingly. Add function documentation.
8331 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8333 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8334 * ada-exp.y (write_object_renaming): Adjust to new
8335 ada_lookup_encoded_symbol API.
8337 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8339 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8342 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8344 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8345 (v850_register_name): Add the mpu and fpu register names.
8346 (v850e_register_name): Add the mpu and fpu register names.
8347 (v850e2_register_name): New function.
8348 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8351 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8353 * NEWS: Add entry for Ada varobj support.
8355 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8357 * varobj.c (default_value_is_changeable_p): New function,
8358 extracted from varobj_value_is_changeable_p. Add declaration.
8359 (ada_value_is_changeable_p): New function, extracted from
8360 varobj_value_is_changeable_p. Add declaration.
8361 (struct language_specific): New field "value_is_changeable_p".
8362 (languages): Add entries for new field.
8363 (varobj_create): Set language before calling install_new_value.
8364 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8365 "value_is_changeable_p" language callback.
8367 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8369 * ada-varobj.h, ada-varobj.c: New files.
8370 * Makefile.in (SFILES): Add ada-varobj.c.
8371 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8372 (COMMON_OBS): Add ada-varobj.o.
8374 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8376 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8377 (struct language_specific): New field "value_has_mutated".
8378 (languages): Set field "value_has_mutated" in each entry of array.
8379 (varobj_value_has_mutated): New function.
8380 (varobj_udpdate): Add handling of type mutation.
8381 (value_of_root): Add handling of type mutation.
8382 (ada_value_has_mutated): New function.
8384 2012-03-28 Pedro Alves <palves@redhat.com>
8386 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8387 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8389 2012-03-28 Tom Tromey <tromey@redhat.com>
8391 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8392 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8395 2012-03-28 Tom Tromey <tromey@redhat.com>
8397 * .dir-locals.el: New file.
8399 2012-03-28 Pedro Alves <palves@redhat.com>
8401 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8403 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8405 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8408 2012-03-27 Pedro Alves <palves@redhat.com>
8410 Eliminate struct ui_stream.
8412 * ui-out.h (struct ui_stream): Delete.
8413 (ui_out_field_stream): Adjust prototype.
8414 (ui_out_stream_new, ui_out_stream_delete)
8415 (make_cleanup_ui_out_stream_delete): Delete declarations.
8416 * ui-out.c (ui_out_field_stream): Change prototype to take a
8417 ui_file instead of a ui_stream. Adjust.
8418 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8419 (make_cleanup_ui_out_stream_delete): Delete.
8420 * breakpoint.c (print_breakpoint_location)
8421 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8422 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8423 * disasm.c (dump_insns): Ditto.
8424 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8426 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8427 ui_stream/ui_out_stream_new.
8428 * infcmd.c (print_return_value): Ditto.
8429 * osdata.c (info_osdata_command): Don't allocate a local
8431 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8432 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8433 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8434 allocate a local ui_stream.
8435 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8436 instead of ui_stream/ui_out_stream_new.
8437 (list_args_or_locals): Don't allocate a local ui_stream.
8438 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8439 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8440 ui_stream/ui_out_stream_new.
8441 * cli/cli-setshow.c (do_setshow_command): Ditto.
8443 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8445 * arm-linux-tdep.c (arm_linux_init_abi): Call
8446 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8447 * arm-tdep.c (arm_process_record): New function.
8448 (deallocate_reg_mem): New function.
8449 (decode_insn): New function.
8450 (thumb_record_branch): New function.
8451 (thumb_record_ldm_stm_swi(): New function.
8452 (thumb_record_misc): New function.
8453 (thumb_record_ld_st_stack): New function.
8454 (thumb_record_ld_st_imm_offset): New function.
8455 (thumb_record_ld_st_reg_offset(): New function.
8456 (thumb_record_add_sub_cmp_mov): New function.
8457 (thumb_record_shift_add_sub): New function.
8458 (arm_record_coproc_data_proc): New function.
8459 (arm_record_coproc): New function.
8460 (arm_record_b_bl): New function.
8461 (arm_record_ld_st_multiple): New function.
8462 (arm_record_ld_st_reg_offset): New function.
8463 (arm_record_ld_st_imm_offset): New function.
8464 (arm_record_data_proc_imm): New function.
8465 (arm_record_data_proc_misc_ld_str): New function.
8466 (arm_record_extension_space): New function.
8467 (arm_record_strx): New function.
8468 (sbo_sbz): New function.
8469 (struct insn_decode_record): New structure for arm insn record.
8470 (REG_ALLOC): New macro for reg allocations.
8471 (MEM_ALLOC): New macro for memory allocations.
8472 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8474 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8476 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8477 (store_register): Likewise.
8479 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8481 * MAINTAINERS (Write After Approval): Add myself to the list.
8483 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8485 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8486 Describe also the option "auto".
8488 2012-03-22 Richard Henderson <rth@redhat.com>
8490 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8491 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8493 2012-03-22 Richard Henderson <rth@redhat.com>
8495 * jit.c (jit_read_code_entry): Compute alignment and offset of
8496 int64_t member before computing entry_size.
8498 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8500 Python scripting: Add new method Value.referenced_value to
8501 gdb.Value which can dereference pointer as well as reference
8503 * NEWS: Add entry under 'Python scripting' about the new method
8504 Value.referenced_value on gdb.Value objects.
8505 * python/py-value.c (valpy_referenced_value): New function
8506 defining a new method on gdb.Value objects which can dereference
8507 pointer and reference values.
8509 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8511 * MAINTAINERS (Write After Approval): Add myself to the list.
8513 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8515 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8516 in addition to "main".
8518 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8520 * expression.h (op_name): Add declaration.
8521 * expprint.c (op_name): Remove declaration. Make non-static.
8522 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8524 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8526 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8528 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8529 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8530 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8531 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8532 (linux_nat_get_siginfo): Likewise.
8533 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8534 (linux_nat_get_siginfo): Likewise.
8535 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8536 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8537 * procfs.c (gdb_siginfo_t): Likewise.
8539 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8541 * .gitignore: Ignore more files.
8543 2012-03-20 Pedro Alves <palves@redhat.com>
8545 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8548 2012-03-20 Yao Qi <yao@codesourcery.com>
8550 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8553 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8555 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8556 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8557 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8559 * dwarf2expr.h (cu_offset, sect_offset): New types.
8560 (struct dwarf_expr_context_funcs) <dwarf_call>
8561 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8563 (struct dwarf_expr_context) <len>: Improve the comment.
8564 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8565 cu_offset and sect_offset.
8566 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8567 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8568 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8569 * dwarf2loc.h: Include dwarf2expr.h.
8570 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8572 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8573 Improve the comment.
8574 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8575 (struct signatured_type, struct line_header, struct partial_die_info)
8576 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8577 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8578 (get_die_type_at_offset, create_cus_from_index)
8579 (create_signatured_type_table_from_index, dw2_get_file_names)
8580 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8581 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8582 (create_debug_types_hash_table, process_psymtab_comp_unit)
8583 (load_partial_comp_unit, create_all_comp_units)
8584 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8585 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8586 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8587 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8588 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8589 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8590 (find_partial_die, read_attribute_value, lookup_die_type)
8591 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8592 (is_ref_attr): New function comment.
8593 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8594 Use cu_offset and sect_offset.
8595 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8596 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8597 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8598 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8599 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8600 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8601 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8604 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8607 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8608 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8610 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8612 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8614 * NEWS: Describe new options --init-command=FILE, -ix and
8615 --init-eval-command=COMMAND, -iex.
8616 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8617 CMDARG_INIT_COMMAND.
8618 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8619 "init-command", "init-eval-command", "ix" and "iex" to the variable
8620 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8621 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8622 (print_gdb_help): Describe --init-command=FILE, -ix and
8623 --init-eval-command=COMMAND, -iex.
8625 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8628 * main.c (struct cmdarg): Move it here from main. Add more comments.
8629 (cmdarg_s, VEC (cmdarg_s)): New.
8630 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8631 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8632 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8633 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8636 2012-03-19 Tom Tromey <tromey@redhat.com>
8638 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8640 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8643 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8646 2012-03-16 Chris January <chris.january@allinea.com>
8648 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8651 2012-03-16 Chris January <chris.january@allinea.com>
8653 * source.c (add_path): Use memmove instead of strcpy because the
8656 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8658 * value.h (set_value_parent): Add declaration.
8659 * value.c (set_value_parent): New function.
8660 (value_address): If VALUE->PARENT is not NULL, then use it as
8661 the base address instead of VALUE->LOCATION.address.
8662 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8663 the same as OBJ's address. Adjust V's offset accordingly.
8666 2012-03-16 Gary Benson <gbenson@redhat.com>
8668 PR breakpoints/10738
8669 * dwarf2read.c (use_deprecated_index_sections): New global.
8670 (struct partial_die_info): New member may_be_inlined.
8671 (read_partial_die): Set may_be_inlined where appropriate.
8672 (add_partial_subprogram): Add partial symbols for partial
8673 DIEs that may be inlined.
8674 (new_symbol_full): Add inlined subroutines to the current
8676 (write_psymtabs_to_index): Bump version number.
8677 (dwarf2_read_index): Read only version 6 indices unless
8678 use_deprecated_index_sections is set.
8679 * linespec.c (symbol_and_data_callback): New structure.
8680 (iterate_inline_only): New function.
8681 (iterate_over_all_matching_symtabs): New argument
8682 "include_inline". If nonzero, also call the callback for
8683 symbols representing inlined subroutines.
8684 (lookup_prefix_sym): Pass extra argument to the above.
8685 (find_function_symbols): Likewise.
8686 (add_matching_symbols_to_info): Likewise.
8687 * NEWS: Mention that GDB can now set breakpoints on inlined
8690 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8692 * p-typeprint.c (pascal_type_print_method_args):
8693 Fix display of parameter of methods.
8695 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8697 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8698 Add missing prototype.
8700 2012-03-16 Yao Qi <yao@codesourcery.com>
8701 Jan Kratochvil <jan.kratochvil@redhat.com>
8703 Fix false compilation warning.
8704 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8706 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8707 Pedro Alves <pedro@codesourcery.com>
8709 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8710 (arm_register_g_packet_guesses): New function.
8711 (arm_gdbarch_init): Don't force a target description with
8712 registers when the executable is detected as M-profile. Instead
8713 set gdbarch->tdep->is_m. Register `g' packet guesses.
8714 (_initialize_arm_tdep): Initialize the new target description.
8715 * features/arm-with-m-fpa-layout.xml: New description.
8716 * features/arm-with-m-fpa-layout.c: New, generated.
8718 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8720 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8721 Update function description.
8722 (insert_bp_location): Do not wipe bl->target_info out.
8723 * mem-break.c: #include "gdb_string.h".
8724 (default_memory_insert_breakpoint): Do not call target_read_memory
8725 with a pointer to the breakpoint's shadow_contents buffer. Use
8726 a local buffer instead.
8727 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8729 2012-03-15 Tom Tromey <tromey@redhat.com>
8731 * NEWS: Mention "info vtbl", not "info vtable".
8732 * cp-support.c (info_vtbl_command): Fix comment.
8733 (_initialize_cp_support): Fix text.
8735 2012-03-15 Tom Tromey <tromey@redhat.com>
8737 * cp-valprint.c (cp_print_value_fields): Use
8738 print_function_pointer_address for vtable slot.
8740 2012-03-15 Tom Tromey <tromey@redhat.com>
8742 * gnu-v3-abi.c (struct value_and_voffset): New.
8743 (hash_value_and_voffset, eq_value_and_voffset)
8744 (compare_value_and_voffset, compute_vtable_size)
8745 (print_one_vtable, gnuv3_print_vtable): New functions.
8746 (init_gnuv3_ops): Initialize 'print_vtable' field.
8747 * cp-support.c (info_vtbl_command): New function.
8748 (_initialize_cp_support): Add "info vtbl".
8749 * cp-abi.h (cplus_print_vtable): Declare.
8750 (struct cp_abi_ops) <print_vtable>: New field.
8751 * cp-abi.c (cplus_print_vtable): New function.
8754 2012-03-15 Tom Tromey <tromey@redhat.com>
8756 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8757 iterate_over_symbols.
8759 2012-03-14 Doug Evans <dje@google.com>
8761 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8762 DW_OP_GNU_parameter_ref.
8764 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8766 Fix double prompt of 'interpreter-exec mi'.
8767 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8768 (mi_interpreter_resume): use it.
8769 (mi_execute_command_input_handler): New function.
8770 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8771 mi_execute_command_input_handler.
8773 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8775 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8777 (darwin_debug_port_info): Make static.
8778 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8779 * machoread.c (_initialize_machoread): Add prototype.
8780 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8781 (i386_darwin_set_control, i386_darwin_get_control)
8782 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8783 i386_darwin_get_status, i386_darwin_get_control):
8784 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8786 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8788 * ax-gdb.c (gen_usual_unary): Remove special handling of
8789 enum and bool types.
8791 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8793 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8795 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8797 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8799 2012-03-13 Chris January <chris.january@allinea.com>
8801 * aix-thread.c (fill_sprs): Store the floating point registers
8802 at the correct offsets into vals.
8804 2012-03-13 Doug Evans <dje@google.com>
8806 * NEWS: Mention symbol-reloading has been deleted.
8807 * symfile.c (symbol_reloading): Delete.
8808 (show_symbol_reloading): Delete.
8809 (_initialize_symfile): Delete set/show symbol-reloading.
8811 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8812 read_in_chain until we have successfully read it in.
8813 (load_full_comp_unit): Ditto.
8814 (read_signatured_type): Add comment.
8816 2012-03-13 Chris January <chris.january@allinea.com>
8818 * stabsread.c (fix_common_block): Change type of valu argument
8821 2012-03-13 Chris January <chris.january@allinea.com>
8823 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8826 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8828 * common/linux-procfs.c (linux_proc_get_int): New, from
8829 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8831 (linux_proc_get_tgid): Only call linux_proc_get_int.
8832 (linux_proc_get_tracerpid): New.
8833 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8834 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8835 linux_proc_pid_has_state.
8836 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8837 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8838 (linux_ptrace_attach_warnings): New.
8839 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8841 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8842 (linux_nat_attach): New variables ex, buffer, message and message_s.
8843 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8845 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8847 * Makefile.in (linux-ptrace.o): New.
8848 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8850 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8851 * common/linux-ptrace.c: New file.
8852 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8853 * config/arm/linux.mh: Likewise.
8854 * config/i386/linux.mh: Likewise.
8855 * config/i386/linux64.mh: Likewise.
8856 * config/ia64/linux.mh: Likewise.
8857 * config/m32r/linux.mh: Likewise.
8858 * config/m68k/linux.mh: Likewise.
8859 * config/mips/linux.mh: Likewise.
8860 * config/pa/linux.mh: Likewise.
8861 * config/powerpc/linux.mh: Likewise.
8862 * config/powerpc/ppc64-linux.mh: Likewise.
8863 * config/powerpc/spu-linux.mh: Likewise.
8864 * config/s390/s390.mh: Likewise.
8865 * config/sparc/linux.mh: Likewise.
8866 * config/sparc/linux64.mh: Likewise.
8867 * config/xtensa/linux.mh: Likewise.
8868 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8869 common/linux-procfs.c.
8870 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8872 2012-03-13 Hui Zhu <teawater@gmail.com>
8873 Pedro Alves <palves@redhat.com>
8875 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8876 CREATE_BREAKPOINT_FLAGS_INSERTED.
8877 (create_breakpoint_sal, create_breakpoints_sal)
8878 (base_breakpoint_create_breakpoints_sal)
8879 (tracepoint_create_breakpoints_sal)
8880 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8882 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8883 (ftrace_command, strace_command): Adjust.
8884 (create_tracepoint_from_upload): Pass
8885 CREATE_BREAKPOINT_FLAGS_INSERTED.
8886 * breakpoint.h (enum breakpoint_create_flags): New.
8887 (create_breakpoint): New flags parameter.
8888 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8889 * python/py-breakpoint.c (bppy_init): Adjust.
8890 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8891 * spu-tdep.c (spu_catch_start): Adjust.
8893 2012-03-13 Pedro Alves <palves@redhat.com>
8894 Hui Zhu <teawater@gmail.com>
8895 Yao Qi <yao@codesourcery.com>
8897 * remote.c (struct remote_state): New field `starting_up'.
8898 (remote_start_remote): Set and clear it.
8899 (remote_can_download_tracepoint): If starting up, return false.
8901 2012-03-13 Yao Qi <yao@codesourcery.com>
8903 * inferior.h (struct inferior): Remove fields any_syscall_count,
8904 syscalls_counts and total_syscalls_count. Move them to new
8905 struct catch_syscall_inferior_data in breakpoint.c.
8906 * breakpoint.c: Call DEF_VEC_I(int).
8907 (struct catch_syscall_inferior_data): New.
8908 (get_catch_syscall_inferior_data): New.
8909 (catch_syscall_inferior_data_cleanup): New.
8910 (insert_catch_syscall): Update to access data in
8911 struct catch_syscall_inferior_data.
8912 (insert_catch_syscall): Likewise.
8913 (remove_catch_syscall): Likewise.
8914 (remove_catch_syscall): Likewise.
8915 (is_syscall_catchpoint_enabled): Likewise.
8916 (add_catch_command): Likewise.
8917 (_initialize_breakpoint): Register cleanup.
8918 * breakpoint.h: Removed DEF_VEC_I(int).
8919 * dwarf2loc.c: Call DEF_VEC_I(int).
8920 * mi/mi-main.c: Likewise.
8922 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8924 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8926 2012-03-12 Chris January <chris.january@allinea.com>
8928 * aix-thread.c (_initialize_aix_thread): Add prototype.
8929 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8930 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8932 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8934 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8935 include of "amd64-nat.h".
8937 2012-03-12 Tom Tromey <tromey@redhat.com>
8939 * buildsym.c (record_pending_block): Now static.
8940 * buildsym.h: (record_pending_block): Remove.
8942 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8944 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8946 2012-03-09 Tom Tromey <tromey@redhat.com>
8948 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8949 producer_is_gxx_lt_4_6>: New fields.
8950 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8952 2012-03-09 Tom Tromey <tromey@redhat.com>
8954 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8956 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8958 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8961 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8963 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8965 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8967 Fix -Wmissing-prototypes build.
8968 * arm-linux-nat.c (get_thread_id): Make it static.
8969 * xtensa-linux-nat.c (get_thread_id): Likewise.
8971 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8973 * server.c (process_point_options): If a conditional expression
8974 is found, only print a message if remote_debug is nonzero.
8976 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8978 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8979 of internal error for unknown/unsupported types.
8981 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8983 Fix CU relative vs. absolute DIE offsets.
8984 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8985 offset to offset_in_cu.
8986 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8988 (dwarf2_fetch_die_location_block): Rename parameter offset to
8989 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8991 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8993 * libunwind-frame.c: Rename to ...
8994 * ia64-libunwind-tdep.c: ... here.
8995 * libunwind-frame.h: Rename to ...
8996 * ia64-libunwind-tdep.h: ... here.
8997 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8998 ia64-libunwind-tdep.h.
8999 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9000 * README (--with-libunwind): Rename to ...
9001 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9002 * config.in: Regenerate.
9003 * configure: Regenerate.
9004 * configure.ac: New option --with-libunwind-ia64, make the
9005 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9006 Remove AC_DEFINE for HAVE_LIBUNWIND.
9007 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9008 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9009 Rename libunwind-frame in the general comment.
9010 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9011 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9012 Move forward declarations inside #ifndef. Rename libunwind-frame in
9013 the general comment.
9014 * ia64-tdep.c: Rename libunwind-frame.h #include to
9015 ia64-libunwind-tdep.h.
9016 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9017 (ia64_libunwind_descr): Rename libunwind-frame to
9018 ia64-libunwind-tdep in these function comments.
9019 * ia64-tdep.h: Rename libunwind-frame.h #include to
9020 ia64-libunwind-tdep.h.
9021 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9022 ia64-libunwind-tdep in that data comment.
9024 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9026 * libunwind-frame.h (struct frame_unwind): New declaration.
9028 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9030 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9031 "set breakpoint condition-evaluation" command.
9033 2012-03-08 Tristan Gingold <gingold@adacore.com>
9035 * sparc-stub.c: Move to stubs/
9036 * sh-stub.c: Likewise.
9037 * m68k-stub.c: Likewise.
9038 * m32r-stub.c: Likewise.
9039 * i386-stub.c: Likewise.
9041 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9043 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9044 linux_get_siginfo_type.
9046 * m68klinux-nat.c: Include "gdb_proc_service.h".
9047 (PTRACE_GET_THREAD_AREA): Define.
9048 (ps_get_thread_area): New function.
9050 2012-03-08 Yao Qi <yao@codesourcery.com>
9052 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9054 (remote_query_attached): Likewise.
9055 (remote_static_tracepoint_marker_at): Likewise.
9056 (remote_set_permissions): Likewise.
9057 (remote_detach_1, extended_remote_attach_1): Likewise.
9058 (send_g_packet, remote_vkill): Likewise.
9059 (extended_remote_disable_randomization): Likewise.
9060 (remote_add_target_side_condition): Likewise.
9061 (remote_insert_breakpoint): Likewise.
9062 (remote_remove_breakpoint): Likewise.
9063 (remote_insert_watchpoint): Likewise.
9064 (remote_remove_watchpoint): Likewise.
9065 (remote_insert_hw_breakpoint): Likewise.
9066 (remote_insert_hw_breakpoint): Likewise.
9067 (remote_remove_hw_breakpoint): Likewise.
9068 (remote_download_command_source): Likewise.
9069 (remote_download_tracepoint): Likewise.
9070 (remote_download_trace_state_variable): Likewise.
9071 (remote_disable_tracepoint): Likewise.
9072 (remote_trace_set_readonly_regions): Likewise.
9073 (remote_get_tracepoint_status): Likewise.
9074 (remote_trace_find): Likewise.
9075 (remote_get_trace_state_variable_value): Likewise.
9076 (remote_set_disconnected_tracing): Likewise.
9077 (remote_set_circular_trace_buffer): Likewise.
9078 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9079 (remote_use_agent): Likewise.
9080 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9083 2012-03-07 Pedro Alves <palves@redhat.com>
9085 * NEWS: Mention QProgramSignals.
9086 * inferior.h (update_signals_program_target): Declare.
9087 * infrun.c: (update_signals_program_target): New.
9088 (handle_command): Update the target of the new program signals
9090 * remote.c (PACKET_QProgramSignals): New enum.
9091 (last_program_signals_packet): New global.
9092 (remote_program_signals): New.
9093 (remote_start_remote): Update the target with the program signals
9095 (remote_protocol_features): Add entry for QPassSignals.
9096 (remote_open_1): Free anc clear last_program_signals_packet.
9097 (init_remote_ops): Install remote_program_signals.
9098 * target.c (update_current_target): Adjust.
9099 (target_program_signals): New.
9100 * target.h (struct target_ops) <to_program_signals>: New field.
9101 (target_program_signals): Declare.
9103 2012-03-07 Pedro Alves <palves@redhat.com>
9105 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9108 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9110 * m68klinux-nat.c (getregs_supplies): Make static.
9111 (getfpregs_supplies): Likewise.
9112 (have_ptrace_getregs): Likewise.
9114 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9116 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9117 in call to get_die_type_at_offset.
9119 2012-03-06 Stan Shebs <stan@codesourcery.com>
9121 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9122 * mi/mi-cmd-disas.c: Ditto.
9123 * mi/mi-cmd-env.c: Ditto.
9124 * mi/mi-cmd-file.c: Ditto.
9125 * mi/mi-cmd-stack.c: Ditto.
9126 * mi/mi-cmd-target.c: Ditto.
9127 * mi/mi-cmd-var.c: Ditto.
9128 * mi/mi-cmds.c: Ditto.
9129 * mi/mi-cmds.h: Ditto.
9130 * mi/mi-console.c: Ditto.
9131 * mi/mi-getopt.c: Ditto.
9132 * mi/mi-getopt.h: Ditto.
9133 * mi/mi-interp.c: Ditto.
9134 * mi/mi-main.c: Ditto.
9135 * mi/mi-out.c: Ditto.
9136 * mi/mi-parse.c: Ditto.
9137 * mi/mi-parse.h: Ditto.
9138 * mi/mi-symbol-cmds.c: Ditto.
9140 * mi/mi-getopt.h: Move mi_opt struct up.
9141 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9143 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9145 2012-03-06 Tom Tromey <tromey@redhat.com>
9147 * proc-service.c (ps_pglobal_lookup): Set the current program
9150 2012-03-06 Pedro Alves <palves@redhat.com>
9152 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9154 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9156 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9158 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9161 * common/linux-osdata.c (linux_common_core_of_thread): New function
9163 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9164 call by linux_common_core_of_thread.
9165 (linux_nat_core_of_thread_1): Remove.
9166 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9167 * linux-thread-db.c: Include linux-osdata.h.
9168 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9169 linux_common_core_of_thread.
9171 2012-03-05 Tom Tromey <tromey@redhat.com>
9173 * value.c (value_primitive_field): Don't fetch contents for
9176 2012-03-05 Tom Tromey <tromey@redhat.com>
9178 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9180 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9182 * s390-nat.c: Include "gregset.h".
9184 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9186 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9187 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9188 (libunwind_load): New variable so_error, use it for dlerror. Try to
9189 load also LIBUNWIND_SO_7.
9191 2012-03-05 Pedro Alves <palves@redhat.com>
9193 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9194 is not NULL, and remove resulting dead code.
9196 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9198 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9199 prologue to sh_analyze_prologue.
9200 (sh_analyze_prologue): Make better use of such an upper limit, and
9201 generally be more cautious about accessing memory.
9203 2012-03-05 Tom Tromey <tromey@redhat.com>
9205 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9206 _initialize_ia64_hpux_tdep.
9208 2012-03-05 Pedro Alves <palves@redhat.com>
9212 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9213 the register state is clear, supply explicit zero, instead of
9214 marking the register unavailable.
9216 2012-03-05 Tristan Gingold <gingold@adacore.com>
9218 * NEWS: Mention OpenVMS ia64 new target.
9220 2012-03-05 Tristan Gingold <gingold@adacore.com>
9222 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9223 (ia64_unw_accessors, ia64_unw_rse_accessors)
9224 (ia64_libunwind_descr): Declare.
9225 * ia64-vms-tdep.c: New file.
9226 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9227 (ia64_libunwind_descr): Make them public.
9228 * configure.tgt: Add ia64-*-*vms*.
9229 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9230 (ALLDEPFILES): Add ia64-vms-tdep.c
9232 2012-03-05 Tristan Gingold <gingold@adacore.com>
9234 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9235 * remote.c (PACKET_qXfer_uib): New enum value.
9236 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9237 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9238 (_initialize_remote): Call add_packet_config_cmd for
9241 2012-03-05 Tristan Gingold <gingold@adacore.com>
9243 * osabi.c (gdb_osabi_names): Add OpenVMS.
9244 (generic_elf_osabi_sniffer): Likewise.
9245 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9247 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9249 Removed unused code.
9250 * libunwind-frame.c (libunwind_frame_unwind)
9251 (libunwind_frame_base_address): Remove.
9252 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9254 2012-03-04 Yao Qi <yao@codesourcery.com>
9256 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9257 remove trailing new line.
9258 (agent_run_command, agent_run_command): Add _ markup.
9259 (agent_capability_check): Likewise.
9261 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9263 * breakpoint.c (set_condition_evaluation_mode): Set
9264 CONDITION_EVALUATION_MODE unconditionally.
9266 2012-03-03 Yao Qi <yao@codesourcery.com>
9268 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9269 * common/agent.h: Update declaration.
9270 * inf-child.c (inf_child_use_agent): New.
9271 (inf_child_can_use_agent): New.
9272 (inf_child_target): Initialize fields `to_use_agent'
9273 and `to_can_use_agent'.
9274 * agent.c (agent_new_objfile): New.
9275 (_initialize_agent): Add agent_new_objfile to new_objfile
9278 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9280 (linux_target_install_ops): Initialize field
9281 `to_static_tracepoint_markers_by_strid'.
9282 * remote.c (free_current_marker): Move it to ...
9283 * tracepoint.c (free_current_marker): ... here. New.
9284 (cleanup_target_stop): New.
9285 * tracepoint.h: Declare free_current_marker.
9286 * NEWS: Add one entry about `info static-tracepoint-marker'.
9288 2012-03-03 Yao Qi <yao@codesourcery.com>
9290 * common/agent.c (agent_loaded_p): New.
9291 (agent_look_up_symbols): New global.
9292 * common/agent.h: Declare agent_loaded_p.
9294 2012-03-03 Yao Qi <yao@codesourcery.com>
9296 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9297 (agent_capability_check, agent_capability_invalidate): New.
9298 (symbol_list): New array element.
9299 * common/agent.h (enum agent_capa): New.
9300 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9302 2012-03-03 Yao Qi <yao@codesourcery.com>
9304 * target.h (struct target_ops) <to_use_agent>: New field.
9305 (struct target_ops) <to_can_use_agent>: New field.
9306 (target_use_agent, target_can_use_agent): New macro.
9307 * target.c (update_current_target): Update.
9308 * remote.c: New enum `PACKET_QAgent'.
9309 (remote_protocol_features): Add a new element.
9310 (remote_use_agent, remote_can_use_agent): New.
9311 (init_remote_ops): Initialize field `can_use_agent' with
9312 remote_can_use_agent. Intiailize field `use_agent' with
9314 * common/agent.c (use_agent): New global.
9315 * common/agent.h: Declare it.
9316 * tracepoint.c (info_static_tracepoint_markers_command): Add
9318 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9319 (COMMON_OBS): Add common/agent.o and agent.o
9320 (common-agent.o): New rule.
9323 2012-03-03 Yao Qi <yao@codesourcery.com>
9325 * common/agent.c: New.
9326 * common/agent.h: New.
9327 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9329 * configure, configh.in: Regenerated.
9331 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9333 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9334 unless it exists for this architecture.
9336 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9338 * language.h (struct language_defn): New "method" la_read_var_value.
9339 * findvar.c: #include "language.h".
9340 (default_read_var_value): Renames read_var_value. Rewrite
9341 function description.
9342 (read_var_value): New function.
9343 * value.h (default_read_var_value): Add prototype.
9344 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9346 (ada_language_defn): Add entry for la_read_var_value.
9347 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9348 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9349 language_defn structures to add entry for new la_read_var_value
9352 2012-03-02 Tom Tromey <tromey@redhat.com>
9353 Pedro Alves <palves@redhat.com>
9355 PR breakpoints/13776:
9356 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9358 (delete_longjmp_breakpoint_at_next_stop): New.
9359 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9360 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9361 before deleting the inferior. Add comments.
9362 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9363 breakpoints immediately, but only on next stop. Move that code
9364 next to where we mark other breakpoints for deletion.
9366 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9368 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9370 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9373 2012-03-02 Pedro Alves <palves@redhat.com>
9375 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9377 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9379 Fix -Wmissing-prototypes build.
9380 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9381 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9382 (gdbsim_has_memory): Likewise.
9384 2012-03-02 Yao Qi <yao@codesourcery.com>
9386 Fix -Wmissing-prototypes build.
9387 * charset.c (phony_iconv_open): Make static.
9388 (phony_iconv_close, phony_iconv): Likewise.
9389 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9390 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9392 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9393 * ser-mingw.c (create_select_thread): Make static.
9394 * windows-termcap.c (tgetent): New prototype.
9395 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9397 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9399 Fix -Wmissing-prototypes build.
9400 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9401 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9402 (_initialize_loadable): New prototypes.
9404 2012-03-02 Doug Evans <dje@google.com>
9406 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9407 abbrev table, read_comp_unit will do it.
9409 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9411 Fix -Wmissing-prototypes build.
9412 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9413 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9414 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9415 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9416 (_initialize_arm_symbian_tdep): New prototype.
9417 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9418 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9419 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9421 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9422 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9424 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9425 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9426 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9428 * moxie-tdep.c (moxie_process_record): Likewise.
9429 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9430 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9431 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9432 (_initialize_rl78_tdep): New prototype.
9433 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9434 (_initialize_rx_tdep): New prototype.
9435 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9436 (_initialize_darwin_solib): New prototype.
9437 * solib-spu.c: Include solib-spu.h.
9438 (_initialize_spu_solib): New prototype.
9439 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9440 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9441 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9442 (tic6x_software_single_step): Make it static.
9443 (_initialize_tic6x_tdep): New prototype.
9445 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9447 Fix -Wmissing-prototypes build.
9448 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9449 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9451 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9453 Fix -Wmissing-prototypes build.
9454 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9455 (frv_have_stopped_data_address): Remove.
9457 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9459 Fix -Wmissing-prototypes build.
9460 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9461 * sh-tdep.c: Include sh64-tdep.h.
9462 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9463 * sh64-tdep.c: Include sh64-tdep.h.
9464 * sh64-tdep.h: New file.
9466 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9468 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9470 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9472 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9473 sp_regnum once the gdbarch_init_osabi hook has been called.
9475 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9477 * mips-tdep.c (mips32_bc1_pc): New function.
9478 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9479 BPOSGE32 and BPOSGE64 instructions.
9480 (deal_with_atomic_sequence): Likewise.
9481 (mips32_instruction_has_delay_slot): Likewise.
9483 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9484 Chris Dearman <chris@mips.com>
9485 Maciej W. Rozycki <macro@codesourcery.com>
9486 Joseph Myers <joseph@codesourcery.com>
9488 * features/mips-dsp.xml: New file.
9489 * features/mips64-dsp.xml: New file.
9490 * features/mips-dsp-linux.xml: New file.
9491 * features/mips64-dsp-linux.xml: New file.
9492 * features/Makefile (WHICH): Add mips-dsp-linux and
9494 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9495 * features/mips-dsp-linux.c: New file.
9496 * features/mips64-dsp-linux.c: New file.
9497 * regformats/mips-dsp-linux.dat: New file.
9498 * regformats/mips64-dsp-linux.dat: New file.
9499 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9501 (mips64_linux_register_addr): Likewise.
9502 (mips64_linux_regsets_fetch_registers): Likewise.
9503 (mips64_linux_regsets_store_registers): Likewise.
9504 (mips64_linux_fetch_registers): Update call to
9505 mips64_linux_regsets_fetch_registers.
9506 (mips64_linux_store_registers): Update call to
9507 mips64_linux_regsets_store_registers.
9508 (mips_linux_read_description): Probe for DSP registers.
9509 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9510 and initialize_tdesc_mips64_dsp_linux.
9511 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9512 Remove padding of no longer used embedded register slots.
9513 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9514 (MIPS_RESTART_REGNUM): Redefine enum value.
9515 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9517 (mips_tx39_reg_names): Likewise.
9518 (mips_linux_reg_names): New array of register names for Linux
9520 (mips_register_name): Check for a null pointer in
9521 mips_processor_reg_names and return an empty string.
9522 (mips_register_type): Exclude embedded registers for the IRIX
9524 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9525 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9527 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9528 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9529 (mips_gdbarch_init): Likewise. Initialize internal register
9530 indices for the Linux ABI. Use dynamic numbers to refer to
9531 registers, as applicable, while parsing the target description.
9532 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9534 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9536 * frame.h (read_frame_register_unsigned): Fix typo in function
9539 2012-03-01 Pedro Alves <palves@redhat.com>
9541 * jit-reader.in [!__cplusplus]
9542 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9544 2012-03-01 Pedro Alves <palves@redhat.com>
9546 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9547 * configure: Regenerate.
9549 2012-03-01 Pedro Alves <palves@redhat.com>
9551 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9552 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9553 (ftrace_command, strace_command): Make static.
9554 * d-lang.c (_initialize_d_language): Declare.
9555 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9556 * dwarf2loc.c (_initialize_dwarf2loc):
9557 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9558 * exec.c (exec_get_section_table): Make static.
9559 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9560 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9561 * inferior.c (remove_inferior_command, add_inferior_command)
9562 (clone_inferior_command): Make static.
9563 * linux-nat.c (linux_nat_thread_address_space)
9564 (linux_nat_core_of_thread): Make static.
9565 * linux-tdep.c (_initialize_linux_tdep): Declare.
9566 * objc-lang.c (_initialize_objc_lang): Declare.
9567 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9569 (_initialize_opencl_language): Declare.
9570 * record.c (_initialize_record): Declare.
9571 * remote.c (demand_private_info, remote_get_tib_address)
9572 (remote_supports_cond_tracepoints)
9573 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9575 * skip.c (_initialize_step_skip): Declare.
9576 * symtab.c (skip_prologue_using_lineinfo): Make static.
9577 * tracepoint.c (delete_trace_state_variable)
9578 (trace_variable_command, delete_trace_variable_command)
9579 (get_uploaded_tsv, find_matching_tracepoint_location)
9580 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9582 * value.c (pack_unsigned_long): Make static.
9583 * varobj.c (varobj_ensure_python_env): Make static.
9584 * windows-tdep.c (_initialize_windows_tdep): Declare.
9585 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9587 2012-03-01 Pedro Alves <palves@redhat.com>
9589 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9591 (linux_init_abi): Install it as has_shared_address_space gdbarch
9594 2012-03-01 Pedro Alves <palves@redhat.com>
9596 * observer.c (observer_test_first_notification_function)
9597 (observer_test_second_notification_function)
9598 (observer_test_third_notification_function): Add declarations.
9600 2012-03-01 Pedro Alves <palves@redhat.com>
9602 * common/signals.c (default_target_signal_to_host)
9603 (default_target_signal_from_host): Move ...
9604 * arch-utils.c: ... here.
9605 * arch-utils.h (default_target_signal_to_host)
9606 (default_target_signal_from_host): Declare.
9608 * common/signals.c (target_signal_from_command): Move ...
9609 * infrun.c: ... here.
9610 * inferior.h (target_signal_from_command): Declare.
9611 * target.h (target_signal_from_command)
9612 (default_target_signal_from_host, default_target_signal_to_host):
9613 Delete declarations.
9615 * common/signals.c (_initialize_signals): Delete.
9617 2012-03-01 Pedro Alves <palves@redhat.com>
9619 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9620 both __cplusplus and !__cplusplus.
9622 2012-03-01 Pedro Alves <palves@redhat.com>
9624 * psymtab.c (find_and_open_source): Delete declaration.
9625 * source.c (find_and_open_source): Move comment ...
9626 * source.h (find_and_open_source): ... to this new declaration.
9628 2012-03-01 Pedro Alves <palves@redhat.com>
9630 * inline-frame.c: Include inline-frame.h.
9632 2012-03-01 Pedro Alves <palves@redhat.com>
9634 * tui/tui-data.c (set_gen_win_origin): Delete.
9635 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9636 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9638 2012-03-01 Pedro Alves <palves@redhat.com>
9640 * remote.c (encode_actions): Delete declaration.
9641 * tracepoint.c (encode_actions): Make extern.
9642 * tracepoint.h (encode_actions): Declare.
9644 2012-03-01 Pedro Alves <palves@redhat.com>
9646 * python/py-breakpoint.c: Include python.h.
9647 * python/py-continueevent.c (create_continue_event_object): Make
9649 * python/py-lazy-string.c (stpy_get_type): Make static.
9650 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9652 * python/py-utils.c (unicode_to_target_python_string): Make
9654 * python/py-value.c: Include python.h.
9656 2012-03-01 Pedro Alves <palves@redhat.com>
9658 * inferior.c (delete_threads_of_inferior): Delete.
9660 2012-03-01 Pedro Alves <palves@redhat.com>
9662 Import fallback definitions from glibc.
9664 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9665 ps_prochandle): Forward declare.
9666 (ps_err_e): Use glibc's comments.
9667 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9668 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9669 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9670 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9671 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9672 (struct ps_prochandle): Adjust comment.
9674 2012-03-01 Pedro Alves <palves@redhat.com>
9676 * ada-lang.c (ada_modulus_from_name): Delete.
9677 * ada-lex.l (lexer_init): Make static.
9679 2012-03-01 Pedro Alves <palves@redhat.com>
9683 * frame.c (read_frame_register_unsigned): New.
9684 * frame.h (read_frame_register_unsigned): Declare.
9685 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9687 (print_i387_control_word): New parameter `control_p'. Handle it.
9688 (i387_print_float_info): Handle unavailable float registers.
9690 2012-03-01 Keith Seitz <keiths@redhat.com>
9692 * linespec.c (decode_line_2): Sort the list of methods
9693 alphabetically before presenting the user with a selection
9696 2012-03-01 Doug Evans <dje@google.com>
9698 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9700 (dwarf2_read_abbrevs): Remove corresponding initialization.
9702 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9704 * NEWS: Mention new python command class gdb.COMMAND_USER.
9705 * cli/cli-cmds.c (show_user): Print error when used on a python
9707 (init_cli_cmds): Update documentation strings for "show user" and
9708 "set/show max-user-call-depth" to clarify that it does not apply to
9710 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9712 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9714 * top.c (execute_command): Only execute a user-defined command as a
9715 legacy macro if c->user_commands is set.
9717 2012-03-01 Tom Tromey <tromey@redhat.com>
9719 * valprint.h (struct generic_val_print_decorations): New.
9720 (generic_val_print): Declare.
9721 * valprint.c (generic_val_print): New function.
9722 * p-valprint.c (p_decorations): New global.
9723 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9724 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9725 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9726 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9727 * m2-valprint.c (m2_decorations): New global.
9728 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9729 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9730 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9731 TYPE_CODE_ERROR>: Call generic_val_print.
9732 * f-valprint.c (f_decorations): New global.
9733 (f_val_print): Use print_function_pointer_address.
9734 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9735 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9736 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9738 * c-valprint.c (c_decorations): New global.
9739 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9740 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9741 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9742 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9743 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9744 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9747 2012-03-01 Tom Tromey <tromey@redhat.com>
9749 * valprint.c (val_print): Update.
9750 * p-valprint (pascal_val_print): Return void.
9751 * p-lang.h (pascal_val_print): Return void.
9752 * m2-valprint.c (m2_val_print): Return void.
9753 * m2-lang.h (m2_val_print): Return void.
9754 * language.h (struct language_defn) <la_val_print>: Return void.
9755 * language.c (unk_lang_val_print): Return void.
9756 * jv-valprint.c (java_val_print): Return void.
9757 * jv-lang.h (java_val_print): Return void.
9758 * f-valprint.c (f_val_print): Return void.
9759 * f-lang.h (f_val_print): Return void.
9760 * d-valprint.c (d_val_print): Return void.
9761 (dynamic_array_type): Update.
9762 * d-lang.h (d_val_print): Return void.
9763 * c-valprint.c (c_val_print): Return void.
9764 * c-lang.h (c_val_print): Return void.
9765 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9767 * ada-lang.h (ada_val_print): Return void.
9769 2012-03-01 Tom Tromey <tromey@redhat.com>
9771 * value.h (val_print): Return void.
9772 * valprint.c (val_print): Return void.
9774 2012-03-01 Tom Tromey <tromey@redhat.com>
9776 * value.h (common_val_print): Return void.
9777 * valprint.c (common_val_print): Return void.
9779 2012-03-01 Tom Tromey <tromey@redhat.com>
9781 * value.h (value_print): Return void.
9782 * valprint.c (value_print): Return void.
9783 * p-valprint.c (pascal_value_print): Return void.
9784 * p-lang.h (pascal_value_print): Return void.
9785 * language.h (struct language_defn) <la_value_print>: Return
9787 * language.c (unk_lang_value_print): Return void.
9788 * jv-valprint.c (java_value_print): Return void.
9789 * jv-lang.h (java_value_print): Return void.
9790 * f-valprint.c (c_value_print): Don't declare.
9792 * c-valprint.c (c_value_print): Return void.
9793 * c-lang.h (c_value_print): Return void.
9794 * ada-valprint.c (ada_value_print): Return void.
9795 * ada-lang.h (ada_value_print): Return void.
9797 2012-03-01 Tom Tromey <tromey@redhat.com>
9799 * value.c (value_primitive_field): Handle virtual base classes.
9801 2012-03-01 Tom Tromey <tromey@redhat.com>
9803 * gdbtypes.h (struct vbase): Remove.
9805 2012-03-01 Tom Tromey <tromey@redhat.com>
9807 * c-valprint.c (print_function_pointer_address): Move...
9808 * valprint.c: ... here. Make non-static.
9809 * m2-valprint.c (print_function_pointer_address): Remove.
9810 * valprint.h (print_function_pointer_address): Declare.
9812 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9814 * NEWS: Document the fact that one can provide a condition when
9815 creating an Ada exception catchpoint.
9817 2012-03-01 Tom Tromey <tromey@redhat.com>
9819 * valprint.c (val_print_type_code_flags): Fix placement of
9822 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9824 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9825 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9826 environment variable before calling update-copyright.
9828 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9830 * gnulib/extra/update-copyright: Update to the latest from
9831 gnulib's git repository.
9832 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9833 variable to 2 instead of 1.
9835 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9837 * varobj.c (c_value_of_variable): Remove dead code.
9839 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9841 * ada-lex.p (processId): Do not modify already encoded IDs.
9842 Update function documentation.
9844 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9846 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9847 "name" with "struct symbol *name_sym".
9848 * ada-exp.y (write_var_or_type): Update call to
9849 ada_find_renaming_symbol.
9850 "name" with "struct symbol *name_sym". Adjust Implementation
9851 accordingly. Adjust the function documentation.
9853 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9855 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9856 * ada-lang.c (ada_find_any_type): Add advance declaration.
9857 Make static. Replace ada_find_any_symbol by
9858 ada_find_any_type_symbol.
9859 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9860 Improve function description. Make static.
9861 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9862 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9864 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9866 * ada-lang.c (struct tag_args): Delete.
9867 (ada_get_tsd_type): Function body moved up in source file.
9868 (ada_tag_name_1, ada_tag_name_2): Delete.
9869 (ada_get_tsd_from_tag): New function.
9870 (ada_tag_name_from_tsd): New function.
9871 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9872 to determine the tag name.
9874 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9876 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9878 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9881 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9883 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9885 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9887 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9890 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9892 * ada-lang.c (constrained_packed_array_type): If there is a
9893 parallel XA type, use it to determine the array index type.
9895 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9897 * ada-valprint.c (ada_val_print_1): If our value is a reference
9898 to an array descriptor, dereference it before converting it
9901 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9903 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9904 creating fixed value.
9905 (ada_value_ind, ada_coerce_ref, assign_component)
9906 (ada_evaluate_subexp): Remove call to unwrap_value before
9907 call to ada_to_fixed_value.
9909 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9911 * ada-lang.c (to_fixed_array_type): Set result's type name.
9913 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9915 * ada-lang.c (catch_ada_exception_command_split): Add new
9916 argument cond_string. Add support for condition at end of
9917 "catch exception" commands.
9918 (ada_decode_exception_location): Add new argument cond_string.
9919 Update call to catch_ada_exception_command_split.
9920 (create_ada_exception_catchpoint): Add new argument cond_string.
9921 Set the breakpoint condition if needed.
9922 (catch_ada_exception_command): Update call to
9923 ada_decode_exception_location.
9924 (ada_decode_assert_location): Add function documentation.
9925 Add support for condition at end of "catch assert" command.
9926 (catch_assert_command): Update calls to ada_decode_assert_location
9927 and create_ada_exception_catchpoint.
9929 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9931 Fix disp-step-syscall.exp: fork: single step over fork.
9932 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9933 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9934 comment, change parameters gdbarch and ptid to regcache. Remove
9935 parameter regcache, initialize gdbarch from regcache here.
9936 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9938 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9940 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9941 'syscall'. Make the 'int' check more strict.
9943 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9946 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9947 (i386_linux_intx80_sysenter_syscall_record): ... here.
9948 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9949 Use the renamed function name.
9951 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9953 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9954 * breakpoint.c (until_break_command): Likewise.
9955 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9956 * infcall.c (call_function_by_hand): Likewise.
9957 * infcmd.c (finish_forward): Likewise.
9958 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9960 2012-02-28 Tristan Gingold <gingold@adacore.com>
9962 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9963 avoid variable assignments inside condition.
9965 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9967 Fix static analysis issue found by cppcheck.
9968 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9969 uninitialized BUF for size 2.
9971 2012-02-27 Chris Dearman <chris@mips.com>
9972 Nathan Froyd <froydnj@codesourcery.com>
9973 Maciej W. Rozycki <macro@codesourcery.com>
9975 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9976 (mips16_instruction_has_delay_slot): Likewise.
9977 (mips_segment_boundary): Likewise.
9978 (mips_adjust_breakpoint_address): Likewise.
9979 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9981 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9982 Maciej W. Rozycki <macro@codesourcery.com>
9984 * infrun.c (handle_inferior_event): Don't proceed through
9985 shared library trampolines if stepping at the machine
9988 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9990 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9993 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9995 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9996 (sh_stub_unwind_sniffer): New functions.
9997 (sh_stub_unwind): New variable.
9998 (sh_gdbarch_init): Wire everything.
10000 2012-02-27 Pedro Alves <palves@redhat.com>
10002 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10003 (linux_nat_post_attach_wait): Adjust to use
10004 linux_proc_pid_is_stopped.
10005 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10006 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10007 based on pid_is_stopped from both linux-nat.c and
10008 gdbserver/linux-low.c, and renamed.
10010 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10012 * remote.c (remote_watchpoint_addr_within_range): New function.
10013 (init_remote_ops): Use it.
10015 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10017 * target.h (target_watchpoint_addr_within_range): Document macro.
10019 2012-02-24 Pedro Alves <palves@redhat.com>
10021 * stack.c (set_last_displayed_sal): Issue internal_error instead
10022 of warning, and issue it after clearing the last displayed sal.
10024 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10025 Pedro Alves <palves@redhat.com>
10027 * breakpoint.c (until_break_command): Install breakpoints after
10028 all frame manipulations.
10030 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10032 * remote.c (remote_supports_cond_breakpoints): New forward
10034 (remote_add_target_side_condition): New function.
10035 (remote_insert_breakpoint): Add target-side breakpoint
10036 conditional if supported.
10037 (remote_insert_hw_breakpoint): Likewise.
10038 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10041 * target.c (update_current_target): Inherit
10042 to_supports_evaluation_of_breakpoint_conditions.
10043 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10045 * target.h (struct target_ops)
10046 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10047 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10049 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10050 (condition_evaluation_both, condition_evaluation_auto,
10051 condition_evaluation_host, condition_evaluation_target,
10052 condition_evaluation_enums, condition_evaluation_mode_1,
10053 condition_evaluation_mode): New static globals.
10054 (translate_condition_evaluation_mode): New function.
10055 (breakpoint_condition_evaluation_mode): New function.
10056 (gdb_evaluates_breakpoint_condition_p): New function.
10057 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10058 (mark_breakpoint_modified): New function.
10059 (mark_breakpoint_location_modified): New function.
10060 (set_condition_evaluation_mode): New function.
10061 (show_condition_evaluation_mode): New function.
10062 (bp_location_compare_addrs): New function.
10063 (get_first_location_gte_addr): New helper function.
10064 (set_breakpoint_condition): Free condition bytecode if locations
10065 has become unconditional. Call mark_breakpoint_modified (...).
10066 (condition_command): Call update_global_location_list (1) for
10068 (breakpoint_xfer_memory): Use is_breakpoint (...).
10069 (is_breakpoint): New function.
10070 (parse_cond_to_aexpr): New function.
10071 (build_target_condition_list): New function.
10072 (insert_bp_location): Handle target-side conditional
10073 breakpoints and call build_target_condition_list (...).
10074 (update_inserted_breakpoint_locations): New function.
10075 (insert_breakpoint_locations): Handle target-side conditional
10077 (bpstat_check_breakpoint_conditions): Add comment.
10078 (bp_condition_evaluator): New function.
10079 (bp_location_condition_evaluator): New function.
10080 (print_breakpoint_location): Print information on where the condition
10082 (print_one_breakpoint_location): Likewise.
10083 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10084 breakpoint location.
10085 (force_breakpoint_reinsertion): New functions.
10086 (update_global_location_list): Handle target-side breakpoint
10088 Reinsert locations that are already inserted if conditions have
10090 (bp_location_dtor): Free agent expression bytecode.
10091 (disable_breakpoint): Call mark_breakpoint_modified (...).
10092 Call update_global_location_list (...) with parameter 1 for breakpoints.
10093 (disable_command): Call mark_breakpoint_location_modified (...).
10094 Call update_global_location_list (...) with parameter 1 for breakpoints.
10095 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10096 (enable_command): mark_breakpoint_location_modified (...).
10097 (_initialize_breakpoint): Update documentation and add
10098 condition-evaluation breakpoint subcommand.
10100 * breakpoint.h: Include ax.h.
10101 (condition_list): New data structure.
10102 (condition_status): New enum.
10103 (bp_target_info) <cond_list>: New field.
10104 (bp_location) <condition_changed, cond_bytecode>: New fields.
10105 (is_breakpoint): New prototype.
10107 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10109 * remote.c (remote_state) <cond_breakpoints>: New field.
10110 (PACKET_ConditionalBreakpoints): New enum.
10111 (remote_cond_breakpoint_feature): New function.
10112 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10113 (remote_supports_cond_breakpoints): New function.
10114 (_initialize_remote): Add new packet configuration for
10115 target-side conditional breakpoints.
10117 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10119 * NEWS: Mention target-side conditional breakpoint support,
10120 new condition-evaluation breakpoint subcommand and remote
10123 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10125 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10128 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10130 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10131 (after_prologue): Remove.
10133 2012-02-23 Tom Tromey <tromey@redhat.com>
10135 * jv-valprint.c (java_val_print): Remove dead code.
10137 2012-02-23 Tristan Gingold <gingold@adacore.com>
10139 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10140 known_tasks_element and known_tasks_length fields.
10141 (read_known_tasks_array): Change argument type. Use pointer type
10142 and number of elements from DATA. Adjust.
10143 (read_known_tasks_list): Likewise.
10144 (get_known_tasks_addr): Remove.
10145 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10146 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10147 type and array length. Merge former get_known_tasks_addr code.
10149 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10152 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10153 it after set_momentary_breakpoint.
10155 2012-02-22 Sterling Augustine <saugustine@google.com>
10158 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10160 2012-02-22 Gary Benson <gbenson@redhat.com>
10162 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10163 (find_slot_in_mapped_hash): Likewise.
10165 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10168 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10169 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10170 * configure: Regenerate.
10172 2012-02-21 Tristan Gingold <gingold@adacore.com>
10173 Pedro Alves <palves@redhat.com>
10175 * ia64-tdep.c: Do not include libunwind-ia64.h.
10176 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10177 Include libunwind-ia64.h instead of libunwind.h.
10178 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10179 for libunwind.h existence.
10180 * configure, config.in: Regenerate.
10182 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10184 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10185 instead of value_rtti_target_type.
10186 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10187 instead of value_rtti_target_type.
10188 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10189 value_rtti_target_type.
10190 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10191 (value_rtti_target_type): Rename to ...
10192 (value_rtti_indirect_type): ... here and make it indirect. Update
10194 * value.c (readjust_indirect_value_type): New function.
10195 (coerce_ref): Support for enclosing type setting for references
10196 with readjust_indirect_value_type.
10197 * value.h (readjust_value_type): New declaration.
10198 (value_rtti_target_type): Rename to ...
10199 (value_rtti_indirect_type): ... here.
10201 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10203 * MAINTAINERS (Write After Approval): Add myself to the list.
10205 2012-02-20 Doug Evans <dje@google.com>
10207 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10208 Rename objfile_p_char parameter to objfilep.
10209 (build_objfile_section_table): Result is now void. All callers
10211 * objfiles.h (struct objfile): Tweak comments, whitespace.
10212 (build_objfile_section_table): Update.
10214 * elfread.c (elf_symfile_segments): Fix warning text.
10216 2012-02-20 Tom Tromey <tromey@redhat.com>
10219 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10220 particular set of file names once.
10221 (dw2_map_symbol_filenames): Likewise.
10223 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10226 * main.c (write_files): Remove the declaration.
10227 (external_editor_command): Move the declaration ...
10228 [GDBTK] (external_editor_command): ... here. Fix the comment.
10230 2012-02-20 Tom Tromey <tromey@redhat.com>
10232 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10235 2012-02-20 Tristan Gingold <gingold@adacore.com>
10237 * darwin-nat.h (enum darwin_msg_state): Add comments.
10239 2012-02-20 Tristan Gingold <gingold@adacore.com>
10241 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10244 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10246 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10247 between function description and implementation.
10249 2012-02-17 Tom Tromey <tromey@redhat.com>
10252 * python/py-event.c (event_object_getset): New global.
10253 (event_object_type): Reference it.
10254 * python/py-type.c (field_object_getset): New global.
10255 (field_object_type): Reference it.
10256 * python/python-internal.h (gdb_py_generic_dict): Declare.
10257 * python/py-utils.c (gdb_py_generic_dict): New function.
10259 2012-02-17 Tristan Gingold <gingold@adacore.com>
10261 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10263 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10265 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10266 TYPE_CALLING_CONVENTION annotation.
10268 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10270 * MAINTAINERS: Add rx to target ISA section.
10271 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10272 (ALLDEPFILES): Add rx-tdep.c.
10274 2012-02-16 Tom Tromey <tromey@redhat.com>
10276 * symfile.c (symbol_file_add_main_1): Use inferior's
10278 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10279 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10281 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10283 (follow_exec): Use inferior's symfile_flags.
10284 * inferior.h (struct inferior) <symfile_flags>: New field.
10286 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10289 * remote-sim.c (gdbsim_create_inferior): Call error() when
10290 sim_create_inferior() fails.
10292 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10294 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10296 2012-02-16 Tom Tromey <tromey@redhat.com>
10299 * thread.c (struct current_thread_cleanup) <was_removable>: New
10301 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10302 (make_cleanup_restore_current_thread): Initialize new field.
10304 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10306 * MAINTAINERS: Add rl78 to target ISA section.
10307 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10308 (ALLDEPFILES): Add rl78-tdep.c.
10309 * NEWS: Mention rl78 as a new target.
10311 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10313 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10315 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10317 2012-02-15 Tom Tromey <tromey@redhat.com>
10320 * infcmd.c (registers_info): Print just the current register's
10323 2012-02-15 Tom Tromey <tromey@redhat.com>
10325 * python/py-symbol.c (sympy_value): Use _().
10327 2012-02-15 Pedro Alves <palves@redhat.com>
10329 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10330 output to be like native targets'.
10331 (remote_pid_to_str): Special case the null ptid.
10333 2012-02-14 Stan Shebs <stan@codesourcery.com>
10335 * NEWS: Mention enable count command.
10336 * breakpoint.h (struct breakpoint): New field enable_count.
10337 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10338 (enable_breakpoint): Add arg to call.
10339 (struct disp_data): New struct.
10340 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10341 (do_map_enable_once_breakpoint): Create a struct and pass it.
10342 (do_map_enable_delete_breakpoint): Ditto.
10343 (do_map_enable_count_breakpoint): New function.
10344 (enable_count_command): New function.
10345 (bpstat_stop_status): Decrement enable_count.
10346 (print_one_breakpoint_location): Report enable count.
10347 (_initialize_breakpoint): Add enable count command.
10349 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10351 * rl78-tdep.c (reggroups.h): Include.
10352 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10353 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10354 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10355 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10356 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10357 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10358 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10359 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10360 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10361 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10362 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10363 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10364 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10365 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10366 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10367 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10368 beginning of register list.
10369 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10370 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10371 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10372 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10373 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10374 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10375 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10376 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10377 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10378 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10379 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10380 the pseudo registers. Rearrange other pseudo registers too so
10381 that the bank registers appear at the end.
10382 (rl78_register_type): Account for the fact that the byte sized
10383 bank registers are now pseudo-registers.
10384 (rl78_register_name): Rearrange the register name array. Make
10385 initial set of raw banked registers inaccessible.
10386 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10387 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10388 case for copying bytes back and forth between raw and pseudo
10389 versions of the banked registers. Update other cases to reflect
10391 (rl78_return_value): Update to account for changed names of
10393 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10394 rl78_register_sim_regno().
10396 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10398 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10399 the name parameter being passed to find_pc_partial_function().
10401 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10403 * MAINTAINERS: Step down from being ia64 target maintainer.
10405 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10407 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10408 compilation warning.
10410 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10412 Fix crash on loaded shlibs without loaded exec_bfd.
10413 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10414 (set_section_command): Replace exec_bfd by p->bfd.
10416 2012-02-10 Tom Tromey <tromey@redhat.com>
10418 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10419 when we have a C++ qualified name.
10421 2012-02-10 Pedro Alves <palves@redhat.com>
10423 * inferior.c (inferior_pid_to_str): New.
10424 (print_inferior, inferior_command): Use it.
10426 2012-02-10 Pedro Alves <palves@redhat.com>
10428 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10430 * configure: Regenerate.
10432 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10434 * linespec.c (decode_line_internal): Fix comment correctness.
10436 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10439 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10440 * amd64bsd-nat.c: Add support for debug registers (adapted from
10442 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10443 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10444 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10445 (amd64bsd_dr_get_control): New functions.
10446 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10447 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10448 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10449 watchpoints initialization.
10450 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10452 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10454 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10456 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10458 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10460 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10462 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10464 * language.h (symbol_name_cmp_ftype): Renames
10465 symbol_name_match_p_ftype.
10466 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10467 la_get_symbol_name_match_p.
10468 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10469 ada_get_symbol_name_match_p. Update comment.
10470 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10471 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10472 Renames symbol_name_match_p. Update field type.
10473 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10474 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10475 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10476 "la_get_symbol_name_cmp" in comments.
10477 * language.c: Likewise.
10479 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10481 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10483 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10484 (amd64_sol2_gregset32_reg_offs): Likewise.
10486 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10488 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10489 of the returned BFD is allocated by GDB.
10491 2012-02-07 Tom Tromey <tromey@redhat.com>
10494 * python/python-internal.h (frame_object_type): Declare.
10495 * python/py-symbol.c (sympy_needs_frame): New function.
10496 (sympy_value): New function.
10497 (symbol_object_getset): Add "needs_frame".
10498 (symbol_object_methods): Add "value".
10499 * python/py-frame.c (frame_object_type): No longer static.
10501 2012-02-07 Tom Tromey <tromey@redhat.com>
10504 * python/py-symbol.c (sympy_line): New function.
10505 (symbol_object_getset): Add "line".
10507 2012-02-07 Tom Tromey <tromey@redhat.com>
10509 * charset.c (find_charset_names): Check 'in' against NULL.
10511 2012-02-06 Doug Evans <dje@google.com>
10513 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10514 and fields.name members from char * to const char *. All uses updated.
10515 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10516 from char * to const char *. All uses updated.
10517 (type_name_no_tag): Update.
10518 (lookup_unsigned_typename, lookup_signed_typename): Update.
10519 * gdbtypes.c (type_name_no_tag): Change result type
10520 from char * to const char *. All callers updated.
10521 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10522 name parameter from char * to const char *.
10523 * symtab.h (struct cplus_specific): Change type of demangled_name
10524 member from char * to const char *. All uses updated.
10525 (struct general_symbol_info): Change type of name and
10526 mangled_lang.demangled_name members from char * to const char *.
10528 (symbol_get_demangled_name, symbol_natural_name): Update.
10529 (symbol_demangled_name, symbol_search_name): Update.
10530 * symtab.c (symbol_get_demangled_name): Change result type
10531 from char * to const char *. All callers updated.
10532 (symbol_natural_name, symbol_demangled_name): Ditto.
10533 (symbol_search_name): Ditto.
10534 (completion_list_add_name): Change type of symname,sym_text,
10535 text,word parameters from char * to const char *.
10536 (completion_list_objc_symbol): Change type of sym_text,
10537 text,word parameters from char * to const char *.
10538 * ada-lang.c (find_struct_field): Change type of name parameter
10539 from char * to const char *.
10540 (encoded_ordered_before): Similarly for N0,N1 parameters.
10541 (old_renaming_is_invisible): Similarly for function_name parameter.
10542 (ada_type_name): Change result type from char * to const char *.
10543 All callers updated.
10544 * ada-lang.h (ada_type_name): Update.
10545 * buildsym.c (hashname): Change type of name parameter
10546 from char * to const char *.
10547 * buildsym.h (hashname): Update.
10548 * dbxread.c (end_psymtab): Change type of include_list parameter
10549 from char ** to const char **.
10550 * dwarf2read.c (determine_prefix): Change result type
10551 from char * to const char *. All callers updated.
10552 * f-lang.c (find_common_for_function): Change type of name, funcname
10553 parameters from char * to const char *.
10554 * f-lang.c (find_common_for_function): Update.
10555 * f-valprint.c (list_all_visible_commons): Change type of funcname
10556 parameters from char * to const char *.
10557 * gdbarch.sh (static_transform_name): Change type of name parameter
10558 and result from char * to const char *.
10559 * gdbarch.c: Regenerate.
10560 * gdbarch.h: Regenerate.
10561 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10562 of name parameter from char * to const char *.
10563 * jv-lang.c (java_primitive_type_from_name): Ditto.
10564 (java_demangled_signature_length): Similarly for signature parameter.
10565 (java_demangled_signature_copy): Ditto.
10566 (java_demangle_type_signature): Ditto.
10567 * jv-lang.h (java_primitive_type_from_name): Update.
10568 (java_demangle_type_signature): Update.
10569 * objc-lang.c (specialcmp): Change type of a,b parameters
10570 from char * to const char *.
10571 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10572 from char * to const char *. All callers updated.
10573 * p-lang.h (is_pascal_string_type): Update.
10574 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10575 of name parameter from char * to const char *.
10576 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10577 * utils.c (fprintf_symbol_filtered): Ditto.
10578 * defs.h (fprintf_symbol_filtered): Update.
10579 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10580 * stabsread.h (end_psymtab): Update.
10581 * stack.c (find_frame_funname): Change type of funname parameter
10582 from char ** to const char **.
10583 * stack.h (find_frame_funname): Update.
10584 * typeprint.c (type_print): Change type of varstring parameter
10585 from char * to const char *.
10586 * value.h (type_print): Update.
10587 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10588 from char * to const char *. All callers updated.
10589 (xcoff_end_psymtab): Change type of include_list parameter
10590 from char ** to const char **. All callers updated.
10591 (swap_sym): Similarly for name parameter. All callers updated.
10592 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10594 (process_coff_symbol): Use xstrdup.
10595 * stabsread.c (stabs_method_name_from_physname): Renamed from
10596 update_method_name_from_physname. Change result type from void
10597 to char *. All callers updated.
10598 (read_member_functions): In has_destructor case, store name in objfile
10599 obstack instead of malloc space. In !has_stub case, fix mem leak.
10601 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10603 * configure: Rebuild.
10604 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10607 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10609 * configure.tgt (rl78-*-elf): New target.
10610 * rl78-tdep.c: New file.
10612 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10614 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10615 and continue the loop. Add QUIT statement.
10617 2012-02-03 Tom Tromey <tromey@redhat.com>
10620 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10621 bfd_lookup_symbol_from_symtab.
10622 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10623 gdb_bfd_lookup_symbol_from_symtab.
10625 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10627 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10628 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10629 symbol. Add assertion that sym2 is never NULL.
10631 2012-02-02 Doug Evans <dje@google.com>
10633 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10634 "name" parameter to const char ** from char **. All callers updated.
10635 (find_pc_partial_function): Ditto.
10636 (cache_pc_function_name): Change type to const char * from char *.
10637 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10638 (find_pc_partial_function): Update.
10639 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10640 type of "name" parameter to const char * from char *.
10642 * arch-utils.c (generic_in_solib_return_trampoline): Change
10643 type of "name" parameter to const char * from char *.
10644 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10645 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10646 type of "name" parameter to const char * from char *.
10647 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10648 * gdbarch.c: Regenerate.
10649 * gdbarch.h: Regenerate.
10650 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10651 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10652 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10653 type of "name" parameter to const char * from char *.
10654 * skip.c (skip_function_pc): Ditto.
10655 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10656 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10657 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10658 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10659 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10660 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10661 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10662 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10663 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10665 2012-02-02 Pedro Alves <palves@redhat.com>
10667 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10668 the current inferior has no execution. Make sure the current
10669 remote process matches gdb's current inferior.
10671 2012-02-02 Tom Tromey <tromey@redhat.com>
10674 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10677 2012-02-02 Tom Tromey <tromey@redhat.com>
10680 * symtab.c (lookup_language_this): Set block_found.
10682 2012-02-01 Tom Tromey <tromey@redhat.com>
10685 * jit.c (struct jit_inferior_data): Rewrite.
10686 (struct jit_objfile_data): New.
10687 (get_jit_objfile_data): New function.
10688 (add_objfile_entry): Update.
10689 (jit_read_descriptor): Return int. Replace descriptor_addr
10690 argument with inf_data. Update. Don't call error.
10691 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10693 (jit_inferior_init): Don't look up descriptor. Don't call error.
10694 (jit_reset_inferior_data_and_breakpoints)
10695 (jit_inferior_created_observer): Remove.
10696 (jit_inferior_exit_hook): Update.
10697 (jit_executable_changed_observer): Remove.
10698 (jit_event_handler): Update.
10699 (free_objfile_data): Reset inferior data if needed.
10700 (_initialize_jit): Update.
10702 2012-02-01 Tom Tromey <tromey@redhat.com>
10704 * jit.c (bfd_open_from_target_memory): Move higher in file.
10706 2012-02-01 Tristan Gingold <gingold@adacore.com>
10708 * libunwind-frame.c (libunwind_load): Display message if dlopen
10711 2012-02-01 Gary Benson <gbenson@redhat.com>
10713 * symtab.h (symbol_found_callback_ftype): New typedef.
10714 (iterate_over_symbols): Use the above.
10715 * symtab.c (iterate_over_symbols): Likewise.
10716 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10717 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10718 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10719 (iterate_name_matcher): Document return values.
10720 (collect_one_symbol): Likewise.
10721 (collect_function_symbols): Likewise.
10722 (collect_symbols): Likewise.
10724 2012-02-01 Tom Tromey <tromey@redhat.com>
10726 * ada-lang.c (resolve_subexp): Update.
10727 (ada_lookup_symbol_list): Add 'full_search' argument.
10728 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10729 ada_lookup_symbol_list.
10730 (ada_lookup_encoded_symbol): Update.
10731 (get_var_value): Update.
10732 * ada-exp.y (block_lookup): Update.
10733 (write_var_or_type): Update.
10734 (write_name_assoc): Update.
10735 * ada-lang.h (ada_lookup_symbol_list): Update.
10737 2012-01-31 Tom Tromey <tromey@redhat.com>
10739 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10742 2012-01-31 Doug Evans <dje@google.com>
10744 * symtab.h: Remove outdated comment.
10745 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10747 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10749 Fix build error in Darwin port.
10750 * i386-darwin-nat.c: Include i386-nat.h.
10752 2012-01-30 Tom Tromey <tromey@redhat.com>
10754 PR breakpoints/13568:
10755 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10756 argument. Check for recursive includes.
10757 (dwarf_decode_macros): Create an include hash.
10759 2012-01-30 Michael Eager <eager@eagercon.com>
10761 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10762 * ppc-linux-tdep.c: Include glibc-tdep.h.
10763 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10764 (powerpc_linux_in_plt_stub): New function.
10765 (powerpc_linux_in_dynsym_resolve_code): New function.
10766 (ppc_skip_trampoline_code): New function.
10767 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10768 Use glibc_skip_solib_resolver.
10770 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 Code cleanup: Make 1440 bytes of data segment read-only.
10773 * arch-utils.c (endian_enum): Make it const char *const [].
10774 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10776 * breakpoint.c (always_inserted_enums): Likewise.
10777 * cli/cli-cmds.c (script_ext_enums): Likewise.
10778 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10779 enumlist parameter const char *const *.
10780 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10781 const char *const *.
10782 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10783 parameter const char *const *.
10784 * cris-tdep.c (cris_modes): Make it const char *const [].
10785 * filesystem.c (target_file_system_kinds): Likewise.
10786 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10787 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10788 (can_use_displaced_stepping_enum, scheduler_enums)
10789 (exec_direction_names): Likewise.
10790 * language.c (_initialize_language): Make the type_or_range_names and
10791 case_sensitive_names variables const char *const [].
10792 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10793 * python/python.c (python_excp_enums): Likewise.
10794 * remote.c (interrupt_sequence_modes): Likewise.
10795 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10796 * serial.c (logbase_enums): Likewise.
10797 * sh-tdep.c (sh_cc_enum): Likewise.
10798 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10800 * symtab.c (multiple_symbols_modes): Likewise.
10801 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10803 * utils.c (internal_problem_modes): Likewise.
10805 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10807 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10808 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10811 2012-01-27 Doug Evans <dje@google.com>
10813 * configure.ac (with_python): Fix absolute path handling for win32.
10814 * configure: Regenerate.
10816 2012-01-26 Doug Evans <dje@google.com>
10818 * symtab.c: Whitespace cleanup, no code changes.
10820 * symtab.c (lookup_symbol_in_language): Improve comment.
10821 (lookup_symbol_aux): Fix comment.
10823 * psymtab.c (add_psymbol_to_list): Result is now "void".
10824 * psympriv.h (add_psymbol_to_list): Update.
10826 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10828 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10830 Do not open script filenames twice.
10831 * cli/cli-cmds.c (source_script_from_stream): Pass to
10832 source_python_script also STREAM.
10833 * python/py-auto-load.c (source_section_scripts): Pass to
10834 source_python_script_for_objfile also STREAM.
10835 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10837 * python/python-internal.h (source_python_script_for_objfile): New
10838 parameter file, rename parameter file to filename.
10839 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10840 instead if !_WIN32. Update the function comment.
10841 (source_python_script, source_python_script_for_objfile)
10842 (source_python_script): New parameter file, rename parameter file to
10843 filename. Pass FILENAME to python_run_simple_file.
10844 * python/python.h (source_python_script): New parameter file, rename
10845 parameter file to filename.
10847 2012-01-26 Pedro Alves <palves@redhat.com>
10849 * corelow.c (core_has_fake_pid): Delete.
10850 (core_close): Delete references to `core_has_fake_pid'.
10851 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10852 (core_open): Delete references to `core_has_fake_pid'.
10853 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10854 the removed global.
10856 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10858 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10859 Remove language parameter from name_matcher. Adjust the comment.
10860 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10861 Remove language parameter.
10862 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10863 * linespec.c (iterate_name_matcher): Likewise.
10864 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10865 name_matcher. Adjust call accordingly.
10866 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10867 (maintenance_check_symtabs): Adjust type of parameter "fun".
10868 * psymtab.h (maintenance_check_symtabs): Likewise.
10870 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10872 * language.h (symbol_name_match_p_ftype): New typedef.
10873 (struct language_defn): Replace field la_symbol_name_compare
10874 by la_get_symbol_name_match_p.
10875 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10876 (ada_language_defn): Use it.
10877 * linespec.c (struct symbol_matcher_data): New type.
10878 (iterate_name_matcher): Rewrite.
10879 (iterate_over_all_matching_symtabs): Pass a pointer to
10880 a symbol_matcher_data struct to expand_symtabs_matching
10881 instead of just the lookup name.
10882 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10883 opencl-lang.c, p-lang.c, language.c: Delete field
10884 la_symbol_name_compare, and replace by NULL for new field
10885 la_get_symbol_name_match_p.
10886 * symfile.h (struct quick_symbol_functions): Update comment.
10888 2012-01-25 Tom Tromey <tromey@redhat.com>
10890 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10893 2012-01-24 Tom Tromey <tromey@redhat.com>
10896 * solib.c (update_solib_list): Update the program space's
10897 added_solibs and deleted_solibs fields.
10898 * progspace.h (struct program_space) <added_solibs,
10899 deleted_solibs>: New fields.
10900 (clear_program_space_solib_cache): Declare.
10901 * progspace.c (release_program_space): Call
10902 clear_program_space_solib_cache.
10903 (clear_program_space_solib_cache): New function.
10904 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10905 bpstat_stop_status. Use handle_solib_event.
10906 * breakpoint.c: Include gdb_regex.h.
10907 (print_solib_event): New function.
10908 (bpstat_print): Use print_solib_event.
10909 (bpstat_stop_status): Add special case for bp_shlib_event.
10910 (handle_solib_event): New function.
10911 (bpstat_what): Use handle_solib_event.
10912 (struct solib_catchpoint): New.
10913 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10914 (breakpoint_hit_catch_solib, check_status_catch_solib)
10915 (print_it_catch_solib, print_one_catch_solib)
10916 (print_mention_catch_solib, print_recreate_catch_solib): New
10918 (catch_solib_breakpoint_ops): New global.
10919 (catch_load_or_unload, catch_load_command_1)
10920 (catch_unload_command_1): New functions.
10921 (internal_bkpt_check_status): Add special case for
10923 (internal_bkpt_print_it): Use print_solib_event.
10924 (initialize_breakpoint_ops): Initialize
10925 catch_solib_breakpoint_ops.
10926 (_initialize_breakpoint): Register "catch load" and "catch
10928 * breakpoint.h (handle_solib_event): Declare.
10929 * NEWS: Add entry for "catch load" and "catch unload".
10931 2012-01-24 Tom Tromey <tromey@redhat.com>
10933 * ada-lang.c: Include gdb_vecs.h.
10934 * charset.c: Include gdb_vecs.h.
10935 * tracepoint.h: Include gdb_vecs.h.
10936 * gdb_vecs.h: New file.
10938 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10940 * breakpoint.c (breakpoint_hit_catch_fork)
10941 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10942 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10943 * infrun.c (inferior_has_forked, inferior_has_vforked)
10944 (inferior_has_execd, inferior_has_called_syscall): Delete.
10945 (handle_syscall_event): Get syscall_number from the execution
10946 control state's wait status.
10947 (wait_for_inferior): Don't clear syscall_number.
10949 2012-01-24 Pedro Alves <palves@redhat.com>
10951 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10952 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10953 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10954 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10956 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10957 false for events other than TARGET_SIGNAL_TRAP.
10958 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10959 Add `ws' parameter.
10960 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10961 events other than TARGET_SIGNAL_TRAP.
10962 (tracepoint_breakpoint_hit): Add `ws' parameter.
10963 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10965 (bpstat_stop_status): Same.
10966 (pc_at_non_inline_function): Same.
10967 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10968 to pass the current event's waitstatus to bpstat_stop_status
10969 and pc_at_non_inline_function.
10971 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10974 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10975 Update the function comment for it.
10976 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10977 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10980 2012-01-24 Pedro Alves <palves@redhat.com>
10982 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10983 outside `bs->stop' block.
10984 (bpstat_what): Rework bp_shlib_event handling.
10985 (internal_bkpt_check_status): If the breakpoint is a
10986 bp_shlib_event, then set bs->stop and bs->print if
10987 stop_on_solib_events is set.
10989 2012-01-24 Gary Benson <gbenson@redhat.com>
10991 Delete #if 0'd out code.
10992 * stack.c (print_frame_label_vars): Remove.
10993 (catch_info): Likewise.
10994 (_initialize_stack): Remove "info catch" command.
10995 * NEWS: Mention the above.
10997 2012-01-24 Pedro Alves <palves@redhat.com>
10999 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11001 (remote_notice_new_inferior): If the remote end doesn't support
11002 the multiprocess extensions, then the PID is fake.
11003 (add_current_inferior_and_thread): New.
11004 (remote_start_remote): Use it.
11005 (extended_remote_attach_1): Adjust.
11006 (extended_remote_create_inferior_1): Use
11007 add_current_inferior_and_thread.
11009 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11011 Fix watchpoints to be specific for each inferior.
11012 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11013 current_program_space.
11014 * i386-nat.c (i386_inferior_data_cleanup): New.
11015 (i386_inferior_data_get): Replace variable inf_data_local by an
11016 inferior_data call.
11017 (i386_use_watchpoints): Initialize i386_inferior_data.
11018 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11019 specific iterate_over_lwps.
11021 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11023 Fix watchpoints across inferior fork.
11024 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11025 comment for linux_nat_iterate_watchpoint_lwps.
11026 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11027 linux_nat_iterate_watchpoint_lwps.
11028 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11029 * i386-linux-nat.c (update_debug_registers_callback): Update the
11030 comment for linux_nat_iterate_watchpoint_lwps.
11031 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11032 linux_nat_iterate_watchpoint_lwps.
11033 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11034 * i386-nat.c: Include inferior.h.
11035 (dr_mirror): Remove.
11036 (i386_inferior_data, struct i386_inferior_data)
11037 (i386_inferior_data_get): New.
11038 (i386_debug_reg_state): Use i386_inferior_data_get.
11039 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11040 (i386_insert_watchpoint, i386_remove_watchpoint)
11041 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11042 (i386_remove_hw_breakpoint): New variable state, use
11043 i386_debug_reg_state instead of DR_MIRROR.
11044 * linux-nat.c (delete_lwp): New declaration.
11045 (num_lwps): Move here from downwards.
11046 (delete_lwp_cleanup): New.
11047 (linux_child_follow_fork): Create new child_lp, call
11048 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11050 (num_lwps): Move upwards.
11051 (linux_nat_iterate_watchpoint_lwps): New.
11052 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11053 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11055 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11059 2012-01-23 Pedro Alves <palves@redhat.com>
11061 * top.c (caution): Rename to ...
11062 (confirm): ... this.
11063 (show_caution): Rename to ...
11064 (show_confirm): ... this.
11065 (quit_cover): Adjust.
11066 (init_main): Adjust.
11067 * top.h (caution): Rename to ...
11068 (confirm): ... this.
11069 * utils.c (internal_vproblem, defaulted_query): Adjust.
11071 2012-01-23 Pedro Alves <palves@redhat.com>
11073 * top.c (caution): Update comment.
11074 (execute_command): Don't consider the current value of `caution'.
11076 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11078 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11080 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11082 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11083 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11084 * target.c (target_fileio_pwrite): Remove buffer address from
11086 (target_fileio_pread): Likewise.
11088 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11090 * NEWS: Document remote "info proc" and "generate-core-file".
11092 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11094 * gdbarch.sh (find_memory_regions): New callback.
11095 * gdbarch.c, gdbarch.h: Regenerate.
11097 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11098 callback before falling back to target method.
11100 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11101 (linux_target_install_ops): No longer install it.
11103 * linux-tdep.c (linux_find_memory_regions): New function.
11104 (linux_init_abi): Install it.
11106 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11108 * gdbarch.sh (make_corefile_notes): New architecture callback.
11109 * gdbarch.c: Regenerate.
11110 * gdbarch.h: Likewise.
11112 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11113 before target_make_corefile_notes. If NULL is returned, the
11114 target does not support core file generation.
11116 * linux-nat.c: Include "linux-tdep.h".
11117 (find_signalled_thread, find_stop_signal): Remove.
11118 (linux_nat_do_thread_registers): Likewise.
11119 (struct linux_nat_corefile_thread_data): Likewise.
11120 (linux_nat_corefile_thread_callback): Likewise.
11121 (iterate_over_spus): Likewise.
11122 (struct linux_spu_corefile_data): Likewise.
11123 (linux_spu_corefile_callback): Likewise.
11124 (linux_spu_make_corefile_notes): Likewise.
11125 (linux_nat_collect_thread_registers): New function.
11126 (linux_nat_make_corefile_notes): Replace contents by call to
11127 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11128 as native-only callback.
11130 * linux-tdep.h: Include "bfd.h".
11131 (struct regcache): Add forward declaration.
11132 (linux_collect_thread_registers_ftype): New typedef.
11133 (linux_make_corefile_notes): Add prototype.
11134 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11135 "regset.h", and "elf-bfd.h".
11136 (find_signalled_thread, find_stop_signal): New functions.
11137 (linux_spu_make_corefile_notes): Likewise.
11138 (linux_collect_thread_registers): Likewise.
11139 (struct linux_corefile_thread_data): New data structure.
11140 (linux_corefile_thread_callback): New funcion.
11141 (linux_make_corefile_notes): Likewise.
11142 (linux_make_corefile_notes_1): Likewise.
11143 (linux_init_abi): Install it.
11145 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11147 * gdbarch.sh (info_proc): New callback.
11148 * gdbarch.c, gdbarch.h: Regenerate.
11150 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11151 before falling back to the target info_proc callback.
11153 * linux-nat.c: Do not include "cli/cli-utils.h".
11154 (linux_nat_info_proc): Remove.
11155 (linux_target_install_ops): No longer install it.
11157 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11158 (read_mapping): New function.
11159 (linux_info_proc): Likewise.
11160 (linux_init_abi): Install it.
11162 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11164 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11165 * infcmd.c: (info_proc_cmd_1): New function.
11166 (info_proc_cmd): New function, moved here from equivalent routine
11167 orignally in linux-nat.c.
11168 (info_proc_cmd_mappings): Likewise.
11169 (info_proc_cmd_stat): Likewise.
11170 (info_proc_cmd_status): Likewise.
11171 (info_proc_cmd_cwd): Likewise.
11172 (info_proc_cmd_cmdline): Likewise.
11173 (info_proc_cmd_exe): Likewise.
11174 (info_proc_cmd_all): Likewise.
11175 (_initialize_infcmd): Install "info proc" command and subcommands.
11177 * target.h (struct target_ops): Add to_info_proc.
11178 (target_info_proc): Add prototype.
11179 * target.c (target_info_proc): New function.
11181 * procfs.c (procfs_info_proc): Add prototype.
11182 (info_proc_cmd): Rename into ...
11183 (procfs_info_proc): ... this. Update argument types as appropriate
11184 for a to_info_proc implementation. Handle "what" argument.
11185 (procfs_target): Install procfs_info_proc.
11186 (_initialize_procfs): No longer install "info proc" command.
11188 * linux-nat.c: (enum info_proc_what): Remove.
11189 (linux_nat_info_proc_cmd_1): Rename into ...
11190 (linux_nat_info_proc): ... this. Update argument types as appropriate
11191 for a to_info_proc implementation.
11192 (linux_nat_info_proc_cmd): Remove.
11193 (linux_nat_info_proc_cmd_mappings): Likewise.
11194 (linux_nat_info_proc_cmd_stat): Likewise.
11195 (linux_nat_info_proc_cmd_status): Likewise.
11196 (linux_nat_info_proc_cmd_cwd): Likewise.
11197 (linux_nat_info_proc_cmd_cmdline): Likewise.
11198 (linux_nat_info_proc_cmd_exe): Likewise.
11199 (linux_nat_info_proc_cmd_all): Likewise.
11200 (linux_target_install_ops): Install linux_nat_info_proc.
11201 (_initialize_linux_nat): No longer install "info proc" command
11204 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11206 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11207 * config.in, configure: Regenerate.
11209 * target.h (struct target_ops): Add to_fileio_readlink.
11210 (target_fileio_readlink): Add prototype.
11211 * target.c (target_fileio_readlink): New function.
11213 * inf-child.c: Conditionally include <sys/param.h>.
11214 (inf_child_fileio_readlink): New function.
11215 (inf_child_target): Install it.
11217 * remote.c (PACKET_vFile_readlink): New enum value.
11218 (remote_hostio_readlink): New function.
11219 (init_remote_ops): Install it.
11220 (_initialize_remote): Handle vFile:readlink packet type.
11222 2012-01-20 Pedro Alves <palves@redhat.com>
11223 Ulrich Weigand <ulrich.weigand@linaro.org>
11225 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11226 * config.in, configure: Regenerate.
11228 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11229 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11230 (target_fileio_open): Add prototype.
11231 (target_fileio_pwrite): Likewise.
11232 (target_fileio_pread): Likewise.
11233 (target_fileio_close): Likewise.
11234 (target_fileio_unlink): Likewise.
11235 (target_fileio_read_alloc): Likewise.
11236 (target_fileio_read_stralloc): Likewise.
11238 * target.c: Include "gdb/fileio.h".
11239 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11240 (default_fileio_target): New function.
11241 (target_fileio_open): Likewise.
11242 (target_fileio_pwrite): Likewise.
11243 (target_fileio_pread): Likewise.
11244 (target_fileio_close): Likewise.
11245 (target_fileio_unlink): Likewise.
11246 (target_fileio_close_cleanup): Likewise.
11247 (target_fileio_read_alloc_1): Likewise.
11248 (target_fileio_read_alloc): Likewise.
11249 (target_fileio_read_stralloc): Likewise.
11251 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11252 <fcntl.h>, and <unistd.h>.
11253 (inf_child_fileio_open_flags_to_host): New function.
11254 (inf_child_errno_to_fileio_error): Likewise.
11255 (inf_child_fileio_open): Likewise.
11256 (inf_child_fileio_pwrite): Likewise.
11257 (inf_child_fileio_pread): Likewise.
11258 (inf_child_fileio_close): Likewise.
11259 (inf_child_fileio_unlink): Likewise.
11260 (inf_child_target): Install to_fileio routines.
11262 * remote.c (init_remote_ops): Install to_fileio routines.
11264 2012-01-20 Pedro Alves <palves@redhat.com>
11265 Ulrich Weigand <ulrich.weigand@linaro.org>
11267 * remote.c (remote_multi_process_p): Only check for multi-process
11268 protocol feature, do not check for extended protocol.
11269 (remote_supports_multi_process): Check for extended protocol here.
11270 (set_general_process): Likewise.
11271 (extended_remote_kill): Likewise.
11272 (remote_pid_to_str): Likewise.
11273 (remote_query_supported): Always query multiprocess mode.
11275 2012-01-20 Pedro Alves <palves@redhat.com>
11276 Ulrich Weigand <ulrich.weigand@linaro.org>
11278 * inferior.h (struct inferior): Add fake_pid_p.
11279 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11280 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11281 magic_null_ptid since the remote side doesn't provide a real PID.
11283 2012-01-19 Tom Tromey <tromey@redhat.com>
11285 * NEWS: Combine the two Python sections.
11287 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11289 * target.h (target_close): Update comment on the target's unpush state.
11291 2012-01-19 Pedro Alves <palves@redhat.com>
11293 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11294 linux_nat_async directly instead of going through the target
11296 * target.c (unpush_target): Close target after unpushing it, not
11299 2012-01-19 Gary Benson <gbenson@redhat.com>
11301 * mdebugread.c (sort_blocks): Replace integer constants with ones
11302 derived from FIRST_LOCAL_BLOCK.
11304 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11305 Jan Kratochvil <jan.kratochvil@redhat.com>
11308 * symfile.c (find_separate_debug_file): New function.
11309 (terminate_after_last_dir_separator): Likewise.
11310 (find_separate_debug_file_by_debuglink): Also try realpath.
11311 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11312 * configure: Regenerate.
11313 * config.in: Regenerate.
11315 2012-01-18 Doug Evans <dje@google.com>
11317 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11318 (main.o): Remove rule.
11319 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11320 (--with-sysroot): Rewrite.
11321 * configure: Regenerate.
11322 * config.in: Regenerate.
11324 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11326 * parse.c (initialize_expout): New function.
11327 (reallocate_expout): Likewise.
11328 (parse_exp_in_context): Use `initialize_expout' and
11329 `reallocate_expout' when appropriate.
11331 2012-01-18 Pedro Alves <palves@redhat.com>
11333 * record.c (struct record_breakpoint, record_breakpoint_p)
11334 (record_breakpoints): New.
11335 (record_insert_breakpoint, record_remove_breakpoint): Manage
11336 record breakpoints list. Only remove breakpoints from the
11337 inferior if they had been inserted there in the first place.
11339 2012-01-17 Doug Evans <dje@google.com>
11341 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11342 if we know we don't have a file name to look for.
11344 2012-01-17 Pedro Alves <palves@redhat.com>
11346 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11347 the frame's stop reason is UNWIND_UNAVAILABLE.
11349 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11351 Fix compilation error.
11352 * m2-exp.y (yyerror): Use ANSI C prototype.
11354 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11356 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11357 (growbuf_by_size): Likewise.
11358 (yyerror): Likewise.
11359 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11360 (modblock): Remove variable (was #if 0'ed).
11361 (parse_number): Convert prototype from K&R to ANSI C.
11362 (yyerror): Likewise.
11363 * objc-exp.y (parse_number): Likewise.
11364 (yyerror): Likewise.
11365 (yylex): Remove #if 0'ed code.
11366 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11367 (yyerror): Likewise.
11369 2012-01-16 Tom Tromey <tromey@redhat.com>
11372 * symtab.h (compare_filenames_for_search): Declare.
11373 * symtab.c (compare_filenames_for_search): New function.
11374 (iterate_over_some_symtabs): Use it.
11375 * symfile.h (struct quick_symbol_functions)
11376 <map_symtabs_matching_filename>: Change spec.
11377 * psymtab.c (partial_map_symtabs_matching_filename): Use
11378 compare_filenames_for_search. Update for new spec.
11379 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11380 compare_filenames_for_search. Update for new spec.
11381 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11383 2012-01-16 Tom Tromey <tromey@redhat.com>
11386 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11387 (struct main_type) <flag_flag_enum>: New field.
11388 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11389 * NEWS: Add entries.
11390 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11392 * python/lib/gdb/printing.py (_EnumInstance): New class.
11393 (FlagEnumerationPrinter): Likewise.
11395 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11397 * breakpoint.c (create_sals_from_address_default): New function.
11398 (create_breakpoints_sal_default): Likewise.
11399 (decode_linespec_default): Likewise.
11400 (is_marker_spec): Removed.
11401 (strace_marker_p): New function.
11402 (init_breakpoint_sal): Using `strace_marker_p' instead of
11404 (create_breakpoint): Call method `create_sals_from_address' from
11405 breakpoint_ops, replacing code that created SALs conditionally
11406 on the type of the breakpoint. Call method `create_breakpoints_sal',
11407 replacing code that created breakpoints conditionally on the type
11409 (base_breakpoint_create_sals_from_address): New function.
11410 (base_breakpoint_create_breakpoints_sal): Likewise.
11411 (base_breakpoint_decode_linespec): Likewise.
11412 (base_breakpoint_ops): Add methods
11413 `base_breakpoint_create_sals_from_address',
11414 `base_breakpoint_create_breakpoints_sal' and
11415 `base_breakpoint_decode_linespec'.
11416 (bkpt_create_sals_from_address): New function.
11417 (bkpt_create_breakpoints_sal): Likewise.
11418 (bkpt_decode_linespec): Likewise.
11419 (tracepoint_create_sals_from_address): Likewise.
11420 (tracepoint_create_breakpoints_sal): Likewise.
11421 (tracepoint_decode_linespec): Likewise.
11422 (strace_marker_create_sals_from_address): Likewise.
11423 (strace_marker_create_breakpoints_sal): Likewise.
11424 (strace_marker_decode_linespec): Likewise.
11425 (strace_marker_breakpoint_ops): New variable.
11426 (addr_string_to_sals): Remove `marker_spec'. Call method
11427 `decode_linespec' from breakpoint_ops, replacing code that decoded
11428 an address string into a SAL. Use `strace_marker_p' instead of
11430 (strace_command): Decide whether we are dealing with a static
11431 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11432 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11433 * breakpoint.h (linespec_result, linespec_sals): New forward
11435 (breakpoint_ops) <create_sals_from_address>,
11436 <create_breakpoints_sal>, <decode_linespec>: New methods.
11438 2012-01-14 Doug Evans <dje@google.com>
11440 * NEWS: Update text for "maint set python print-stack".
11441 It is deprecated in gdb 7.4 and deleted in 7.5.
11443 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11445 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11446 including curses.h.
11448 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11450 * configure: Regenerate.
11451 * config.in: Regenerate.
11453 2012-01-12 Keith Seitz <keiths@redhat.com>
11456 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11457 (ANONYMOUS_UNION_NAME): Define.
11458 (is_path_expr_parent): New function.
11459 (get_path_expr_parent): New function.
11460 (is_anonymous_child): New function.
11461 (create_child_with_value): If the child is anonymous and without
11462 a name, assign an object name to it.
11463 (c_describe_child): Use get_path_expr_parent to determine
11464 the parent expression.
11465 If there field represents an anonymous struct or union and
11466 has no name, set an appropriate display name and expression.
11467 (cplus_describe_child): Likewise.
11469 2012-01-12 Pedro Alves <palves@redhat.com>
11471 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11472 available when %ebp is found to be zero (outermost).
11474 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11476 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11477 an internal gdb_static_assert.
11478 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11480 2012-01-11 Tom Tromey <tromey@redhat.com>
11483 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11484 catch" and "catch throw".
11486 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11488 * blockframe.c (block_innermost_frame): Start search from selected
11489 frame, if present, or otherwise the current frame.
11491 * c-exp.y (variable): Update innermost_block for
11492 'block COLONCOLON NAME' clause.
11493 * m2-exp.y (variable): Ditto.
11494 * objc-exp.y (variable): Ditto.
11496 2012-01-10 Tom Tromey <tromey@redhat.com>
11499 * python/python.c (finish_python_initialization): Set sys.argv.
11501 2012-01-10 Doug Evans <dje@google.com>
11503 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11504 "want_line_info". All callers updated.
11505 (dwarf_decode_lines_1): New function.
11506 (handle_DW_AT_stmt_list): Add function comment.
11507 New arg "want_line_info". All callers updated.
11508 (read_file_scope,read_type_unit_scope): Move comment from
11509 handle_DW_AT_stmt_list to here.
11511 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11513 Fix regression after libiberty/ update for GCC PR 6057 and others.
11514 * c-exp.y (operator) <OPERATOR DELETE>
11515 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11516 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11517 (make_builtin_type, make_name): New variable i, add gdb_assert.
11518 (operator) <OPERATOR NEW>: Update ARGS to 3.
11519 (operator) <OPERATOR DELETE>: Add trailing space.
11520 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11521 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11522 * cp-support.c (cp_canonicalize_string): Check NULL from
11523 cp_comp_to_string, call warning and return.
11525 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11527 Fix duplicate .o files after omitting libbfd.a.
11528 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11529 (SFILES): Add corelow.c.
11530 (COMMON_OBS): Add corelow.o.
11531 (ALLDEPFILES): Remove corelow.c.
11532 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11533 * config/alpha/alpha-osf3.mh: Likewise.
11534 * config/alpha/fbsd.mh: Likewise.
11535 * config/arm/nbsdaout.mh: Likewise.
11536 * config/arm/nbsdelf.mh: Likewise.
11537 * config/i386/i386gnu.mh: Likewise.
11538 * config/ia64/hpux.mh: Likewise.
11539 * config/ia64/linux.mh: Likewise.
11540 * config/m32r/linux.mh: Likewise.
11541 * config/m68k/linux.mh: Likewise.
11542 * config/mips/irix5.mh: Likewise.
11543 * config/mips/irix6.mh: Likewise.
11544 * config/pa/hpux.mh: Likewise.
11545 * config/pa/linux.mh: Likewise.
11546 * config/powerpc/aix.mh: Likewise.
11547 * config/sparc/linux.mh: Likewise.
11548 * config/sparc/linux64.mh: Likewise.
11549 * config/sparc/sol2.mh: Likewise.
11550 * config/vax/vax.mh: Likewise.
11551 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11552 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11553 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11554 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11555 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11556 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11557 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11558 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11559 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11560 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11561 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11562 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11563 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11564 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11565 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11566 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11567 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11568 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11569 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11570 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11571 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11572 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11573 corelow.o from gdb_target_obs.
11574 * corefile.c (core_target): Update the comment on NULL value.
11575 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11576 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11577 MATCHES. Drop YUMMY set on NULL.
11578 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11579 reclaim CORE_DATA if it is already NULL.
11581 2012-01-09 Doug Evans <dje@google.com>
11583 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11584 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11586 2012-01-09 Keith Seitz <keiths@redhat.com>
11588 * breakpoint.c (wrapper.h): Don't include.
11590 2012-01-09 Keith Seitz <keiths@redhat.com>
11592 * Makefile.in (SFILES): Remove wrapper.c.
11593 (HFILES_NO_SRCDIR): Remove wrapper.h.
11594 (COMMON_OBS): Remove wrapper.o.
11595 * cli/cli-interp.c: Don't inlude wrapper.h.
11596 * corelow.c: Likewise.
11597 (core_open): Replace gdb_target_find_new_threads with
11598 TRY_CATCH around target_find_new_threads.
11599 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11600 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11601 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11602 evaluate_expression.
11603 (varobj_set_value): Likewise for evaluate_expression and
11605 (install_new_variable): Likewise for value_fetch_lazy.
11606 (adjust_value_for_child_access): Likewise for value_ind.
11607 (c_describe_child): Likewise for value_subscript and
11609 (c_value_of_root): Likewise for evaluate_expression.
11610 * wrapper.c: Remove.
11611 * wrapper.h: Remove.
11613 2012-01-09 Doug Evans <dje@google.com>
11615 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11616 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11617 "abfd" args with "section". All callers updated.
11618 Error checking code moved ...
11619 (error_check_comp_unit_head): ... here. New function.
11620 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11621 Delete arg "abfd". New arg "type_offset". All callers updated.
11622 (create_debug_types_hash_table): Simplify by using
11623 read_and_check_type_unit_head.
11625 * parser-defs.h (namecopy): Delete.
11626 * parse.c (namecopy, namecopy_size): Move into copy_name.
11628 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11630 Partially fix duplicate .o files after omitting libbfd.a.
11631 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11632 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11633 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11634 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11635 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11636 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11637 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11639 2012-01-09 Pedro Alves <palves@redhat.com>
11641 * MAINTAINERS: Update my email address.
11643 2012-01-08 Doug Evans <dje@google.com>
11645 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11646 n_type_units. Rename type_comp_units to all_type_units.
11648 (add_signatured_type_cu_to_table): Renamed from
11649 add_signatured_type_cu_to_list. All callers updated.
11651 * gdbtypes.h (struct cplus_struct_type): Delete member
11652 nfn_fields_total. All uses removed.
11654 2012-01-06 Doug Evans <dje@google.com>
11656 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11658 (dwarf2_find_comp_unit): Delete.
11659 (process_psymtab_comp_unit): Make result "void".
11660 Delete args buffer, info_ptr, buffer_size, and replace with
11661 "section". All callers updated.
11662 (dwarf2_build_psymtabs_hard): Simplify.
11664 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11665 Thiago Jung Bauermann <bauerman@br.ibm.com>
11667 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11668 before `struct gdb_exception'.
11669 * breakpoint.c (update_global_location_list_nothrow)
11670 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11671 * cp-abi.c (value_rtti_type): Likewise.
11672 * cp-support.c (cp_validate_operator): Likewise.
11673 * infrun.c (insert_exception_resume_breakpoint)
11674 (check_exception_resume, keep_going): Likewise.
11675 * mi-interp.c (mi_breakpoint_created)
11676 (mi_breakpoint_modified): Likewise.
11677 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11678 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11679 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11681 2012-01-05 Doug Evans <dje@google.com>
11683 * dwarf2read.c (statement_prologue): Delete, unused.
11685 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11686 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11688 * dwarf2read.c (comp_unit_header): Delete, unused.
11690 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11692 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11693 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11695 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11697 * infrun.c (normal_stop): Don't skip calling the normal_stop
11698 observers if the thread was doing a multi-step, but stopped for
11699 some reason other than stepping.
11701 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11703 * cli/cli-decode.h: Add comments.
11704 (CMD_LIST_AMBIGUOUS): Moved to command.h
11705 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11706 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11707 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11708 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11709 (add_com, add_com_alias, add_info, add_info_alias)
11710 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11712 * command.h: Add and adjust comments.
11713 (CMD_LIST_AMBIGUOUS): Moved here.
11714 (help_cmd, help_cmd_list): Delete declarations.
11716 2012-01-04 Doug Evans <dje@google.com>
11718 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11719 All callers updated.
11720 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11721 Replace all arguments with "per_cu". All callers updated.
11723 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11725 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11726 New arg "per_cu". All callers updated.
11728 Delete #if 0'd out code.
11729 * language.c (binop_result_type): Delete.
11730 (simple_type, ordered_type, same_type, integral_type): Delete.
11731 (numeric_type, character_type, string_type, boolean_type): Delete.
11732 (float_type, structured_type): Delete.
11733 * language.h: Update.
11735 2012-01-04 Tom Tromey <tromey@redhat.com>
11737 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11739 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11741 * corefile.c (close_exec_file): Delete.
11742 (reopen_exec_file): Remove commented out code that seems related
11743 to close_exec_file, which is being deleted here.
11744 * inferior.h (close_exec_file): Delete.
11745 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11747 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11749 * ada-lang.c: #include "cli/cli-utils.h".
11750 (get_selections): Use skip_spaces.
11751 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11752 (catch_ada_exception_command_split): Use skip_spaces.
11753 (ada_decode_assert_location): Likewise.
11755 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11757 * linespec.c (decode_line_internal): Check for C++ or Java
11758 compound constructs only if the current language is C, C++
11761 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11764 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11765 Joel Brobecker <brobecker@adacore.com>
11766 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11767 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11769 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11770 fall through into AT_ENTRY_POINT.
11771 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11772 DUMMY_ADDR with it.
11773 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11774 PPC_INSN_SIZE skip to 3 times.
11776 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11778 * linespec.c (add_minsym): Preserve function descriptors.
11780 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11782 * breakpoint.c (all_locations_are_pending): Consider locations
11783 in program spaces executing during startup pending as well.
11785 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11787 Copyright year update in most files of the GDB Project.
11789 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11791 * copyright.sh: Delete.
11792 * copyright.py: Rewrite.
11794 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11796 * gnulib/extra/update-copyright: New file, imported from gnulib.
11798 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11800 * README (Copyright and License Notices): New section.
11802 2012-01-03 Tom Tromey <tromey@redhat.com>
11805 * python/py-value.c (valpy_dereference, valpy_get_address
11806 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11807 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11808 (valpy_absolute, valpy_richcompare): Free intermediate values.
11810 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11812 * ada-lang.c: Reformat the copyright notice.
11814 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11816 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11817 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11818 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11819 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11820 Revert this part of:
11821 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11822 Build gdb directly from *.o files not using libgdb.a.
11823 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11825 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11827 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11828 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11829 Reformat the copyright header.
11831 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11833 Revert this part of:
11834 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11835 Remove the gdbtui binary.
11836 * gdb.c (main): Remove args.interpreter_p initialization.
11837 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11838 * main.h (struct captured_main_args): Remove interpreter_p.
11840 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11842 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11844 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11846 * top.c (print_gdb_version): Update copyright year.
11848 2012-01-02 Yao Qi <yao@codesourcery.com>
11850 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11852 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11853 Joel Brobecker <brobecker@adacore.com>
11855 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11856 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11858 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11859 fall through into AT_ENTRY_POINT.
11860 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11861 DUMMY_ADDR with it.
11862 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11863 PPC_INSN_SIZE skip to 3 times.
11865 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11867 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11869 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11871 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11873 Build gdb directly from *.o files not using libgdb.a.
11874 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11875 (COMMON_OBS): Remove solib-target.o.
11876 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11877 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11878 (LIBGDB_OBS, libgdb.a): Move it above.
11879 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11880 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11881 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11882 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11883 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11884 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11885 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11886 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11887 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11888 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11889 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11890 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11891 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11892 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11893 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11894 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11895 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11896 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11897 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11898 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11899 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11900 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11901 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11902 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11903 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11904 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11905 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11907 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11909 Remove the gdbtui binary.
11910 * .gitignore (/gdbtui): Remove.
11911 * Makefile.in (TUI): Remove.
11912 (SUBDIR_TUI_OBS): Remove tui-main.o.
11913 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11914 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11915 (tui-main.o): Remove.
11916 (all_object_files): Remove tui-main.o.
11917 * NEWS: New note for the gdbtui removal.
11918 * configure: Rebuilt.
11919 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11920 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11921 CONFIG_UNINSTALL respectively.
11922 * gdb.c (main): Remove args.interpreter_p initialization.
11923 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11924 * main.h (struct captured_main_args): Remove interpreter_p.
11925 * tui/tui-main.c: Remove.
11927 2012-01-01 Doug Evans <dje@google.com>
11929 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11930 (dwarf2_physname, read_import_statement): Ditto.
11931 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11932 (process_structure_scope read_subroutine_type): Ditto.
11933 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11934 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11935 (dwarf2_fetch_die_location_block): Ditto.
11936 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11938 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11939 All callers updated.
11940 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11941 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11942 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11944 * dwarf2read.c (load_cu): Move assert to more useful location.
11946 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11947 All callers updated.
11949 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11950 (dwarf2_elf_names): Minor reformat.
11951 (dwarf2_per_cu_data): Tweak comment.
11952 (dwarf2_read_section): Fix comment.
11953 (create_all_comp_units): Fix comment.
11954 (load_full_comp_unit): Fix comment.
11955 (process_full_comp_unit): Fix comment.
11956 (read_signatured_type): Fix comment.
11958 For older changes see ChangeLog-2011.
11964 version-control: never